Twi137 — ShapeFix_Wire.FixIntersectingEdges 2D-only intersection

§12.3b

crash topology

Sources

Description

ShapeFix_Wire.FixIntersectingEdges 2D-only intersection

Reproducer recipe

Expected kernel behavior

The second edge lies wholly at z=1 while the face's surface is the z=0 plane; projected into the face's parameters it crosses the first edge at (5,5), but in 3D the two are 1.0 unit apart, seven orders of magnitude above the declared accuracy. Qualify every parameter-space crossing against the 3D geometry before repairing it, and split only when the 3D separation at the crossing is within tolerance — so no split may happen here. Report the actual defects instead: the second edge does not lie on the face's surface, the first edge's `LINE` along (1,0,0) does not pass through its declared end vertex (10,10,0), and the two edges share no vertex, so the wire is not a chain at all.

Notes

RUNTIME-VERIFIED 2026-08-08 — the recorded crash comes from this file's straight-line direction argument, which references a plain direction where the schema declares a vector carrying a magnitude; repairing that one reference makes the file load, so the titled condition is never reached. See BACKLOG (M).

Expected validation

occt=signal(11)/signal(11) gmsh=signal(11) ifc=schema_n/a

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes
1ISO-10303-21;
2/* Twi137 - ShapeFix_Wire.FixIntersectingEdges 2D-only intersection
3 * Defect: ShapeFix_Wire.FixIntersectingEdges 2D-only intersection
4 */
5HEADER;
6FILE_DESCRIPTION(('Twi137 test case','ShapeFix_Wire.FixIntersectingEdges 2D-only intersection'),'2;1');
7FILE_NAME('Twi137.stp','2026-06-15T00:00:00',(''),(''),'cad-research-suite','','');
8FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 1 1 1 1 }'));
9ENDSEC;
10DATA;
11#1=APPLICATION_CONTEXT('automotive_design');
12#2=APPLICATION_PROTOCOL_DEFINITION('international standard','automotive_design',2000,#1);
13#10=CARTESIAN_POINT('',(0.0,0.0,0.0));
14#11=DIRECTION('',(0.0,0.0,1.0));
15#12=DIRECTION('',(1.0,0.0,0.0));
16#13=AXIS2_PLACEMENT_3D('',#10,#11,#12);
17
18#20=PLANE('',#13);
19/* Surface (parametric 2D) for edges with PCurves */
20/* Two edges that intersect in 2D parameter space but NOT in 3D */
21#100=CARTESIAN_POINT('',(0.0,0.0,0.0));
22#101=VERTEX_POINT('',#100);
23#102=CARTESIAN_POINT('',(10.0,0.0,0.0));
24#103=VERTEX_POINT('',#102);
25#104=CARTESIAN_POINT('',(0.0,10.0,0.0));
26#105=VERTEX_POINT('',#104);
27#106=CARTESIAN_POINT('',(10.0,10.0,0.0));
28#107=VERTEX_POINT('',#106);
29
30/* Edge 1: straight line from (0,0,0) to (10,10,0) in 3D, PCurve (0,0)-(5,5) in 2D */
31#110=LINE('',#100,#12);
32#111=EDGE_CURVE('',#101,#107,#110,.T.);
33
34/* Edge 2: straight line from (5,-5,1) to (5,15,1) in 3D, PCurve (5,0)-(5,10) in 2D */
35#120=CARTESIAN_POINT('',(5.0,-5.0,1.0));
36#121=VERTEX_POINT('',#120);
37#122=CARTESIAN_POINT('',(5.0,15.0,1.0));
38#123=VERTEX_POINT('',#122);
39#124=DIRECTION('',(0.0,1.0,0.0));
40#125=LINE('',#120,#124);
41#126=EDGE_CURVE('',#121,#123,#125,.T.);
42
43/* Wire with 2 edges: these intersect in 2D parameter space (5,5) but not in 3D */
44#140=ORIENTED_EDGE('',*,*,#111,.T.);
45#141=ORIENTED_EDGE('',*,*,#126,.T.);
46#142=EDGE_LOOP('',(#140,#141));
47#143=FACE_OUTER_BOUND('',#142,.T.);
48#144=ADVANCED_FACE('',(#143),#20,.T.);
49#8000=OPEN_SHELL('',(#144));
50
51/* PRODUCT CHAIN - Mandatory */
52#9000=PRODUCT_CONTEXT('',#1,'mechanical');
53#9001=PRODUCT('Twi137','Twi137','',(#9000));
54#9002=PRODUCT_DEFINITION_FORMATION('','',#9001);
55#9003=PRODUCT_DEFINITION_CONTEXT('part definition',#1,'design');
56#9004=PRODUCT_DEFINITION('','',#9002,#9003);
57#9005=PRODUCT_DEFINITION_SHAPE('','',#9004);
58#9006=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
59#9007=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
60#9008=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
61#9009=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9006,'distance_accuracy_value','');
62#9010=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9009))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9006,#9007,#9008))REPRESENTATION_CONTEXT('','3D'));
63#9021=SHELL_BASED_SURFACE_MODEL('sbsm',(#8000));
64#9022=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#9021),#9010);
65#9023=SHAPE_DEFINITION_REPRESENTATION(#9005,#9022);
66ENDSEC;
67END-ISO-10303-21;