step-examples/12-2c-surfaces/Gs064.stp
Sources
- synthesized — no external source cited
Description
ShapeAnalysis_Surface.IsVClosed midpoint sampling on torus
Reproducer recipe
Expected kernel behavior
Accept: the file declares a bare TOROIDAL_SURFACE (major_radius=10.0, minor_radius=10.0) inside a GEOMETRIC_CURVE_SET, not wired into any ADVANCED_FACE -- there is no face topology to build or validate. With major_radius equal to minor_radius this is a horn torus (the tube's inner radius is exactly zero, so the surface is tangent to its own axis along a single circle), not the self-intersecting spindle torus the fixture comment implies (a spindle torus needs major_radius strictly less than minor_radius). A kernel should load the surface and report its parameters faithfully; only if a face is later built on it does the inner-equator tangency become relevant, and then it should be reported as a horn-torus degeneracy rather than treated as self-intersection.
Expected validation
occt=shape(1)/shape(1) gmsh=shape(4) ifc=schema_n/a
Tier-3 assertions
shape_null == Falsen_vertices_total == 4
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* Gs064: TOROIDAL_SURFACE (R=10.0, r=10.0) IS inside GEOMETRIC_CURVE_SET; R == r (inner equator collapses: self-intersecting torus) IS the defect; IsVClosed midpoint sampling returns false negative on near-degenerate torus IS the mechanism failure; shape_null */ 3HEADER; 4FILE_DESCRIPTION(('Gs064'),'2;1'); 5FILE_NAME('Gs064.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=DIRECTION('',(0.0,0.0,1.0)); 12#3=DIRECTION('',(1.0,0.0,0.0)); 13#4=AXIS2_PLACEMENT_3D('gs064_torus_ax',#1,#2,#3); 14#5=TOROIDAL_SURFACE('gs064_torus',#4,10.0,10.0); 15#6=CARTESIAN_POINT('',(20.0,0.0,0.0)); 16#7=CARTESIAN_POINT('',(-20.0,0.0,0.0)); 17#8=CARTESIAN_POINT('',(0.0,0.0,10.0)); 18#9=CARTESIAN_POINT('',(0.0,0.0,-10.0)); 19#10=GEOMETRIC_CURVE_SET('gs064_gcs',(#5,#6,#7,#8,#9)); 20#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 21#9051=PRODUCT('Gs064','Gs064','',(#9050)); 22#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 23#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 24#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 25#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 26#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 27#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 28#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 29#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 30#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 31#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#10),#9060); 32#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 33ENDSEC; 34END-ISO-10303-21;