step-examples/12-3b-wires/Twi198.stp
Sources
- synthesized — no external source cited
Description
ShapeAnalysis_Wire.CheckSelfIntersection coincident-line-segments
Reproducer recipe
Expected kernel behavior
Recognize the duplicate curve, and the resulting open loop: edges `coinc_e0` and `coinc_e1` are two separate EDGE_CURVE entities that reference the exact same underlying LINE (#15) and the exact same vertex pair (#7,#9) with the same sense — the identical edge, defined twice. A kernel must detect this via curve/vertex comparison, not `Handle` identity, and treat it as one edge, not two independent sides of a boundary. Beyond that, the EDGE_LOOP's stored order also doesn't close: `coinc_e1` (the duplicate) is placed last, ending at vertex #9, but the loop's first edge started at vertex #7 — so even setting the duplicate issue aside, this loop does not return to its own starting point.
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Tier-3 assertions
shape_null == True
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* Twi198: GEOMETRIC_CURVE_SET containing EDGE_LOOP with 4 edges on PLANE; PLANE: normal +Z, origin (0,0,0); coinc_e0 and coinc_e1 both reference same LINE from (0,0,0) to (2,0,0); both edges share identical vertex pair vA-vB with param range [0,2]; two edges with same geometry IS defect: handle equality misses equivalence; CheckSelfIntersection IS mechanism â geometric coincidence not detected; GEOMETRIC_CURVE_SET IS model entity â OCC yields empty; all EDGE_CURVEs ARE wired into EDGE_LOOP; never orphaned */ 3HEADER; 4FILE_DESCRIPTION(('Twi198'),'2;1'); 5FILE_NAME('Twi198.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('',(2.0,0.0,0.0)); 18#9=VERTEX_POINT('',#8); 19#10=CARTESIAN_POINT('',(2.0,2.0,0.0)); 20#11=VERTEX_POINT('',#10); 21#12=CARTESIAN_POINT('',(0.0,0.0,0.0)); 22#13=DIRECTION('',(1.0,0.0,0.0)); 23#14=VECTOR('',#13,2.0); 24#15=LINE('',#12,#14); 25#16=CARTESIAN_POINT('',(0.0,0.0)); 26#17=DIRECTION('',(1.0,0.0)); 27#18=VECTOR('',#17,2.0); 28#19=LINE('',#16,#18); 29#20=DEFINITIONAL_REPRESENTATION('',(#19),#*); 30#21=PCURVE('',#5,#20); 31#22=SURFACE_CURVE('',#15,(#21),.PCURVE_S1.); 32#23=EDGE_CURVE('coinc_e0',#7,#9,#22,.T.); 33#24=ORIENTED_EDGE('',*,*,#23,.T.); 34#25=CARTESIAN_POINT('',(0.0,0.0)); 35#26=DIRECTION('',(1.0,0.0)); 36#27=VECTOR('',#26,2.0); 37#28=LINE('',#25,#27); 38#29=DEFINITIONAL_REPRESENTATION('',(#28),#*); 39#30=PCURVE('',#5,#29); 40#31=SURFACE_CURVE('',#15,(#30),.PCURVE_S1.); 41#32=EDGE_CURVE('coinc_e1',#7,#9,#31,.T.); 42#33=ORIENTED_EDGE('',*,*,#32,.T.); 43#34=CARTESIAN_POINT('',(2.0,0.0,0.0)); 44#35=DIRECTION('',(0.0,1.0,0.0)); 45#36=VECTOR('',#35,2.0); 46#37=LINE('',#34,#36); 47#38=CARTESIAN_POINT('',(2.0,0.0)); 48#39=DIRECTION('',(0.0,1.0)); 49#40=VECTOR('',#39,2.0); 50#41=LINE('',#38,#40); 51#42=DEFINITIONAL_REPRESENTATION('',(#41),#*); 52#43=PCURVE('',#5,#42); 53#44=SURFACE_CURVE('',#37,(#43),.PCURVE_S1.); 54#45=EDGE_CURVE('close_e2',#9,#11,#44,.T.); 55#46=ORIENTED_EDGE('',*,*,#45,.T.); 56#47=CARTESIAN_POINT('',(2.0,2.0,0.0)); 57#48=DIRECTION('',(-0.707106781187,-0.707106781187,0.0)); 58#49=VECTOR('',#48,2.82842712475); 59#50=LINE('',#47,#49); 60#51=CARTESIAN_POINT('',(2.0,2.0)); 61#52=DIRECTION('',(-0.707106781187,-0.707106781187)); 62#53=VECTOR('',#52,2.82842712475); 63#54=LINE('',#51,#53); 64#55=DEFINITIONAL_REPRESENTATION('',(#54),#*); 65#56=PCURVE('',#5,#55); 66#57=SURFACE_CURVE('',#50,(#56),.PCURVE_S1.); 67#58=EDGE_CURVE('close_e3',#11,#7,#57,.T.); 68#59=ORIENTED_EDGE('',*,*,#58,.T.); 69#60=EDGE_LOOP('',(#24,#46,#59,#33)); 70#61=GEOMETRIC_CURVE_SET('',(#60)); 71#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 72#9051=PRODUCT('Twi198','Twi198','',(#9050)); 73#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 74#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 75#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 76#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 77#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 78#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 79#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 80#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 81#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 82#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#61),#9060); 83#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 84ENDSEC; 85END-ISO-10303-21;