Skip to content

TriangleSplitter: Enable symmetrical clipping along connected edges #51

@gkjohnson

Description

@gkjohnson

Related to #49

Requirements

  • Add a variation of TriangleSplitter that will clip triangles such that edges are symmetrically split so the edges line up and can be connected in the HalfEdgeMap.

Approach

  • When clipping triangles construct polygons from connected loops of edges from the edges derived from triangle intersections.
  • Once all polygons have been found from the split determine whether they're inside or outside the model using the existing determination method (raycasting).
  • For the polygons to keep run the three.js built-in Earcut method to triangulate the polygon to add to the final geometry.

Notes

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions