Twi158 — ShapeFix_Wire.FixGaps2d 2D-gap on periodic surface

§12.3b

crash topology

Sources

Description

ShapeFix_Wire.FixGaps2d 2D-gap on periodic surface

Reproducer recipe

Expected kernel behavior

The face's surface is a revolution of a radius-1 `CIRCLE` lying in the z=0 plane about the Z axis through that circle's own centre: every point of the generatrix is the same distance from the axis, so the swept surface collapses back onto the single circle and has no two-parameter domain. Check a revolution's generatrix for this coaxial degeneracy before building any parametric geometry on it, and reject the surface and its face with a diagnostic. The sole edge, a vertical line from (1,0,0) to (1,0,1.5), does not lie on that circle at all, so no seam-gap repair is meaningful — there is no parameter space in which to compute one.

Notes

RUNTIME-VERIFIED 2026-08-09 — this file's recorded `signal(11)` is driven by the revolved surface's axis attribute holding a full three-axis placement where a single-axis placement is declared; the reader's downcast yields null and the abort happens while converting the surface, before the titled condition can be exercised. This was the long-open Twi144 mystery: repairing the line-direction references alone cannot reach this slot. Census in `BACKLOG.md` (M.18).

Expected validation

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

Cross-references

Twi144

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes
1ISO-10303-21;
2/* Twi158 - ShapeFix_Wire.FixGaps2d 2D-gap on periodic surface
3 * Defect: wire on cylindrical surface where 2D pcurves leave a gap exactly at
4 * u=0 (the seam). FixGaps2d's gap-bridging doesn't handle seam-crossing. */
5HEADER;
6FILE_DESCRIPTION(('Twi158 test case','FixGaps2d 2D-gap on periodic surface'),'2;1');
7FILE_NAME('Twi158.stp','2026-06-15T00:00:00',(''),(''),'cad-research-suite','','');
8FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 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/* Cylindrical surface: axis along Z, radius 1.0 */
18#21=CIRCLE('',#13,1.0);
19#22=SURFACE_OF_REVOLUTION('',#21,#13);
20/* Vertices on cylinder at u near 0 and 2*pi (wrapping) */
21#30=CARTESIAN_POINT('',(1.0,0.0,0.0));
22#31=VERTEX_POINT('',#30);
23#32=CARTESIAN_POINT('',(0.99999,0.00628,0.5));
24#33=VERTEX_POINT('',#32);
25#34=CARTESIAN_POINT('',(0.99999,-0.00628,1.0));
26#35=VERTEX_POINT('',#34);
27#36=CARTESIAN_POINT('',(1.0,0.0,1.5));
28#37=VERTEX_POINT('',#36);
29/* Edge curves with pcurves that span seam */
30#40=DIRECTION('',(0.0,0.0,1.0));
31#41=VECTOR('',#40,1.5);
32#42=LINE('',#30,#41);
33#50=EDGE_CURVE('',#31,#37,#42,.T.);
34#60=ORIENTED_EDGE('',*,*,#50,.T.);
35/* Defect: the pcurve leaves a gap at u=0 (seam) where parameter space
36   wraps from 2*pi to 0, but the gap-fixing routine doesn't bridge it */
37#70=EDGE_LOOP('',(#60));
38#71=FACE_OUTER_BOUND('',#70,.T.);
39#72=ADVANCED_FACE('',(#71),#22,.T.);
40#9000=PRODUCT_CONTEXT('',#1,'mechanical');
41#9001=PRODUCT('Twi158','Twi158','',(#9000));
42#9002=PRODUCT_DEFINITION_FORMATION('','',#9001);
43#9003=PRODUCT_DEFINITION_CONTEXT('part definition',#1,'design');
44#9004=PRODUCT_DEFINITION('','',#9002,#9003);
45#9005=PRODUCT_DEFINITION_SHAPE('','',#9004);
46#9006=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
47#9007=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
48#9008=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
49#9009=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9006,'distance_accuracy_value','');
50#9010=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9009))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9006,#9007,#9008))REPRESENTATION_CONTEXT('','3D'));
51#9020=OPEN_SHELL('shell',(#72));
52#9021=SHELL_BASED_SURFACE_MODEL('sbsm',(#9020));
53#9022=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#9021),#9010);
54#9023=SHAPE_DEFINITION_REPRESENTATION(#9005,#9022);
55ENDSEC;
56END-ISO-10303-21;