Loading...
Searching...
No Matches
mesh::GradingStats Struct Reference

Size-grading and shape gates (workplans/MESH_OVERHAUL_PLAN_2026-09-29.md §6). More...

#include <mesh/meshcellstats.h>

Collaboration diagram for mesh::GradingStats:

Public Attributes

int faces = 0
 Interior faces measured; 0 = stats invalid.
 
double ratioMax = 1.0
 Largest longest-edge ratio (>= 1) across an interior face.
 
double ratioP50 = 1.0
 Median ratio: sorted element at index faces / 2 (upper middle).
 
double ratioP95 = 1.0
 Sorted element at floor(0.95 * faces), capped at the last.
 
int ratioHistogram [6] = {0, 0, 0, 0, 0, 0}
 Faces with ratio in (1.25·k-ish) bands: <=1.25, <=1.5, <=2, <=3, <=4, >4.
 
double orthoMedianDeg = 0.0
 Median non-orthogonality (degrees, upper middle) over faces whose edge and centroid connector both have positive length; 0 when none.
 
double orthoMaxDeg = 0.0
 Largest non-orthogonality (degrees); 0 when none sampled.
 
double minAngleDeg = 180.0
 Over triangles and quads (180 when no cell).
 
int cellsBelow10Deg = 0
 Cells with a corner under 10°.
 
int triangles = 0
 Three-vertex cells measured (valid indices, positive area and longest edge).
 
int quads = 0
 Four-vertex cells measured under the same validity rule.
 

Detailed Description

Size-grading and shape gates (workplans/MESH_OVERHAUL_PLAN_2026-09-29.md §6).

Grading: for every interior face the ratio of the two cells' sizes, size = longest edge (the quantity the ≤ 2 bound is stated on; a quadtree transition piece has a short edge but never a short longest edge next to a coarse neighbour). Orthogonality: the angle between the centroid connector of the two cells and the face normal (0 for a regular grid). Angles: the smallest interior corner over every cell.

Member Data Documentation

◆ cellsBelow10Deg

int mesh::GradingStats::cellsBelow10Deg = 0

Cells with a corner under 10°.

◆ faces

int mesh::GradingStats::faces = 0

Interior faces measured; 0 = stats invalid.

◆ minAngleDeg

double mesh::GradingStats::minAngleDeg = 180.0

Over triangles and quads (180 when no cell).

◆ orthoMaxDeg

double mesh::GradingStats::orthoMaxDeg = 0.0

Largest non-orthogonality (degrees); 0 when none sampled.

◆ orthoMedianDeg

double mesh::GradingStats::orthoMedianDeg = 0.0

Median non-orthogonality (degrees, upper middle) over faces whose edge and centroid connector both have positive length; 0 when none.

◆ quads

int mesh::GradingStats::quads = 0

Four-vertex cells measured under the same validity rule.

◆ ratioHistogram

int mesh::GradingStats::ratioHistogram[6] = {0, 0, 0, 0, 0, 0}

Faces with ratio in (1.25·k-ish) bands: <=1.25, <=1.5, <=2, <=3, <=4, >4.

◆ ratioMax

double mesh::GradingStats::ratioMax = 1.0

Largest longest-edge ratio (>= 1) across an interior face.

◆ ratioP50

double mesh::GradingStats::ratioP50 = 1.0

Median ratio: sorted element at index faces / 2 (upper middle).

◆ ratioP95

double mesh::GradingStats::ratioP95 = 1.0

Sorted element at floor(0.95 * faces), capped at the last.

◆ triangles

int mesh::GradingStats::triangles = 0

Three-vertex cells measured (valid indices, positive area and longest edge).


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