P005 — Inverted spherical face on certain sweep orientations

§12.3 topology

assembly

Sources

Sender

FreeCAD itself (Part workbench Sweep)

Description

A face on a sphere produced by sweeping with a particular profile orientation has its `FACE_OUTER_BOUND.orientation` reversed in the output STEP; visually inside-out. Mirror-sweep variant is correct.

Reproducer recipe

Author a `MANIFOLD_SOLID_BREP` containing an `ADVANCED_FACE` with `SPHERICAL_SURFACE` underlying, whose `FACE_OUTER_BOUND` includes seam edges with explicit `.F.` orientation flags on a `surface_curve`.

Expected kernel behavior

Heal and accept: face orientation preserved; both sweep variants yield the same closed solid.

Notes

Synonyms: "spherical face inverted on certain sweep orientations", "sphere normal pointing inward", "revolved sphere face flipped", "inside-out spherical surface".

Expected validation

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

Byte assertions

Tier-3 assertions

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* P005: MANIFOLD_SOLID_BREP with a single ADVANCED_FACE over SPHERICAL_SURFACE whose FACE_OUTER_BOUND has orientation .F. (inverted); face normal points inward — inside-out sphere face; sweep-orientation bug from FreeCAD Part workbench; OCCT heals the orientation and loads shape(1) */
3HEADER;
4FILE_DESCRIPTION(('P005'),'2;1');
5FILE_NAME('P005.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=CARTESIAN_POINT('',(0.0,0.0,0.0));
15#6=DIRECTION('',(0.0,0.0,1.0));
16#7=DIRECTION('',(1.0,0.0,0.0));
17#8=AXIS2_PLACEMENT_3D('',#5,#6,#7);
18#9=SPHERICAL_SURFACE('sphere_surf',#8,5.0);
19#10=CARTESIAN_POINT('',(5.0,0.0,0.0));
20#11=VERTEX_POINT('',#10);
21#12=CARTESIAN_POINT('',(0.0,0.0,0.0));
22#13=DIRECTION('',(0.0,0.0,1.0));
23#14=DIRECTION('',(1.0,0.0,0.0));
24#15=AXIS2_PLACEMENT_3D('',#12,#13,#14);
25#16=CIRCLE('seam_circle',#15,5.0);
26#17=EDGE_CURVE('seam_edge',#11,#11,#16,.T.);
27#18=ORIENTED_EDGE('',*,*,#17,.T.);
28#19=EDGE_LOOP('',(#18));
29#20=FACE_OUTER_BOUND('',#19,.F.);
30#21=ADVANCED_FACE('sphere_face',(#20),#9,.T.);
31#22=CLOSED_SHELL('sphere_shell',(#21));
32#23=MANIFOLD_SOLID_BREP('inverted_sphere',#22);
33#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
34#9051=PRODUCT('P005','P005','',(#9050));
35#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
36#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
37#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
38#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
39#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
40#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
41#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
42#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
43#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
44#9061=ADVANCED_BREP_SHAPE_REPRESENTATION('',(#23),#9060);
45#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
46#9063=COLOUR_RGB('sphere_color',0.4,0.6,0.8);
47#9064=FILL_AREA_STYLE_COLOUR('',#9063);
48#9065=FILL_AREA_STYLE('',(#9064));
49#9066=SURFACE_STYLE_FILL_AREA(#9065);
50#9067=SURFACE_SIDE_STYLE('',(#9066));
51#9068=SURFACE_STYLE_USAGE(.BOTH.,#9067);
52#9069=PRESENTATION_STYLE_ASSIGNMENT((#9068));
53#9070=STYLED_ITEM('sphere_style',(#9069),#21);
54ENDSEC;
55END-ISO-10303-21;