step-examples/12-2c-surfaces/Gs137.stp
Sources
- OCCT/ShapeAnalysis (see fixture)
Description
Split parameter at irrational position (e.g. π/√2 ≈ 2.221) gets clamped to nearest representable machine-precision double.
Reproducer recipe
Expected kernel behavior
FLAG -- title/description contradict the bytes, and the file crashes OCCT (measured occt=signal(11)): the closure edge's LINE entity, `#70=LINE('',#60,#60);`, passes a CARTESIAN_POINT (#60) as its second parameter where a VECTOR is required -- the same type-mismatch pattern as Gs136, not 'irrational split parameter clamping'. The B_SPLINE_SURFACE_WITH_KNOTS entity here is also malformed: only 9 of the required 13 arguments are given (surface_form and knot_spec are missing). Actual kernel behavior: reject at parse time for both reasons -- a kernel must type-check every entity reference against the EXPRESS schema before use, and must validate an entity's argument count against its definition; it must never reach geometric evaluation on data this malformed.
Notes
synthesized from earlier wave; backfilled from fixture comment
Expected validation
occt=signal(11)/signal(11) gmsh=signal(11) ifc=schema_n/a
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* Gs137 - ShapeUpgrade_SplitSurface non-axis-aligned-split 3 * 4 * Defect: Split parameter at irrational position (e.g. Ï/â2 â 2.221) gets 5 * clamped to nearest representable machine-precision double. SplitSurface 6 * doesn't preserve semantic intent; numerical rounding creates artificial 7 * split discontinuities or produces mathematically singular split points. 8 * 9 * Reproducer: NURBS surface with split request at u = Ï/(2â2). The clamping 10 * logic rounds to nearest knot-span boundary, creating a split not at the 11 * requested parameter but at an adjacent knot value. 12 * 13 * Expected kernel behavior: 14 * heal - use rational parameters or preserve split-intent tolerance; 15 * document rounding behavior and allow client-side adjustment. */ 16HEADER; 17FILE_DESCRIPTION(('Gs137 test case','Irrational split parameter clamping'),'2;1'); 18FILE_NAME('Gs137.stp','2026-06-15T00:00:00',(''),(''),'auto-generated','',''); 19FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 20ENDSEC; 21DATA; 22#1=APPLICATION_CONTEXT('automotive_design'); 23#2=APPLICATION_PROTOCOL_DEFINITION('international standard','automotive_design',2000,#1); 24/* Base coordinate system */ 25#10=CARTESIAN_POINT('',(0.0,0.0,0.0)); 26#11=DIRECTION('',(0.0,0.0,1.0)); 27#12=DIRECTION('',(1.0,0.0,0.0)); 28#13=AXIS2_PLACEMENT_3D('',#10,#11,#12); 29/* Control points for degree-3 B-spline */ 30#20=CARTESIAN_POINT('',(0.0,0.0,0.0)); 31#21=CARTESIAN_POINT('',(1.5,0.3,0.2)); 32#22=CARTESIAN_POINT('',(3.0,0.2,0.5)); 33#23=CARTESIAN_POINT('',(4.5,0.4,0.3)); 34#24=CARTESIAN_POINT('',(6.0,0.0,0.0)); 35#25=CARTESIAN_POINT('',(0.0,2.0,0.8)); 36#26=CARTESIAN_POINT('',(1.5,2.5,1.0)); 37#27=CARTESIAN_POINT('',(3.0,2.3,1.3)); 38#28=CARTESIAN_POINT('',(4.5,2.4,1.1)); 39#29=CARTESIAN_POINT('',(6.0,2.0,0.8)); 40/* Degree-3 B-spline surface with non-uniform knots */ 41#50=B_SPLINE_SURFACE_WITH_KNOTS('',3,1,(#20,#21,#22,#23,#24,#25,#26,#27,#28,#29), 42 ((0.0,0.0,0.0,0.0,2.221,4.442,6.0,6.0,6.0,6.0),(0.0,0.0,1.0,1.0)), 43 ((1.0,1.0,1.0,1.0),(1.0,1.0)),.F.,.F.,.F.); 44/* Edge vertices */ 45#60=CARTESIAN_POINT('',(0.0,0.0,0.0)); 46#61=VERTEX_POINT('',#60); 47#62=CARTESIAN_POINT('',(6.0,0.0,0.0)); 48#63=VERTEX_POINT('',#62); 49/* Degenerate edge */ 50#70=LINE('',#60,#60); 51#71=EDGE_CURVE('',#61,#63,#70,.T.); 52#72=ORIENTED_EDGE('',*,*,#71,.T.); 53#80=EDGE_LOOP('',(#72)); 54#81=FACE_OUTER_BOUND('',#80,.T.); 55#82=ADVANCED_FACE('',(#81),#50,.T.); 56/* PRODUCT chain */ 57#9000=PRODUCT_CONTEXT('',#1,'mechanical'); 58#9001=PRODUCT('Gs137','Gs137','',(#9000)); 59#9002=PRODUCT_DEFINITION_FORMATION('','',#9001); 60#9003=PRODUCT_DEFINITION_CONTEXT('part definition',#1,'design'); 61#9004=PRODUCT_DEFINITION('','',#9002,#9003); 62#9005=PRODUCT_DEFINITION_SHAPE('','',#9004); 63#9006=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 64#9007=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 65#9008=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 66#9009=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9006,'distance_accuracy_value',''); 67#9010=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9009))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9006,#9007,#9008))REPRESENTATION_CONTEXT('','3D')); 68#9022=GEOMETRICALLY_BOUNDED_SURFACE_SHAPE_REPRESENTATION('',(#82),#9010); 69#9023=SHAPE_DEFINITION_REPRESENTATION(#9005,#9022); 70ENDSEC; 71END-ISO-10303-21;