Skip to content

v1.2.0 — tunable wireframe edge deflection (#24)

Latest

Choose a tag to compare

@gsdali gsdali released this 21 Jun 08:48
· 4 commits to main since this release
2aa1a91

Wireframe edge polyline extraction is now tunable, closing #24.

Edge polylines were extracted at a hardcoded 0.005 linear deflection (independent of the triangle-mesh deflection), so an edge following a long fine curve — e.g. a helical thread — became thousands of points: a slow-to-render, illegibly dense wireframe with no knob to coarsen it.

New (defaults preserve historical behaviour exactly):

  • CADFileLoader.shapeToBodyAndMetadata(..., edgeDeflection: Double = 0.005, maxPointsPerEdge: Int = 1000, ...)
  • WireConverter.wireToBody(..., maxPointsPerEdge: Int = 10000, edgeDeflection: Double = 0.005)
  • Public default constants on both types.

Consumers can now coarsen edges at the source and drop the post-hoc ViewportBody.edges decimation hack — which also restores edge-picking.

MINOR per the cohort SemVer policy: new opt-in functionality, backward compatible. 28 tests green.