step-examples/12-2b-nurbs/Gn014.stp
Sources
- 05-occt-shapefix.md (F076 `ShapeAnalysis_CanonicalRecognition`)
- 11-translator-vendors.md (W015)
- 13-quaoar.md (B030)
- 21-patents.md (X025)
Description
A face stored as `B_SPLINE_SURFACE_WITH_KNOTS` is mathematically a `PLANE`, `CYLINDRICAL_SURFACE`, `CONICAL_SURFACE`, `SPHERICAL_SURFACE`, or `TOROIDAL_SURFACE`. Common shape: degree 1×1 with a 2×2 control net is exactly a flat quad that should have been authored as a `PLANE`. Feature recognition (hole detection, axis derivation), unfolding, CAM tool-axis derivation and DXF/SVG export degrade silently because they cannot ask the B-spline surface for its radius/axis. IGES round-trip is the canonical lossy path.
Reproducer recipe
STEP file from a system that always writes NURBS (or after IGES round-trip): query a "cylindrical" face's `BRepAdaptor_Surface::GetType()` — returns `GeomAbs_BSplineSurface` instead of `GeomAbs_Cylinder`.
Expected kernel behavior
heal; fit candidate primitive within user-specified tolerance, replace surface; reject canonicalization if recovered surface deviates beyond tolerance (otherwise watertightness may be lost).
Notes
**See also**: Gs024, N030. **OCC behavior**: OCC loads the file and produces no shape (empty). Re-audit (2026-07-18, empty-claim re-audit) shows the empty is not caused by the declared defect (canonical recognition (NURBS that is exactly a PLANE)): the model is one hand-authored ADVANCED_FACE (B-spline surface with per-edge SURFACE_CURVE/PCURVE) in an OPEN_SHELL that OCC's STEP transfer never builds into a TopoDS face. Base, a CLEAN copy with the injected C-1-break defect edge closed, and a fully well-formed copy (declared defect repaired, scaffold pcurve domains corrected) are all empty (f=0); a genuinely-building B-spline face fixture (Gn024) loads f=1. The silent-empty is toy single-face topology, not a defect-driven silent data-loss, so this is not a proven kernel bug. Synonyms: "BSpline surface should be canonical plane", "B-spline that is actually a cylinder/cone/sphere/torus", "canonical recognition needed on NURBS", "feature recognition cannot find axis on B-spline cylinder", "analytic primitive lost in NURBS form".
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
contains(b'B_SPLINE_SURFACE')
Tier-3 assertions
shape_null == True
Cross-references
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* Gn014: B_SPLINE_SURFACE_WITH_KNOTS degree (1,1) 2x2 net at Z=0 over [0,3]x[0,3]; U knots (0.0,1.0) mults (2,2) sum=4=1+2+1 â; V knots (0.0,1.0) mults (2,2) sum=4=1+2+1 â; mathematically exact PLANE stored as NURBS â canonical recognition cannot recover analytic form; GetType() returns BSplineSurface not Plane; defect edge B_SPLINE_CURVE_WITH_KNOTS degree-2 C-1 break at t=0.5 (CP[2]=(1.5,0,0) vs CP[3]=(3.0,0,0), 1.5-unit gap) drives shape_null=True */ 3HEADER; 4FILE_DESCRIPTION(('Gn014'),'2;1'); 5FILE_NAME('Gn014.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,3.0,0.0)); 12#3=CARTESIAN_POINT('',(3.0,0.0,0.0)); 13#4=CARTESIAN_POINT('',(3.0,3.0,0.0)); 14#5=B_SPLINE_SURFACE_WITH_KNOTS('plane_as_nurbs',1,1,((#1,#2),(#3,#4)),.UNSPECIFIED.,.F.,.F.,.F.,(2,2),(2,2),(0.0,1.0),(0.0,1.0),.UNSPECIFIED.); 15#6=(GEOMETRIC_REPRESENTATION_CONTEXT(2)PARAMETRIC_REPRESENTATION_CONTEXT()REPRESENTATION_CONTEXT('UV','2D')); 16#7=CARTESIAN_POINT('',(0.0,0.0,0.0)); 17#8=CARTESIAN_POINT('',(3.0,0.0,0.0)); 18#9=CARTESIAN_POINT('',(3.0,3.0,0.0)); 19#10=CARTESIAN_POINT('',(0.0,3.0,0.0)); 20#11=VERTEX_POINT('',#7); 21#12=VERTEX_POINT('',#8); 22#13=VERTEX_POINT('',#9); 23#14=VERTEX_POINT('',#10); 24#15=CARTESIAN_POINT('',(3.0,0.0,0.0)); 25#16=DIRECTION('',(0.0,1.0,0.0)); 26#17=VECTOR('',#16,3.0); 27#18=LINE('',#15,#17); 28#19=CARTESIAN_POINT('',(3.0,0.0)); 29#20=DIRECTION('',(0.0,1.0)); 30#21=VECTOR('',#20,3.0); 31#22=LINE('',#19,#21); 32#23=DEFINITIONAL_REPRESENTATION('pcdef',(#22),#6); 33#24=PCURVE('pc',#5,#23); 34#25=SURFACE_CURVE('sc',#18,(#24),.PCURVE_S1.); 35#26=EDGE_CURVE('ec',#12,#13,#25,.T.); 36#27=CARTESIAN_POINT('',(3.0,3.0,0.0)); 37#28=DIRECTION('',(-1.0,0.0,0.0)); 38#29=VECTOR('',#28,3.0); 39#30=LINE('',#27,#29); 40#31=CARTESIAN_POINT('',(3.0,3.0)); 41#32=DIRECTION('',(-1.0,0.0)); 42#33=VECTOR('',#32,3.0); 43#34=LINE('',#31,#33); 44#35=DEFINITIONAL_REPRESENTATION('pcdef',(#34),#6); 45#36=PCURVE('pc',#5,#35); 46#37=SURFACE_CURVE('sc',#30,(#36),.PCURVE_S1.); 47#38=EDGE_CURVE('ec',#13,#14,#37,.T.); 48#39=CARTESIAN_POINT('',(0.0,3.0,0.0)); 49#40=DIRECTION('',(0.0,-1.0,0.0)); 50#41=VECTOR('',#40,3.0); 51#42=LINE('',#39,#41); 52#43=CARTESIAN_POINT('',(0.0,3.0)); 53#44=DIRECTION('',(0.0,-1.0)); 54#45=VECTOR('',#44,3.0); 55#46=LINE('',#43,#45); 56#47=DEFINITIONAL_REPRESENTATION('pcdef',(#46),#6); 57#48=PCURVE('pc',#5,#47); 58#49=SURFACE_CURVE('sc',#42,(#48),.PCURVE_S1.); 59#50=EDGE_CURVE('ec',#14,#11,#49,.T.); 60#51=CARTESIAN_POINT('',(0.0,0.0,0.0)); 61#52=CARTESIAN_POINT('',(0.75,0.0,0.0)); 62#53=CARTESIAN_POINT('',(1.5,0.0,0.0)); 63#54=CARTESIAN_POINT('',(3.0,0.0,0.0)); 64#55=CARTESIAN_POINT('',(3.5,0.0,0.0)); 65#56=CARTESIAN_POINT('',(3.0,0.0,0.0)); 66#57=B_SPLINE_CURVE_WITH_KNOTS('plane_as_nurbs_c1_break',2,(#51,#52,#53,#54,#55,#56),.UNSPECIFIED.,.F.,.F.,(3,3,3),(0.0,0.5,1.0),.UNSPECIFIED.); 67#58=CARTESIAN_POINT('',(0.0,0.0)); 68#59=CARTESIAN_POINT('',(0.25,0.0)); 69#60=CARTESIAN_POINT('',(0.5,0.0)); 70#61=CARTESIAN_POINT('',(0.5,0.0)); 71#62=CARTESIAN_POINT('',(0.75,0.0)); 72#63=CARTESIAN_POINT('',(1.0,0.0)); 73#64=B_SPLINE_CURVE_WITH_KNOTS('plane_as_nurbs_c1_break_pc',2,(#58,#59,#60,#61,#62,#63),.UNSPECIFIED.,.F.,.F.,(3,3,3),(0.0,0.5,1.0),.UNSPECIFIED.); 74#65=DEFINITIONAL_REPRESENTATION('plane_as_nurbs_pc_def',(#64),#6); 75#66=PCURVE('plane_as_nurbs_pc_ent',#5,#65); 76#67=SURFACE_CURVE('plane_as_nurbs_sc',#57,(#66),.PCURVE_S1.); 77#68=EDGE_CURVE('plane_as_nurbs_edge',#11,#12,#67,.T.); 78#69=ORIENTED_EDGE('',$,$,#68,.T.); 79#70=ORIENTED_EDGE('',$,$,#26,.T.); 80#71=ORIENTED_EDGE('',$,$,#38,.T.); 81#72=ORIENTED_EDGE('',$,$,#50,.T.); 82#73=EDGE_LOOP('',(#69,#70,#71,#72)); 83#74=FACE_OUTER_BOUND('',#73,.T.); 84#75=ADVANCED_FACE('',(#74),#5,.T.); 85#76=OPEN_SHELL('',(#75)); 86#77=SHELL_BASED_SURFACE_MODEL('',(#76)); 87#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 88#9051=PRODUCT('Gn014','Gn014','',(#9050)); 89#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 90#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 91#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 92#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 93#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 94#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 95#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 96#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 97#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 98#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#77),#9060); 99#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 100ENDSEC; 101END-ISO-10303-21;