step-examples/12-3b-wires/Twi287.stp
Sources
- OCCT `ShapeUpgrade_ShapeDivideClosedEdges`, exposed as the `spltclosededges` `ShapeProcess` operator (`ShapeProcess_OperLibrary.cxx:817-844`)
Description
An `EDGE_CURVE` whose underlying curve is a full 360° `CIRCLE` is used as a single edge; start vertex equals end vertex. Consumers that require every edge to be an open arc with two distinct endpoints need the edge divided at a seam/interior point. Twi019 demonstrates this mechanism on a `CYLINDRICAL_SURFACE`; this insurance fixture demonstrates the identical mechanism on a `TOROIDAL_SURFACE` belt (a torus segment bounded by two full meridian circles) so the class's coverage does not rest on a single surface kind.
Reproducer recipe
`ADVANCED_FACE` on a `TOROIDAL_SURFACE` (major=5, minor=2); `EDGE_LOOP` bounding a quarter-revolution belt — two full-period meridian `EDGE_CURVE`s (`start==end` vertex, complete 360° tube cross-section) at `u=0` and `u=pi/2`, connected by two `CIRCLE`-arc edges along the outer (`v=0`) and inner (`v=pi`) equators.
Expected kernel behavior
split each closed meridian edge at its seam parameter (or a natural break) into two open arcs, or accept the closed single edge as a kernel-internal representation. Choice is design-dependent; consumers of the result must agree on the convention.
Notes
**See also**: Twi019 (the cylinder-surface sibling of this mechanism — untouched by this fixture). Verified live: OCCT does NOT auto-split the meridian circles on read (`edge[0]`/`edge[2]` retain full length `2*pi*minor_radius == 12.566`), unlike the bow-tie self-intersection class (Twi286) which the reader silently repairs — closed-edge splitting is genuinely opt-in (`spltclosededges` is available-but-not-default), so the unsplit closed edges survive import exactly as declared. `brepcheck.valid` came back `False` live (an unrelated seam/inner-arc side effect of this specific belt construction, not asserted in tier-3 here since Twi019 already carries the `brepcheck.valid==True` claim for the cylinder case and this fixture's contribution is the distinct-surface-kind coverage, not a brepcheck claim). Synonyms: "torus belt closed meridian edge unsplit", "full 360 degree circle edge on torus", "closed curve as single edge needs splitting torus", "meridian circle spans whole tube cross-section", "torus surface closed-edge splitting". Provenance tier: bytes-sufficient.
Expected validation
occt=shape(1)/shape(1) gmsh=reject ifc=schema_n/a
Closure intent
sheet — the open shell is the intended final geometry; a solid-only kernel should cleanly refuse.
Byte assertions
count_entity_def(b'TOROIDAL_SURFACE') == 1count_entity_def(b'CIRCLE') >= 2
Tier-3 assertions
face[0].surface_type == "torus"n_edges_total >= 4n_vertices_total >= 4
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/* Twi287: OPEN_SHELL with one ADVANCED_FACE on a TOROIDAL_SURFACE (major=5, minor=2); FACE_OUTER_BOUND references an EDGE_LOOP bounding a quarter-revolution belt of the torus: two full-period meridian CIRCLE edges (start==end vertex) at u=0 and u=pi/2, connected by two U-direction arcs at v=0 (outer equator) and v=pi (inner equator); each meridian EDGE_CURVE wraps a full 360 degrees around the tube cross-section without being split â full-period closed edge with start==end vertex IS the mechanism, distinct surface kind (torus, not Twi019's cylinder); the EDGE_LOOP IS wired into FACE_OUTER_BOUND, ADVANCED_FACE, OPEN_SHELL, SHELL_BASED_SURFACE_MODEL â never orphaned; kernel must split each closed meridian edge at its seam parameter into two open arcs, or accept the closed single edge as a kernel-internal representation */ 3HEADER; 4FILE_DESCRIPTION(('Twi287'),'2;1'); 5FILE_NAME('Twi287.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('',(5.0,0.0,0.0)); 11#2=DIRECTION('',(0.0,1.0,0.0)); 12#3=DIRECTION('',(1.0,0.0,0.0)); 13#4=AXIS2_PLACEMENT_3D('',#1,#2,#3); 14#5=CIRCLE('',#4,2.0); 15#6=CARTESIAN_POINT('',(7.0,0.0,0.0)); 16#7=VERTEX_POINT('',#6); 17#8=EDGE_CURVE('',#7,#7,#5,.T.); 18#9=CARTESIAN_POINT('',(0.0,5.0,0.0)); 19#10=DIRECTION('',(-1.0,0.0,0.0)); 20#11=DIRECTION('',(0.0,1.0,0.0)); 21#12=AXIS2_PLACEMENT_3D('',#9,#10,#11); 22#13=CIRCLE('',#12,2.0); 23#14=CARTESIAN_POINT('',(0.0,7.0,0.0)); 24#15=VERTEX_POINT('',#14); 25#16=EDGE_CURVE('',#15,#15,#13,.T.); 26#17=CARTESIAN_POINT('',(0.0,0.0,0.0)); 27#18=DIRECTION('',(0.0,0.0,1.0)); 28#19=DIRECTION('',(1.0,0.0,0.0)); 29#20=AXIS2_PLACEMENT_3D('',#17,#18,#19); 30#21=CIRCLE('',#20,7.0); 31#22=EDGE_CURVE('',#7,#15,#21,.T.); 32#23=CARTESIAN_POINT('',(3.0,0.0,0.0)); 33#24=CARTESIAN_POINT('',(0.0,3.0,0.0)); 34#25=VERTEX_POINT('',#23); 35#26=VERTEX_POINT('',#24); 36#27=CARTESIAN_POINT('',(0.0,0.0,0.0)); 37#28=DIRECTION('',(0.0,0.0,-1.0)); 38#29=DIRECTION('',(1.0,0.0,0.0)); 39#30=AXIS2_PLACEMENT_3D('',#27,#28,#29); 40#31=CIRCLE('',#30,3.0); 41#32=EDGE_CURVE('',#26,#25,#31,.T.); 42#33=CARTESIAN_POINT('',(0.0,0.0,0.0)); 43#34=DIRECTION('',(0.0,0.0,1.0)); 44#35=DIRECTION('',(1.0,0.0,0.0)); 45#36=AXIS2_PLACEMENT_3D('',#33,#34,#35); 46#37=TOROIDAL_SURFACE('',#36,5.0,2.0); 47#38=ORIENTED_EDGE('',$,$,#8,.T.); 48#39=ORIENTED_EDGE('',$,$,#22,.T.); 49#40=ORIENTED_EDGE('',$,$,#16,.F.); 50#41=ORIENTED_EDGE('',$,$,#32,.T.); 51#42=EDGE_LOOP('',(#38,#39,#40,#41)); 52#43=FACE_OUTER_BOUND('',#42,.T.); 53#44=ADVANCED_FACE('',(#43),#37,.T.); 54#45=OPEN_SHELL('',(#44)); 55#46=SHELL_BASED_SURFACE_MODEL('',(#45)); 56#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 57#9051=PRODUCT('Twi287','Twi287','',(#9050)); 58#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 59#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 60#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 61#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 62#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 63#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 64#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 65#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 66#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 67#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#46),#9060); 68#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 69ENDSEC; 70END-ISO-10303-21;