Gs067 — ShapeUpgrade_ConvertSurfaceToBezierBasis offset surface with negative distance

§12.2c

geometry

Sources

Description

ShapeUpgrade_ConvertSurfaceToBezierBasis offset surface with negative distance

Reproducer recipe

Expected kernel behavior

Accept: a bare OFFSET_SURFACE with distance -2.5 wrapping a PLANE, standalone in a GEOMETRIC_CURVE_SET with no face built on it. A negative offset distance is not an error -- it means the offset surface lies on the opposite side of the base surface's normal from a positive offset. A kernel should preserve the sign and place the resulting plane 2.5mm on that opposite side, not clamp, discard, or silently flip it.

Expected validation

occt=shape(1)/shape(1) gmsh=shape(3) ifc=schema_n/a

Tier-3 assertions

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes
1ISO-10303-21;
2/* Gs067: OFFSET_SURFACE (distance=-2.5) wrapping PLANE IS inside GEOMETRIC_CURVE_SET; negative distance (sign-flipped offset, plane on opposite side) IS the defect; ConvertSurfaceToBezierBasis ignores offset sign, collapses or inverts surface IS the mechanism failure; shape_null */
3HEADER;
4FILE_DESCRIPTION(('Gs067'),'2;1');
5FILE_NAME('Gs067.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('gs067_pl_ax',#1,#2,#3);
14#5=PLANE('gs067_plane',#4);
15#6=OFFSET_SURFACE('gs067_offset',#5,-2.5,.F.);
16#7=CARTESIAN_POINT('',(0.0,0.0,0.0));
17#8=CARTESIAN_POINT('',(0.0,0.0,-2.5));
18#9=CARTESIAN_POINT('',(1.0,1.0,-2.5));
19#10=GEOMETRIC_CURVE_SET('gs067_gcs',(#6,#7,#8,#9));
20#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
21#9051=PRODUCT('Gs067','Gs067','',(#9050));
22#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
23#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
24#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
25#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
26#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
27#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
28#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
29#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
30#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
31#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#10),#9060);
32#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
33ENDSEC;
34END-ISO-10303-21;