step-examples/12-2b-nurbs/Gn003.stp
Sources
- 08-occt-gitlog.md (G023, Mantis 0027575, OCCT 7252382)
Description
`B_SPLINE_CURVE_WITH_KNOTS` with an empty `control_points_list` (and matching empty knots/multiplicities). Translation throws an exception.
Reproducer recipe
`B_SPLINE_CURVE_WITH_KNOTS('',3,(),.UNSPECIFIED.,.F.,.F.,(),(),.UNSPECIFIED.);`
Expected kernel behavior
reject the curve with a precise diagnostic; emit a warning; continue translating the remainder of the file.
Notes
Cross-oracle: pure-Python Part-21 validator accepts (`accept`); OCCT crashes (`signal(11)`). The crash is on the kernel side; the file is spec-conformant Part-21.
Expected validation
occt=signal(11)/signal(11) gmsh=signal(11) ifc=schema_n/a
Byte assertions
contains(b'B_SPLINE_CURVE')
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* Gn003: B_SPLINE_CURVE_WITH_KNOTS with empty control_points_list, empty knots, empty knot_multiplicities; ISO 10303-42 requires at least (degree+1) control points and a knot vector with at least two distinct values; OCCT historically threw from RWStepGeom_RWBSplineCurveWithKnots on this; reject: emit E_EMPTY_BSPLINE_CURVE with offset; continue translating */ 3HEADER; 4FILE_DESCRIPTION(('Gn003'),'2;1'); 5FILE_NAME('Gn003.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','',''); 6FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 7ENDSEC; 8DATA; 9#1=CARTESIAN_POINT('',(0.0,0.0,0.0)); 10#2=CARTESIAN_POINT('',(1.0,0.0,0.0)); 11#3=B_SPLINE_CURVE_WITH_KNOTS('empty',3,(),.UNSPECIFIED.,.F.,.F.,(),(),.UNSPECIFIED.); 12ENDSEC; 13END-ISO-10303-21;