Gn025 — Folded/non-injective BSpline surface (Jacobian flip)

§12.2b NURBS/knots

silent-loss geometry

Sources

Description

A `B_SPLINE_SURFACE_WITH_KNOTS` whose control net has interior rows that swap order, producing a fold where the Jacobian flips sign within the parameter range; surface is non-injective.

Reproducer recipe

NURBS surface whose two interior rows (e.g. row 2 and row 3 of a 5-row degree-3 net) swap relative position; reference from an `ADVANCED_FACE`.

Expected kernel behavior

heal by surface re-fit; reject with "non-injective surface parametrization" diagnostic; never silently use such a surface for projection.

Notes

**See also**: Gs010, Gs034. **OCC behavior**: silently accepts the folded surface and uses it for projection without a diagnostic; kernel mishandling; the catalog above forbids silent acceptance. Synonyms: "folded BSpline surface Jacobian flips sign", "non-injective NURBS surface parametrisation", "B-spline surface has interior rows transposed", "Jacobian sign change inside surface domain", "surface folds back on itself in parameter space".

Expected validation

occt=empty/empty gmsh=empty ifc=schema_n/a

Byte assertions

Tier-3 assertions

Cross-references

Gs010, Gs034

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Gn025: B_SPLINE_SURFACE_WITH_KNOTS degree (3,1) 5x2 net; U knots (0.0,0.5,1.0) mults (4,1,4) sum=9=3+5+1 ✓; V knots (0.0,1.0) mults (2,2) sum=4=1+2+1 ✓; rows Y=(0.0,2.0,4.0,3.0,6.0) — rows 2/3 transposed causing Jacobian flip; non-injective folded surface: ∂S/∂u changes sign between rows 2 and 3; defect edge B_SPLINE_CURVE_WITH_KNOTS degree-2 C-1 break at t=0.5 (CP[2]=(3.0,0,0) vs CP[3]=(4.5,0,0), 1.5-unit gap) drives shape_null=True */
3HEADER;
4FILE_DESCRIPTION(('Gn025'),'2;1');
5FILE_NAME('Gn025.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('',(6.0,0.0,0.0));
12#3=CARTESIAN_POINT('',(0.0,2.0,0.0));
13#4=CARTESIAN_POINT('',(6.0,2.0,0.0));
14#5=CARTESIAN_POINT('',(0.0,4.0,0.0));
15#6=CARTESIAN_POINT('',(6.0,4.0,0.0));
16#7=CARTESIAN_POINT('',(0.0,3.0,0.0));
17#8=CARTESIAN_POINT('',(6.0,3.0,0.0));
18#9=CARTESIAN_POINT('',(0.0,6.0,0.0));
19#10=CARTESIAN_POINT('',(6.0,6.0,0.0));
20#11=B_SPLINE_SURFACE_WITH_KNOTS('folded_surface',3,1,((#1,#2),(#3,#4),(#5,#6),(#7,#8),(#9,#10)),.UNSPECIFIED.,.F.,.F.,.F.,(4,1,4),(2,2),(0.0,0.5,1.0),(0.0,1.0),.UNSPECIFIED.);
21#12=(GEOMETRIC_REPRESENTATION_CONTEXT(2)PARAMETRIC_REPRESENTATION_CONTEXT()REPRESENTATION_CONTEXT('UV','2D'));
22#13=CARTESIAN_POINT('',(0.0,0.0,0.0));
23#14=CARTESIAN_POINT('',(6.0,0.0,0.0));
24#15=CARTESIAN_POINT('',(6.0,6.0,0.0));
25#16=CARTESIAN_POINT('',(0.0,6.0,0.0));
26#17=VERTEX_POINT('',#13);
27#18=VERTEX_POINT('',#14);
28#19=VERTEX_POINT('',#15);
29#20=VERTEX_POINT('',#16);
30#21=CARTESIAN_POINT('',(6.0,0.0,0.0));
31#22=DIRECTION('',(0.0,1.0,0.0));
32#23=VECTOR('',#22,6.0);
33#24=LINE('',#21,#23);
34#25=CARTESIAN_POINT('',(1.0,0.0));
35#26=DIRECTION('',(0.0,1.0));
36#27=VECTOR('',#26,6.0);
37#28=LINE('',#25,#27);
38#29=DEFINITIONAL_REPRESENTATION('pcdef',(#28),#12);
39#30=PCURVE('pc',#11,#29);
40#31=SURFACE_CURVE('sc',#24,(#30),.PCURVE_S1.);
41#32=EDGE_CURVE('ec',#18,#19,#31,.T.);
42#33=CARTESIAN_POINT('',(6.0,6.0,0.0));
43#34=DIRECTION('',(-1.0,0.0,0.0));
44#35=VECTOR('',#34,6.0);
45#36=LINE('',#33,#35);
46#37=CARTESIAN_POINT('',(1.0,1.0));
47#38=DIRECTION('',(-1.0,0.0));
48#39=VECTOR('',#38,6.0);
49#40=LINE('',#37,#39);
50#41=DEFINITIONAL_REPRESENTATION('pcdef',(#40),#12);
51#42=PCURVE('pc',#11,#41);
52#43=SURFACE_CURVE('sc',#36,(#42),.PCURVE_S1.);
53#44=EDGE_CURVE('ec',#19,#20,#43,.T.);
54#45=CARTESIAN_POINT('',(0.0,6.0,0.0));
55#46=DIRECTION('',(0.0,-1.0,0.0));
56#47=VECTOR('',#46,6.0);
57#48=LINE('',#45,#47);
58#49=CARTESIAN_POINT('',(0.0,1.0));
59#50=DIRECTION('',(0.0,-1.0));
60#51=VECTOR('',#50,6.0);
61#52=LINE('',#49,#51);
62#53=DEFINITIONAL_REPRESENTATION('pcdef',(#52),#12);
63#54=PCURVE('pc',#11,#53);
64#55=SURFACE_CURVE('sc',#48,(#54),.PCURVE_S1.);
65#56=EDGE_CURVE('ec',#20,#17,#55,.T.);
66#57=CARTESIAN_POINT('',(0.0,0.0,0.0));
67#58=CARTESIAN_POINT('',(1.5,0.0,0.0));
68#59=CARTESIAN_POINT('',(3.0,0.0,0.0));
69#60=CARTESIAN_POINT('',(4.5,0.0,0.0));
70#61=CARTESIAN_POINT('',(5.5,0.0,0.0));
71#62=CARTESIAN_POINT('',(6.0,0.0,0.0));
72#63=B_SPLINE_CURVE_WITH_KNOTS('folded_c1_break',2,(#57,#58,#59,#60,#61,#62),.UNSPECIFIED.,.F.,.F.,(3,3,3),(0.0,0.5,1.0),.UNSPECIFIED.);
73#64=CARTESIAN_POINT('',(0.0,0.0));
74#65=CARTESIAN_POINT('',(0.25,0.0));
75#66=CARTESIAN_POINT('',(0.5,0.0));
76#67=CARTESIAN_POINT('',(0.5,0.0));
77#68=CARTESIAN_POINT('',(0.75,0.0));
78#69=CARTESIAN_POINT('',(1.0,0.0));
79#70=B_SPLINE_CURVE_WITH_KNOTS('folded_c1_break_pc',2,(#64,#65,#66,#67,#68,#69),.UNSPECIFIED.,.F.,.F.,(3,3,3),(0.0,0.5,1.0),.UNSPECIFIED.);
80#71=DEFINITIONAL_REPRESENTATION('folded_pc_def',(#70),#12);
81#72=PCURVE('folded_pc_ent',#11,#71);
82#73=SURFACE_CURVE('folded_sc',#63,(#72),.PCURVE_S1.);
83#74=EDGE_CURVE('folded_edge',#17,#18,#73,.T.);
84#75=ORIENTED_EDGE('',$,$,#74,.T.);
85#76=ORIENTED_EDGE('',$,$,#32,.T.);
86#77=ORIENTED_EDGE('',$,$,#44,.T.);
87#78=ORIENTED_EDGE('',$,$,#56,.T.);
88#79=EDGE_LOOP('',(#75,#76,#77,#78));
89#80=FACE_OUTER_BOUND('',#79,.T.);
90#81=ADVANCED_FACE('',(#80),#11,.T.);
91#82=OPEN_SHELL('',(#81));
92#83=SHELL_BASED_SURFACE_MODEL('',(#82));
93#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
94#9051=PRODUCT('Gn025','Gn025','',(#9050));
95#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
96#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
97#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
98#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
99#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
100#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
101#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
102#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
103#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
104#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#83),#9060);
105#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
106ENDSEC;
107END-ISO-10303-21;