step-examples/12-3a-shells/Ps012.stp
Sources
- deduced from CONICAL_SURFACE vs SURFACE_OF_REVOLUTION semantics
- bug-report patterns "swept profile lost", "vase imported as cone", "B-spline simplified during export"
Description
A producer modelled a "vase"; a closed solid of revolution whose generatrix is a B-spline curve that bulges outward at mid-height. The export pipeline simplified the generatrix to a single straight line, yielding a CONICAL_SURFACE. The resulting solid is a perfectly valid frustum-like cone; the producer thought it was a curved vase. The file is clean and topologically sound.
Reproducer recipe
A frustum of revolution: cone apex on Z-axis, half-angle small enough that radius goes from 5 at z=0 to 2 at z=10. Top and bottom planar disk faces, side cone face. CLOSED_SHELL, MANIFOLD_SOLID_BREP.
Expected kernel behavior
Warn and accept: a kernel cannot detect this from the file alone, but it normalizes and exposes the surface type (CONICAL_SURFACE, SURFACE_OF_REVOLUTION, B_SPLINE_SURFACE, ..) and the actual generatrix curve so downstream tools or DRC checks can compare against the producer's intent if it's known. A "surface-type histogram" output is a common kernel feature for this purpose.
Notes
Tier-3 metric: count of CONICAL_SURFACE / CYLINDRICAL_SURFACE / B_SPLINE_SURFACE per representation; cross-check against expected counts from metadata. Real-vs-intended-curvature deviation can be computed from sample points if the original generatrix is available. Synonyms: "swept profile lost", "vase imported as cone", "B-spline simplified during export", "curved generatrix replaced by straight line", "complex revolution simplified to frustum".
Expected validation
occt=shape(1)/shape(1) gmsh=shape(9) ifc=schema_n/a
Tier-3 assertions
face[0].surface_type == "cone"face[1].surface_type == "plane"face[2].surface_type == "plane"n_edges_total >= 4edge[0].curve_type == "circle"edge[0].analytic.radius == 5.0edge[2].curve_type == "circle"edge[2].analytic.radius == 2.0
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* Ps012: Sweep silently truncated to CONICAL_SURFACE: producer intended curved vase (B-spline generatrix bulging outward at mid-height); export simplified to straight line, yielding a valid CONICAL_SURFACE frustum (radius 5 at z=0, radius 2 at z=10); file is clean and topologically sound; defect is producer intent vs export result; MANIFOLD_SOLID_BREP IS model entity â OCC yields shape(1) */ 3HEADER; 4FILE_DESCRIPTION(('Ps012'),'2;1'); 5FILE_NAME('Ps012.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,16.6666666667)); 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.291456794478); 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,10.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=PLANE('',#14); 25#16=CARTESIAN_POINT('',(0.0,0.0,0.0)); 26#17=DIRECTION('',(0.0,0.0,-1.0)); 27#18=DIRECTION('',(1.0,0.0,0.0)); 28#19=AXIS2_PLACEMENT_3D('',#16,#17,#18); 29#20=CIRCLE('',#19,5.0); 30#21=CARTESIAN_POINT('',(0.0,0.0,10.0)); 31#22=DIRECTION('',(0.0,0.0,1.0)); 32#23=DIRECTION('',(1.0,0.0,0.0)); 33#24=AXIS2_PLACEMENT_3D('',#21,#22,#23); 34#25=CIRCLE('',#24,2.0); 35#26=CARTESIAN_POINT('',(5.0,0.0,0.0)); 36#27=VERTEX_POINT('',#26); 37#28=CARTESIAN_POINT('',(2.0,0.0,10.0)); 38#29=VERTEX_POINT('',#28); 39#30=EDGE_CURVE('bot_circle',#27,#27,#20,.T.); 40#31=EDGE_CURVE('top_circle',#29,#29,#25,.T.); 41#32=ORIENTED_EDGE('',$,$,#30,.T.); 42#33=EDGE_LOOP('',(#32)); 43#34=FACE_OUTER_BOUND('',#33,.T.); 44#35=ADVANCED_FACE('',(#34),#10,.T.); 45#36=ORIENTED_EDGE('',$,$,#31,.T.); 46#37=EDGE_LOOP('',(#36)); 47#38=FACE_OUTER_BOUND('',#37,.T.); 48#39=ADVANCED_FACE('',(#38),#15,.T.); 49#40=ORIENTED_EDGE('',$,$,#30,.F.); 50#41=EDGE_LOOP('',(#40)); 51#42=ORIENTED_EDGE('',$,$,#31,.T.); 52#43=EDGE_LOOP('',(#42)); 53#44=FACE_OUTER_BOUND('',#41,.T.); 54#45=FACE_BOUND('',#43,.T.); 55#46=ADVANCED_FACE('',(#44,#45),#5,.T.); 56#47=CLOSED_SHELL('ps012_frustum_shell',(#46,#35,#39)); 57#48=MANIFOLD_SOLID_BREP('ps012_frustum_solid',#47); 58#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 59#9051=PRODUCT('Ps012','Ps012','',(#9050)); 60#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 61#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 62#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 63#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 64#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 65#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 66#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 67#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 68#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 69#9061=ADVANCED_BREP_SHAPE_REPRESENTATION('',(#48),#9060); 70#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 71ENDSEC; 72END-ISO-10303-21;