Gs194 — `TOROIDAL_SURFACE` face closed in both U and V requires a recursive re-split to fully separate

§12.2c surfaces (sub-class: closed-surface splitting / doubly-periodic recursive split)

P1 — silent data loss

geometry

Sources

Description

A single `ADVANCED_FACE` on a `TOROIDAL_SURFACE` wraps the full period in BOTH parametric directions: one explicit seam `EDGE_CURVE` closes the U (main-angle) direction (referenced forward and reversed from the `FACE_OUTER_BOUND`'s `EDGE_LOOP`), and a second explicit seam `EDGE_CURVE` closes the V (tube-angle) direction the same way; the two seams meet at a single shared vertex, so the entire boundary loop is exactly these two edges (four `ORIENTED_EDGE` references, two edges). This is Gs193's cone/single-seam pattern generalized to a surface that is closed in BOTH directions simultaneously — a torus, unlike a cone or cylinder, has no direction left over that can serve as an ordinary (non-periodic) bound.

Reproducer recipe

`TOROIDAL_SURFACE` (major radius 6.0, minor radius 2.0) with a single `ADVANCED_FACE`; `FACE_OUTER_BOUND` walks an `EDGE_LOOP` of `(seam_v forward, seam_u forward, seam_v reversed, seam_u reversed)` where `seam_v` is the v=0 equator circle (radius 8.0, spanning the full U period) and `seam_u` is the u=0 meridian circle (radius 2.0, spanning the full V period); both seam edges share the single vertex at their intersection `(8,0,0)`.

Expected kernel behavior

A correct closed-face splitter must detect the explicit seam, split along the anisotropic direction it identifies (U, from the seam pcurve's bounding-box gap), and then RECURSE on each resulting sub-face — since each sub-face is still closed in the untouched direction (V), leaving a still-closed result if only one split pass runs.

Notes

Live-verified directly against the closed-face split healer (bypassing the default STEP-reader pipeline, which does not auto-invoke this healer, matching Gs193/Gs049's established convention): raw read is 1 face (a torus surface, closed in both U and V, UV bounds `(0,2π,0,2π)`); after running the healer, the result is 4 faces, each a rectangular-trimmed patch covering one quadrant of the full U×V domain (U-halves × V-halves) — confirming the FIRST split (on the explicit seam) triggers a SECOND, recursive split on the resulting sub-faces. Fills the `tkshh-face-closed-surface-unsplit-at-seam` subvariant "torus/sphere face closed in both directions requiring recursive split (U then V)" / "surface closed in both U and V, requiring recursive splitting of the first split's results" — missing from Gs193 (cone, U-closed only, no recursion needed since V is bounded, not periodic). Synonyms: "torus face closed in both parametric directions", "doubly-periodic surface needs recursive closed-face split", "torus seam-pair single-vertex boundary loop", "recursive re-split after first split on a doubly-closed face", "full torus single face two seam edges".

Expected validation

occt=shape(1)/shape(1) gmsh=shape(4) ifc=schema_n/a

Byte assertions

Tier-3 assertions

Cross-references

Gs193, Gs049

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Gs194: single ADVANCED_FACE on a TOROIDAL_SURFACE closed in BOTH U and V; one explicit seam edge (U direction, referenced forward+reversed) plus a second seam edge (V direction, referenced forward+reversed) sharing the single vertex at their intersection -- the face wraps the FULL period in both parametric directions with no other boundary. ShapeUpgrade_ClosedFaceDivide::SplitSurface detects the explicit U seam first (splits U), then recursively re-invokes SplitSurface on each resulting sub-face, which is still V-closed and gets split again -- live-verified via ShapeUpgrade_ShapeDivideClosed: 1 face -> 4 faces (2x2 grid covering full U x full V) */
3HEADER;
4FILE_DESCRIPTION(('Gs194'),'2;1');
5FILE_NAME('Gs194.stp','2026-07-13T00: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('gs194_torus_ax',#1,#2,#3);
14#5=TOROIDAL_SURFACE('gs194_torus',#4,6.0,2.0);
15#6=(GEOMETRIC_REPRESENTATION_CONTEXT(2)PARAMETRIC_REPRESENTATION_CONTEXT()REPRESENTATION_CONTEXT('UV','2D'));
16#7=CARTESIAN_POINT('',(8.0,0.0,0.0));
17#8=VERTEX_POINT('',#7);
18/* seam_v: v=0 equator circle, radius R+r=8, spans full U */
19#9=CIRCLE('gs194_seam_v_3d',#4,8.0);
20#10=CARTESIAN_POINT('',(0.0,0.0));
21#11=DIRECTION('',(1.0,0.0));
22#12=VECTOR('',#11,6.283185307179586);
23#13=LINE('',#10,#12);
24#14=DEFINITIONAL_REPRESENTATION('seamv_pcdef',(#13),#6);
25#15=PCURVE('seamv_pc',#5,#14);
26#16=SURFACE_CURVE('seamv_sc',#9,(#15),.PCURVE_S1.);
27#17=EDGE_CURVE('gs194_seam_v_edge',#8,#8,#16,.T.);
28/* seam_u: u=0 meridian circle, radius r=2, spans full V */
29#18=CARTESIAN_POINT('',(6.0,0.0,0.0));
30#19=DIRECTION('',(0.0,-1.0,0.0));
31#20=DIRECTION('',(1.0,0.0,0.0));
32#21=AXIS2_PLACEMENT_3D('',#18,#19,#20);
33#22=CIRCLE('gs194_seam_u_3d',#21,2.0);
34#23=CARTESIAN_POINT('',(0.0,0.0));
35#24=DIRECTION('',(0.0,1.0));
36#25=VECTOR('',#24,6.283185307179586);
37#26=LINE('',#23,#25);
38#27=DEFINITIONAL_REPRESENTATION('seamu_pcdef',(#26),#6);
39#28=PCURVE('seamu_pc',#5,#27);
40#29=SURFACE_CURVE('seamu_sc',#22,(#28),.PCURVE_S1.);
41#30=EDGE_CURVE('gs194_seam_u_edge',#8,#8,#29,.T.);
42#31=ORIENTED_EDGE('',$,$,#17,.T.);
43#32=ORIENTED_EDGE('',$,$,#30,.T.);
44#33=ORIENTED_EDGE('',$,$,#17,.F.);
45#34=ORIENTED_EDGE('',$,$,#30,.F.);
46#35=EDGE_LOOP('',(#31,#32,#33,#34));
47#36=FACE_OUTER_BOUND('',#35,.T.);
48#37=ADVANCED_FACE('',(#36),#5,.T.);
49#38=OPEN_SHELL('',(#37));
50#39=SHELL_BASED_SURFACE_MODEL('',(#38));
51#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
52#9051=PRODUCT('Gs194','Gs194','',(#9050));
53#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
54#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
55#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
56#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
57#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
58#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
59#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
60#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
61#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
62#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#39),#9060);
63#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
64ENDSEC;
65END-ISO-10303-21;