step-examples/12-2c-surfaces/Gs043.stp
Sources
- 16-iso-spec ISO 10303-42 §OFFSET_CURVE_3D
Description
An OFFSET_CURVE_3D with ref_distance equal to the local radius of curvature creates a cusp at every point of that curvature. The mathematical offset is undefined at such points (the offset point coincides with the curve's center of curvature; 0/0 arises in the offset's first derivative). For a circular basis of radius R, an offset of -R collapses the entire offset to the center.
Reproducer recipe
CIRCLE radius 5.0; OFFSET_CURVE_3D over it with ref_distance = -5.0 → entire curve collapses to center point.
Expected kernel behavior
detect collapse / cusp at construction time and either reject the offset as degenerate or treat the result as a point set rather than a curve.
Notes
**See also**: Gs048. Synonyms: "OFFSET_CURVE_3D ref_distance equal to radius of curvature creates collapse", "circle offset by negative radius collapses to centre", "offset curve cusp at every point", "0/0 in offset curve first derivative", "offset distance equals local radius produces degeneracy".
Expected validation
occt=shape(1)/shape(1) gmsh=shape(9) ifc=schema_n/a
Byte assertions
contains(b'OFFSET_CURVE_3D(')contains(b'-5.0')contains(b'CIRCLE(')
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/* Gs043: PLANE IS ADVANCED_FACE.face_geometry; OFFSET_CURVE_3D over CIRCLE(radius=5.0) with ref_distance=-5.0 (entire offset collapses to center) IS curve_3d of defect EDGE_CURVE; collapsed offset IS wired into face topology; shape(1) (live OCC heals) */ 3HEADER; 4FILE_DESCRIPTION(('Gs043'),'2;1'); 5FILE_NAME('Gs043.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,0.0)); 11#2=DIRECTION('',(0.0,0.0,1.0)); 12#3=DIRECTION('',(1.0,0.0,0.0)); 13#4=AXIS2_PLACEMENT_3D('gs043_ax',#1,#2,#3); 14#5=PLANE('gs043_plane',#4); 15#6=(GEOMETRIC_REPRESENTATION_CONTEXT(2)PARAMETRIC_REPRESENTATION_CONTEXT()REPRESENTATION_CONTEXT('UV','2D')); 16#7=CARTESIAN_POINT('',(0.0,0.0,0.0)); 17#8=DIRECTION('',(0.0,0.0,1.0)); 18#9=DIRECTION('',(1.0,0.0,0.0)); 19#10=AXIS2_PLACEMENT_3D('gs043_circ_ax',#7,#8,#9); 20#11=CIRCLE('gs043_circle',#10,5.0); 21#12=DIRECTION('',(0.0,0.0,1.0)); 22#13=OFFSET_CURVE_3D('gs043_oc3d',#11,-5.0,.F.,#12); 23#14=CARTESIAN_POINT('',(5.0,0.0,0.0)); 24#15=CARTESIAN_POINT('',(0.0,5.0,0.0)); 25#16=CARTESIAN_POINT('',(-5.0,0.0,0.0)); 26#17=CARTESIAN_POINT('',(0.0,-5.0,0.0)); 27#18=VERTEX_POINT('',#14); 28#19=VERTEX_POINT('',#15); 29#20=VERTEX_POINT('',#16); 30#21=VERTEX_POINT('',#17); 31#22=CARTESIAN_POINT('',(1.0,0.0)); 32#23=DIRECTION('',(0.0,1.0)); 33#24=VECTOR('',#23,1.0); 34#25=LINE('',#22,#24); 35#26=DEFINITIONAL_REPRESENTATION('pcdef_e0',(#25),#6); 36#27=PCURVE('pc_e0',#5,#26); 37#28=SURFACE_CURVE('sc_e0',#13,(#27),.PCURVE_S1.); 38#29=EDGE_CURVE('ec_e0',#18,#19,#28,.T.); 39#30=CARTESIAN_POINT('',(0.0,5.0,0.0)); 40#31=DIRECTION('',(-1.0,0.0,0.0)); 41#32=VECTOR('',#31,5.0); 42#33=LINE('',#30,#32); 43#34=CARTESIAN_POINT('',(0.0,1.0)); 44#35=DIRECTION('',(-1.0,0.0)); 45#36=VECTOR('',#35,1.0); 46#37=LINE('',#34,#36); 47#38=DEFINITIONAL_REPRESENTATION('pcdef',(#37),#6); 48#39=PCURVE('pc',#5,#38); 49#40=SURFACE_CURVE('sc',#33,(#39),.PCURVE_S1.); 50#41=EDGE_CURVE('ec',#19,#20,#40,.T.); 51#42=CARTESIAN_POINT('',(-5.0,0.0,0.0)); 52#43=DIRECTION('',(0.0,-1.0,0.0)); 53#44=VECTOR('',#43,5.0); 54#45=LINE('',#42,#44); 55#46=CARTESIAN_POINT('',(-1.0,0.0)); 56#47=DIRECTION('',(0.0,-1.0)); 57#48=VECTOR('',#47,1.0); 58#49=LINE('',#46,#48); 59#50=DEFINITIONAL_REPRESENTATION('pcdef',(#49),#6); 60#51=PCURVE('pc',#5,#50); 61#52=SURFACE_CURVE('sc',#45,(#51),.PCURVE_S1.); 62#53=EDGE_CURVE('ec',#20,#21,#52,.T.); 63#54=CARTESIAN_POINT('',(0.0,-5.0,0.0)); 64#55=DIRECTION('',(1.0,0.0,0.0)); 65#56=VECTOR('',#55,5.0); 66#57=LINE('',#54,#56); 67#58=CARTESIAN_POINT('',(0.0,-1.0)); 68#59=DIRECTION('',(1.0,0.0)); 69#60=VECTOR('',#59,1.0); 70#61=LINE('',#58,#60); 71#62=DEFINITIONAL_REPRESENTATION('pcdef',(#61),#6); 72#63=PCURVE('pc',#5,#62); 73#64=SURFACE_CURVE('sc',#57,(#63),.PCURVE_S1.); 74#65=EDGE_CURVE('ec',#21,#18,#64,.T.); 75#66=ORIENTED_EDGE('',$,$,#29,.T.); 76#67=ORIENTED_EDGE('',$,$,#41,.T.); 77#68=ORIENTED_EDGE('',$,$,#53,.T.); 78#69=ORIENTED_EDGE('',$,$,#65,.T.); 79#70=EDGE_LOOP('',(#66,#67,#68,#69)); 80#71=FACE_OUTER_BOUND('',#70,.T.); 81#72=ADVANCED_FACE('',(#71),#5,.T.); 82#73=OPEN_SHELL('',(#72)); 83#74=SHELL_BASED_SURFACE_MODEL('',(#73)); 84#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 85#9051=PRODUCT('Gs043','Gs043','',(#9050)); 86#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 87#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 88#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 89#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 90#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 91#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 92#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 93#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 94#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 95#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#74),#9060); 96#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 97ENDSEC; 98END-ISO-10303-21;