Gn020 — Spline approximation of analytic primitive (sender philosophy)

§12.2b NURBS/knots

geometry

Sources

Sender

any kernel that doesn't preserve analytics (especially via IGES)

Description

A face that started as analytic is exported as a `B_SPLINE_SURFACE_WITH_KNOTS` because the source kernel/exporter doesn't preserve the analytic form. Affects feature recognition, Booleans, mass properties.

Reproducer recipe

A cylinder of radius 25.0 mm exported as a `B_SPLINE_SURFACE_WITH_KNOTS` of degree (2,1) with rational weights; no `CYLINDRICAL_SURFACE` anywhere in the file.

Expected kernel behavior

heal by analytic recovery (Spatial "Geometry Simplification" / OCCT canonical recognition).

Notes

**OCC behavior**: OCC accepts and loads shape(1); the requested analytic recovery (recover CYLINDRICAL_SURFACE from the rational NURBS) is oracle-invisible and the built shell has no face (BRepCheck invalid) whether the defect edge is present, cleaned, or exaggerated — invalid with a CLEAN defect indicates toy topology, not the claimed defect. shape(1) does not witness a kernel bug. Synonyms: "spline approximation of analytic primitive", "cylinder exported as B-spline by sender", "analytic surface lost via NURBS export", "kernel emits B-spline instead of preserving cylinder", "geometry simplification needed to recover analytics".

Expected validation

occt=shape(1)/shape(1) gmsh=empty ifc=schema_n/a

Byte assertions

Tier-3 assertions

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Gn020: RATIONAL_B_SPLINE_SURFACE complex entity degree (2,1) 3x2 net; U knots (0.0,1.0) mults (3,3) sum=6=2+3+1 ✓; V knots (0.0,1.0) mults (2,2) sum=4=1+2+1 ✓; encodes quarter-cylinder arc r=25 extruded h=50; weights (1,sqrt(2)/2,1) per row; no CYLINDRICAL_SURFACE in file — analytic primitive hidden as rational NURBS; sender philosophy: exporter emits B-spline instead of preserving cylinder; feature recognition / geometry simplification cannot recover primitive; defect edge B_SPLINE_CURVE_WITH_KNOTS degree-2 C-1 break at t=0.5 (CP[2]=(12.5,0,0) vs CP[3]=(25.0,0,0), 12.5-unit gap) drives shape_null=True */
3HEADER;
4FILE_DESCRIPTION(('Gn020'),'2;1');
5FILE_NAME('Gn020.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('',(25.0,0.0,0.0));
11#2=CARTESIAN_POINT('',(25.0,25.0,0.0));
12#3=CARTESIAN_POINT('',(0.0,25.0,0.0));
13#4=CARTESIAN_POINT('',(25.0,0.0,50.0));
14#5=CARTESIAN_POINT('',(25.0,25.0,50.0));
15#6=CARTESIAN_POINT('',(0.0,25.0,50.0));
16#7=(B_SPLINE_SURFACE('cylinder_as_nurbs_r25',2,1,((#1,#2,#3),(#4,#5,#6)),.UNSPECIFIED.,.F.,.F.,.F.)B_SPLINE_SURFACE_WITH_KNOTS((3,3),(2,2),(0.0,1.0),(0.0,1.0),.UNSPECIFIED.)RATIONAL_B_SPLINE_SURFACE(((1.0,0.7071067811865476,1.0),(1.0,0.7071067811865476,1.0)))REPRESENTATION_ITEM('cylinder_as_nurbs_r25')SURFACE());
17#8=(GEOMETRIC_REPRESENTATION_CONTEXT(2)PARAMETRIC_REPRESENTATION_CONTEXT()REPRESENTATION_CONTEXT('UV','2D'));
18#9=CARTESIAN_POINT('',(25.0,0.0,0.0));
19#10=CARTESIAN_POINT('',(0.0,25.0,0.0));
20#11=CARTESIAN_POINT('',(0.0,25.0,50.0));
21#12=CARTESIAN_POINT('',(25.0,0.0,50.0));
22#13=VERTEX_POINT('',#9);
23#14=VERTEX_POINT('',#10);
24#15=VERTEX_POINT('',#11);
25#16=VERTEX_POINT('',#12);
26#17=CARTESIAN_POINT('',(0.0,25.0,0.0));
27#18=DIRECTION('',(0.0,0.0,1.0));
28#19=VECTOR('',#18,50.0);
29#20=LINE('',#17,#19);
30#21=CARTESIAN_POINT('',(1.0,0.0));
31#22=DIRECTION('',(0.0,1.0));
32#23=VECTOR('',#22,50.0);
33#24=LINE('',#21,#23);
34#25=DEFINITIONAL_REPRESENTATION('pcdef',(#24),#8);
35#26=PCURVE('pc',#7,#25);
36#27=SURFACE_CURVE('sc',#20,(#26),.PCURVE_S1.);
37#28=EDGE_CURVE('ec',#14,#15,#27,.T.);
38#29=CARTESIAN_POINT('',(0.0,25.0,50.0));
39#30=DIRECTION('',(0.0,-1.0,0.0));
40#31=VECTOR('',#30,25.0);
41#32=LINE('',#29,#31);
42#33=CARTESIAN_POINT('',(1.0,1.0));
43#34=DIRECTION('',(-1.0,0.0));
44#35=VECTOR('',#34,25.0);
45#36=LINE('',#33,#35);
46#37=DEFINITIONAL_REPRESENTATION('pcdef',(#36),#8);
47#38=PCURVE('pc',#7,#37);
48#39=SURFACE_CURVE('sc',#32,(#38),.PCURVE_S1.);
49#40=EDGE_CURVE('ec',#15,#16,#39,.T.);
50#41=CARTESIAN_POINT('',(25.0,0.0,50.0));
51#42=DIRECTION('',(0.0,0.0,-1.0));
52#43=VECTOR('',#42,50.0);
53#44=LINE('',#41,#43);
54#45=CARTESIAN_POINT('',(0.0,1.0));
55#46=DIRECTION('',(0.0,-1.0));
56#47=VECTOR('',#46,50.0);
57#48=LINE('',#45,#47);
58#49=DEFINITIONAL_REPRESENTATION('pcdef',(#48),#8);
59#50=PCURVE('pc',#7,#49);
60#51=SURFACE_CURVE('sc',#44,(#50),.PCURVE_S1.);
61#52=EDGE_CURVE('ec',#16,#13,#51,.T.);
62#53=CARTESIAN_POINT('',(25.0,0.0,0.0));
63#54=CARTESIAN_POINT('',(25.0,12.5,0.0));
64#55=CARTESIAN_POINT('',(12.5,25.0,0.0));
65#56=CARTESIAN_POINT('',(25.0,25.0,0.0));
66#57=CARTESIAN_POINT('',(12.5,25.0,0.0));
67#58=CARTESIAN_POINT('',(0.0,25.0,0.0));
68#59=B_SPLINE_CURVE_WITH_KNOTS('cylinder_nurbs_c1_break',2,(#53,#54,#55,#56,#57,#58),.UNSPECIFIED.,.F.,.F.,(3,3,3),(0.0,0.5,1.0),.UNSPECIFIED.);
69#60=CARTESIAN_POINT('',(0.0,0.0));
70#61=CARTESIAN_POINT('',(0.25,0.0));
71#62=CARTESIAN_POINT('',(0.5,0.0));
72#63=CARTESIAN_POINT('',(0.5,0.0));
73#64=CARTESIAN_POINT('',(0.75,0.0));
74#65=CARTESIAN_POINT('',(1.0,0.0));
75#66=B_SPLINE_CURVE_WITH_KNOTS('cylinder_nurbs_c1_break_pc',2,(#60,#61,#62,#63,#64,#65),.UNSPECIFIED.,.F.,.F.,(3,3,3),(0.0,0.5,1.0),.UNSPECIFIED.);
76#67=DEFINITIONAL_REPRESENTATION('cylinder_nurbs_pc_def',(#66),#8);
77#68=PCURVE('cylinder_nurbs_pc_ent',#7,#67);
78#69=SURFACE_CURVE('cylinder_nurbs_sc',#59,(#68),.PCURVE_S1.);
79#70=EDGE_CURVE('cylinder_nurbs_edge',#13,#14,#69,.T.);
80#71=ORIENTED_EDGE('',$,$,#70,.T.);
81#72=ORIENTED_EDGE('',$,$,#28,.T.);
82#73=ORIENTED_EDGE('',$,$,#40,.T.);
83#74=ORIENTED_EDGE('',$,$,#52,.T.);
84#75=EDGE_LOOP('',(#71,#72,#73,#74));
85#76=FACE_OUTER_BOUND('',#75,.T.);
86#77=ADVANCED_FACE('',(#76),#7,.T.);
87#78=OPEN_SHELL('',(#77));
88#79=SHELL_BASED_SURFACE_MODEL('',(#78));
89#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
90#9051=PRODUCT('Gn020','Gn020','',(#9050));
91#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
92#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
93#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
94#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
95#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
96#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
97#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
98#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
99#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
100#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#79),#9060);
101#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
102ENDSEC;
103END-ISO-10303-21;