SWMMVis  6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
meshkit::plan::QuadBlockGrid Struct Reference

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

#include <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
 
int cols = 0
 
int rows = 0
 
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
inline

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 call graph for this function:

Member Data Documentation

◆ cols

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

◆ 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

◆ rows

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

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