step-examples/12-2c-surfaces/Gs078.stp
Sources
- synthesized — no external source cited
Description
Offset-of-Offset Sign Error
Reproducer recipe
Expected kernel behavior
Accept: two nested OFFSET_SURFACE entities (each +0.5) wrapping a base PLANE, standalone in a GEOMETRIC_CURVE_SET with no face. A kernel evaluating this surface chain must compose the offsets by simple addition along the shared normal (net +1.0mm from the base plane) and must not lose or flip the sign of either offset while resolving the wrapper chain.
Expected validation
occt=shape(1)/shape(1) gmsh=shape(4) ifc=schema_n/a
Tier-3 assertions
shape_null == Falsen_vertices_total == 4
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* Gs078: nested OFFSET_SURFACE (outer +0.5 wraps inner +0.5 wrapping PLANE) IS inside GEOMETRIC_CURVE_SET; total expected Z-offset = +1.0 IS the correct result; ConvertSurfaceToBezierBasis sign error in recursive offset chain IS the mechanism failure; computes Z=0.0 or Z=-1.0 instead of +1.0; shape_null */ 3HEADER; 4FILE_DESCRIPTION(('Gs078'),'2;1'); 5FILE_NAME('Gs078.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('gs078_pl_ax',#1,#2,#3); 14#5=PLANE('gs078_base_plane',#4); 15#6=OFFSET_SURFACE('gs078_inner_offset',#5,0.5,.F.); 16#7=OFFSET_SURFACE('gs078_outer_offset',#6,0.5,.F.); 17#8=CARTESIAN_POINT('',(0.0,0.0,0.0)); 18#9=CARTESIAN_POINT('',(0.0,0.0,0.5)); 19#10=CARTESIAN_POINT('',(0.0,0.0,1.0)); 20#11=CARTESIAN_POINT('',(0.0,0.0,-1.0)); 21#12=GEOMETRIC_CURVE_SET('gs078_gcs',(#7,#6,#8,#9,#10,#11)); 22#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 23#9051=PRODUCT('Gs078','Gs078','',(#9050)); 24#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 25#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 26#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 27#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 28#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 29#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 30#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 31#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 32#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 33#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#12),#9060); 34#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 35ENDSEC; 36END-ISO-10303-21;