step-examples/12-2c-surfaces/Gs200.stp
Sources
- OCCT `BRepBuilderAPI_Sewing::IsMergedClosed` (`src/BRepBuilderAPI/BRepBuilderAPI_Sewing.cxx:1248-1317`, specifically `:1307-1315` the `isVClosed` branch — `if (isVClosed && isULongC1 && isULongC2) { ... if (distOuter <= distInner) return Standard_True
- }`, the 2D-parametric-footprint-overlap test gating a V-periodic merge, mirroring the `isUClosed` branch at `:1298-1306` that Tsh209 (U-periodic cylinder) exercises) and `BRepBuilderAPI_Sewing::IsVClosedSurface` (`:268-289`, the `Geom_ToroidalSurface::IsVClosed()`-driven fast path at `:278`) @ `bd2a789f15235755ce4d1a3b07379a2e062fdc2e` (verified against source at this commit).
Description
A single `ADVANCED_FACE` on a `TOROIDAL_SURFACE` (major radius 6.0, minor radius 2.0) is a quarter-wedge in the MAJOR (U) angle direction (u:0→π/2) that is FULLY CLOSED in the MINOR (V, tube) direction. Its boundary loop is 4 edges: two full-circle tube cross-sections (at u=0 and u=π/2, each genuinely closed since V is periodic — these are the wedge's two open U-boundary edges, analogous to Tsh209's bottom/top full cylinder-rim circles) and, closing the loop at v=0≡2π, TWO SEPARATE, UNSHARED but geometrically coincident outer-equator arc edges (radius 8 = major+minor, u:0→π/2) — the V-periodic seam pair, built from two distinct `CIRCLE`+`TRIMMED_CURVE` entity chains (opposite-sense local `AXIS2_PLACEMENT_3D` frames) rather than one shared `EDGE_CURVE`. This is the V-periodic (tube-direction) analogue of Tsh209's U-periodic (cylinder-axis-direction) seam pair.
Reproducer recipe
`TOROIDAL_SURFACE` (major 6.0, minor 2.0); two full `CIRCLE` edges (radius 2.0) at the u=0 and u=π/2 tube cross-sections (`UIso(0)`/`UIso(π/2)` of the torus, each a genuine closed loop, start==end vertex); two `TRIMMED_CURVE`-over-`CIRCLE` (radius 8.0, u:0→π/2) edges closing the v=0≡2π seam, each a SEPARATE entity chain (opposite local placement sense) sharing only their two endpoint vertices, not the edge itself.
Expected kernel behavior
A sewing pass over this single face's boundary must recognize that the two outer-equator arc edges are the SAME physical seam location (2D pcurve footprints on the periodic surface overlap across the V-closed direction, per `IsMergedClosed`'s footprint-overlap test) and merge them into one shared edge, rather than leaving both as independent free/floating boundary edges (which would misreport the wedge as having 4 free edges instead of the geometrically-correct 2).
Notes
Live-verified directly against the fixture's own bytes (the reader loads the face, then the sewing stage is run directly on it with a 1e-6 tolerance, matching Tsh209's established convention of driving the sewing stage directly since it is not part of the default read): raw read is 1 face, a toroidal surface, face area `118.43525281307257` (exactly the quarter-wedge full-tube torus-segment-area formula `(π/2)·2π·R·r = 118.4352528130723`, confirming the exact wedge geometry); after the sewing pass, exactly 1 contiguous (mergeable) edge pair is reported (the two outer-equator arc edges recognized and matched as a mergeable seam pair) and 2 free edges remain (the two tube cross-section circles, correctly left as genuine open boundary — not seam candidates) — confirming the merge-validation logic's V-periodic branch fires specifically on the intended seam pair and nothing else. Fills `sew-seam-closed-surface-merge`'s previously-missing "V-periodic seam merge validation" subvariant (1 of 2 missing); the isoline-distance-fallback subvariant (closure detected on a surface that doesn't self-report `IsUClosed`/`IsVClosed`) remains unfilled — deferred, see `BACKLOG.md`. Synonyms: "V-periodic torus tube-direction seam merge", "sewing-stage V-closed-surface merge branch", "two unshared coincident equator arcs seam pair", "contiguous-edge seam-pair recognition after sewing", "tube-direction analogue of Tsh209 cylinder axis seam".
Expected validation
occt=shape(1)/shape(1) gmsh=shape(8) ifc=schema_n/a
Byte assertions
contains(b'TOROIDAL_SURFACE')count_entity_def(b'ADVANCED_FACE') == 1count_entity_def(b'EDGE_CURVE') == 4count_entity_def(b'CIRCLE') == 4
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/* Gs200: single ADVANCED_FACE on a TOROIDAL_SURFACE (major radius 6.0, minor radius 2.0), a 3 quarter-wedge in the MAJOR (U) angle direction that is FULLY CLOSED in the MINOR (V, tube) 4 direction; loop = tube-circle at u=0 (full circle, V-closed) + outer-equator seam arc (u:0-> 5 pi/2, v=0) + tube-circle at u=pi/2 (full circle) + a SECOND, geometrically-coincident but 6 UNSHARED outer-equator arc entity closing back to u=0 -- the two equator-arc edges are the 7 V-periodic seam pair BRepBuilderAPI_Sewing::IsMergedClosed/AnalysisNearestEdges must recognize 8 and merge (V-periodic analogue of Tsh209's U-periodic cylinder seam pair) */ 9HEADER; 10FILE_DESCRIPTION(('Gs200'),'2;1'); 11FILE_NAME('Gs200.stp','2026-07-13T00:00:00',(''),(''),'cad-research-suite','',''); 12FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 13ENDSEC; 14DATA; 15#9000=APPLICATION_CONTEXT('mechanical design'); 16#1=CARTESIAN_POINT('',(0.0,0.0,0.0)); 17#2=DIRECTION('',(0.0,0.0,1.0)); 18#3=DIRECTION('',(1.0,0.0,0.0)); 19#4=AXIS2_PLACEMENT_3D('gs200_torus_ax',#1,#2,#3); 20#5=TOROIDAL_SURFACE('gs200_torus',#4,6.0,2.0); 21#6=CARTESIAN_POINT('',(8.0,0.0,0.0)); 22#7=VERTEX_POINT('',#6); 23#8=CARTESIAN_POINT('',(0.0,8.0,0.0)); 24#9=VERTEX_POINT('',#8); 25#10=CARTESIAN_POINT('',(6.0,0.0,0.0)); 26#11=DIRECTION('',(0.0,-1.0,0.0)); 27#12=DIRECTION('',(1.0,0.0,0.0)); 28#13=AXIS2_PLACEMENT_3D('gs200_tube_u0_ax',#10,#11,#12); 29#14=CIRCLE('gs200_tube_u0',#13,2.0); 30#15=EDGE_CURVE('gs200_tube_u0_edge',#7,#7,#14,.T.); 31#16=CARTESIAN_POINT('',(0.0,0.0,0.0)); 32#17=DIRECTION('',(0.0,0.0,1.0)); 33#18=DIRECTION('',(1.0,0.0,0.0)); 34#19=AXIS2_PLACEMENT_3D('gs200_eq_fwd_ax',#16,#17,#18); 35#20=CIRCLE('gs200_eq_fwd',#19,8.0); 36#21=TRIMMED_CURVE('gs200_eq_fwd_arc',#20,(PARAMETER_VALUE(0.0)),(PARAMETER_VALUE(1.5707963267949)),.T.,.PARAMETER.); 37#22=EDGE_CURVE('gs200_eq_fwd_edge',#7,#9,#21,.T.); 38#23=CARTESIAN_POINT('',(0.0,6.0,0.0)); 39#24=DIRECTION('',(1.0,0.0,0.0)); 40#25=DIRECTION('',(0.0,1.0,0.0)); 41#26=AXIS2_PLACEMENT_3D('gs200_tube_u90_ax',#23,#24,#25); 42#27=CIRCLE('gs200_tube_u90',#26,2.0); 43#28=EDGE_CURVE('gs200_tube_u90_edge',#9,#9,#27,.T.); 44#29=CARTESIAN_POINT('',(0.0,0.0,0.0)); 45#30=DIRECTION('',(0.0,0.0,-1.0)); 46#31=DIRECTION('',(0.0,1.0,0.0)); 47#32=AXIS2_PLACEMENT_3D('gs200_eq_rev_ax',#29,#30,#31); 48#33=CIRCLE('gs200_eq_rev',#32,8.0); 49#34=TRIMMED_CURVE('gs200_eq_rev_arc',#33,(PARAMETER_VALUE(0.0)),(PARAMETER_VALUE(1.5707963267949)),.T.,.PARAMETER.); 50#35=EDGE_CURVE('gs200_eq_rev_edge',#9,#7,#34,.T.); 51#36=ORIENTED_EDGE('',$,$,#15,.T.); 52#37=ORIENTED_EDGE('',$,$,#22,.T.); 53#38=ORIENTED_EDGE('',$,$,#28,.T.); 54#39=ORIENTED_EDGE('',$,$,#35,.T.); 55#40=EDGE_LOOP('',(#36,#37,#38,#39)); 56#41=FACE_OUTER_BOUND('',#40,.T.); 57#42=ADVANCED_FACE('gs200_face',(#41),#5,.T.); 58#43=OPEN_SHELL('gs200_shell',(#42)); 59#44=SHELL_BASED_SURFACE_MODEL('gs200_sbsm',(#43)); 60#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 61#9051=PRODUCT('Gs200','Gs200','',(#9050)); 62#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 63#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 64#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 65#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 66#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 67#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 68#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 69#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 70#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 71#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#44),#9060); 72#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 73ENDSEC; 74END-ISO-10303-21;