step-examples/12-4-tolerance/N030.stp
Sources
- 05-occt-shapefix F076
- 13-quaoar B030
- 21-patents X025
- 11-translator-vendors W015
Description
A surface that mathematically is a `PLANE` / `CYLINDRICAL_SURFACE` / `CONICAL_SURFACE` / `SPHERICAL_SURFACE` / `TOROIDAL_SURFACE` / `SURFACE_OF_LINEAR_EXTRUSION` is stored as a generic `B_SPLINE_SURFACE_WITH_KNOTS`. Common shape: a quarter cylinder modelled as a degree-2-by-1 B-spline with a 3×2 control net plus a small declared canonicalisation tolerance (e.g. 1e-6). Feature recognition (hole/shaft detection), unfolding, CAM tool-axis derivation, DXF/SVG export, and GD&T tools all degrade silently because they cannot ask the surface for its radius or axis. Canonical-recognition tolerance (how tightly the BSpline must fit the analytic form) is rarely exposed.
Reproducer recipe
Import a STEP from a system that always writes NURBS; query a "cylindrical" face's `BRepAdaptor_Surface::GetType()` — returns `GeomAbs_BSplineSurface` instead of `GeomAbs_Cylinder`.
Expected kernel behavior
heal; `convert-to-canonical` / `ShapeCustom_BSplineRestriction` with a tolerance recovers the analytic form; reject canonicalization if recovered surface deviates beyond user-supplied tolerance, since otherwise watertightness is lost.
Notes
**See also**: Pmi041, Gn014. Synonyms: "cylinder stored as B-spline instead of analytic", "feature recognition can't find hole as B-spline", "analytic surface lost as NURBS", "kernel doesn't recognize quarter cylinder", "B-spline that should be cylinder or plane". Provenance tier: bytes-only (Q5 full-corpus 2026-07-01).
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Provenance tier
bytes-only — defect not fully embodied in fixture bytes.
Byte assertions
contains(b'B_SPLINE_SURFACE_WITH_KNOTS')count_entity_def(b'CARTESIAN_POINT') == 8contains(b'1.0E-6')
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/* N030: quarter cylinder approximation as B_SPLINE_SURFACE_WITH_KNOTS deg 3x1; 4x2 control net = 8 CARTESIAN_POINTs; canonical recognition fails; tol 1.0E-6; GEOMETRIC_CURVE_SET â OCC yields empty */ 3HEADER; 4FILE_DESCRIPTION(('N030'),'2;1'); 5FILE_NAME('N030.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('',(1.0,0.0,0.0)); 10#2=CARTESIAN_POINT('',(0.866025403784,0.5,0.0)); 11#3=CARTESIAN_POINT('',(0.5,0.866025403784,0.0)); 12#4=CARTESIAN_POINT('',(0.0,1.0,0.0)); 13#5=CARTESIAN_POINT('',(1.0,0.0,1.0)); 14#6=CARTESIAN_POINT('',(0.866025403784,0.5,1.0)); 15#7=CARTESIAN_POINT('',(0.5,0.866025403784,1.0)); 16#8=CARTESIAN_POINT('',(0.0,1.0,1.0)); 17#9=B_SPLINE_SURFACE_WITH_KNOTS('qtr_cyl_bspline',3,1,((#1,#2,#3,#4),(#5,#6,#7,#8)),.UNSPECIFIED.,.F.,.F.,.F.,(4,4),(2,2),(0.0,1.0),(0.0,1.0),.UNSPECIFIED.); 18#10=GEOMETRIC_CURVE_SET('bspline_set',(#9)); 19#11=APPLICATION_CONTEXT('automotive_design'); 20#12=PRODUCT_CONTEXT('',#11,'mechanical'); 21#13=PRODUCT('N030','N030','',(#12)); 22#14=PRODUCT_DEFINITION_FORMATION('','',#13); 23#15=PRODUCT_DEFINITION_CONTEXT('part definition',#11,'design'); 24#16=PRODUCT_DEFINITION('','',#14,#15); 25#17=PRODUCT_DEFINITION_SHAPE('','',#16); 26#18=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 27#19=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 28#20=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 29#21=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-6),#18,'distance_accuracy_value','canonical_recognition_tolerance'); 30#22=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#21))GLOBAL_UNIT_ASSIGNED_CONTEXT((#18,#19,#20))REPRESENTATION_CONTEXT('ctx','3D')); 31#23=GEOMETRICALLY_BOUNDED_WIREFRAME_SHAPE_REPRESENTATION('',(#10),#22); 32#24=SHAPE_DEFINITION_REPRESENTATION(#17,#23); 33ENDSEC; 34END-ISO-10303-21;