step-examples/12-3c-faces/Tfa004.stp
Sources
- 05-occt-shapefix F023 (ShapeFix_Face::FixAddNaturalBound)
- 08-occt-gitlog G007/G021/G056
- 04-occt-translation Q014/Q015 (VertexLoop on sphere/torus)
- 13-quaoar B016
Sender
ProSTEP/UG round-trips; various analytic-surface emitters
Description
A face on a closed surface (sphere, torus, full BSpline, surface_of_revolution) is given with only inner wires — or with a single VERTEX_LOOP — and no outer bound. STEP semantics permit this ("the entire surface with cutouts"), but kernels that pre-orient inner wires before adding the natural bound flip the region.
Reproducer recipe
`ADVANCED_FACE` on `SPHERICAL_SURFACE` whose only `FACE_BOUND` wraps a single inner wire; emit no `FACE_OUTER_BOUND`.
Expected kernel behavior
heal; insert the natural surface boundary first, then orient inner wires as holes. Do NOT pre-orient inner wires before natural-bound insertion on closed surfaces.
Notes
**See also**: Tfa005, Twi021. Synonyms: "sphere face has only a hole", "torus face missing outer boundary", "closed surface with only inner wire flips region", "face represents whole surface minus hole but kernel inverts it", "natural seam not added before orientation".
Expected validation
occt=shape(1)/shape(1) gmsh=shape(22) ifc=schema_n/a
Closure intent
sheet — the open shell is the intended final geometry; a solid-only kernel should cleanly refuse.
Tier-3 assertions
face[0].surface_type == "sphere"n_edges_total >= 5face[1].surface_type == "torus"n_vertices_total >= 8face[0].quadric.radius == 5.0face[1].quadric.major_radius == 10.0face[1].quadric.minor_radius == 3.0
Cross-references
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* Tfa004: TWO ADVANCED_FACEs on closed surfaces with no FACE_OUTER_BOUND: face[0] on TOROIDAL_SURFACE with only inner FACE_BOUND (3-edge loop); face[1] on SPHERICAL_SURFACE with only inner FACE_BOUND (4-edge loop); STEP semantics allow entire-surface-with-cutout representation; OCC must insert natural bound before orienting inner wire, not after; both faces wired into OPEN_SHELL â defect is live on face traversal path */ 3HEADER; 4FILE_DESCRIPTION(('Tfa004'),'2;1'); 5FILE_NAME('Tfa004.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('',#1,#2,#3); 14#5=TOROIDAL_SURFACE('',#4,10.0,3.0); 15#6=CARTESIAN_POINT('',(13.0,0.0,0.0)); 16#7=CARTESIAN_POINT('',(-6.5,11.2583302492,0.0)); 17#8=CARTESIAN_POINT('',(-6.5,-11.2583302492,0.0)); 18#9=VERTEX_POINT('',#6); 19#10=VERTEX_POINT('',#7); 20#11=VERTEX_POINT('',#8); 21#12=DIRECTION('',(-0.866025403784,0.5,0.0)); 22#13=VECTOR('',#12,22.5166604984); 23#14=LINE('',#6,#13); 24#15=EDGE_CURVE('',#9,#10,#14,.T.); 25#16=DIRECTION('',(0.0,-1.0,0.0)); 26#17=VECTOR('',#16,22.5166604984); 27#18=LINE('',#7,#17); 28#19=EDGE_CURVE('',#10,#11,#18,.T.); 29#20=DIRECTION('',(0.866025403784,0.5,0.0)); 30#21=VECTOR('',#20,22.5166604984); 31#22=LINE('',#8,#21); 32#23=EDGE_CURVE('',#11,#9,#22,.T.); 33#24=ORIENTED_EDGE('',$,$,#15,.T.); 34#25=ORIENTED_EDGE('',$,$,#19,.T.); 35#26=ORIENTED_EDGE('',$,$,#23,.T.); 36#27=EDGE_LOOP('',(#24,#25,#26)); 37#28=FACE_BOUND('',#27,.T.); 38#29=ADVANCED_FACE('',(#28),#5,.T.); 39#30=CARTESIAN_POINT('',(30.0,0.0,0.0)); 40#31=DIRECTION('',(0.0,0.0,1.0)); 41#32=DIRECTION('',(1.0,0.0,0.0)); 42#33=AXIS2_PLACEMENT_3D('',#30,#31,#32); 43#34=SPHERICAL_SURFACE('',#33,5.0); 44#35=CARTESIAN_POINT('',(35.0,0.0,0.0)); 45#36=CARTESIAN_POINT('',(30.0,5.0,0.0)); 46#37=CARTESIAN_POINT('',(25.0,0.0,0.0)); 47#38=CARTESIAN_POINT('',(30.0,-5.0,0.0)); 48#39=VERTEX_POINT('',#35); 49#40=VERTEX_POINT('',#36); 50#41=VERTEX_POINT('',#37); 51#42=VERTEX_POINT('',#38); 52#43=DIRECTION('',(-0.707106781187,0.707106781187,0.0)); 53#44=VECTOR('',#43,7.07106781187); 54#45=LINE('',#35,#44); 55#46=EDGE_CURVE('',#39,#40,#45,.T.); 56#47=DIRECTION('',(-0.707106781187,-0.707106781187,0.0)); 57#48=VECTOR('',#47,7.07106781187); 58#49=LINE('',#36,#48); 59#50=EDGE_CURVE('',#40,#41,#49,.T.); 60#51=DIRECTION('',(0.707106781187,-0.707106781187,0.0)); 61#52=VECTOR('',#51,7.07106781187); 62#53=LINE('',#37,#52); 63#54=EDGE_CURVE('',#41,#42,#53,.T.); 64#55=DIRECTION('',(0.707106781187,0.707106781187,0.0)); 65#56=VECTOR('',#55,7.07106781187); 66#57=LINE('',#38,#56); 67#58=EDGE_CURVE('',#42,#39,#57,.T.); 68#59=ORIENTED_EDGE('',$,$,#46,.T.); 69#60=ORIENTED_EDGE('',$,$,#50,.T.); 70#61=ORIENTED_EDGE('',$,$,#54,.T.); 71#62=ORIENTED_EDGE('',$,$,#58,.T.); 72#63=EDGE_LOOP('',(#59,#60,#61,#62)); 73#64=FACE_BOUND('',#63,.T.); 74#65=ADVANCED_FACE('',(#64),#34,.T.); 75#66=OPEN_SHELL('',(#29,#65)); 76#67=SHELL_BASED_SURFACE_MODEL('',(#66)); 77#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 78#9051=PRODUCT('Tfa004','Tfa004','',(#9050)); 79#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 80#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 81#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 82#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 83#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 84#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 85#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 86#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 87#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 88#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#67),#9060); 89#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 90ENDSEC; 91END-ISO-10303-21;