Skip to content

v1.3.0 — occtkit measure-deviation verb + metrics boundingBoxOptimal

Choose a tag to compare

@gsdali gsdali released this 19 Jun 23:28
· 6 commits to main since this release
5aa3b06

Two introspection capabilities, bringing occtkit (and the OCCTMCP Node server that wraps it) to parity with OCCTMCP's Swift in-process tools.

measure-deviation <a.brep> <b.brep> [--deflection D] [--max-samples N]

Directed + symmetric surface deviation (one-sided / symmetric Hausdorff). Unlike measure-distance (minimum gap, ≈0 for overlapping bodies), it samples each shape's tessellated surface and projects onto the other's triangles — the metric for certifying a mesh→analytic reconstruction. Reports {max, rms, mean, worstPoint, samples} per direction + symmetricHausdorff. Exact point-to-triangle; fidelity scales with --deflection (default 0.5% of the a-shape bbox diagonal).

metrics --metrics …,boundingBoxOptimal

Opt-in tight extent (BRepBndLib::AddOptimal); the default Bnd_Box over-reports curved B-spline faces (control-point hull). Default-all set unchanged.

Refs: OCCTMCP #41, #44. PR #59.