step-examples/12-3b-wires/Twi018.stp
Sources
- 04-occt-translation.md Q008
Description
EDGE_CURVE references the same VERTEX_POINT for start and end but underlying curve is open (e.g. a `LINE`); arc length is zero.
Reproducer recipe
`EDGE_CURVE('',#v,#v,#line,.T.);`
Expected kernel behavior
synthesize tiny line through the points; if V1==V2, drop the edge.
Notes
**See also**: Twi017. Synonyms: "edge with zero arc length", "line edge from a point to itself", "open curve with same start and end vertex", "edge collapses to a point", "duplicate vertex on line edge".
Expected validation
occt=shape(1)/shape(1) gmsh=shape(9) ifc=schema_n/a
Closure intent
sheet — the open shell is the intended final geometry; a solid-only kernel should cleanly refuse.
Tier-3 assertions
face[0].sliver_aspect_max_min > 1e6face[0].surface_type == "plane"n_edges_total >= 4
Cross-references
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* Twi018: OPEN_SHELL with one ADVANCED_FACE on a PLANE (z=0, normal +Z); FACE_OUTER_BOUND references an EDGE_LOOP with 5 ORIENTED_EDGEs; four edges form a 1Ã1 square with a sliver notch; one ORIENTED_EDGE wraps an EDGE_CURVE whose start and end both reference the same VERTEX_POINT entity at (1,1,0) on an open LINE â arc length zero; same-vertex-on-open-LINE EDGE_CURVE IS the mechanism; translator must drop collapsed edge or synthesise tiny line; defect edge IS wired into EDGE_LOOP, FACE_OUTER_BOUND, ADVANCED_FACE, OPEN_SHELL */ 3HEADER; 4FILE_DESCRIPTION(('Twi018'),'2;1'); 5FILE_NAME('Twi018.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('',(1.0,0.0,0.0)); 18#9=VERTEX_POINT('',#8); 19#10=CARTESIAN_POINT('',(1.0,1.0,0.0)); 20#11=VERTEX_POINT('',#10); 21#12=CARTESIAN_POINT('',(0.0,1.0,0.0)); 22#13=VERTEX_POINT('',#12); 23#14=DIRECTION('',(1.0,0.0,0.0)); 24#15=VECTOR('',#14,0.0); 25#16=CARTESIAN_POINT('',(1.0,1.0,0.0)); 26#17=LINE('',#16,#15); 27#18=EDGE_CURVE('',#11,#11,#17,.T.); 28#19=DIRECTION('',(1.0,0.0,0.0)); 29#20=VECTOR('',#19,1.0); 30#21=CARTESIAN_POINT('',(0.0,0.0,0.0)); 31#22=LINE('',#21,#20); 32#23=EDGE_CURVE('',#7,#9,#22,.T.); 33#24=DIRECTION('',(0.0,1.0,0.0)); 34#25=VECTOR('',#24,1.0); 35#26=CARTESIAN_POINT('',(1.0,0.0,0.0)); 36#27=LINE('',#26,#25); 37#28=EDGE_CURVE('',#9,#11,#27,.T.); 38#29=DIRECTION('',(-1.0,0.0,0.0)); 39#30=VECTOR('',#29,1.0); 40#31=CARTESIAN_POINT('',(1.0,1.0,0.0)); 41#32=LINE('',#31,#30); 42#33=EDGE_CURVE('',#11,#13,#32,.T.); 43#34=DIRECTION('',(0.0,-1.0,0.0)); 44#35=VECTOR('',#34,1.0); 45#36=CARTESIAN_POINT('',(0.0,1.0,0.0)); 46#37=LINE('',#36,#35); 47#38=EDGE_CURVE('',#13,#7,#37,.T.); 48#39=ORIENTED_EDGE('',$,$,#23,.T.); 49#40=ORIENTED_EDGE('',$,$,#28,.T.); 50#41=ORIENTED_EDGE('',*,*,#18,.T.); 51#42=ORIENTED_EDGE('',$,$,#33,.T.); 52#43=ORIENTED_EDGE('',$,$,#38,.T.); 53#44=EDGE_LOOP('',(#39,#40,#41,#42,#43)); 54#45=FACE_OUTER_BOUND('',#44,.T.); 55#46=ADVANCED_FACE('',(#45),#5,.T.); 56#47=OPEN_SHELL('',(#46)); 57#48=SHELL_BASED_SURFACE_MODEL('',(#47)); 58#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 59#9051=PRODUCT('Twi018','Twi018','',(#9050)); 60#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 61#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 62#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 63#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 64#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 65#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 66#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 67#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 68#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 69#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#48),#9060); 70#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 71ENDSEC; 72END-ISO-10303-21;