Twi187 — ShapeFix_Wire.FixLacking insertion-cascade

§12.3b

topology

Sources

Description

ShapeFix_Wire.FixLacking insertion-cascade

Reproducer recipe

Expected kernel behavior

The first edge ends at (1,0,0) while the second begins at (3,0,0): a single 2.0-unit gap, with the rest of the three-edge contour connected and closing at (0,0,0). After inserting a bridging edge, re-run gap detection over the whole rebuilt wire rather than assuming one pass suffices — the insertion creates two new junctions, each of which must itself be checked for connectivity and for crossings with the remaining edges — and report the wire closed only when a full re-scan finds nothing. If the gap cannot be bridged without crossing the third edge, fail with a diagnostic naming the (1,0,0)-to-(3,0,0) gap.

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/* Twi187: GEOMETRIC_CURVE_SET containing EDGE_LOOP with 3 edges on PLANE; PLANE: normal +Z, origin (0,0,0); A(0,0)->B(1,0) then gap to D(3,0)->E(3,1)->A(0,0); two consecutive missing edges B->C(2,0) and C->D in the wire; cascade_gap_start (A->B) IS the edge before first gap; cascade_gap_end (D->E) IS the edge after second gap; FixLacking IS mechanism — inserts first missing edge but no re-evaluation occurs to catch second cascading gap; GEOMETRIC_CURVE_SET IS model entity — OCC yields empty; all EDGE_CURVEs ARE wired into EDGE_LOOP; never orphaned */
3HEADER;
4FILE_DESCRIPTION(('Twi187'),'2;1');
5FILE_NAME('Twi187.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('',(1.0,0.0,0.0));
18#9=VERTEX_POINT('',#8);
19#10=CARTESIAN_POINT('',(3.0,0.0,0.0));
20#11=VERTEX_POINT('',#10);
21#12=CARTESIAN_POINT('',(3.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,1.0);
26#17=LINE('',#14,#16);
27#18=CARTESIAN_POINT('',(0.0,0.0));
28#19=DIRECTION('',(1.0,0.0));
29#20=VECTOR('',#19,1.0);
30#21=LINE('',#18,#20);
31#22=DEFINITIONAL_REPRESENTATION('',(#21),#*);
32#23=PCURVE('',#5,#22);
33#24=SURFACE_CURVE('',#17,(#23),.PCURVE_S1.);
34#25=EDGE_CURVE('cascade_gap_start',#7,#9,#24,.T.);
35#26=ORIENTED_EDGE('',*,*,#25,.T.);
36#27=CARTESIAN_POINT('',(3.0,0.0,0.0));
37#28=DIRECTION('',(0.0,1.0,0.0));
38#29=VECTOR('',#28,1.0);
39#30=LINE('',#27,#29);
40#31=CARTESIAN_POINT('',(3.0,0.0));
41#32=DIRECTION('',(0.0,1.0));
42#33=VECTOR('',#32,1.0);
43#34=LINE('',#31,#33);
44#35=DEFINITIONAL_REPRESENTATION('',(#34),#*);
45#36=PCURVE('',#5,#35);
46#37=SURFACE_CURVE('',#30,(#36),.PCURVE_S1.);
47#38=EDGE_CURVE('cascade_gap_end',#11,#13,#37,.T.);
48#39=ORIENTED_EDGE('',*,*,#38,.T.);
49#40=CARTESIAN_POINT('',(3.0,1.0,0.0));
50#41=DIRECTION('',(-0.948683298051,-0.316227766017,0.0));
51#42=VECTOR('',#41,3.16227766017);
52#43=LINE('',#40,#42);
53#44=CARTESIAN_POINT('',(3.0,1.0));
54#45=DIRECTION('',(-0.948683298051,-0.316227766017));
55#46=VECTOR('',#45,3.16227766017);
56#47=LINE('',#44,#46);
57#48=DEFINITIONAL_REPRESENTATION('',(#47),#*);
58#49=PCURVE('',#5,#48);
59#50=SURFACE_CURVE('',#43,(#49),.PCURVE_S1.);
60#51=EDGE_CURVE('',#13,#7,#50,.T.);
61#52=ORIENTED_EDGE('',*,*,#51,.T.);
62#53=EDGE_LOOP('',(#26,#39,#52));
63#54=GEOMETRIC_CURVE_SET('',(#53));
64#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
65#9051=PRODUCT('Twi187','Twi187','',(#9050));
66#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
67#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
68#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
69#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
70#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
71#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
72#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
73#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
74#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
75#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#54),#9060);
76#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
77ENDSEC;
78END-ISO-10303-21;