step-examples/12-3b-wires/Twi185.stp
Sources
- synthesized — no external source cited
Description
ShapeAnalysis_Wire.CheckSelfIntersection coincident-curves
Reproducer recipe
Expected kernel behavior
Detect the full-length coincident overlap between edges 0 and 3, and the separate order break: edge 0's LINE (`coincident_fwd`) runs (0,0,0)→(1,0,0), and edge 3 (`coincident_rev`) runs the exact reverse, (1,0,0)→(0,0,0) — the same segment traced in both directions, a real duplicate overlap, not two edges that merely touch. Independently, the EDGE_LOOP's stored order doesn't chain at that junction either: edge 2 ends at (0,0,0), but edge 3, next in the list, starts at (1,0,0), not (0,0,0). A kernel must flag the coincident A-B segment as an overlap regardless of orientation, and separately verify or reorder the loop so each edge actually starts where the previous one ended.
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/* Twi185: GEOMETRIC_CURVE_SET containing EDGE_LOOP with 4 edges on PLANE; PLANE: normal +Z, origin (0,0,0); e0 (coincident_fwd) A(0,0)->B(1,0) traverses the segment forward; e1 B(1,0)->C(1,1) normal right edge; e2 C(1,1)->A(0,0) diagonal closing edge; e3 (coincident_rev) B(1,0)->A(0,0) traverses same segment as e0 in reverse; e0 and e3 ARE geometrically coincident but oppositely oriented IS mechanism; CheckSelfIntersection IS mechanism â orientation filter masks coincident-opposite pair; GEOMETRIC_CURVE_SET IS model entity â OCC yields empty; all EDGE_CURVEs ARE wired into EDGE_LOOP; never orphaned */ 3HEADER; 4FILE_DESCRIPTION(('Twi185'),'2;1'); 5FILE_NAME('Twi185.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,0.0,0.0)); 22#13=DIRECTION('',(1.0,0.0,0.0)); 23#14=VECTOR('',#13,1.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,1.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('coincident_fwd',#7,#9,#22,.T.); 33#24=ORIENTED_EDGE('',*,*,#23,.T.); 34#25=CARTESIAN_POINT('',(1.0,0.0,0.0)); 35#26=DIRECTION('',(0.0,1.0,0.0)); 36#27=VECTOR('',#26,1.0); 37#28=LINE('',#25,#27); 38#29=CARTESIAN_POINT('',(1.0,0.0)); 39#30=DIRECTION('',(0.0,1.0)); 40#31=VECTOR('',#30,1.0); 41#32=LINE('',#29,#31); 42#33=DEFINITIONAL_REPRESENTATION('',(#32),#*); 43#34=PCURVE('',#5,#33); 44#35=SURFACE_CURVE('',#28,(#34),.PCURVE_S1.); 45#36=EDGE_CURVE('',#9,#11,#35,.T.); 46#37=ORIENTED_EDGE('',*,*,#36,.T.); 47#38=CARTESIAN_POINT('',(1.0,1.0,0.0)); 48#39=DIRECTION('',(-0.707106781187,-0.707106781187,0.0)); 49#40=VECTOR('',#39,1.41421356237); 50#41=LINE('',#38,#40); 51#42=CARTESIAN_POINT('',(1.0,1.0)); 52#43=DIRECTION('',(-0.707106781187,-0.707106781187)); 53#44=VECTOR('',#43,1.41421356237); 54#45=LINE('',#42,#44); 55#46=DEFINITIONAL_REPRESENTATION('',(#45),#*); 56#47=PCURVE('',#5,#46); 57#48=SURFACE_CURVE('',#41,(#47),.PCURVE_S1.); 58#49=EDGE_CURVE('',#11,#7,#48,.T.); 59#50=ORIENTED_EDGE('',*,*,#49,.T.); 60#51=CARTESIAN_POINT('',(1.0,0.0,0.0)); 61#52=DIRECTION('',(-1.0,0.0,0.0)); 62#53=VECTOR('',#52,1.0); 63#54=LINE('',#51,#53); 64#55=CARTESIAN_POINT('',(1.0,0.0)); 65#56=DIRECTION('',(-1.0,0.0)); 66#57=VECTOR('',#56,1.0); 67#58=LINE('',#55,#57); 68#59=DEFINITIONAL_REPRESENTATION('',(#58),#*); 69#60=PCURVE('',#5,#59); 70#61=SURFACE_CURVE('',#54,(#60),.PCURVE_S1.); 71#62=EDGE_CURVE('coincident_rev',#9,#7,#61,.T.); 72#63=ORIENTED_EDGE('',*,*,#62,.T.); 73#64=EDGE_LOOP('',(#24,#37,#50,#63)); 74#65=GEOMETRIC_CURVE_SET('',(#64)); 75#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 76#9051=PRODUCT('Twi185','Twi185','',(#9050)); 77#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 78#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 79#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 80#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 81#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 82#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 83#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 84#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 85#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 86#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#65),#9060); 87#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 88ENDSEC; 89END-ISO-10303-21;