step-examples/12-3b-wires/Twi205.stp
Sources
- synthesized — no external source cited
Description
ShapeAnalysis_Wire.CheckIntersectingEdges B-spline-tangent-touch
Reproducer recipe
Expected kernel behavior
Recognize a tangential touch, not a transverse crossing, at (5,8,0): edge 1's incoming tangent there (from poles (8,8,0)→(5,8,0)) is (-3,0,0), and edge 2's outgoing tangent (from poles (5,8,0)→(2,8,0)) is also (-3,0,0) — the same direction, not a crossing where the curve passes from one side to the other. A kernel must distinguish tangency (single contact point, direction preserved, curve stays on one side) from an actual intersection before flagging self-intersection, and accept this junction as a smooth-tangent (if only C1-continuous) vertex rather than reject it as a crossing.
Expected validation
occt=shape(1)/shape(1) gmsh=shape(7) ifc=schema_n/a
Tier-3 assertions
n_faces_total == 1
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* Twi205: Single ADVANCED_FACE on PLANE in CLOSED_SHELL; 3-edge EDGE_LOOP; E1 and E2 are cubic B_SPLINE_CURVE_WITH_KNOTS that arrive/depart shared vertex P2=(5,8,0) with the same tangent direction (-3,0,0) â tangential touch at single point IS the defect; CheckIntersectingEdges reports intersection despite no transverse crossing â false positive IS the mechanism; EDGE_LOOP IS wired into FACE_OUTER_BOUND -> ADVANCED_FACE in CLOSED_SHELL â never orphaned */ 3HEADER; 4FILE_DESCRIPTION(('Twi205'),'2;1'); 5FILE_NAME('Twi205.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('',(10.0,0.0,0.0)); 18#9=VERTEX_POINT('',#8); 19#10=CARTESIAN_POINT('',(5.0,8.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,10.0); 24#15=LINE('',#12,#14); 25#16=EDGE_CURVE('',#7,#9,#15,.T.); 26#17=CARTESIAN_POINT('',(10.0,0.0,0.0)); 27#18=CARTESIAN_POINT('',(11.0,4.0,0.0)); 28#19=CARTESIAN_POINT('',(8.0,8.0,0.0)); 29#20=CARTESIAN_POINT('',(5.0,8.0,0.0)); 30#21=B_SPLINE_CURVE_WITH_KNOTS('',3,(#17,#18,#19,#20),.UNSPECIFIED.,.F.,.F.,(4,4),(0.0,1.0),.UNSPECIFIED.); 31#22=EDGE_CURVE('',#9,#11,#21,.T.); 32#23=CARTESIAN_POINT('',(5.0,8.0,0.0)); 33#24=CARTESIAN_POINT('',(2.0,8.0,0.0)); 34#25=CARTESIAN_POINT('',(-1.0,4.0,0.0)); 35#26=CARTESIAN_POINT('',(0.0,0.0,0.0)); 36#27=B_SPLINE_CURVE_WITH_KNOTS('',3,(#23,#24,#25,#26),.UNSPECIFIED.,.F.,.F.,(4,4),(0.0,1.0),.UNSPECIFIED.); 37#28=EDGE_CURVE('',#11,#7,#27,.T.); 38#29=ORIENTED_EDGE('',$,$,#16,.T.); 39#30=ORIENTED_EDGE('',$,$,#22,.T.); 40#31=ORIENTED_EDGE('',$,$,#28,.T.); 41#32=EDGE_LOOP('',(#29,#30,#31)); 42#33=FACE_OUTER_BOUND('',#32,.T.); 43#34=ADVANCED_FACE('',(#33),#5,.T.); 44#35=CLOSED_SHELL('',(#34)); 45#36=SHELL_BASED_SURFACE_MODEL('',(#35)); 46#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 47#9051=PRODUCT('Twi205','Twi205','',(#9050)); 48#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 49#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 50#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 51#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 52#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 53#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 54#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 55#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 56#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 57#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#36),#9060); 58#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 59ENDSEC; 60END-ISO-10303-21;