fix(junction): reject collapsed core boundary edges
This commit is contained in:
1 parent
c4902cd4c8
commit
e5d805a369
2 files changed
+14
-1
No files matched your search
@@ -314,3 +314,10 @@ assert.deepEqual(
|
||||
reorderedTopology.arms.map((arm) => arm.key).sort(),
|
||||
sixArm.topology.arms.map((arm) => arm.key).sort(),
|
||||
);
|
||||
|
||||
// A collapsed inner seam is a geometric failure even if the remaining ring
|
||||
// still encloses a positive area. The closure must reject zero-length edges.
|
||||
const collapsedGraph = JSON.parse(JSON.stringify(teeBoundaryGraph));
|
||||
const collapsedSection = collapsedGraph.sections[0];
|
||||
collapsedSection.inner.right = collapsedSection.inner.left;
|
||||
assert.equal(buildCoreClosure(tee.topology, collapsedGraph, point(0, 0)).reason, 'core-closure-invalid');
|
||||
Reference in new issue
Block a user