Gp046 — ShapeFix_Edge.FixVertexTolerance face-context null underestimates multi-surface tolerance

§12.2a (pcurves)

crash geometry

Sources

Description

Edge shared by a PLANE and a CYLINDRICAL_SURFACE; the shared vertex is bound to both surfaces. When FixVertexTolerance runs with face context null, it computes vertex tolerance using only one of the surfaces, underestimating the required value compared to the multi-surface case.

Reproducer recipe

see `step-examples/12-2a-pcurves/Gp046.stp`; the fixture file's top comment names the specific OCCT method and line range.

Expected kernel behavior

detect or heal per the named OCCT branch; the fixture demonstrates the buggy input pattern.

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/* Gp046 - ShapeFix_Edge.FixVertexTolerance face-context null
3 * Defect: edge shared between PLANE and CYLINDRICAL_SURFACE where the
4 * face context is null at FixVertexTolerance entry. Single-surface tolerance
5 * is used, underestimating the multi-surface tolerance needed at the shared
6 * vertex. Edge binds same vertex to both surfaces with inconsistent tolerance. */
7HEADER;
8FILE_DESCRIPTION(('Gp046 test case','FixVertexTolerance face-context null'),'2;1');
9FILE_NAME('Gp046.stp','2026-06-15T00:00:00',(''),(''),'auto-generated','','');
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#3=(LENGTH_UNIT() NAMED_UNIT(*) SI_UNIT(.MILLI.,.METRE.));
16#4=(NAMED_UNIT(*) PLANE_ANGLE_UNIT() SI_UNIT($,.RADIAN.));
17#5=(NAMED_UNIT(*) SI_UNIT($,.STERADIAN.) SOLID_ANGLE_UNIT());
18#6=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(0.001),#3,'distance_accuracy_value','');
19#7=( GEOMETRIC_REPRESENTATION_CONTEXT(3)
20     GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#6))
21     GLOBAL_UNIT_ASSIGNED_CONTEXT((#3,#4,#5))
22     REPRESENTATION_CONTEXT('','3D') );
23/* Plane surface origin */
24#10=CARTESIAN_POINT('',(0.0,0.0,0.0));
25#11=DIRECTION('',(0.0,0.0,1.0));
26#12=DIRECTION('',(1.0,0.0,0.0));
27#13=AXIS2_PLACEMENT_3D('',#10,#11,#12);
28#14=PLANE('plane_surf',#13);
29/* Cylinder surface (radius 5.0) */
30#15=CARTESIAN_POINT('',(0.0,0.0,0.0));
31#16=DIRECTION('',(0.0,0.0,1.0));
32#17=DIRECTION('',(1.0,0.0,0.0));
33#18=AXIS2_PLACEMENT_3D('',#15,#16,#17);
34#19=CYLINDRICAL_SURFACE('cyl_surf',#18,5.0);
35/* Shared edge: 3D straight line along Y-axis from (5.0, 0.0, 0.0) to (5.0, 10.0, 0.0) */
36#20=CARTESIAN_POINT('',(5.0,0.0,0.0));
37#21=DIRECTION('',(0.0,1.0,0.0));
38#22=LINE('edge_line',#20,#21);
39/* Vertices: start and end of shared edge */
40#30=CARTESIAN_POINT('',(5.0,0.0,0.0));
41#31=VERTEX_POINT('',#30);
42#32=CARTESIAN_POINT('',(5.0,10.0,0.0));
43#33=VERTEX_POINT('',#32);
44/* PCURVE on plane (X,Y coordinates) */
45#40=CARTESIAN_POINT('',(5.0,0.0));
46#41=DIRECTION('',(0.0,1.0));
47#42=LINE('pcurve_plane',#40,#41);
48#43=( GEOMETRIC_REPRESENTATION_CONTEXT(2)
49      PARAMETRIC_REPRESENTATION_CONTEXT()
50      REPRESENTATION_CONTEXT('parametric','2D') );
51#44=DEFINITIONAL_REPRESENTATION('',(#42),#43);
52#45=PCURVE('pcurve_on_plane',#14,#44);
53/* PCURVE on cylinder (u=angle, v=height) */
54#46=CARTESIAN_POINT('',(1.5707963,0.0));
55#47=DIRECTION('',(0.0,1.0));
56#48=LINE('pcurve_cyl',#46,#47);
57#49=DEFINITIONAL_REPRESENTATION('',(#48),#43);
58#50=PCURVE('pcurve_on_cyl',#19,#49);
59/* SURFACE_CURVE for plane */
60#51=SURFACE_CURVE('edge_plane',#22,(#45),.PCURVE_S1.);
61/* SURFACE_CURVE for cylinder */
62#52=SURFACE_CURVE('edge_cyl',#22,(#50),.PCURVE_S1.);
63/* Shared EDGE_CURVE with both surface curves */
64#60=EDGE_CURVE('edge_gp046_shared',#31,#33,#51,.T.);
65/* Face on plane */
66#61=ORIENTED_EDGE('',*,*,#60,.T.);
67#62=EDGE_LOOP('',(#61));
68#63=FACE_OUTER_BOUND('',#62,.T.);
69#64=ADVANCED_FACE('',(#63),#14,.T.);
70/* Face on cylinder */
71#70=ORIENTED_EDGE('',*,*,#60,.T.);
72#71=EDGE_LOOP('',(#70));
73#72=FACE_OUTER_BOUND('',#71,.T.);
74#73=ADVANCED_FACE('',(#72),#19,.T.);
75#90=SHAPE_REPRESENTATION('Gp046',(#13,#14,#19,#64,#73),#7);
76/* Wrap: PRODUCT chain so OCCT TransferRoots produces a shape. */
77#9000=PRODUCT_CONTEXT('',#1,'mechanical');
78#9001=PRODUCT('Gp046','Gp046','',(#9000));
79#9002=PRODUCT_DEFINITION_FORMATION('','',#9001);
80#9003=PRODUCT_DEFINITION_CONTEXT('part definition',#1,'design');
81#9004=PRODUCT_DEFINITION('','',#9002,#9003);
82#9005=PRODUCT_DEFINITION_SHAPE('','',#9004);
83#9006=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
84#9007=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
85#9008=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
86#9009=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9006,'distance_accuracy_value','');
87#9010=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9009))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9006,#9007,#9008))REPRESENTATION_CONTEXT('','3D'));
88#9020=OPEN_SHELL('wrap_shell',(#64,#73));
89#9021=SHELL_BASED_SURFACE_MODEL('wrap_sbsm',(#9020));
90#9022=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#9021),#9010);
91#9023=SHAPE_DEFINITION_REPRESENTATION(#9005,#9022);
92ENDSEC;
93END-ISO-10303-21;