Skip to main content

Module validate

Module validate 

Source
Expand description

Comprehensive solid validation.

Performs structural and geometric validation on solids.

Structs§

ValidationIssue
A validation issue found in a solid.
ValidationOptions
Options for controlling validation tolerance.
ValidationReport
Result of validating a solid.

Enums§

Severity
Severity of a validation issue.

Functions§

euler_characteristic
Compute the raw Euler characteristic (V - E + F) for a solid.
validate_solid
Euler-Poincaré: V - E + F = 2(1 - g) for genus-g closed solidManifold edges: each edge shared by exactly 2 facesBoundary edges: no edge shared by only 1 face (open shell)Degenerate faces: each face has at least 3 verticesFace normal consistency: normals should be non-zeroWire closure: every wire forms a closed loopDegenerate face area: near-zero polygon area warning for planar facesZero-length edges: edges with coincident start/end verticesEmpty wires: wires with no edgesShell connectivity: all faces reachable from any faceRedundant faces: same face ID appearing twice in shellEdge vertex consistency: edge vertices belong to the solid
validate_solid_relaxed
Validate a solid with relaxed checks suitable for assembled geometry.
validate_solid_relaxed_with_options
Validate a solid with relaxed checks and configurable tolerance options.
validate_solid_with_options
Validate a solid with configurable tolerance options.