Loading...
Searching...
No Matches
meshkit::plan::QuadBlockGrid Struct Reference

Local cell size on a regular grid; NaN marks unusable cells. More...

#include <meshkit/blocks.hpp>

Collaboration diagram for meshkit::plan::QuadBlockGrid:

Public Member Functions

bool isValid () const
 Check the basic grid dimensions, positive pitch and exact h-vector extent.
 

Public Attributes

Point2 origin
 Lower-left corner of cell (0, 0).
 
double pitch = 0.0
 Square cell side in planar (XY) units; 0 = no grid.
 
int cols = 0
 Column count; cell (c, r) covers origin.x() + [c, c + 1] * pitch along X.
 
int rows = 0
 Row count; cell (c, r) covers origin.y() + [r, r + 1] * pitch along Y.
 
Vector< float > h
 Row-major, cols x rows.
 

Detailed Description

Local cell size on a regular grid; NaN marks unusable cells.

Member Function Documentation

◆ isValid()

bool meshkit::plan::QuadBlockGrid::isValid ( ) const
inlinenodiscard

Check the basic grid dimensions, positive pitch and exact h-vector extent.

Returns
True when pitch>0, rows/cols>0 and h.size()==std::ptrdiff_t(cols)*rows, false otherwise. Does not check finite pitch/origin, usable sample values or spatial arithmetic representability; infinity can pass the pitch test. Constant read-only query with no allocation or geometry access.
Here is the caller graph for this function:

Member Data Documentation

◆ cols

int meshkit::plan::QuadBlockGrid::cols = 0

Column count; cell (c, r) covers origin.x() + [c, c + 1] * pitch along X.

◆ h

Vector<float> meshkit::plan::QuadBlockGrid::h

Row-major, cols x rows.

◆ origin

Point2 meshkit::plan::QuadBlockGrid::origin

Lower-left corner of cell (0, 0).

◆ pitch

double meshkit::plan::QuadBlockGrid::pitch = 0.0

Square cell side in planar (XY) units; 0 = no grid.

◆ rows

int meshkit::plan::QuadBlockGrid::rows = 0

Row count; cell (c, r) covers origin.y() + [r, r + 1] * pitch along Y.


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