step-examples/12-2c-surfaces/Gs052.stp
Sources
- OCCT MANTIS#0023771 (OCCT MANTIS tracker 502 as of 2026-05-02)
Description
A surface of revolution whose basis curve is itself an `OFFSET_CURVE_3D` round-trips through STEP/IGES; the offset relationship is lost; the receiver sees a freshly-evaluated B-spline approximation of the offset curve rather than the original "offset by 0.1 of curve X" representation. Subsequent edits (changing the original X) no longer propagate.
Reproducer recipe
`SURFACE_OF_REVOLUTION` whose basis is `OFFSET_CURVE_3D` referencing a `B_SPLINE_CURVE`. Round-trip; offset is baked into a new B-spline.
Expected kernel behavior
Heal and accept: offset relationships are preserved through export when the receiver schema supports them; AP242 supports offset-based curves. Must not silently drop offset on export.
Notes
**See also**: Gs046, A083. Synonyms: "surface of revolution with offset basis curve breaks on export", "OFFSET_CURVE_3D relationship lost on STEP round-trip", "offset baked into B-spline approximation on export", "AP242 offset curve dropped in serialization", "edits to original X no longer propagate after round-trip".
Expected validation
occt=shape(1)/shape(1) gmsh=shape(9) ifc=schema_n/a
Byte assertions
contains(b'OFFSET_CURVE_3D(')contains(b'SURFACE_OF_REVOLUTION(')
Tier-3 assertions
load == "ok"
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/* Gs052: SURFACE_OF_REVOLUTION(basis=OFFSET_CURVE_3D(...)) IS ADVANCED_FACE.face_geometry; OFFSET_CURVE_3D referencing B_SPLINE_CURVE with offset distance 0.1 IS the basis; offset relationship baked/lost on export IS the defect wired into face topology; shape_null (strict reject) */ 3HEADER; 4FILE_DESCRIPTION(('Gs052'),'2;1'); 5FILE_NAME('Gs052.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('',(1.0,0.0,0.0)); 11#2=CARTESIAN_POINT('',(1.0,0.0,2.0)); 12#3=B_SPLINE_CURVE_WITH_KNOTS('gs052_bsc',1,(#1,#2),.UNSPECIFIED.,.F.,.F.,(2,2),(0.0,1.0),.UNSPECIFIED.); 13#4=DIRECTION('',(0.0,1.0,0.0)); 14#5=OFFSET_CURVE_3D('gs052_oc',#3,0.1,.F.,#4); 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=AXIS1_PLACEMENT('gs052_rev_ax',#6,#7); 19#10=SURFACE_OF_REVOLUTION('gs052_sor',#5,#9); 20#11=(GEOMETRIC_REPRESENTATION_CONTEXT(2)PARAMETRIC_REPRESENTATION_CONTEXT()REPRESENTATION_CONTEXT('UV','2D')); 21#12=CARTESIAN_POINT('',(1.1,0.0,0.0)); 22#13=CARTESIAN_POINT('',(0.0,1.1,0.0)); 23#14=CARTESIAN_POINT('',(0.0,1.1,2.0)); 24#15=CARTESIAN_POINT('',(1.1,0.0,2.0)); 25#16=VERTEX_POINT('',#12); 26#17=VERTEX_POINT('',#13); 27#18=VERTEX_POINT('',#14); 28#19=VERTEX_POINT('',#15); 29#20=CARTESIAN_POINT('',(1.1,0.0,0.0)); 30#21=DIRECTION('',(-1.1,1.1,0.0)); 31#22=VECTOR('',#21,1.55563491861); 32#23=LINE('',#20,#22); 33#24=CARTESIAN_POINT('',(0.0,0.0)); 34#25=DIRECTION('',(1.0,0.0)); 35#26=VECTOR('',#25,1.57079632679); 36#27=LINE('',#24,#26); 37#28=DEFINITIONAL_REPRESENTATION('pcdef',(#27),#11); 38#29=PCURVE('pc',#10,#28); 39#30=SURFACE_CURVE('sc',#23,(#29),.PCURVE_S1.); 40#31=EDGE_CURVE('ec',#16,#17,#30,.T.); 41#32=CARTESIAN_POINT('',(0.0,1.1,0.0)); 42#33=DIRECTION('',(0.0,0.0,1.0)); 43#34=VECTOR('',#33,2.0); 44#35=LINE('',#32,#34); 45#36=CARTESIAN_POINT('',(1.57079632679,0.0)); 46#37=DIRECTION('',(0.0,1.0)); 47#38=VECTOR('',#37,1.0); 48#39=LINE('',#36,#38); 49#40=DEFINITIONAL_REPRESENTATION('pcdef',(#39),#11); 50#41=PCURVE('pc',#10,#40); 51#42=SURFACE_CURVE('sc',#35,(#41),.PCURVE_S1.); 52#43=EDGE_CURVE('ec',#17,#18,#42,.T.); 53#44=CARTESIAN_POINT('',(0.0,1.1,2.0)); 54#45=DIRECTION('',(1.1,-1.1,0.0)); 55#46=VECTOR('',#45,1.55563491861); 56#47=LINE('',#44,#46); 57#48=CARTESIAN_POINT('',(1.57079632679,1.0)); 58#49=DIRECTION('',(-1.0,0.0)); 59#50=VECTOR('',#49,1.57079632679); 60#51=LINE('',#48,#50); 61#52=DEFINITIONAL_REPRESENTATION('pcdef',(#51),#11); 62#53=PCURVE('pc',#10,#52); 63#54=SURFACE_CURVE('sc',#47,(#53),.PCURVE_S1.); 64#55=EDGE_CURVE('ec',#18,#19,#54,.T.); 65#56=CARTESIAN_POINT('',(1.1,0.0,2.0)); 66#57=DIRECTION('',(0.0,0.0,-1.0)); 67#58=VECTOR('',#57,2.0); 68#59=LINE('',#56,#58); 69#60=CARTESIAN_POINT('',(0.0,1.0)); 70#61=DIRECTION('',(0.0,-1.0)); 71#62=VECTOR('',#61,1.0); 72#63=LINE('',#60,#62); 73#64=DEFINITIONAL_REPRESENTATION('pcdef',(#63),#11); 74#65=PCURVE('pc',#10,#64); 75#66=SURFACE_CURVE('sc',#59,(#65),.PCURVE_S1.); 76#67=EDGE_CURVE('ec',#19,#16,#66,.T.); 77#68=ORIENTED_EDGE('',$,$,#31,.T.); 78#69=ORIENTED_EDGE('',$,$,#43,.T.); 79#70=ORIENTED_EDGE('',$,$,#55,.T.); 80#71=ORIENTED_EDGE('',$,$,#67,.T.); 81#72=EDGE_LOOP('',(#68,#69,#70,#71)); 82#73=FACE_OUTER_BOUND('',#72,.T.); 83#74=ADVANCED_FACE('',(#73),#10,.T.); 84#75=OPEN_SHELL('',(#74)); 85#76=SHELL_BASED_SURFACE_MODEL('',(#75)); 86#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 87#9051=PRODUCT('Gs052','Gs052','',(#9050)); 88#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 89#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 90#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 91#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 92#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 93#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 94#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 95#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 96#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 97#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#76),#9060); 98#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 99ENDSEC; 100END-ISO-10303-21;