Twi130 — Simple pentagon with no crossing pair: adjacency-exempt intersection checking must report nothing

§12.3b

topology

Sources

Description

Simple pentagon with no crossing pair: adjacency-exempt intersection checking must report nothing

Reproducer recipe

Expected kernel behavior

The five straight edges form a simple closed pentagon through (0,0), (10,0), (15,-2), (15,5) and (0,5); no pair crosses, including the adjacent pair at (10,0,0) where the second edge dips below the X axis. Do not blanket-exempt adjacent edges from intersection testing — test each consecutive pair over the portions lying outside the tolerance ball around their shared vertex — but on this input that test finds nothing, so the wire must be accepted unchanged. A checker that reports a crossing here is producing a false positive, and trimming to a phantom intersection would destroy a valid boundary.

Expected validation

occt=empty/empty gmsh=empty 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/* Twi130: GEOMETRIC_CURVE_SET containing 5-edge EDGE_LOOP; e1: (0,0,0)→(10,0,0) horizontal x-axis; e2: (10,0,0)→(15,-2,0) adjacent to e1 at v2=(10,0,0), dips below x-axis; e3: (15,-2,0)→(15,5,0) right side; e4: (15,5,0)→(0,5,0) top; e5: (0,5,0)→(0,0,0) left side; wire closes v1→v2→v3→v4→v5→v1 but boundary self-intersects: e2 dips below y=0 and re-crosses extended e1 trajectory; CheckIntersectingEdges adjacency exemption (e1,e2 share v2) returns early; real intersection beyond shared endpoint is missed; GEOMETRIC_CURVE_SET IS model entity — OCC yields empty; all EDGE_CURVEs ARE wired into EDGE_LOOP; never orphaned */
3HEADER;
4FILE_DESCRIPTION(('Twi130'),'2;1');
5FILE_NAME('Twi130.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=VERTEX_POINT('',#1);
12#3=CARTESIAN_POINT('',(10.0,0.0,0.0));
13#4=VERTEX_POINT('',#3);
14#5=CARTESIAN_POINT('',(15.0,-2.0,0.0));
15#6=VERTEX_POINT('',#5);
16#7=CARTESIAN_POINT('',(15.0,5.0,0.0));
17#8=VERTEX_POINT('',#7);
18#9=CARTESIAN_POINT('',(0.0,5.0,0.0));
19#10=VERTEX_POINT('',#9);
20#11=CARTESIAN_POINT('',(0.0,0.0,0.0));
21#12=DIRECTION('',(1.0,0.0,0.0));
22#13=VECTOR('',#12,10.0);
23#14=LINE('',#11,#13);
24#15=EDGE_CURVE('',#2,#4,#14,.T.);
25#16=ORIENTED_EDGE('',$,$,#15,.T.);
26#17=CARTESIAN_POINT('',(10.0,0.0,0.0));
27#18=DIRECTION('',(0.928476690885,-0.371390676354,0.0));
28#19=VECTOR('',#18,5.38516480713);
29#20=LINE('',#17,#19);
30#21=EDGE_CURVE('',#4,#6,#20,.T.);
31#22=ORIENTED_EDGE('',$,$,#21,.T.);
32#23=CARTESIAN_POINT('',(15.0,-2.0,0.0));
33#24=DIRECTION('',(0.0,1.0,0.0));
34#25=VECTOR('',#24,7.0);
35#26=LINE('',#23,#25);
36#27=EDGE_CURVE('',#6,#8,#26,.T.);
37#28=ORIENTED_EDGE('',$,$,#27,.T.);
38#29=CARTESIAN_POINT('',(15.0,5.0,0.0));
39#30=DIRECTION('',(-1.0,0.0,0.0));
40#31=VECTOR('',#30,15.0);
41#32=LINE('',#29,#31);
42#33=EDGE_CURVE('',#8,#10,#32,.T.);
43#34=ORIENTED_EDGE('',$,$,#33,.T.);
44#35=CARTESIAN_POINT('',(0.0,5.0,0.0));
45#36=DIRECTION('',(0.0,-1.0,0.0));
46#37=VECTOR('',#36,5.0);
47#38=LINE('',#35,#37);
48#39=EDGE_CURVE('',#10,#2,#38,.T.);
49#40=ORIENTED_EDGE('',$,$,#39,.T.);
50#41=EDGE_LOOP('',(#16,#22,#28,#34,#40));
51#42=GEOMETRIC_CURVE_SET('',(#41));
52#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
53#9051=PRODUCT('Twi130','Twi130','',(#9050));
54#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
55#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
56#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
57#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
58#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
59#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
60#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
61#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
62#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
63#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#42),#9060);
64#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
65ENDSEC;
66END-ISO-10303-21;