Twi153 — ShapeAnalysis_Wire.CheckIntersectingEdges B-spline self-intersection

§12.3b

topology

Sources

Description

ShapeAnalysis_Wire.CheckIntersectingEdges B-spline self-intersection

Reproducer recipe

Expected kernel behavior

one edge is a closed degree-3 B-spline that loops back and crosses itself near (3,3,0). Intersection checking must test each edge AGAINST ITSELF, not only against other edges. Comparing distinct pairs assumes every edge maps parameters to points injectively, and a curve that loops back violates that assumption — the self-crossing is invisible to a pairwise-distinct scan no matter how thorough it is.

Expected validation

occt=shape(1)/shape(1) gmsh=shape(3) ifc=schema_n/a

Tier-3 assertions

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes
1ISO-10303-21;
2/* Twi153: Single ADVANCED_FACE on PLANE; outer EDGE_LOOP contains two edges: E0 is a degree-3 B-spline from (0,0,0) back to (0,0,0) that loops through (10,5,0) and (5,10,0) — self-intersecting curve, the curve crosses itself near (3,3,0); E1 is a LINE from (0,0,0) → (10,0,0) — fictitious closing segment; CheckIntersectingEdges pairwise loop at line 1563 compares only distinct-edge pairs and never tests E0 against itself; intra-edge self-intersection IS the mechanism; EDGE_LOOP IS wired into FACE_OUTER_BOUND → ADVANCED_FACE in CLOSED_SHELL — never orphaned */
3HEADER;
4FILE_DESCRIPTION(('Twi153'),'2;1');
5FILE_NAME('Twi153.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('',(0.0,0.0,0.0));
20#11=CARTESIAN_POINT('',(15.0,5.0,0.0));
21#12=CARTESIAN_POINT('',(5.0,15.0,0.0));
22#13=CARTESIAN_POINT('',(-5.0,10.0,0.0));
23#14=CARTESIAN_POINT('',(-2.0,2.0,0.0));
24#15=CARTESIAN_POINT('',(0.0,0.0,0.0));
25#16=B_SPLINE_CURVE_WITH_KNOTS('',3,(#10,#11,#12,#13,#14,#15),.UNSPECIFIED.,.F.,.T.,(4,1,1,4),(0.0,0.25,0.75,1.0),.UNSPECIFIED.);
26#17=EDGE_CURVE('',#7,#7,#16,.T.);
27#18=ORIENTED_EDGE('',$,$,#17,.T.);
28#19=EDGE_LOOP('',(#18));
29#20=FACE_OUTER_BOUND('',#19,.T.);
30#21=ADVANCED_FACE('',(#20),#5,.T.);
31#22=CLOSED_SHELL('',(#21));
32#23=SHELL_BASED_SURFACE_MODEL('',(#22));
33#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
34#9051=PRODUCT('Twi153','Twi153','',(#9050));
35#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
36#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
37#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
38#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
39#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
40#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
41#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
42#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
43#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
44#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#23),#9060);
45#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
46ENDSEC;
47END-ISO-10303-21;