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

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

#include "mesh/meshcellstats.h"
#include "mesh/meshcellgeom.h"
#include "mesh/meshquadquality.h"
#include <QSet>
#include <algorithm>
#include <cmath>
#include <limits>
#include <vector>
Include dependency graph for meshcellstats.cpp:

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.
 

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.