Loading...
Searching...
No Matches
meshcellstats.h File Reference

MESH_DECOUPLED_1D2D_REMAP_PLAN Part A — cell-area statistics for the mesh layer's Metadata tab. More...

#include "meshresult.h"
#include <QHash>
#include <QPair>
Include dependency graph for meshcellstats.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  mesh::CellAreaStats
 Min / max / mean / median of cell areas, triangles and quads (project CRS units²). More...
 
struct  mesh::QuadStats
 Quadrilateral-cell statistics (workplans/TRI_QUAD_MESHING_PLAN §5): count, interior-angle range and bed non-planarity. More...
 
struct  mesh::CflStats
 The 2D marcher's CFL characteristic length, per cell and summarised. More...
 
struct  mesh::GradingStats
 Size-grading and shape gates (workplans/MESH_OVERHAUL_PLAN_2026-09-29.md §6). More...
 

Namespaces

namespace  mesh
 The Qt-facing MeshKit API (meshkit::core_qt, meshkit::model_qt, meshkit::io_qt): mesh value types and cell attributes, the mesh generator, quad regions, matching and cleanup, mesh statistics, and the INP and 2DM mesh codecs.
 

Typedefs

using mesh::EdgeVertexPair = QPair<int, int>
 Undirected mesh edge, as (min, max) vertex indices.
 

Functions

double mesh::triangleArea (const MeshResult &mesh, int tri)
 Measure positive fan area for a triangle or quadrilateral cell.
 
QPointF mesh::cellCentroid (const MeshResult &mesh, int cell)
 Compute the planar area centroid using the shared cell fan geometry.
 
QuadStats mesh::computeQuadStats (const MeshResult &mesh)
 Summarize quad angles, quality, bed twist and interior quad-only vertex valence.
 
CellAreaStats mesh::computeCellAreaStats (const MeshResult &mesh)
 Summarize unsigned fan areas of all index-valid triangle and quad rows.
 
QHash< EdgeVertexPair, QVector< int > > mesh::buildEdgeTriangles (const MeshResult &mesh)
 Build an owned undirected edge-to-incident-cell adjacency map.
 
QVector< double > mesh::computeCellLchar (const MeshResult &mesh)
 Estimate the engine-style CFL characteristic length from cell geometry and interior faces.
 
CflStats mesh::computeCflStats (const MeshResult &mesh, int ltsTiers=4)
 Summarize positive geometric CFL lengths and a uniform-depth local-timestep work proxy.
 
GradingStats mesh::computeGradingStats (const MeshResult &mesh)
 Summarize adjacent-cell size ratios, face orthogonality and minimum cell corner angles.
 

Detailed Description

MESH_DECOUPLED_1D2D_REMAP_PLAN Part A — cell-area statistics for the mesh layer's Metadata tab.

Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
Date
2026
License
Apache-2.0

MESH_DECOUPLED_1D2D_REMAP_PLAN Part A — cell-area statistics for the mesh layer's Metadata tab. Free function, no layer dependency, so it is unit-testable against a bare MeshResult.