Loading...
Searching...
No Matches
meshkit::RasterData Struct Reference

Regular grid of elevation samples at nodes, in the mesh's XY and Z units. More...

#include <meshkit/raster.hpp>

Collaboration diagram for meshkit::RasterData:

Public Attributes

std::uint32_t columns = 0
 Node (not cell) count along X; must be >= 2.
 
std::uint32_t rows = 0
 Node count along Y; must be >= 2.
 
Point2 origin
 XY position of node (0, 0), the minimum-x, minimum-y corner; must be finite.
 
double xSpacing = 1
 Node spacing along X in XY units; must be positive and finite.
 
double ySpacing = 1
 Node spacing along Y in XY units; must be positive and finite.
 
std::vector< double > heights
 Z-unit samples; size columns * rows, node (i, j) at index j * columns + i.
 
std::uint64_t maximumCellsPerQuery = 4000000
 Most grid cells one query may visit (cells in the triangle's bounding range); nonzero.
 

Detailed Description

Regular grid of elevation samples at nodes, in the mesh's XY and Z units.

Node (i, j) lies at origin + (i * xSpacing, j * ySpacing), so the row index j increases toward +Y. RasterSurface's constructor checks every field.

Member Data Documentation

◆ columns

std::uint32_t meshkit::RasterData::columns = 0

Node (not cell) count along X; must be >= 2.

◆ heights

std::vector<double> meshkit::RasterData::heights

Z-unit samples; size columns * rows, node (i, j) at index j * columns + i.

◆ maximumCellsPerQuery

std::uint64_t meshkit::RasterData::maximumCellsPerQuery = 4000000

Most grid cells one query may visit (cells in the triangle's bounding range); nonzero.

◆ origin

Point2 meshkit::RasterData::origin

XY position of node (0, 0), the minimum-x, minimum-y corner; must be finite.

◆ rows

std::uint32_t meshkit::RasterData::rows = 0

Node count along Y; must be >= 2.

◆ xSpacing

double meshkit::RasterData::xSpacing = 1

Node spacing along X in XY units; must be positive and finite.

◆ ySpacing

double meshkit::RasterData::ySpacing = 1

Node spacing along Y in XY units; must be positive and finite.


The documentation for this struct was generated from the following file: