Gp048 — ShapeFix_Edge.FixAddPCurve degenerate-curve at cone apex

§12.2a (pcurves)

geometry

Sources

Description

Conical surface with an edge running vertically from the cone apex. The pcurve at the apex degenerates to the single line u=0 (axis of revolution). FixAddPCurve must construct the degenerate pcurve correctly rather than skipping or producing an invalid representation.

Reproducer recipe

see `step-examples/12-2a-pcurves/Gp048.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.

Expected validation

occt=shape(1)/shape(1) gmsh=shape(8) 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/* Gp048: CONICAL_SURFACE (apex at origin, axis Z, half-angle 30 deg); edge from apex (0,0,0) to (0,0,5) runs up the cone generator at u=0; pcurve degenerates to line u=0, v in [0,5] on the cone — the cone's surface map is singular at v=0 (apex); FixAddPCurve must produce a valid degenerate pcurve rather than skipping or crashing */
3HEADER;
4FILE_DESCRIPTION(('Gp048'),'2;1');
5FILE_NAME('Gp048.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=CONICAL_SURFACE('',#4,0.0,0.523598775598);
15#6=(GEOMETRIC_REPRESENTATION_CONTEXT(2)PARAMETRIC_REPRESENTATION_CONTEXT()REPRESENTATION_CONTEXT('UV','2D'));
16#7=CARTESIAN_POINT('',(0.0,0.0,0.0));
17#8=CARTESIAN_POINT('',(0.0,0.0,5.0));
18#9=VERTEX_POINT('',#7);
19#10=VERTEX_POINT('',#8);
20#11=DIRECTION('',(0.0,0.0,1.0));
21#12=VECTOR('',#11,5.0);
22#13=LINE('',#7,#12);
23#14=CARTESIAN_POINT('',(0.0,0.0));
24#15=DIRECTION('',(0.0,1.0));
25#16=VECTOR('',#15,5.0);
26#17=LINE('',#14,#16);
27#18=DEFINITIONAL_REPRESENTATION('gp048_pcdef',(#17),#6);
28#19=PCURVE('gp048_uv',#5,#18);
29#20=SURFACE_CURVE('gp048_sc',#13,(#19),.PCURVE_S1.);
30#21=EDGE_CURVE('gp048_apex_edge',#9,#10,#20,.T.);
31#22=CARTESIAN_POINT('',(2.04124145232,2.04124145232,5.0));
32#23=VERTEX_POINT('',#22);
33#24=CARTESIAN_POINT('',(0.0,0.0,5.0));
34#25=DIRECTION('',(0.0,0.0,1.0));
35#26=DIRECTION('',(1.0,0.0,0.0));
36#27=AXIS2_PLACEMENT_3D('',#24,#25,#26);
37#28=CIRCLE('',#27,2.88675134595);
38#29=CARTESIAN_POINT('',(0.0,5.0));
39#30=DIRECTION('',(1.0,0.0));
40#31=VECTOR('',#30,0.785398163397);
41#32=LINE('',#29,#31);
42#33=DEFINITIONAL_REPRESENTATION('gp048_arc_pcdef',(#32),#6);
43#34=PCURVE('gp048_arc_uv',#5,#33);
44#35=SURFACE_CURVE('gp048_arc_sc',#28,(#34),.PCURVE_S1.);
45#36=EDGE_CURVE('gp048_rim_edge',#10,#23,#35,.T.);
46#37=CARTESIAN_POINT('',(0.0,0.0,0.0));
47#38=DIRECTION('',(0.353553390593,0.353553390593,0.866025403784));
48#39=VECTOR('',#38,5.7735026919);
49#40=LINE('',#37,#39);
50#41=CARTESIAN_POINT('',(0.785398163397,5.0));
51#42=DIRECTION('',(0.0,-1.0));
52#43=VECTOR('',#42,5.0);
53#44=LINE('',#41,#43);
54#45=DEFINITIONAL_REPRESENTATION('gp048_gen_pcdef',(#44),#6);
55#46=PCURVE('gp048_gen_uv',#5,#45);
56#47=SURFACE_CURVE('gp048_gen_sc',#40,(#46),.PCURVE_S1.);
57#48=EDGE_CURVE('gp048_gen_edge',#23,#9,#47,.T.);
58#49=ORIENTED_EDGE('',$,$,#21,.T.);
59#50=ORIENTED_EDGE('',$,$,#36,.T.);
60#51=ORIENTED_EDGE('',$,$,#48,.T.);
61#52=EDGE_LOOP('',(#49,#50,#51));
62#53=FACE_OUTER_BOUND('',#52,.T.);
63#54=ADVANCED_FACE('',(#53),#5,.T.);
64#55=OPEN_SHELL('',(#54));
65#56=SHELL_BASED_SURFACE_MODEL('',(#55));
66#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
67#9051=PRODUCT('Gp048','Gp048','',(#9050));
68#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
69#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
70#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
71#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
72#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
73#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
74#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
75#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
76#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
77#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#56),#9060);
78#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
79ENDSEC;
80END-ISO-10303-21;