Gn178 — Analytic `CONICAL_SURFACE` requiring `SURFACE_OF_REVOLUTION` representation

§12.2b NURBS (sub-class: representation-form mismatch, fills `seq-elementary-to-revolution`)

P2 — spec deviation (no data loss)

spec-violation geometry

Sources

Description

A single `ADVANCED_FACE` on an analytic `CONICAL_SURFACE` (apex-reference radius 2.0, semi-angle π/6, quarter-wedge boundary, slant length 4.0) is an elementary/canonical surface type. A consumer that only accepts the generic `SURFACE_OF_REVOLUTION` (swept) representation — not analytic-elementary quadrics — cannot use this face without conversion. This is the direction Gn013 (mixed `PLANE`+B-spline mismatch) does not cover: Gn013 never puts an elementary quadric (cylinder/cone/sphere/torus) in the file at all.

Reproducer recipe

`CONICAL_SURFACE('name',#axis2placement3d,2.0,0.5235987755982988)` (radius 2.0, semi-angle π/6) as `ADVANCED_FACE.face_geometry`; boundary a 4-edge quarter-wedge loop (two `TRIMMED_CURVE`-over-`CIRCLE` isoparametric arcs at the two axial extremes — radius 2.0 at the base, radius 4.0 at the top — and two straight `LINE` isoparametric edges running along the cone's slant generatrix at u=0 and u=π/2).

Expected kernel behavior

A receiver restricted to swept (`SURFACE_OF_REVOLUTION`) representation must recognize the elementary quadric, build the correct generatrix (a `Geom_Line` along the slant for a cone; a trimmed `Geom_Circle` for sphere/torus), and rewrap it as a `Geom_SurfaceOfRevolution` about the surface's own axis — reproducing the exact same point set (no approximation error, unlike the rational-to-polynomial case in Gn177) rather than leaving the elementary surface in place or rejecting the file.

Notes

Live-verified directly against the fixture's own bytes (the reader loads the face, then the elementary-to-revolution conversion healer is invoked directly on it — matching the established convention of driving the healer directly since it is not part of the default read): raw read is 1 face, a conical surface, face area `18.8495559215388` (exactly the wedge lateral-area formula `θ·(R1+R2)/2·L = (π/2)·(2+4)/2·4 = 6π`, confirming the exact quarter-wedge-frustum geometry); after `ConvertToRevolution`, the result is 1 face, `Geom_SurfaceOfRevolution` with `BasisCurve()` a `Geom_Line` along the cone's slant direction, axis `(0,0,1)` (matching the cone's own axis) and IDENTICAL face area `18.8495559215388` (bit-for-bit, since this is an exact analytic re-expression, not an approximation) — confirming genuine, lossless elementary-to-revolution conversion. Fills `seq-elementary-to-revolution`'s previously-"weak" coverage (only Gn013's unrelated PLANE/B-spline mismatch existed). Distinct from Gn179 (the inverse direction: a swept `SURFACE_OF_REVOLUTION` recognized as elementary). Synonyms: "analytic cone requires surface of revolution form", "ShapeCustom_ConvertToRevolution elementary-to-swept conversion", "CONICAL_SURFACE to Geom_SurfaceOfRevolution", "consumer rejects elementary quadric wants generic sweep", "cone generatrix Geom_Line revolution rebuild".

Expected validation

occt=shape(1)/shape(1) gmsh=shape(9) ifc=schema_n/a

Byte assertions

Tier-3 assertions

Cross-references

Gn013, Gn179

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Gn178: analytic CONICAL_SURFACE (apex-reference radius 2.0, semi-angle pi/6, slant length 4.0)
3   quarter-wedge ADVANCED_FACE; a consumer requiring SURFACE_OF_REVOLUTION representation (not
4   analytic-elementary) cannot use this face as-is; exercises ShapeCustom_ConvertToRevolution's
5   elementary-surface-to-revolution branch (cone -> Geom_SurfaceOfRevolution with a Geom_Line
6   generatrix basis curve); direction not covered by Gn013's PLANE+BSpline mismatch */
7HEADER;
8FILE_DESCRIPTION(('Gn178'),'2;1');
9FILE_NAME('Gn178.stp','2026-07-13T00:00:00',(''),(''),'cad-research-suite','','');
10FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }'));
11ENDSEC;
12DATA;
13#9000=APPLICATION_CONTEXT('mechanical design');
14#1=CARTESIAN_POINT('',(0.0,0.0,0.0));
15#2=DIRECTION('',(0.0,0.0,1.0));
16#3=DIRECTION('',(1.0,0.0,0.0));
17#4=AXIS2_PLACEMENT_3D('',#1,#2,#3);
18#5=CONICAL_SURFACE('gn178_cone',#4,2.0,0.5235987755982988);
19#6=(GEOMETRIC_REPRESENTATION_CONTEXT(2)PARAMETRIC_REPRESENTATION_CONTEXT()REPRESENTATION_CONTEXT('UV','2D'));
20#7=CARTESIAN_POINT('',(0.0,0.0,0.0));
21#8=DIRECTION('',(0.0,0.0,1.0));
22#9=DIRECTION('',(1.0,0.0,0.0));
23#10=AXIS2_PLACEMENT_3D('',#7,#8,#9);
24#11=CIRCLE('gn178_bottom_circle',#10,2.0);
25#12=CARTESIAN_POINT('',(2.0,0.0,0.0));
26#13=VERTEX_POINT('',#12);
27#14=CARTESIAN_POINT('',(0.0,2.0,0.0));
28#15=VERTEX_POINT('',#14);
29#16=TRIMMED_CURVE('gn178_bottom_arc',#11,(PARAMETER_VALUE(0.0)),(PARAMETER_VALUE(1.5707963267949)),.T.,.PARAMETER.);
30#17=CARTESIAN_POINT('',(0.0,0.0));
31#18=CARTESIAN_POINT('',(1.5707963267949,0.0));
32#19=DIRECTION('',(1.0,0.0));
33#20=VECTOR('',#19,1.5707963267949);
34#21=LINE('',#17,#20);
35#22=DEFINITIONAL_REPRESENTATION('pcdef',(#21),#6);
36#23=PCURVE('pc',#5,#22);
37#24=SURFACE_CURVE('sc',#16,(#23),.PCURVE_S1.);
38#25=EDGE_CURVE('gn178_edge_bottom_arc',#13,#15,#24,.T.);
39#26=CARTESIAN_POINT('',(0.0,2.0,0.0));
40#27=DIRECTION('',(0.0,0.5,0.8660254037844387));
41#28=VECTOR('',#27,4.0);
42#29=LINE('',#26,#28);
43#30=CARTESIAN_POINT('',(1.5707963267949,0.0));
44#31=CARTESIAN_POINT('',(1.5707963267949,4.0));
45#32=DIRECTION('',(0.0,1.0));
46#33=VECTOR('',#32,4.0);
47#34=LINE('',#30,#33);
48#35=DEFINITIONAL_REPRESENTATION('pcdef',(#34),#6);
49#36=PCURVE('pc',#5,#35);
50#37=SURFACE_CURVE('sc',#29,(#36),.PCURVE_S1.);
51#38=CARTESIAN_POINT('',(0.0,4.0,3.4641016151377548));
52#39=VERTEX_POINT('',#38);
53#40=EDGE_CURVE('gn178_edge_side_u90',#15,#39,#37,.T.);
54#41=CARTESIAN_POINT('',(0.0,0.0,3.4641016151377548));
55#42=DIRECTION('',(0.0,0.0,1.0));
56#43=DIRECTION('',(1.0,0.0,0.0));
57#44=AXIS2_PLACEMENT_3D('',#41,#42,#43);
58#45=CIRCLE('gn178_top_circle',#44,4.0);
59#46=TRIMMED_CURVE('gn178_top_arc',#45,(PARAMETER_VALUE(0.0)),(PARAMETER_VALUE(1.5707963267949)),.T.,.PARAMETER.);
60#47=CARTESIAN_POINT('',(4.0,0.0,3.4641016151377548));
61#48=VERTEX_POINT('',#47);
62#49=CARTESIAN_POINT('',(1.5707963267949,4.0));
63#50=CARTESIAN_POINT('',(0.0,4.0));
64#51=DIRECTION('',(-1.0,0.0));
65#52=VECTOR('',#51,1.5707963267949);
66#53=LINE('',#49,#52);
67#54=DEFINITIONAL_REPRESENTATION('pcdef',(#53),#6);
68#55=PCURVE('pc',#5,#54);
69#56=SURFACE_CURVE('sc',#46,(#55),.PCURVE_S1.);
70#57=EDGE_CURVE('gn178_edge_top_arc',#39,#48,#56,.F.);
71#58=CARTESIAN_POINT('',(2.0,0.0,0.0));
72#59=DIRECTION('',(0.5,0.0,0.8660254037844387));
73#60=VECTOR('',#59,4.0);
74#61=LINE('',#58,#60);
75#62=CARTESIAN_POINT('',(0.0,4.0));
76#63=CARTESIAN_POINT('',(0.0,0.0));
77#64=DIRECTION('',(0.0,-1.0));
78#65=VECTOR('',#64,4.0);
79#66=LINE('',#62,#65);
80#67=DEFINITIONAL_REPRESENTATION('pcdef',(#66),#6);
81#68=PCURVE('pc',#5,#67);
82#69=SURFACE_CURVE('sc',#61,(#68),.PCURVE_S1.);
83#70=EDGE_CURVE('gn178_edge_side_u0',#48,#13,#69,.F.);
84#71=ORIENTED_EDGE('',$,$,#25,.T.);
85#72=ORIENTED_EDGE('',$,$,#40,.T.);
86#73=ORIENTED_EDGE('',$,$,#57,.T.);
87#74=ORIENTED_EDGE('',$,$,#70,.T.);
88#75=EDGE_LOOP('',(#71,#72,#73,#74));
89#76=FACE_OUTER_BOUND('',#75,.T.);
90#77=ADVANCED_FACE('',(#76),#5,.T.);
91#78=OPEN_SHELL('',(#77));
92#79=SHELL_BASED_SURFACE_MODEL('',(#78));
93#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
94#9051=PRODUCT('Gn178','Gn178','',(#9050));
95#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
96#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
97#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
98#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
99#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
100#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
101#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
102#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
103#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
104#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#79),#9060);
105#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
106ENDSEC;
107END-ISO-10303-21;