Repository navigation
fix(saved-mesh): close planar edges at used trim stations - #2256
Draft
shifatrHtH wants to merge 1 commit into
Draft
shifatrHtH wants to merge 1 commit into
shifatrHtH wants to merge 1 commit into
Conversation
Earcut can use a boundary station in one triangle and leave a longer one-sided edge through it. Split the incident triangle at the stored station while preserving vertex positions and winding. Refs DrunkOnJava#2250.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Saved planar faces now split a one-sided triangle edge at a collinear trim station even when another triangle already uses that vertex. The fix preserves the authored vertex positions and removes the T-junction.
Motivation
Issue #2250 shows a complete Saved mesh in RE1 Mechanical with three one-sided edges. Earcut uses the relevant station in one triangle but leaves a longer edge through it in the neighboring triangle. The existing boundary restoration treats an already-used index as restored.
Changes
Testing
tools/check-local.sh3e-14 ftin both arms.tools/bench.sh. This is a topology fix.Copy
probes/examples/probe_2250_planar_boundary_stations.rsinto the base checkout atb2011374and build the probe in each checkout.Audit-honesty checklist
Legal and contribution hygiene
Breaking changes
None.
Screenshots or output samples
{"publicElementId":439148,"oneSidedEdges":[3,0],"carrierTriangles":[27,28],"vertexBufferIdentical":true}Related issues
Refs #2250.