gkjohnson / three-bvh-csg

A flexible, memory compact, fast and dynamic CSG implementation on top of three-mesh-bvh
MIT License
602 stars 46 forks source link

Add utility for optimizing and retopologizing geometry #75

Closed gkjohnson closed 1 year ago

gkjohnson commented 2 years ago

When performing CSG it's best to have a minimal amount of triangles to intersect. With CSG operations some planar surfaces may have complex triangulations with internal vertices. The utility should use the half edge map to determine coplanar triangle connectedness, derive outside the outside loop, and retopologize using the three.js Earcut functionality.

gkjohnson commented 1 year ago

Closing in favor of #96