step-examples/12-2c-surfaces/Gs140.stp
Sources
- OCCT/ShapeAnalysis_Surface.cxx (line 995)
Description
IsVClosed() optimizes Bezier closure via knot-boundary check but misses edge case where spatial pole coincidence conflicts with parametric structure. First and last V-columns coincide in 3D but representation differs; shortcut declares closure incorrectly.
Reproducer recipe
Expected kernel behavior
Accept: a BEZIER_SURFACE-style single-span B_SPLINE_SURFACE (4x4 poles, no interior knots) wired into the face. A kernel testing whether such a surface closes in V must compare the actual 3D positions of the first and last V-direction pole rows (accounting for the fact that a Bezier patch has no separate knot-boundary bookkeeping to shortcut the check) rather than infer closure from the absence of interior knots alone.
Notes
Bezier-implicit-knots, pole-endpoint-mismatch
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/* Gs140: IsVClosed Bezier pole-coincidence shortcut */ 3HEADER; 4FILE_DESCRIPTION(('Gs140'),'2;1'); 5FILE_NAME('Gs140.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('',(1.0,0.0,0.0)); 12#3=CARTESIAN_POINT('',(2.0,0.0,0.0)); 13#4=CARTESIAN_POINT('',(3.0,0.0,0.0)); 14#5=CARTESIAN_POINT('',(0.0,1.0,0.5)); 15#6=CARTESIAN_POINT('',(1.0,1.0,1.5)); 16#7=CARTESIAN_POINT('',(2.0,1.0,1.2)); 17#8=CARTESIAN_POINT('',(3.0,1.0,0.5)); 18#9=CARTESIAN_POINT('',(0.0,2.0,0.5)); 19#10=CARTESIAN_POINT('',(1.0,2.0,-0.5)); 20#11=CARTESIAN_POINT('',(2.0,2.0,-0.2)); 21#12=CARTESIAN_POINT('',(3.0,2.0,0.5)); 22#13=CARTESIAN_POINT('',(0.0,0.0,0.0)); 23#14=CARTESIAN_POINT('',(1.0,0.0,0.0)); 24#15=CARTESIAN_POINT('',(2.0,0.0,0.0)); 25#16=CARTESIAN_POINT('',(3.0,0.0,0.0)); 26#17=B_SPLINE_SURFACE(3,3,((#1,#2,#3,#4),(#5,#6,#7,#8),(#9,#10,#11,#12),(#13,#14,#15,#16)),.UNSPECIFIED.,.F.,.F.,.F.); 27#18=CARTESIAN_POINT('',(0.0,0.0,0.0)); 28#19=CARTESIAN_POINT('',(3.0,0.0,0.0)); 29#20=VERTEX_POINT('',#18); 30#21=VERTEX_POINT('',#19); 31#22=DIRECTION('',(1.0,0.0,0.0)); 32#23=VECTOR('',#22,3.0); 33#24=LINE('',#18,#23); 34#25=EDGE_CURVE('',#20,#21,#24,.T.); 35#26=ORIENTED_EDGE('',$,$,#25,.T.); 36#27=EDGE_LOOP('',(#26)); 37#28=FACE_OUTER_BOUND('',#27,.T.); 38#29=ADVANCED_FACE('',(#28),#17,.T.); 39#30=OPEN_SHELL('',(#29)); 40#31=SHELL_BASED_SURFACE_MODEL('',(#30)); 41#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 42#9051=PRODUCT('Gs140','Gs140','',(#9050)); 43#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 44#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 45#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 46#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 47#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 48#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 49#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 50#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 51#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 52#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#31),#9060); 53#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 54ENDSEC; 55END-ISO-10303-21;