Gn163 — B-spline surface with degenerate patch from split

§12.2b

geometry

Sources

Description

B-spline surface with degenerate patch from split

Reproducer recipe

Expected kernel behavior

heal: the surface's middle U-row of control points are all nearly identical (clustered around (1.5,*,0.01)) -- a near-degenerate row that will produce a very small, close-to-zero-area strip of surface near that U parameter. A kernel splitting or otherwise sub-patching this surface should detect a near-degenerate row before producing sub-patches, and either merge/skip the resulting near-zero-area patch or flag it, rather than emitting it as an ordinary patch that downstream meshing or display code then has to cope with.

Expected validation

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

Tier-3 assertions

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes
1ISO-10303-21;
2/* Gn163: B_SPLINE_SURFACE_WITH_KNOTS U-degree=2 V-degree=2, 3x3 poles; middle U-row poles near-identical (1.5,*,0.01) → near-degenerate row; U knots (0.0,1.0) mults (3,3) sum=6=3+2+1 ✓; V knots (0.0,1.0) mults (3,3) sum=6=3+2+1 ✓; IS face surface; SplitSurface produces zero-area patches → shape(1)/shape(1) (live OCC heals) */
3HEADER;
4FILE_DESCRIPTION(('Gn163'),'2;1');
5FILE_NAME('Gn163.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,1.5,0.0));
12#3=CARTESIAN_POINT('',(0.0,3.0,0.0));
13#4=CARTESIAN_POINT('',(1.5,0.0,0.01));
14#5=CARTESIAN_POINT('',(1.5,1.5,0.01));
15#6=CARTESIAN_POINT('',(1.5,3.0,0.01));
16#7=CARTESIAN_POINT('',(3.0,0.0,0.0));
17#8=CARTESIAN_POINT('',(3.0,1.5,0.0));
18#9=CARTESIAN_POINT('',(3.0,3.0,0.0));
19#10=B_SPLINE_SURFACE_WITH_KNOTS('gn163_degenerate_mid',2,2,((#1,#2,#3),(#4,#5,#6),(#7,#8,#9)),.UNSPECIFIED.,.F.,.F.,.F.,(3,3),(3,3),(0.0,1.0),(0.0,1.0),.UNSPECIFIED.);
20#11=CARTESIAN_POINT('',(0.0,0.0,0.0));
21#12=CARTESIAN_POINT('',(3.0,0.0,0.0));
22#13=VERTEX_POINT('',#11);
23#14=VERTEX_POINT('',#12);
24#15=DIRECTION('',(1.0,0.0,0.0));
25#16=VECTOR('',#15,3.0);
26#17=LINE('',#11,#16);
27#18=EDGE_CURVE('',#13,#14,#17,.T.);
28#19=ORIENTED_EDGE('',$,$,#18,.T.);
29#20=EDGE_LOOP('',(#19));
30#21=FACE_OUTER_BOUND('',#20,.T.);
31#22=ADVANCED_FACE('',(#21),#10,.T.);
32#23=OPEN_SHELL('',(#22));
33#24=SHELL_BASED_SURFACE_MODEL('',(#23));
34#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
35#9051=PRODUCT('Gn163','Gn163','',(#9050));
36#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
37#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
38#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
39#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
40#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
41#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
42#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
43#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
44#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
45#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#24),#9060);
46#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
47ENDSEC;
48END-ISO-10303-21;