step-examples/12-3c-faces/Tfa038.stp
Sources
- OCCT `ShapeFix_Face::FixAddNaturalBound` (`ShapeFix_Face.hxx:195`)
Description
An ADVANCED_FACE on a SPHERICAL_SURFACE or TOROIDAL_SURFACE (geometrically closed in both U and V) carries only inner FACE_BOUND wires (holes) and no FACE_OUTER_BOUND. The face is "the surface minus the holes". Without a synthesized natural boundary, area, sampling, and sewing are undefined.
Reproducer recipe
An ADVANCED_FACE on a sphere with one tiny circular hole at the equator and no outer bound.
Expected kernel behavior
detect that the surface is doubly-closed and the face has no left-oriented outer wire; synthesize a natural boundary that traverses the surface's full parameter domain. Alternative: reject if the kernel does not support implicit natural bounds.
Notes
Specifically named for closed surfaces; planar/cylindrical faces have explicit bounds. Synonyms: "sphere face has only holes no outer", "closed surface face has only inner wires", "face is whole surface minus holes", "torus face missing outer boundary".
Expected validation
occt=shape(1)/shape(1) gmsh=shape(6) 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 >= 1n_vertices_total >= 2brepcheck.valid == Trueface[0].quadric.radius == 5.0
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* Tfa038: OPEN_SHELL: ADVANCED_FACE on SPHERICAL_SURFACE (radius=5) has NO FACE_OUTER_BOUND â only one inner FACE_BOUND (a circular hole near equator); face is 'whole sphere minus the hole'; FixAddNaturalBound must synthesize a natural outer boundary spanning the full parameter domain; brepcheck.valid=False because missing outer bound; defect IS on live OPEN_SHELL traversal path */ 3HEADER; 4FILE_DESCRIPTION(('Tfa038'),'2;1'); 5FILE_NAME('Tfa038.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=SPHERICAL_SURFACE('',#4,5.0); 15#6=CARTESIAN_POINT('',(0.868240888335,0.0,4.92403876506)); 16#7=VERTEX_POINT('',#6); 17#8=CARTESIAN_POINT('',(0.0,0.0,4.92403876506)); 18#9=DIRECTION('',(0.0,0.0,1.0)); 19#10=DIRECTION('',(1.0,0.0,0.0)); 20#11=AXIS2_PLACEMENT_3D('',#8,#9,#10); 21#12=CIRCLE('',#11,0.868240888335); 22#13=EDGE_CURVE('',#7,#7,#12,.T.); 23#14=ORIENTED_EDGE('',$,$,#13,.T.); 24#15=EDGE_LOOP('',(#14)); 25#16=FACE_BOUND('',#15,.F.); 26#17=ADVANCED_FACE('',(#16),#5,.T.); 27#18=OPEN_SHELL('',(#17)); 28#19=SHELL_BASED_SURFACE_MODEL('',(#18)); 29#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 30#9051=PRODUCT('Tfa038','Tfa038','',(#9050)); 31#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 32#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 33#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 34#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 35#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 36#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 37#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 38#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 39#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 40#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#19),#9060); 41#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 42ENDSEC; 43END-ISO-10303-21;