step-examples/12-3b-wires/Twi208.stp
Sources
- synthesized — no external source cited
Description
ShapeAnalysis_Wire.CheckSelfIntersection coincident-with-tangency
Reproducer recipe
Expected kernel behavior
Recognize the full-length coincident overlap, and the resulting disconnection: `fwd_edge` and `rev_edge` both reference the exact same SURFACE_CURVE entity (#22) — one with same_sense `.T.`, tracing (0,0,0)→(5,0,0), the other `.F.`, tracing (5,0,0)→(0,0,0) — a single segment counted twice with opposite orientation, not a tangent touch at a midpoint. Once collapsed, the wire also doesn't connect: after the there-and-back pair returns to (0,0,0), the next edge (`right_e`) starts at (5,0,0), not (0,0,0). A kernel must flag the coincident pair by comparing the edges' `edge_geometry` reference (same curve, opposite sense), and separately verify the remaining edges actually chain from wherever the wire is left after collapsing the duplicate.
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/* Twi208: GEOMETRIC_CURVE_SET containing EDGE_LOOP with 4 edges on PLANE; PLANE: normal +Z, origin (0,0,0); fwd_edge: EDGE_CURVE V0(0,0,0)->V1(5,0,0) referencing shared SURFACE_CURVE of bottom LINE, same_sense .T.; rev_edge: EDGE_CURVE V1(5,0,0)->V0(0,0,0) referencing SAME SURFACE_CURVE, same_sense .F. â retraces bottom line backward; geometric overlap with tangent contact at midpoint (2.5,0,0) IS defect; CheckSelfIntersection ambiguous overlap-vs-tangency verdict IS mechanism; right_e (V1->V2) and top_e (V2->V0) close the loop via two lines; GEOMETRIC_CURVE_SET IS model entity â OCC yields empty; all EDGE_CURVEs ARE wired into EDGE_LOOP; never orphaned */ 3HEADER; 4FILE_DESCRIPTION(('Twi208'),'2;1'); 5FILE_NAME('Twi208.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,0.0,0.0)); 22#13=DIRECTION('',(1.0,0.0,0.0)); 23#14=VECTOR('',#13,5.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,5.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('fwd_edge',#7,#9,#22,.T.); 33#24=ORIENTED_EDGE('',*,*,#23,.T.); 34#25=EDGE_CURVE('rev_edge',#9,#7,#22,.F.); 35#26=ORIENTED_EDGE('',*,*,#25,.T.); 36#27=CARTESIAN_POINT('',(5.0,0.0,0.0)); 37#28=DIRECTION('',(0.0,1.0,0.0)); 38#29=VECTOR('',#28,5.0); 39#30=LINE('',#27,#29); 40#31=CARTESIAN_POINT('',(5.0,0.0)); 41#32=DIRECTION('',(0.0,1.0)); 42#33=VECTOR('',#32,5.0); 43#34=LINE('',#31,#33); 44#35=DEFINITIONAL_REPRESENTATION('',(#34),#*); 45#36=PCURVE('',#5,#35); 46#37=SURFACE_CURVE('',#30,(#36),.PCURVE_S1.); 47#38=EDGE_CURVE('right_e',#9,#11,#37,.T.); 48#39=ORIENTED_EDGE('',*,*,#38,.T.); 49#40=CARTESIAN_POINT('',(5.0,5.0,0.0)); 50#41=DIRECTION('',(-0.707106781187,-0.707106781187,0.0)); 51#42=VECTOR('',#41,7.07106781187); 52#43=LINE('',#40,#42); 53#44=CARTESIAN_POINT('',(5.0,5.0)); 54#45=DIRECTION('',(-0.707106781187,-0.707106781187)); 55#46=VECTOR('',#45,7.07106781187); 56#47=LINE('',#44,#46); 57#48=DEFINITIONAL_REPRESENTATION('',(#47),#*); 58#49=PCURVE('',#5,#48); 59#50=SURFACE_CURVE('',#43,(#49),.PCURVE_S1.); 60#51=EDGE_CURVE('top_e',#11,#7,#50,.T.); 61#52=ORIENTED_EDGE('',*,*,#51,.T.); 62#53=EDGE_LOOP('',(#24,#26,#39,#52)); 63#54=GEOMETRIC_CURVE_SET('',(#53)); 64#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 65#9051=PRODUCT('Twi208','Twi208','',(#9050)); 66#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 67#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 68#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 69#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 70#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 71#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 72#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 73#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 74#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 75#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#54),#9060); 76#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 77ENDSEC; 78END-ISO-10303-21;