step-examples/12-2b-nurbs/Gn087.stp
Sources
- synthesized — no external source cited
Description
ShapeUpgrade_SplitSurface.SetUSplitValues neg-zero
Reproducer recipe
Expected kernel behavior
heal: the surface's U-knot vector begins with -0.0 (negative-zero) rather than 0.0 -- the same real value under IEEE-754 equality, but a distinct bit pattern. Deduplication logic over knot/split-parameter lists must compare values numerically (== on the real value, or within tolerance), not by bit pattern or naive formatting, so -0.0 and 0.0 are correctly treated as one boundary value and not as two, which would otherwise produce a spurious extra split at the surface's own boundary.
Expected validation
occt=shape(1)/shape(1) gmsh=shape(9) ifc=schema_n/a
Tier-3 assertions
shape_null == Falsen_faces_total == 1n_edges_total == 4n_vertices_total == 9face[0].surface_type == "bspline"face[0].bspline.u_degree == 2face[0].bspline.v_degree == 2
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* Gn087: B_SPLINE_SURFACE_WITH_KNOTS (degree 2x2, 3x3 control net); U-knot vector starts with -0.0 instead of 0.0; SetUSplitValues dedup does not treat -0.0 == 0.0; spurious split at boundary; GEOMETRIC_CURVE_SET IS model entity â OCC yields empty */ 3HEADER; 4FILE_DESCRIPTION(('Gn087'),'2;1'); 5FILE_NAME('Gn087.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=CARTESIAN_POINT('',(0.0,0.0,0.0)); 12#3=CARTESIAN_POINT('',(0.0,5.0,0.0)); 13#4=CARTESIAN_POINT('',(0.0,10.0,0.0)); 14#5=CARTESIAN_POINT('',(5.0,0.0,0.0)); 15#6=CARTESIAN_POINT('',(5.0,5.0,0.0)); 16#7=CARTESIAN_POINT('',(5.0,10.0,0.0)); 17#8=CARTESIAN_POINT('',(10.0,0.0,0.0)); 18#9=CARTESIAN_POINT('',(10.0,5.0,0.0)); 19#10=CARTESIAN_POINT('',(10.0,10.0,0.0)); 20#11=B_SPLINE_SURFACE_WITH_KNOTS('neg_zero_split_test',2,2,((#2,#3,#4),(#5,#6,#7),(#8,#9,#10)),.UNSPECIFIED.,.F.,.F.,.F.,(3,3),(3,3),(-0.0,1.0),(0.0,1.0),.UNSPECIFIED.); 21#12=GEOMETRIC_CURVE_SET('neg_zero_surf',(#1,#11)); 22#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 23#9051=PRODUCT('Gn087','Gn087','',(#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;