step-examples/12-2c-surfaces/Gs010.stp
Sources
- W007, W017, X015
Description
A `B_SPLINE_SURFACE_WITH_KNOTS` whose control net has interior rows transposed or that traverse U in opposite directions, so the Jacobian flips sign within the parameter range; a folded / non-injective surface parametrisation. Typical shape: a degree 3×2 surface with a 4×3 control net and clamped knot multiplicities like (4,4) U and (3,3) V where two interior rows swap order. Common output of poorly-trimmed offset surfaces or Boolean-derived subdivision surfaces.
Reproducer recipe
BSpline surface with two interior control rows transposed so the parametric mapping is non-injective; reference from `ADVANCED_FACE`.
Expected kernel behavior
heal by surface re-fit; reject with "non-injective surface parametrization" diagnostic; never silently use the surface for projection.
Notes
**See also**: Gn025, Twi041. **OCC behavior**: silently accepts the folded BSpline surface and uses it without re-fit or diagnostic; kernel mishandling; the catalog above forbids silent acceptance. Synonyms: "self-intersecting BSpline surface Jacobian sign change", "folded NURBS surface non-injective", "B-spline surface control rows transposed", "surface fold creates non-injective parametrisation", "BSpline surface from poorly-trimmed offset folds back".
Expected validation
occt=shape(1)/shape(1) gmsh=shape(9) ifc=schema_n/a
Closure intent
ambiguous — the open shell is an incidental scaffold for a non-closure-related test.
Byte assertions
contains(b'B_SPLINE_SURFACE_WITH_KNOTS(')contains(b'(15.0,5.0,2.0)')contains(b'(0.0,5.0,2.0)')
Tier-3 assertions
load == "ok"face[0].surface_type == "bspline"face[0].bspline.u_degree == 3face[0].bspline.v_degree == 2face[0].bspline.u_knot_mult_max == 4face[0].bspline.v_knot_mult_max == 3
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/* Gs010: B_SPLINE_SURFACE_WITH_KNOTS degree 3x2 4x3 net clamped (4,4)x(3,3) knots; interior rows transposed (row1 beyond row2 in X) â Jacobian sign change; non-injective folded surface; contains (15.0,5.0,2.0) and (0.0,5.0,2.0); IS ADVANCED_FACE.face_geometry; shape_null=True */ 3HEADER; 4FILE_DESCRIPTION(('Gs010'),'2;1'); 5FILE_NAME('Gs010.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,5.0,0.0)); 12#3=CARTESIAN_POINT('',(0.0,5.0,2.0)); 13#4=CARTESIAN_POINT('',(15.0,0.0,0.0)); 14#5=CARTESIAN_POINT('',(15.0,5.0,0.0)); 15#6=CARTESIAN_POINT('',(15.0,5.0,2.0)); 16#7=CARTESIAN_POINT('',(5.0,0.0,0.0)); 17#8=CARTESIAN_POINT('',(5.0,5.0,0.0)); 18#9=CARTESIAN_POINT('',(5.0,5.0,2.0)); 19#10=CARTESIAN_POINT('',(15.0,0.0,0.0)); 20#11=CARTESIAN_POINT('',(15.0,5.0,0.0)); 21#12=CARTESIAN_POINT('',(15.0,5.0,2.0)); 22#13=B_SPLINE_SURFACE_WITH_KNOTS('gs010_folded',3,2,((#1,#2,#3),(#4,#5,#6),(#7,#8,#9),(#10,#11,#12)),.UNSPECIFIED.,.F.,.F.,.F.,(4,4),(3,3),(0.0,1.0),(0.0,1.0),.UNSPECIFIED.); 23#14=(GEOMETRIC_REPRESENTATION_CONTEXT(2)PARAMETRIC_REPRESENTATION_CONTEXT()REPRESENTATION_CONTEXT('UV','2D')); 24#15=CARTESIAN_POINT('',(0.0,0.0,0.0)); 25#16=CARTESIAN_POINT('',(15.0,0.0,0.0)); 26#17=CARTESIAN_POINT('',(15.0,5.0,0.0)); 27#18=CARTESIAN_POINT('',(0.0,5.0,0.0)); 28#19=VERTEX_POINT('',#15); 29#20=VERTEX_POINT('',#16); 30#21=VERTEX_POINT('',#17); 31#22=VERTEX_POINT('',#18); 32#23=CARTESIAN_POINT('',(0.0,0.0,0.0)); 33#24=DIRECTION('',(1.0,0.0,0.0)); 34#25=VECTOR('',#24,15.0); 35#26=LINE('',#23,#25); 36#27=CARTESIAN_POINT('',(0.0,0.0)); 37#28=DIRECTION('',(1.0,0.0)); 38#29=VECTOR('',#28,1.0); 39#30=LINE('',#27,#29); 40#31=DEFINITIONAL_REPRESENTATION('pcdef',(#30),#14); 41#32=PCURVE('pc',#13,#31); 42#33=SURFACE_CURVE('sc',#26,(#32),.PCURVE_S1.); 43#34=EDGE_CURVE('ec',#19,#20,#33,.T.); 44#35=CARTESIAN_POINT('',(15.0,0.0,0.0)); 45#36=DIRECTION('',(0.0,1.0,0.0)); 46#37=VECTOR('',#36,5.0); 47#38=LINE('',#35,#37); 48#39=CARTESIAN_POINT('',(1.0,0.0)); 49#40=DIRECTION('',(0.0,1.0)); 50#41=VECTOR('',#40,1.0); 51#42=LINE('',#39,#41); 52#43=DEFINITIONAL_REPRESENTATION('pcdef',(#42),#14); 53#44=PCURVE('pc',#13,#43); 54#45=SURFACE_CURVE('sc',#38,(#44),.PCURVE_S1.); 55#46=EDGE_CURVE('ec',#20,#21,#45,.T.); 56#47=CARTESIAN_POINT('',(15.0,5.0,0.0)); 57#48=DIRECTION('',(-1.0,0.0,0.0)); 58#49=VECTOR('',#48,15.0); 59#50=LINE('',#47,#49); 60#51=CARTESIAN_POINT('',(1.0,1.0)); 61#52=DIRECTION('',(-1.0,0.0)); 62#53=VECTOR('',#52,1.0); 63#54=LINE('',#51,#53); 64#55=DEFINITIONAL_REPRESENTATION('pcdef',(#54),#14); 65#56=PCURVE('pc',#13,#55); 66#57=SURFACE_CURVE('sc',#50,(#56),.PCURVE_S1.); 67#58=EDGE_CURVE('ec',#21,#22,#57,.T.); 68#59=CARTESIAN_POINT('',(0.0,5.0,0.0)); 69#60=DIRECTION('',(0.0,-1.0,0.0)); 70#61=VECTOR('',#60,5.0); 71#62=LINE('',#59,#61); 72#63=CARTESIAN_POINT('',(0.0,1.0)); 73#64=DIRECTION('',(0.0,-1.0)); 74#65=VECTOR('',#64,1.0); 75#66=LINE('',#63,#65); 76#67=DEFINITIONAL_REPRESENTATION('pcdef',(#66),#14); 77#68=PCURVE('pc',#13,#67); 78#69=SURFACE_CURVE('sc',#62,(#68),.PCURVE_S1.); 79#70=EDGE_CURVE('ec',#22,#19,#69,.T.); 80#71=ORIENTED_EDGE('',$,$,#34,.T.); 81#72=ORIENTED_EDGE('',$,$,#46,.T.); 82#73=ORIENTED_EDGE('',$,$,#58,.T.); 83#74=ORIENTED_EDGE('',$,$,#70,.T.); 84#75=EDGE_LOOP('',(#71,#72,#73,#74)); 85#76=FACE_OUTER_BOUND('',#75,.T.); 86#77=ADVANCED_FACE('',(#76),#13,.T.); 87#78=OPEN_SHELL('',(#77)); 88#79=SHELL_BASED_SURFACE_MODEL('',(#78)); 89#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 90#9051=PRODUCT('Gs010','Gs010','',(#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;