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
VertexDepthReconstruct::CellSplit Struct Reference

One cell of a mixed triangle/quad mesh, pre-split for the reconstruction (workplans/TRI_QUAD_MESHING_PLAN_2026-09-06.md). More...

#include <vertexdepthreconstruct.h>

Collaboration diagram for VertexDepthReconstruct::CellSplit:

Public Member Functions

int vertexCount () const noexcept
 

Public Attributes

std::array< int, 4 > v {{-1, -1, -1, -1}}
 cell vertices; v[3] = -1 for a triangle
 
int nSub = 1
 1 (triangle) or 2 (quad)
 
std::array< std::array< int, 3 >, 2 > sub {}
 sub-triangle vertex indices
 
std::array< double, 2 > area {{0.0, 0.0}}
 planimetric sub-triangle areas (quad)
 

Detailed Description

One cell of a mixed triangle/quad mesh, pre-split for the reconstruction (workplans/TRI_QUAD_MESHING_PLAN_2026-09-06.md).

Built once per geometry rebuild from mesh::cellGeom so the quad's sub-triangles are the SAME two the engine's VFR storage model uses (Begnudelli & Sanders 2007 diagonal). A triangle has nSub == 1 and sub[0] == {v0,v1,v2}; the areas are only consulted for a quad.

Member Function Documentation

◆ vertexCount()

int VertexDepthReconstruct::CellSplit::vertexCount ( ) const
inlinenoexcept
Here is the caller graph for this function:

Member Data Documentation

◆ area

std::array<double, 2> VertexDepthReconstruct::CellSplit::area {{0.0, 0.0}}

planimetric sub-triangle areas (quad)

◆ nSub

int VertexDepthReconstruct::CellSplit::nSub = 1

1 (triangle) or 2 (quad)

◆ sub

std::array<std::array<int, 3>, 2> VertexDepthReconstruct::CellSplit::sub {}

sub-triangle vertex indices

◆ v

std::array<int, 4> VertexDepthReconstruct::CellSplit::v {{-1, -1, -1, -1}}

cell vertices; v[3] = -1 for a triangle


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