step-examples/12-6-assembly/P022.stp
Sources
- FreeCAD #16681
Sender
FreeCAD
Description
A specific construction — sketch with arc-by-3-points (NOT center-on-axis) closed with horizontal/vertical lines, revolved 360° — produces a STEP whose `SURFACE_OF_REVOLUTION` has a seam degeneracy where finite (non-degenerate) seam edges meet at the rotation axis instead of collapsing to a degenerate point.
Reproducer recipe
STEP `SURFACE_OF_REVOLUTION` with generatrix `TRIMMED_CURVE(CIRCLE(…))` whose start/end-parameter encoding produces a self-touching meridian at the rotation axis with finite seam edge.
Expected kernel behavior
Auto-degenerate the seam edge, or reject with clear error.
Notes
Synonyms: "helical seam degeneracy from arc-by-3-points plus 360 revolve", "thread seam broken because arc was reconstructed", "revolved 3-point arc collapses at seam".
Expected validation
occt=shape(1)/shape(1) gmsh=shape(1) ifc=schema_n/a
Byte assertions
count_entity_def(b'SURFACE_OF_REVOLUTION') >= 1contains(b'TRIMMED_CURVE')contains(b'CIRCLE')
Tier-3 assertions
shape_null == Falsen_vertices_total == 1
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* P022: SURFACE_OF_REVOLUTION with generatrix TRIMMED_CURVE(CIRCLE) whose start/end-parameter encoding produces a self-touching meridian at the rotation axis â seam degeneracy from arc-by-3-points + 360-degree revolve; finite seam edges meet at rotation axis instead of collapsing to degenerate point; kernel must auto-degenerate seam edge or reject with clear error. The SURFACE_OF_REVOLUTION sits unreferenced (only the generatrix TRIMMED_CURVE is in a curve set), so OCC loads only a 1-vertex stub; the seam degeneracy is byte-present but oracle-invisible to the load-time shape-count oracles (shape(1)), not a genuine load-time demonstration */ 3HEADER; 4FILE_DESCRIPTION(('P022'),'2;1'); 5FILE_NAME('P022.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','',''); 6FILE_SCHEMA(('AP242_MANAGED_MODEL_BASED_3D_ENGINEERING_MIM_LF { 1 0 10303 442 1 1 4 }')); 7ENDSEC; 8DATA; 9#9000=APPLICATION_CONTEXT('mechanical design'); 10#1=CARTESIAN_POINT('',(0.0,0.0,0.0)); 11#2=GEOMETRIC_CURVE_SET('',(#1)); 12#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 13#9051=PRODUCT('P022','P022','',(#9050)); 14#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 15#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 16#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 17#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 18#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 19#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 20#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 21#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 22#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 23#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#2),#9060); 24#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 25#9063=CARTESIAN_POINT('axis_orig',(0.0,0.0,0.0)); 26#9064=DIRECTION('axis_z',(0.0,0.0,1.0)); 27#9065=DIRECTION('axis_x',(1.0,0.0,0.0)); 28#9066=AXIS2_PLACEMENT_3D('axis_plc',#9063,#9064,#9065); 29#9067=DIRECTION('axis_dir',(0.0,0.0,1.0)); 30#9068=VECTOR('axis_vec',#9067,1.0); 31#9069=LINE('revolution_axis',#9063,#9068); 32#9070=CARTESIAN_POINT('circ_orig',(2.0,0.0,1.0)); 33#9071=DIRECTION('circ_z',(0.0,0.0,1.0)); 34#9072=DIRECTION('circ_x',(1.0,0.0,0.0)); 35#9073=AXIS2_PLACEMENT_3D('circ_plc',#9070,#9071,#9072); 36#9074=CIRCLE('generatrix_circle',#9073,1.0); 37#9075=TRIMMED_CURVE('seam_generatrix',#9074,(PARAMETER_VALUE(0.0)),(PARAMETER_VALUE(6.283185307)),.T.,.PARAMETER.); 38#9076=SURFACE_OF_REVOLUTION('helical_seam_surface',#9075,#9066); 39#9077=GEOMETRIC_CURVE_SET('defect_curves',(#9075)); 40#9078=PRODUCT_CONTEXT('sub',#9000,'mechanical'); 41#9079=PRODUCT('HelicalSeamComp','HelicalSeamComp','',(#9078)); 42#9080=PRODUCT_DEFINITION_FORMATION('','',#9079); 43#9081=PRODUCT_DEFINITION('design','',#9080,#9053); 44#9082=NEXT_ASSEMBLY_USAGE_OCCURRENCE('1','helical_seam_instance','',#9054,#9081,$); 45ENDSEC; 46END-ISO-10303-21;