Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TriangleSplitter: Enable symmetrical clipping along connected edges #51

Open
gkjohnson opened this issue Jun 22, 2022 · 2 comments
Open
Labels
bounty help wanted Extra attention is needed performance
Milestone

Comments

@gkjohnson
Copy link
Owner

gkjohnson commented Jun 22, 2022

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

@gkjohnson gkjohnson added help wanted Extra attention is needed performance labels Jun 22, 2022
@gkjohnson gkjohnson removed the help wanted Extra attention is needed label Sep 7, 2022
@gkjohnson gkjohnson added this to the v0.0.x milestone Sep 7, 2022
@gkjohnson gkjohnson added help wanted Extra attention is needed potential bounty labels Sep 11, 2022
@gkjohnson gkjohnson changed the title Retain as much half-edge structure as possible when generating a new geometry Clip triangles so the half structure is complete when generating a new geometry Sep 12, 2022
@agviegas
Copy link

Hey, we are offering a bounty of $500 for this issue. Whoever solves it, will get that money. 😎

@gkjohnson gkjohnson changed the title Clip triangles so the half structure is complete when generating a new geometry TriangleSplitter: Clip triangles so the half structure is complete when generating a new geometry Sep 20, 2022
@gkjohnson gkjohnson changed the title TriangleSplitter: Clip triangles so the half structure is complete when generating a new geometry TriangleSplitter: Enable symmetrical clipping along connected edges Sep 20, 2022
@gkjohnson gkjohnson modified the milestones: v0.0.x, v0.0.3 Jan 5, 2023
@gkjohnson gkjohnson modified the milestones: v0.0.3, v0.0.4, v0.0.5 Jan 13, 2023
@gkjohnson gkjohnson modified the milestones: v0.0.5, v0.0.6 Mar 27, 2023
@gkjohnson gkjohnson modified the milestones: v0.0.8, v0.0.9 Jul 8, 2023
@gkjohnson gkjohnson modified the milestones: v0.0.9, v0.0.10 Aug 10, 2023
@gkjohnson gkjohnson modified the milestones: v0.0.10, v0.0.11 Aug 18, 2023
@gkjohnson
Copy link
Owner Author

See approach from paper in #97 which may help limit the amount of unnecessary inserted edge vertices on clipping.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bounty help wanted Extra attention is needed performance
Projects
None yet
Development

No branches or pull requests

2 participants