step-examples/12-3b-wires/Twi288.stp
Sources
- OCCT `ShapeFix_SplitCommonVertex`, exposed as the `splitcommonvertex` `ShapeProcess` operator (`ShapeProcess_OperLibrary.cxx:853-879`)
Description
Two wires of a face (an outer boundary and an inner hole) share a single common `VERTEX_POINT` instance — a pinch point. Legal in a BRep-internal representation, illegal in the STEP schema (each wire must own distinct vertices), so the shared vertex must be split into per-wire copies. Twi009 demonstrates this with a unit-square outer wire and a small offset-square inner wire pinched at `(0.5,0.5)`; this insurance fixture uses a simple non-convex 5-vertex "dart" outer wire (four corners on a radius-5 circle, the fifth pulled all the way in to the face centre) and a small inner triangle hole with one corner also at the centre — distinct polygon topology and a different pinch location `(0,0,0)`, so the class's coverage does not rest on a single geometric configuration.
Reproducer recipe
`ADVANCED_FACE` on a `PLANE`; `FACE_OUTER_BOUND` → `EDGE_LOOP` for a non-convex dart (4 outer corners + 1 centre corner); `FACE_BOUND` → `EDGE_LOOP` for a small inner triangle with one corner at the same centre `VERTEX_POINT` instance as the dart's concave corner.
Expected kernel behavior
detect vertex over-sharing between the outer and inner wire; split the common vertex into independent per-wire copies so each wire's connectivity is explicit, or reject as malformed if the share crosses topological boundaries the kernel cannot resolve.
Notes
**See also**: Twi009 (the unit-square / offset-square configuration of this same mechanism — untouched by this fixture). Verified live: OCCT's default read pipeline splits the pinched face into two valid faces at the shared vertex (`n_faces_total==2`, one of the dart's boundary edges is subdivided into two sub-edges at the pinch, `n_edges_total` goes from the declared 8 to 10 post-heal) — the same "silently splits the shared-vertex face" outcome documented for Twi009's own Notes. Synonyms: "pinch vertex shared between outer and inner wire", "dart polygon hole touches boundary at one vertex", "common vertex needs splitting per wire, non-square case", "vertex over-sharing between outer boundary and hole", "concave polygon corner coincides with hole corner". Provenance tier: bytes-sufficient.
Expected validation
occt=shape(1)/shape(1) gmsh=shape(20) 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') >= 7contains(b'(0.0,0.0,0.0)')
Tier-3 assertions
n_edges_total >= 7face[0].surface_type == "plane"n_vertices_total >= 7
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/* Twi288: OPEN_SHELL with one ADVANCED_FACE on a PLANE (z=0, normal +Z); FACE_OUTER_BOUND references an EDGE_LOOP for a simple non-convex 5-vertex dart: four corners on a radius-5 circle, the fifth pulled in to the centre (0,0,0); FACE_BOUND references an EDGE_LOOP for a small inner triangle (hole) with one corner ALSO at (0,0,0); one VERTEX_POINT entity (#v_shared at (0,0,0)) IS referenced by both the outer dart wire (as an ordinary concave corner) and the inner triangle wire (as an ordinary corner); distinct geometry from Twi009 (unit square outer / offset square inner, pinch at (0.5,0.5)) â same mechanism, different shape and pinch location; STEP requires per-wire distinct VERTEX_POINTs â sharing IS the defect; kernel must split shared vertex into per-wire copies or reject as malformed */ 3HEADER; 4FILE_DESCRIPTION(('Twi288'),'2;1'); 5FILE_NAME('Twi288.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('',(0.0,5.0,0.0)); 18#9=VERTEX_POINT('',#8); 19#10=CARTESIAN_POINT('',(-4.75528258148,1.54508497187,0.0)); 20#11=VERTEX_POINT('',#10); 21#12=CARTESIAN_POINT('',(2.93892626146,-4.04508497187,0.0)); 22#13=VERTEX_POINT('',#12); 23#14=CARTESIAN_POINT('',(4.75528258148,1.54508497187,0.0)); 24#15=VERTEX_POINT('',#14); 25#16=DIRECTION('',(-0.809016994375,-0.587785252292,0.0)); 26#17=VECTOR('',#16,5.87785252292); 27#18=CARTESIAN_POINT('',(0.0,5.0,0.0)); 28#19=LINE('',#18,#17); 29#20=EDGE_CURVE('',#9,#11,#19,.T.); 30#21=ORIENTED_EDGE('',$,$,#20,.T.); 31#22=DIRECTION('',(0.951056516295,-0.309016994375,0.0)); 32#23=VECTOR('',#22,5.0); 33#24=CARTESIAN_POINT('',(-4.75528258148,1.54508497187,0.0)); 34#25=LINE('',#24,#23); 35#26=EDGE_CURVE('',#11,#7,#25,.T.); 36#27=ORIENTED_EDGE('',$,$,#26,.T.); 37#28=DIRECTION('',(0.587785252292,-0.809016994375,0.0)); 38#29=VECTOR('',#28,5.0); 39#30=CARTESIAN_POINT('',(0.0,0.0,0.0)); 40#31=LINE('',#30,#29); 41#32=EDGE_CURVE('',#7,#13,#31,.T.); 42#33=ORIENTED_EDGE('',$,$,#32,.T.); 43#34=DIRECTION('',(0.309016994375,0.951056516295,0.0)); 44#35=VECTOR('',#34,5.87785252292); 45#36=CARTESIAN_POINT('',(2.93892626146,-4.04508497187,0.0)); 46#37=LINE('',#36,#35); 47#38=EDGE_CURVE('',#13,#15,#37,.T.); 48#39=ORIENTED_EDGE('',$,$,#38,.T.); 49#40=DIRECTION('',(-0.809016994375,0.587785252292,0.0)); 50#41=VECTOR('',#40,5.87785252292); 51#42=CARTESIAN_POINT('',(4.75528258148,1.54508497187,0.0)); 52#43=LINE('',#42,#41); 53#44=EDGE_CURVE('',#15,#9,#43,.T.); 54#45=ORIENTED_EDGE('',$,$,#44,.T.); 55#46=EDGE_LOOP('',(#21,#27,#33,#39,#45)); 56#47=FACE_OUTER_BOUND('',#46,.T.); 57#48=CARTESIAN_POINT('',(-0.6,-0.3,0.0)); 58#49=VERTEX_POINT('',#48); 59#50=CARTESIAN_POINT('',(0.6,-0.3,0.0)); 60#51=VERTEX_POINT('',#50); 61#52=DIRECTION('',(-0.894427191,-0.4472135955,0.0)); 62#53=VECTOR('',#52,0.67082039325); 63#54=CARTESIAN_POINT('',(0.0,0.0,0.0)); 64#55=LINE('',#54,#53); 65#56=EDGE_CURVE('',#7,#49,#55,.T.); 66#57=DIRECTION('',(1.0,0.0,0.0)); 67#58=VECTOR('',#57,1.2); 68#59=CARTESIAN_POINT('',(-0.6,-0.3,0.0)); 69#60=LINE('',#59,#58); 70#61=EDGE_CURVE('',#49,#51,#60,.T.); 71#62=DIRECTION('',(-0.894427191,0.4472135955,0.0)); 72#63=VECTOR('',#62,0.67082039325); 73#64=CARTESIAN_POINT('',(0.6,-0.3,0.0)); 74#65=LINE('',#64,#63); 75#66=EDGE_CURVE('',#51,#7,#65,.T.); 76#67=ORIENTED_EDGE('',$,$,#56,.T.); 77#68=ORIENTED_EDGE('',$,$,#61,.T.); 78#69=ORIENTED_EDGE('',$,$,#66,.T.); 79#70=EDGE_LOOP('',(#67,#68,#69)); 80#71=FACE_BOUND('',#70,.T.); 81#72=ADVANCED_FACE('',(#47,#71),#5,.T.); 82#73=OPEN_SHELL('',(#72)); 83#74=SHELL_BASED_SURFACE_MODEL('',(#73)); 84#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 85#9051=PRODUCT('Twi288','Twi288','',(#9050)); 86#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 87#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 88#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 89#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 90#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 91#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 92#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 93#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 94#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 95#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#74),#9060); 96#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 97ENDSEC; 98END-ISO-10303-21;