Twi037 — Free bounds need joining (sewing) — adjacent faces don't share a single edge instance

§12.3b wire-loop

topology

Sources

Description

After Boolean op or translation, two faces that should share an edge each carry their own copy of it; geometrically coincident, topologically separate. The shell appears to have free / dangling edges where it actually has duplicated edges. Stitching pairs the duplicates into shared edges and reconstructs the closed shell.

Reproducer recipe

Open shell with two faces sharing a coincident edge geometry but separate `EDGE_CURVE` instances.

Expected kernel behavior

identify pairs of geometrically-coincident dangling edges and merge each pair into a single shared edge (sewing), or reject the input as a non-watertight shell. A free-edge-only kernel may also leave the duplicates and surface them as a diagnostic.

Notes

**See also**: Tfa020, Tfa023, Tsh029. Synonyms: "adjacent faces don't share edge instance", "duplicated edges between faces need sewing", "open shell needs stitching", "free dangling edges from un-sewn shell", "two faces have separate copies of shared edge".

Expected validation

occt=shape(1)/shape(1) gmsh=shape(18) ifc=schema_n/a

Closure intent

solid (defect kind: unstitched_seam) — authored as a closed solid; openness is the defect — heal it shut.

Tier-3 assertions

Cross-references

Tfa020, Tfa023, Tsh029

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes
1ISO-10303-21;
2/* Twi037: OPEN_SHELL with two ADVANCED_FACEs, each on a separate PLANE; face_left: 2x2 square at x in [0,1]; face_right: 2x2 square at x in [1,2]; shared boundary is the vertical edge at x=1 (y: 0→2); face_left EDGE_LOOP references edge_shared_A (v_lt→v_lb on x=1 line); face_right EDGE_LOOP references edge_shared_B — a DISTINCT EDGE_CURVE with separate LINE and VERTEX_POINT entities at the same x=1 positions; two geometrically coincident EDGE_CURVEs in separate EDGE_LOOPs IS the mechanism (unstitched seam: free/dangling edges from un-sewn shell); both EDGE_LOOPs ARE wired into FACE_OUTER_BOUNDs in two ADVANCED_FACEs in OPEN_SHELL; sewing pass must merge the coincident pair into one shared edge */
3HEADER;
4FILE_DESCRIPTION(('Twi037'),'2;1');
5FILE_NAME('Twi037.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','','');
6FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }'));
7ENDSEC;
8DATA;
9#9000=APPLICATION_CONTEXT('mechanical design');
10#1=CARTESIAN_POINT('',(0.0,0.0,0.0));
11#2=DIRECTION('',(0.0,0.0,1.0));
12#3=DIRECTION('',(1.0,0.0,0.0));
13#4=AXIS2_PLACEMENT_3D('',#1,#2,#3);
14#5=PLANE('',#4);
15#6=CARTESIAN_POINT('',(1.0,0.0,0.0));
16#7=DIRECTION('',(0.0,0.0,1.0));
17#8=DIRECTION('',(1.0,0.0,0.0));
18#9=AXIS2_PLACEMENT_3D('',#6,#7,#8);
19#10=PLANE('',#9);
20#11=CARTESIAN_POINT('',(0.0,0.0,0.0));
21#12=VERTEX_POINT('',#11);
22#13=CARTESIAN_POINT('',(1.0,0.0,0.0));
23#14=VERTEX_POINT('',#13);
24#15=CARTESIAN_POINT('',(1.0,2.0,0.0));
25#16=VERTEX_POINT('',#15);
26#17=CARTESIAN_POINT('',(0.0,2.0,0.0));
27#18=VERTEX_POINT('',#17);
28#19=CARTESIAN_POINT('',(1.0,0.0,0.0));
29#20=VERTEX_POINT('',#19);
30#21=CARTESIAN_POINT('',(2.0,0.0,0.0));
31#22=VERTEX_POINT('',#21);
32#23=CARTESIAN_POINT('',(2.0,2.0,0.0));
33#24=VERTEX_POINT('',#23);
34#25=CARTESIAN_POINT('',(1.0,2.0,0.0));
35#26=VERTEX_POINT('',#25);
36#27=DIRECTION('',(1.0,0.0,0.0));
37#28=VECTOR('',#27,1.0);
38#29=CARTESIAN_POINT('',(0.0,0.0,0.0));
39#30=LINE('',#29,#28);
40#31=EDGE_CURVE('',#12,#14,#30,.T.);
41#32=ORIENTED_EDGE('',$,$,#31,.T.);
42#33=DIRECTION('',(0.0,1.0,0.0));
43#34=VECTOR('',#33,2.0);
44#35=CARTESIAN_POINT('',(1.0,0.0,0.0));
45#36=LINE('',#35,#34);
46#37=EDGE_CURVE('',#14,#16,#36,.T.);
47#38=ORIENTED_EDGE('',$,$,#37,.T.);
48#39=DIRECTION('',(-1.0,0.0,0.0));
49#40=VECTOR('',#39,1.0);
50#41=CARTESIAN_POINT('',(1.0,2.0,0.0));
51#42=LINE('',#41,#40);
52#43=EDGE_CURVE('',#16,#18,#42,.T.);
53#44=ORIENTED_EDGE('',$,$,#43,.T.);
54#45=DIRECTION('',(0.0,-1.0,0.0));
55#46=VECTOR('',#45,2.0);
56#47=CARTESIAN_POINT('',(0.0,2.0,0.0));
57#48=LINE('',#47,#46);
58#49=EDGE_CURVE('',#18,#12,#48,.T.);
59#50=ORIENTED_EDGE('',$,$,#49,.T.);
60#51=EDGE_LOOP('',(#32,#38,#44,#50));
61#52=DIRECTION('',(0.0,-1.0,0.0));
62#53=VECTOR('',#52,2.0);
63#54=CARTESIAN_POINT('',(1.0,2.0,0.0));
64#55=LINE('',#54,#53);
65#56=EDGE_CURVE('',#26,#20,#55,.T.);
66#57=ORIENTED_EDGE('',$,$,#56,.T.);
67#58=DIRECTION('',(1.0,0.0,0.0));
68#59=VECTOR('',#58,1.0);
69#60=CARTESIAN_POINT('',(1.0,0.0,0.0));
70#61=LINE('',#60,#59);
71#62=EDGE_CURVE('',#20,#22,#61,.T.);
72#63=ORIENTED_EDGE('',$,$,#62,.T.);
73#64=DIRECTION('',(0.0,1.0,0.0));
74#65=VECTOR('',#64,2.0);
75#66=CARTESIAN_POINT('',(2.0,0.0,0.0));
76#67=LINE('',#66,#65);
77#68=EDGE_CURVE('',#22,#24,#67,.T.);
78#69=ORIENTED_EDGE('',$,$,#68,.T.);
79#70=DIRECTION('',(-1.0,0.0,0.0));
80#71=VECTOR('',#70,1.0);
81#72=CARTESIAN_POINT('',(2.0,2.0,0.0));
82#73=LINE('',#72,#71);
83#74=EDGE_CURVE('',#24,#26,#73,.T.);
84#75=ORIENTED_EDGE('',$,$,#74,.T.);
85#76=EDGE_LOOP('',(#57,#63,#69,#75));
86#77=FACE_OUTER_BOUND('',#51,.T.);
87#78=FACE_OUTER_BOUND('',#76,.T.);
88#79=ADVANCED_FACE('',(#77),#5,.T.);
89#80=ADVANCED_FACE('',(#78),#10,.T.);
90#81=OPEN_SHELL('',(#79,#80));
91#82=SHELL_BASED_SURFACE_MODEL('',(#81));
92#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
93#9051=PRODUCT('Twi037','Twi037','',(#9050));
94#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
95#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
96#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
97#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
98#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
99#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
100#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
101#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
102#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
103#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#82),#9060);
104#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
105ENDSEC;
106END-ISO-10303-21;