step-examples/12-2c-surfaces/Gb003.stp
Sources
- OCCT GeomLib_CheckBSplineCurve (uncovered class evidence)
Sender
deduced — OCCT uncovered-class sweep
Description
A `B_SPLINE_CURVE_WITH_KNOTS` declares `closed = .T.` and the first/last control points coincide, but the start and end tangents differ in sign; meaning the curve closes positionally but the tangent has a sharp reversal at the closure point (a cusp). Bug-reporter language: "closed B-spline has cusp", "closure tangent reversed", "C0 closure but no C1".
Reproducer recipe
A degree-3 B-spline with knot vector `(0,0,0,0,1,1,1,1)` and control points (1,0,0), (0,1,0), (-1,0,0), (0,-1,0), (1,0,0). Marked closed; tangents at start vs end are perpendicular but the file claims smooth closure.
Expected kernel behavior
Reject the smooth-closure claim; or open the curve at the cusp.
Notes
**Honest reclassification (2026-08-10)**: orphaned-defect carrier with a wrong-type binding — the titled closed-B-spline cusp is NOT demonstrated. The closed B-spline CURVE #6 is bound as the `face_geometry` of `ADVANCED_FACE` #10 where a SURFACE is declared (`struct == SLOT_TYPE`, the asserted verdict — a curve is not a surface), and #10's `OPEN_SHELL` is unreferenced by the empty `SHELL_BASED_SURFACE_MODEL('',())`. Bug-reporter synonyms: "B-spline cusp at closure", "tangent jump at periodicity". Bytes alone are insufficient to demonstrate the titled defect; needs a sibling input fixture. Tagged provenance_tier: runtime-only. **OCC behavior**: crashes with signal(11) (SIGSEGV) during transfer — RUNTIME-VERIFIED (2026-08-10, validation/.venv OCP/OCCT 7.8.1) the crash comes from the empty surface model (`struct == EMPTY_AGGREGATE` at #12), not the titled cusp; the wrong-type curve-as-surface (#10) and the cusp curve (#6) sit upstream and are never reached. Kernel-bug witnessed: the empty-aggregate crash is a genuine robustness failure (receivers must reject an empty shell model); the reversed-end-tangent condition is byte-level / runtime-only provenance. Synonyms: "B-spline cusp at closure", "tangent jump at periodicity", "closed B-spline has reversed end-tangent", "closure tangent reversed", "C0 closure but no C1 on closed BSpline".
Expected validation
occt=signal(11)/signal(11) gmsh=signal(11) ifc=schema_n/a
Provenance tier
runtime-only — defect not fully embodied in fixture bytes.
Byte assertions
contains(b'B_SPLINE_CURVE_WITH_KNOTS(')contains(b'.T.,.F.')count_entity_def(b'CARTESIAN_POINT') == 5
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* Gb003: B_SPLINE_CURVE_WITH_KNOTS degree-3 closed=.T. 5 control points cp[0]==cp[4]=(1,0,0); tangent at t=0 != tangent at t=1 (cusp); IS ADVANCED_FACE.face_geometry (3D curve used as surface entity); VERTEX_LOOP at (1,0,0) wires boundary; shape_null=True; exactly 5 CARTESIAN_POINT entities */ 3HEADER; 4FILE_DESCRIPTION(('Gb003'),'2;1'); 5FILE_NAME('Gb003.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('',(1.0,0.0,0.0)); 11#2=CARTESIAN_POINT('',(0.0,1.0,0.0)); 12#3=CARTESIAN_POINT('',(-1.0,0.0,0.0)); 13#4=CARTESIAN_POINT('',(0.0,-1.0,0.0)); 14#5=CARTESIAN_POINT('',(1.0,0.0,0.0)); 15#6=B_SPLINE_CURVE_WITH_KNOTS('gb003_cusp_close',3,(#1,#2,#3,#4,#5),.UNSPECIFIED.,.T.,.F.,(4,4),(0.0,1.0),.UNSPECIFIED.); 16#7=VERTEX_POINT('',#1); 17#8=VERTEX_LOOP('gb003_vloop',#7); 18#9=FACE_OUTER_BOUND('gb003_fob',#8,.T.); 19#10=ADVANCED_FACE('gb003_face',(#9),#6,.T.); 20#11=OPEN_SHELL('gb003_shell',(#10)); 21#12=SHELL_BASED_SURFACE_MODEL('',()); 22#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 23#9051=PRODUCT('Gb003','Gb003','',(#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;