step-examples/12-2c-surfaces/Gs185.stp
Sources
- https://discourse.mcneel.com/t/step-import-issue-conical-surface-interpreted-as-a-circle/219575 (Rhino RH-96071: cone imports as a flat disk
- lateral face absent/degenerate). B4 wave-4 DEF-D (LGPL-clean — pattern only, no bytes copied).
Description
STEP file with a CLOSED_SHELL containing two ADVANCED_FACEs: (a) PLANE base circle and (b) CONICAL_SURFACE lateral surface. The EDGE_LOOP defining the CONICAL_SURFACE's boundary clips the upper extent to z ≈ 0.15 mm above the base (instead of the apex at z ≈ 76.2 mm), making the lateral face extent effectively zero. The CONICAL_SURFACE has semi_angle ≈ 0.165 rad (≈9.45°) and base radius 12.7 mm; the nominal apex height ≈ 76.2 mm. The top edge of the lateral face references a vertex at z=0.15 (DEFECT_HEIGHT) instead of the apex, causing the cone face to span only 0.15 mm in height — the full lateral surface is collapsed to a near-degenerate sliver.
Reproducer recipe
CONICAL_SURFACE with AXIS2_PLACEMENT_3D apex at z≈76.2, semi_angle=0.165 rad, radius=0; EDGE_LOOP upper trim vertex at z=0.15 (should be at apex z≈76.2); PLANE base circle at z=0 radius 12.7; CLOSED_SHELL wrapping both faces. Produces shape(1) under OCCT (healer tolerates the near-zero height face).
Expected kernel behavior
reject or emit diagnostic for nearly-degenerate cone lateral face (height 0.15 mm vs nominal 76.2 mm); Rhino RH-96071 incorrectly interprets this as a flat circle.
Notes
Distinct from Ps012 (sweep-truncated to clean cone frustum — clean file). Gs185 specifically encodes the EDGE_LOOP miscut that kills the lateral extent. Synonyms: "CONICAL_SURFACE imports as circle", "cone lateral face missing STEP", "cone EDGE_LOOP trim wrong", "Rhino conical surface circle".
Expected validation
occt=shape(1)/shape(1) gmsh=shape(7) ifc=schema_n/a
Byte assertions
contains(b'CONICAL_SURFACE')contains(b'EDGE_LOOP')
Tier-3 assertions
n_faces_total == 2faces[0].surface_type == "cone"face[0].surface_type == "cone"face[0].quadric.semi_angle == 0.165edge[0].curve_type == "circle"edge[0].analytic.radius == 12.7
Cross-references
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* Gs185: CONICAL_SURFACE (semi_angle=0.165 rad, height 76.2 mm) IS ADVANCED_FACE.face_geometry; EDGE_LOOP upper trim vertex at z=0.15 instead of z=76.2 collapses lateral extent to ~0; cone lateral face absent/degenerate (Rhino RH-96071); CLOSED_SHELL IS model entity â OCC may yield shape(1) or shape(0) */ 3HEADER; 4FILE_DESCRIPTION(('Gs185'),'2;1'); 5FILE_NAME('Gs185.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,76.2699258961)); 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.165); 15#6=CARTESIAN_POINT('',(0.0,0.0,0.0)); 16#7=DIRECTION('',(0.0,0.0,-1.0)); 17#8=DIRECTION('',(1.0,0.0,0.0)); 18#9=AXIS2_PLACEMENT_3D('',#6,#7,#8); 19#10=PLANE('',#9); 20#11=CARTESIAN_POINT('',(0.0,0.0,0.0)); 21#12=DIRECTION('',(0.0,0.0,-1.0)); 22#13=DIRECTION('',(1.0,0.0,0.0)); 23#14=AXIS2_PLACEMENT_3D('',#11,#12,#13); 24#15=CIRCLE('gs185_base',#14,12.7); 25#16=CARTESIAN_POINT('',(12.7,0.0,0.0)); 26#17=VERTEX_POINT('',#16); 27#18=EDGE_CURVE('gs185_base_circle',#17,#17,#15,.T.); 28#19=CARTESIAN_POINT('',(0.0,0.0,0.15)); 29#20=DIRECTION('',(0.0,0.0,1.0)); 30#21=DIRECTION('',(1.0,0.0,0.0)); 31#22=AXIS2_PLACEMENT_3D('',#19,#20,#21); 32#23=CIRCLE('gs185_defect_top',#22,12.675022920533628); 33#24=CARTESIAN_POINT('',(12.6750229205,0.0,0.15)); 34#25=VERTEX_POINT('',#24); 35#26=EDGE_CURVE('gs185_top_circle',#25,#25,#23,.T.); 36#27=ORIENTED_EDGE('',$,$,#18,.T.); 37#28=EDGE_LOOP('',(#27)); 38#29=FACE_OUTER_BOUND('',#28,.T.); 39#30=ADVANCED_FACE('',(#29),#10,.T.); 40#31=ORIENTED_EDGE('',$,$,#26,.T.); 41#32=EDGE_LOOP('',(#31)); 42#33=ORIENTED_EDGE('',$,$,#18,.F.); 43#34=EDGE_LOOP('',(#33)); 44#35=FACE_OUTER_BOUND('',#34,.T.); 45#36=FACE_BOUND('',#32,.T.); 46#37=ADVANCED_FACE('gs185_cone_lateral',(#35,#36),#5,.T.); 47#38=CLOSED_SHELL('gs185_shell',(#37,#30)); 48#39=MANIFOLD_SOLID_BREP('gs185_solid',#38); 49#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 50#9051=PRODUCT('Gs185','Gs185','',(#9050)); 51#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 52#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 53#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 54#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 55#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 56#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 57#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 58#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 59#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 60#9061=ADVANCED_BREP_SHAPE_REPRESENTATION('',(#39),#9060); 61#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 62ENDSEC; 63END-ISO-10303-21;