mesh.validate

Whether the mesh bounds a valid solid, with the edges and faces at fault when it does not.

GeometricSince 0.3.0

Usage

TypeScript
mesh.validate(): Result<MeshValidityReport>

Returns

Ok with the validity report when the mesh is closed, edge-manifold, consistently oriented, finite and free of zero-area faces.

Errors

Guarantees

  • succeeds for every output of the exact booleans
  • kernel:check reports the same codes for the same geometry
  • The same result on every machine.

Example

TypeScript
Mesh.box().value.validate().ok // → true

See also