step-examples/12-2b-nurbs/Gn166.stp
Sources
- synthesized — no external source cited
Description
Boundary Pole Singularity (First Row)
Reproducer recipe
Expected kernel behavior
reject-with-diagnostic or heal: the surface's entire first U-row of control points (U=0) coalesces to the single point (0,0,0) -- a valid but singular boundary, distinct from its normal, non-degenerate interior poles. A kernel scanning for degenerate/pinched boundary rows on a B-spline surface must check every boundary row (first and last in each direction), not only interior poles, or a genuine boundary-row singularity like this one will go undetected and the resulting face will carry an unrecorded degenerate edge.
Expected validation
occt=shape(1)/shape(1) gmsh=shape(3) ifc=schema_n/a
Tier-3 assertions
load == "ok"face[0].surface_type == "bspline"
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* Gn166: B_SPLINE_SURFACE_WITH_KNOTS U-deg 2, V-deg 1; 3x3 poles; first U-row (U=0) all poles coalesced at (0,0,0) â boundary pole singularity; interior poles normal (0.5,*,0) and (1.0,*,0); U-knots (0.0,1.0) mults (3,3); V-knots (0.0,1.0) mults (3,3); CheckPin iterates interior poles only, misses first-row singularity; IS face_geometry â shape_null */ 3HEADER; 4FILE_DESCRIPTION(('Gn166'),'2;1'); 5FILE_NAME('Gn166.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,0.0,0.0)); 12#3=CARTESIAN_POINT('',(0.0,0.0,0.0)); 13#4=CARTESIAN_POINT('',(0.5,0.0,0.0)); 14#5=CARTESIAN_POINT('',(0.5,0.5,0.0)); 15#6=CARTESIAN_POINT('',(0.5,1.0,0.0)); 16#7=CARTESIAN_POINT('',(1.0,0.0,0.0)); 17#8=CARTESIAN_POINT('',(1.0,0.5,0.0)); 18#9=CARTESIAN_POINT('',(1.0,1.0,0.0)); 19#10=B_SPLINE_SURFACE_WITH_KNOTS('gn166_boundary_sing',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('',(1.0,0.0,0.0)); 21#12=CARTESIAN_POINT('',(1.0,1.0,0.0)); 22#13=VERTEX_POINT('',#11); 23#14=VERTEX_POINT('',#12); 24#15=DIRECTION('',(0.0,1.0,0.0)); 25#16=VECTOR('',#15,1.0); 26#17=LINE('',#11,#16); 27#18=(GEOMETRIC_REPRESENTATION_CONTEXT(2)PARAMETRIC_REPRESENTATION_CONTEXT()REPRESENTATION_CONTEXT('UV','2D')); 28#19=CARTESIAN_POINT('',(1.0,0.0)); 29#20=DIRECTION('',(0.0,1.0)); 30#21=VECTOR('',#20,1.0); 31#22=LINE('',#19,#21); 32#23=DEFINITIONAL_REPRESENTATION('gn166_pcdef',(#22),#18); 33#24=PCURVE('gn166_uv',#10,#23); 34#25=SURFACE_CURVE('gn166_sc',#17,(#24),.PCURVE_S1.); 35#26=EDGE_CURVE('gn166_edge',#13,#14,#25,.T.); 36#27=ORIENTED_EDGE('',$,$,#26,.T.); 37#28=EDGE_LOOP('',(#27)); 38#29=FACE_OUTER_BOUND('',#28,.T.); 39#30=ADVANCED_FACE('',(#29),#10,.T.); 40#31=OPEN_SHELL('',(#30)); 41#32=SHELL_BASED_SURFACE_MODEL('',(#31)); 42#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 43#9051=PRODUCT('Gn166','Gn166','',(#9050)); 44#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 45#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 46#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 47#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 48#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 49#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 50#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 51#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 52#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 53#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#32),#9060); 54#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 55ENDSEC; 56END-ISO-10303-21;