Twi105 — ShapeAnalysis_Wire.CheckIntersectingEdges seam-gap tolerance filter miss

§12.3b (wire/loop/edge)

topology

Sources

Description

CheckIntersectingEdges detects non-adjacent edge intersections by 2D parametric intersection followed by 3D vertex-tolerance distance check (line 1645, OK1/OK2). When non-adjacent edges' parametric intersection maps to spatial point in seam-edge gap (vertex offset region), tolerance filtering fails to detect genuine intersection. Gap magnitude typically < vertex tolerance but > parametric precision.

Reproducer recipe

Wire with 4 edges where E1 horizontal; E3 diagonal intersecting E1 in space; E2, E4 create seam offset at vertex. Intersection point falls in 0.05 unit spatial gap with 0.1 unit vertex tolerance. CheckIntersectingEdges misses intersection at line 1645.

Expected kernel behavior

Detect intersection despite seam-gap offset; report or repair.

Expected validation

occt=shape(1)/shape(1) gmsh=shape(13) 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/* Twi105: Single ADVANCED_FACE on a PLANE in a CLOSED_SHELL; outer EDGE_LOOP has 4 edges: E1(v0(0,0,0)→v1(10,0,0)) horizontal base; E2(v1(10,0,0)→v2(10,0.05,0)) 0.05-unit seam offset step — creates vertex offset gap; E3(v2(10,0.05,0)→v3(0,1,0)) diagonal that geometrically crosses E1 at ~(0.49,0,0); E4(v3(0,1,0)→v0(0,0,0)) left return closing the wire; geometric intersection of E3 with E1 maps to spatial point 0.05 units from E2/E3 junction; vertex tolerance=0.1 > gap 0.05 > parametric precision: CheckIntersectingEdges OK1/OK2 test at line 1645 filters intersection as endpoint-proximal; genuine crossing is missed — IS the seam-gap tolerance filter failure mechanism; all EDGE_CURVEs ARE wired into EDGE_LOOP → FACE_OUTER_BOUND → ADVANCED_FACE in CLOSED_SHELL — never orphaned */
3HEADER;
4FILE_DESCRIPTION(('Twi105'),'2;1');
5FILE_NAME('Twi105.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('',(10.0,0.05,0.0));
20#11=VERTEX_POINT('',#10);
21#12=CARTESIAN_POINT('',(0.0,1.0,0.0));
22#13=VERTEX_POINT('',#12);
23#14=CARTESIAN_POINT('',(0.0,0.0,0.0));
24#15=DIRECTION('',(1.0,0.0,0.0));
25#16=VECTOR('',#15,10.0);
26#17=LINE('',#14,#16);
27#18=EDGE_CURVE('',#7,#9,#17,.T.);
28#19=ORIENTED_EDGE('',$,$,#18,.T.);
29#20=CARTESIAN_POINT('',(10.0,0.0,0.0));
30#21=DIRECTION('',(0.0,1.0,0.0));
31#22=VECTOR('',#21,0.05);
32#23=LINE('',#20,#22);
33#24=EDGE_CURVE('',#9,#11,#23,.T.);
34#25=ORIENTED_EDGE('',$,$,#24,.T.);
35#26=CARTESIAN_POINT('',(0.0,-10.0,0.0));
36#27=VERTEX_POINT('',#26);
37#28=CARTESIAN_POINT('',(10.0,0.05,0.0));
38#29=DIRECTION('',(-0.705341229422,-0.708867935569,0.0));
39#30=VECTOR('',#29,14.1775350467);
40#31=LINE('',#28,#30);
41#32=EDGE_CURVE('',#11,#27,#31,.T.);
42#33=ORIENTED_EDGE('',$,$,#32,.T.);
43#34=CARTESIAN_POINT('',(0.0,-10.0,0.0));
44#35=DIRECTION('',(0.0,1.0,0.0));
45#36=VECTOR('',#35,10.0);
46#37=LINE('',#34,#36);
47#38=EDGE_CURVE('',#27,#7,#37,.T.);
48#39=ORIENTED_EDGE('',$,$,#38,.T.);
49#40=EDGE_LOOP('',(#19,#25,#33,#39));
50#41=FACE_OUTER_BOUND('',#40,.T.);
51#42=ADVANCED_FACE('',(#41),#5,.T.);
52#43=CLOSED_SHELL('',(#42));
53#44=SHELL_BASED_SURFACE_MODEL('',(#43));
54#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
55#9051=PRODUCT('Twi105','Twi105','',(#9050));
56#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
57#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
58#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
59#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
60#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
61#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
62#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
63#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
64#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
65#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#44),#9060);
66#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
67ENDSEC;
68END-ISO-10303-21;