step-examples/12-2c-surfaces/Gs199.stp
Sources
- OCCT `StepToTopoDS_TranslateFace::Init` (`src/StepToTopoDS/StepToTopoDS_TranslateFace.cxx:558-602`, the `StepShape_VertexLoop` branch): `:566-585` the sphere/B-spline/surface-of-revolution branch (gated by `NbBnd==1`, builds an explicit natural-bound wire via `BRepBuilderAPI_MakeFace(GeomSurf,...)`)
- `:587-589` `if (GeomSurf->IsKind(STANDARD_TYPE(Geom_ToroidalSurface))) { continue
- }` — the TORUS branch, unconditional (no `NbBnd` gate) and silent (no `TP->AddWarning` call at all)
- `:590-593` the `Geom_Plane` branch immediately below, which DOES call `TP->AddWarning(VL, "VertexLoop on plane is ignored")` before its own `continue` — establishing by direct contrast that the torus branch is the one true silent-skip case (no diagnostic reaches even OCCT's own transfer log) @ `bd2a789f15235755ce4d1a3b07379a2e062fdc2e` (verified against source at this commit).
Description
A single `ADVANCED_FACE` on a `TOROIDAL_SURFACE` (major radius 6.0, minor radius 2.0) has a `VERTEX_LOOP` (one `VERTEX_POINT` on the outer equator) as its sole `FACE_OUTER_BOUND`. Per ISO 10303-42, a lone `VERTEX_LOOP` bound is meant to signal "the face is the surface's whole natural domain, with the point marking a degenerate apex/pole" — valid for a sphere (`Gs039`) or a plane (`Twi281`, with an explicit warning). A torus has no such degenerate point (it is doubly periodic with no pole), so the reader's face-building stage neither builds a natural-bound wire for it (unlike sphere/B-spline/revolution) NOR warns (unlike plane) — the bound is simply skipped mid-loop, silently.
Reproducer recipe
`TOROIDAL_SURFACE('name',#axis2placement3d,6.0,2.0)`; a `VERTEX_POINT` at `(8.0,0.0,0.0)` (on the outer equator, `major_radius+minor_radius` from the axis); `VERTEX_LOOP('name',#vertex_point)`; `FACE_OUTER_BOUND('',#vertex_loop,.T.)` as the SOLE bound of `ADVANCED_FACE`; `OPEN_SHELL` + `SHELL_BASED_SURFACE_MODEL`.
Expected kernel behavior
A conformant reader must either (a) treat a lone `VERTEX_LOOP` bound on a non-degenerate-pole surface (torus) as a malformed/inapplicable file and reject it with a diagnostic, or (b) explicitly document and warn when substituting the surface's natural bounds — silently dropping the bound with zero diagnostic (as OCCT's default pipeline does) leaves no trace that the original (malformed) boundary intent was discarded.
Notes
Live-verified directly against the fixture's own bytes through OCCT's DEFAULT reader pipeline (this mechanism is part of the ordinary reader's face-building transfer, unlike Gn177-Gn179's opt-in healers — no explicit extra API call is needed): the face reads as shape(1), 1 face, a toroidal surface, face area `473.7410112522892` — EXACTLY the full-torus surface-area formula `4·π²·R·r = 4·π²·6·2 = 473.7410112522892` (bit-for-bit), confirming the `VERTEX_LOOP` bound contributed nothing at all to the face's boundary and the face silently became the WHOLE torus. Distinct from Gs039 (sphere: explicit natural-bound wire is constructed, code path `:566-585`) and Twi281 (plane: explicit warning is logged, code path `:590-593`); this is the third, silent-and-unconditional branch. Fills `stp-vertexloop-bound-mismatch`'s previously-missing "bound on a toroidal surface -> silently discarded" subvariant. Synonyms: "VERTEX_LOOP on torus silently dropped", "face-building stage skips a torus vertex-loop bound with no warning", "lone vertex_loop bound torus no natural-bound wire built", "torus face becomes whole surface no diagnostic", "silent-skip distinct from sphere natural-bounds and plane warned-drop".
Expected validation
occt=shape(1)/shape(1) gmsh=shape(4) ifc=schema_n/a
Byte assertions
contains(b'TOROIDAL_SURFACE')contains(b'VERTEX_LOOP')count_entity_def(b'ADVANCED_FACE') == 1count_entity_def(b'VERTEX_POINT') == 1
Tier-3 assertions
load == "ok"shape_null == Falsen_faces_total == 1
Cross-references
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* Gs199: TOROIDAL_SURFACE IS ADVANCED_FACE.face_geometry; VERTEX_LOOP (single point on the outer 3 equator) IS the face's sole FACE_OUTER_BOUND; distinct from Gs039's sphere (natural-bounds 4 branch, StepToTopoDS_TranslateFace.cxx:566-585) and Twi281's plane (warned-and-dropped branch, 5 :590-593) -- on a TOROIDAL_SURFACE the VERTEX_LOOP bound is SILENTLY dropped with no warning 6 at all (:587-589 `if (GeomSurf->IsKind(STANDARD_TYPE(Geom_ToroidalSurface))) { continue; }`) */ 7HEADER; 8FILE_DESCRIPTION(('Gs199'),'2;1'); 9FILE_NAME('Gs199.stp','2026-07-13T00:00:00',(''),(''),'cad-research-suite','',''); 10FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 11ENDSEC; 12DATA; 13#9000=APPLICATION_CONTEXT('mechanical design'); 14#1=CARTESIAN_POINT('',(0.0,0.0,0.0)); 15#2=DIRECTION('',(0.0,0.0,1.0)); 16#3=DIRECTION('',(1.0,0.0,0.0)); 17#4=AXIS2_PLACEMENT_3D('gs199_ax',#1,#2,#3); 18#5=TOROIDAL_SURFACE('gs199_torus',#4,6.0,2.0); 19#6=CARTESIAN_POINT('',(8.0,0.0,0.0)); 20#7=VERTEX_POINT('',#6); 21#8=VERTEX_LOOP('gs199_vloop',#7); 22#9=FACE_OUTER_BOUND('',#8,.T.); 23#10=ADVANCED_FACE('gs199_face',(#9),#5,.T.); 24#11=OPEN_SHELL('gs199_shell',(#10)); 25#12=SHELL_BASED_SURFACE_MODEL('gs199_sbsm',(#11)); 26#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 27#9051=PRODUCT('Gs199','Gs199','',(#9050)); 28#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 29#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 30#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 31#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 32#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 33#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 34#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 35#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 36#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 37#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#12),#9060); 38#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 39ENDSEC; 40END-ISO-10303-21;