Skip to content

3 new trimming methods and tutorial#2268

Merged
alecjacobson merged 5 commits intomainfrom
alecjacobson/fix-trim
Sep 8, 2023
Merged

3 new trimming methods and tutorial#2268
alecjacobson merged 5 commits intomainfrom
alecjacobson/fix-trim

Conversation

@alecjacobson
Copy link
Copy Markdown
Contributor

Fixes #1374

Very subtle bug in this one. The stitch_all parameter is misleadingly named at best. basically the issue is that running intersect_other does not always result in a single mesh where all intersections are resolved. Sometimes there are T-junctions" between the two meshes due to self-intersections in the inputs.

I couldn't see an easy way to "fix" intersect_other. Not sure it'd make sense, too or if it's well-defined in the coplanar cases.

So instead I implemented three alternatives. All are exact. The first two output minimal triangulations. The third may have extra triangles (in plane) due to resolving (and then trying to undo) self-intersections in the non-solid input.

I left them all with an overload because their performance tradeoffs are different.

I also added a tutorial. Hopefully that will help people find this function which is a frequent one in the questions/my email.

@alecjacobson alecjacobson merged commit d6448a8 into main Sep 8, 2023
@alecjacobson alecjacobson deleted the alecjacobson/fix-trim branch September 8, 2023 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

trim_with_solid reporting insideness wrong?

1 participant