Twi144 — ShapeFix_Wire.FixSeam non-cylindrical periodic surface

§12.3b

crash topology

Sources

Description

ShapeFix_Wire.FixSeam non-cylindrical periodic surface

Reproducer recipe

Expected kernel behavior

The face's surface is a revolution of the line through (5,0,0) with direction (1,0,1) about the Z axis — a cone — but the wire carries no pcurves, three of its four edges have end vertices that do not lie on their own `LINE`s (one runs along (1,0,0) from (5,0,0) yet ends at (6,2,3)), and the chain is broken because the first edge ends at (7.071,0,2.071) while the second starts at a second vertex instance back at (5,0,0). Validate every edge against its own curve and against the face's surface before any seam reasoning, and reject or repair the off-curve vertices first. Where an edge genuinely crosses the periodic boundary, take the period shift from the surface's own u-period — a revolution with a slanted profile has the same 2pi period as a cylinder — rather than from a cylinder-only special case.

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/* Twi144 - ShapeFix_Wire.FixSeam non-cylindrical periodic surface
3 * Defect: wire on a periodic SURFACE_OF_REVOLUTION with non-cylindrical profile;
4 * FixSeam's special-case handling only handles cylinders, fails on cone or
5 * other periodic surfaces with curved profiles.
6 */
7HEADER;
8FILE_DESCRIPTION(('Twi144 test case','ShapeFix_Wire.FixSeam non-cylindrical periodic surface'),'2;1');
9FILE_NAME('Twi144.stp','2026-06-15T00:00:00',(''),(''),'cad-research-suite','','');
10FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 1 1 1 1 }'));
11ENDSEC;
12DATA;
13#1=APPLICATION_CONTEXT('automotive_design');
14#2=APPLICATION_PROTOCOL_DEFINITION('international standard','automotive_design',2000,#1);
15#10=CARTESIAN_POINT('',(0.0,0.0,0.0));
16#11=DIRECTION('',(0.0,0.0,1.0));
17#12=DIRECTION('',(1.0,0.0,0.0));
18#13=AXIS2_PLACEMENT_3D('',#10,#11,#12);
19
20/* Surface of revolution with linear profile (cone) - periodic in rotation */
21#20=CARTESIAN_POINT('',(0.0,0.0,0.0));
22#21=DIRECTION('',(0.0,0.0,1.0));
23#22=AXIS2_PLACEMENT_3D('',#20,#21,#12);
24#23=CARTESIAN_POINT('',(5.0,0.0,0.0));
25#24=DIRECTION('',(1.0,0.0,1.0));
26#25=LINE('',#23,#24);
27#30=SURFACE_OF_REVOLUTION('',#25,#22);
28
29/* Wire edges that cross the periodic seam */
30#100=CARTESIAN_POINT('',(5.0,0.0,0.0));
31#101=VERTEX_POINT('',#100);
32#102=CARTESIAN_POINT('',(7.071,0.0,2.071));
33#103=VERTEX_POINT('',#102);
34
35/* Edge 1 on seam approach */
36#110=LINE('',#100,#24);
37#111=EDGE_CURVE('',#101,#103,#110,.T.);
38
39/* Edge 2: Jump near seam boundary */
40#120=CARTESIAN_POINT('',(5.0,0.0,0.0));
41#121=VERTEX_POINT('',#120);
42#122=CARTESIAN_POINT('',(6.0,2.0,3.0));
43#123=VERTEX_POINT('',#122);
44#124=LINE('',#120,#12);
45#125=EDGE_CURVE('',#121,#123,#124,.T.);
46
47/* Edge 3 on seam departure */
48#130=CARTESIAN_POINT('',(6.0,2.0,3.0));
49#131=VERTEX_POINT('',#130);
50#132=CARTESIAN_POINT('',(5.5,1.0,2.5));
51#133=VERTEX_POINT('',#132);
52#134=DIRECTION('',(0.0,0.0,1.0));
53#135=LINE('',#130,#134);
54#136=EDGE_CURVE('',#131,#133,#135,.T.);
55
56#140=CARTESIAN_POINT('',(5.5,1.0,2.5));
57#141=VERTEX_POINT('',#140);
58#142=DIRECTION('',(1.0,1.0,0.0));
59#143=LINE('',#140,#142);
60#144=EDGE_CURVE('',#133,#101,#143,.T.);
61
62/* Edge loop crossing seam */
63#150=ORIENTED_EDGE('',*,*,#111,.T.);
64#151=ORIENTED_EDGE('',*,*,#125,.T.);
65#152=ORIENTED_EDGE('',*,*,#136,.T.);
66#153=ORIENTED_EDGE('',*,*,#144,.T.);
67#154=EDGE_LOOP('',(#150,#151,#152,#153));
68#155=FACE_OUTER_BOUND('',#154,.T.);
69#156=ADVANCED_FACE('',(#155),#30,.T.);
70#8000=OPEN_SHELL('',(#156));
71
72/* PRODUCT CHAIN - Mandatory */
73#9000=PRODUCT_CONTEXT('',#1,'mechanical');
74#9001=PRODUCT('Twi144','Twi144','',(#9000));
75#9002=PRODUCT_DEFINITION_FORMATION('','',#9001);
76#9003=PRODUCT_DEFINITION_CONTEXT('part definition',#1,'design');
77#9004=PRODUCT_DEFINITION('','',#9002,#9003);
78#9005=PRODUCT_DEFINITION_SHAPE('','',#9004);
79#9006=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
80#9007=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
81#9008=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
82#9009=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9006,'distance_accuracy_value','');
83#9010=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9009))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9006,#9007,#9008))REPRESENTATION_CONTEXT('','3D'));
84#9021=SHELL_BASED_SURFACE_MODEL('sbsm',(#8000));
85#9022=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#9021),#9010);
86#9023=SHAPE_DEFINITION_REPRESENTATION(#9005,#9022);
87ENDSEC;
88END-ISO-10303-21;