step-examples/12-2b-nurbs/Gn164.stp
Sources
- synthesized — no external source cited
Description
Rational BSpline Closure Detection Bypass
Reproducer recipe
Expected kernel behavior
heal: the surface is rational (declared weights alternate 1.0/0.5 row by row), which a shortcut that infers rationality purely from control-point layout (rather than reading the declared weight array) can miss, since the pole positions alone do not encode weight information. A kernel checking whether a surface is rational must read the actual weight array, not infer it from the grid layout or sampling pattern, or it can wrongly treat a genuinely rational surface as non-rational and skip weight-aware evaluation and closure logic that the surface actually needs.
Expected validation
occt=shape(1)/shape(1) gmsh=empty ifc=schema_n/a
Tier-3 assertions
load == "ok"
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* Gn164: RATIONAL_B_SPLINE_SURFACE (complex entity) U-deg 2, V-deg 1, 3x2 poles; weights alternate (1.0, 0.5) row-by-row to create rational variation; IS face_geometry; ShapeAnalysis_Surface.IsURational() pole-based shortcut bypasses knot-aware grid sampling â closure detection bypass â empty */ 3HEADER; 4FILE_DESCRIPTION(('Gn164'),'2;1'); 5FILE_NAME('Gn164.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.0,0.0)); 12#3=CARTESIAN_POINT('',(0.5,0.0,0.2)); 13#4=CARTESIAN_POINT('',(0.5,1.0,0.2)); 14#5=CARTESIAN_POINT('',(1.0,0.0,0.0)); 15#6=CARTESIAN_POINT('',(1.0,1.0,0.0)); 16#7=(B_SPLINE_SURFACE('gn164_rbs',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,1.0),(0.5,0.5),(1.0,1.0)))REPRESENTATION_ITEM('')SURFACE()); 17#8=CARTESIAN_POINT('',(0.0,0.0,0.0)); 18#9=CARTESIAN_POINT('',(1.0,0.0,0.0)); 19#10=VERTEX_POINT('',#8); 20#11=VERTEX_POINT('',#9); 21#12=DIRECTION('',(1.0,0.0,0.0)); 22#13=VECTOR('',#12,1.0); 23#14=LINE('',#8,#13); 24#15=(GEOMETRIC_REPRESENTATION_CONTEXT(2)PARAMETRIC_REPRESENTATION_CONTEXT()REPRESENTATION_CONTEXT('UV','2D')); 25#16=CARTESIAN_POINT('',(0.0,0.0)); 26#17=DIRECTION('',(1.0,0.0)); 27#18=VECTOR('',#17,1.0); 28#19=LINE('',#16,#18); 29#20=DEFINITIONAL_REPRESENTATION('gn164_pcdef',(#19),#15); 30#21=PCURVE('gn164_uv',#7,#20); 31#22=SURFACE_CURVE('gn164_sc',#14,(#21),.PCURVE_S1.); 32#23=EDGE_CURVE('gn164_edge',#10,#11,#22,.T.); 33#24=ORIENTED_EDGE('',$,$,#23,.T.); 34#25=EDGE_LOOP('',(#24)); 35#26=FACE_OUTER_BOUND('',#25,.T.); 36#27=ADVANCED_FACE('',(#26),#7,.T.); 37#28=OPEN_SHELL('',(#27)); 38#29=SHELL_BASED_SURFACE_MODEL('',(#28)); 39#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 40#9051=PRODUCT('Gn164','Gn164','',(#9050)); 41#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 42#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 43#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 44#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 45#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 46#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 47#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 48#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 49#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 50#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#29),#9060); 51#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 52ENDSEC; 53END-ISO-10303-21;