step-examples/12-3b-wires/Twi285.stp
Sources
- OCCT `ShapeFix_EdgeConnect::Add` / `::Build` (`ShapeFix_EdgeConnect.cxx:145-284`) — the general-purpose utility underlying shell/face sewing, not limited to one wire's own consecutive edges
Description
The vertex-unification utility that shell/face sewing relies on must reconcile vertices across UNRELATED edges anywhere in the connectivity graph, not just consecutive edges of one wire (contrast Twi284). Here two unrelated `ADVANCED_FACE`s each have their own outer-wire corner at world coordinate `(0,0,0)`, each encoded with its OWN distinct `VERTEX_POINT` entity rather than a shared one. This deliberately differs from Twi050 (`ShapeFix_SplitCommonVertex`): Twi050 reuses the SAME `VERTEX_POINT` entity across both faces (too much sharing, must split apart); here each face has a DIFFERENT `VERTEX_POINT` entity at the same coordinate (no sharing at all, must be merged) — the opposite defect direction, exercising the general connectivity-graph `Add()`/`Build()` merge path rather than the split path.
Reproducer recipe
Two `ADVANCED_FACE`s on `PLANE`s, geometrically unrelated (different Z-offset carrier planes) except that each face's outer-wire `EDGE_LOOP` has one corner `VERTEX_POINT` at `(0,0,0)` — `#v0` for face 0, `#v1` for face 1 — two separate entities, never the same reference.
Expected kernel behavior
the connectivity-graph builder (`ShapeFix_EdgeConnect::Add`/`Build`, or the sewing tool that invokes it) must recognize `#v0`/`#v1` as touching (identical location, distinct entities) and merge them into one shared vertex, or reject the input as ambiguous.
Notes
**See also**: Twi284 (the single-wire, consecutive-edges subvariant of this same problem class). Twi009/Twi050 (`SplitCommonVertex`) are cited as negative-space contrast — the opposite defect direction (one entity over-shared, must split) — not reused here. Synonyms: "non-adjacent edges share coincident vertex across faces", "connectivity graph must merge distinct vertex entities", "cross-wire vertex fragmentation", "sewing-scope vertex unification", "arbitrary edge pair registered as touching". Provenance tier: bytes-sufficient.
Expected validation
occt=shape(1)/shape(1) gmsh=shape(18) ifc=schema_n/a
Closure intent
sheet — the open shell is the intended final geometry; a solid-only kernel should cleanly refuse.
Byte assertions
count_entity_def(b'VERTEX_POINT') >= 8contains(b'(0.0,0.0,0.0)')
Tier-3 assertions
n_edges_total >= 6face[0].surface_type == "plane"face[1].surface_type == "plane"
Cross-references
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* Twi285: Two ADVANCED_FACEs on PLANEs, unrelated to each other except for a shared corner LOCATION; face 0's outer wire has a corner VERTEX_POINT #v0 at (0,0,0); face 1's outer wire has its OWN, DISTINCT VERTEX_POINT #v1 also at (0,0,0) â two coincident-but-distinct entities registered as 'touching' only via the broader connectivity graph, not via any shared wire or entity reuse; this differs from Twi050 (same entity reused across both wires); here NO entity is shared â both vertices are separate but coincident; the general-purpose connectivity-graph vertex-unification utility (ShapeFix_EdgeConnect::Add/Build) must recognize the pair and merge; both VERTEX_POINTs ARE wired into EDGE_LOOPs â FACE_OUTER_BOUNDs â ADVANCED_FACEs in a SHELL_BASED_SURFACE_MODEL â never orphaned */ 3HEADER; 4FILE_DESCRIPTION(('Twi285'),'2;1'); 5FILE_NAME('Twi285.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('',(0.0,0.0,0.0)); 16#7=VERTEX_POINT('',#6); 17#8=CARTESIAN_POINT('',(5.0,0.0,0.0)); 18#9=VERTEX_POINT('',#8); 19#10=CARTESIAN_POINT('',(5.0,5.0,0.0)); 20#11=VERTEX_POINT('',#10); 21#12=CARTESIAN_POINT('',(0.0,5.0,0.0)); 22#13=VERTEX_POINT('',#12); 23#14=CARTESIAN_POINT('',(0.0,0.0,0.0)); 24#15=DIRECTION('',(1.0,0.0,0.0)); 25#16=VECTOR('',#15,5.0); 26#17=LINE('',#14,#16); 27#18=EDGE_CURVE('',#7,#9,#17,.T.); 28#19=CARTESIAN_POINT('',(5.0,0.0,0.0)); 29#20=DIRECTION('',(0.0,1.0,0.0)); 30#21=VECTOR('',#20,5.0); 31#22=LINE('',#19,#21); 32#23=EDGE_CURVE('',#9,#11,#22,.T.); 33#24=CARTESIAN_POINT('',(5.0,5.0,0.0)); 34#25=DIRECTION('',(-1.0,0.0,0.0)); 35#26=VECTOR('',#25,5.0); 36#27=LINE('',#24,#26); 37#28=EDGE_CURVE('',#11,#13,#27,.T.); 38#29=CARTESIAN_POINT('',(0.0,5.0,0.0)); 39#30=DIRECTION('',(0.0,-1.0,0.0)); 40#31=VECTOR('',#30,5.0); 41#32=LINE('',#29,#31); 42#33=EDGE_CURVE('',#13,#7,#32,.T.); 43#34=ORIENTED_EDGE('',$,$,#18,.T.); 44#35=ORIENTED_EDGE('',$,$,#23,.T.); 45#36=ORIENTED_EDGE('',$,$,#28,.T.); 46#37=ORIENTED_EDGE('',$,$,#33,.T.); 47#38=EDGE_LOOP('',(#34,#35,#36,#37)); 48#39=FACE_OUTER_BOUND('',#38,.T.); 49#40=ADVANCED_FACE('',(#39),#5,.T.); 50#41=CARTESIAN_POINT('',(0.0,0.0,-10.0)); 51#42=DIRECTION('',(0.0,0.0,1.0)); 52#43=DIRECTION('',(1.0,0.0,0.0)); 53#44=AXIS2_PLACEMENT_3D('',#41,#42,#43); 54#45=PLANE('',#44); 55#46=CARTESIAN_POINT('',(0.0,0.0,0.0)); 56#47=VERTEX_POINT('',#46); 57#48=CARTESIAN_POINT('',(5.0,0.0,-10.0)); 58#49=VERTEX_POINT('',#48); 59#50=CARTESIAN_POINT('',(5.0,5.0,-10.0)); 60#51=VERTEX_POINT('',#50); 61#52=CARTESIAN_POINT('',(0.0,5.0,-10.0)); 62#53=VERTEX_POINT('',#52); 63#54=CARTESIAN_POINT('',(0.0,0.0,-10.0)); 64#55=DIRECTION('',(1.0,0.0,0.0)); 65#56=VECTOR('',#55,5.0); 66#57=LINE('',#54,#56); 67#58=EDGE_CURVE('',#47,#49,#57,.T.); 68#59=CARTESIAN_POINT('',(5.0,0.0,-10.0)); 69#60=DIRECTION('',(0.0,1.0,0.0)); 70#61=VECTOR('',#60,5.0); 71#62=LINE('',#59,#61); 72#63=EDGE_CURVE('',#49,#51,#62,.T.); 73#64=CARTESIAN_POINT('',(5.0,5.0,-10.0)); 74#65=DIRECTION('',(-1.0,0.0,0.0)); 75#66=VECTOR('',#65,5.0); 76#67=LINE('',#64,#66); 77#68=EDGE_CURVE('',#51,#53,#67,.T.); 78#69=CARTESIAN_POINT('',(0.0,5.0,-10.0)); 79#70=DIRECTION('',(0.0,-1.0,0.0)); 80#71=VECTOR('',#70,5.0); 81#72=LINE('',#69,#71); 82#73=EDGE_CURVE('',#53,#47,#72,.T.); 83#74=ORIENTED_EDGE('',$,$,#58,.T.); 84#75=ORIENTED_EDGE('',$,$,#63,.T.); 85#76=ORIENTED_EDGE('',$,$,#68,.T.); 86#77=ORIENTED_EDGE('',$,$,#73,.T.); 87#78=EDGE_LOOP('',(#74,#75,#76,#77)); 88#79=FACE_OUTER_BOUND('',#78,.T.); 89#80=ADVANCED_FACE('',(#79),#45,.T.); 90#81=CLOSED_SHELL('',(#40,#80)); 91#82=SHELL_BASED_SURFACE_MODEL('',(#81)); 92#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 93#9051=PRODUCT('Twi285','Twi285','',(#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;