Ad047 — `ADVANCED_FACE` `same_sense=.F.` inverts surface normal: negative or invalid face area after orientation fix

§12.11 (sub-class: schema-validation)

adversarial

Sources

Description

An `ADVANCED_FACE` whose `same_sense` flag is `.F.` while the supporting surface (e.g. a `PLANE` with +Z normal) is itself oriented normally; the face flag inverts the surface normal so the orientation is inverse of the host surface. Healing reverses face orientation, producing negative computed area downstream.

Reproducer recipe

input with one mis-oriented face that triggers ShapeFix orientation flip.

Expected kernel behavior

post-fix invariant check; correct orientation idempotently.

Notes

**See also**: Ad043. **OCC behavior**: OCC loads the file and produces no shape (empty). Re-audit (2026-07-18, empty-claim re-audit): the valid square `ADVANCED_FACE` is left orphan (no shape-representation root references it). Given a rooted `SHELL_BASED_SURFACE_MODEL` it builds shape(1 face) identically with `same_sense=.F.` and `.T.`, so the declared orientation defect does not drive the empty; base/clean=empty. Orphaned defect carrier, not a defect-driven silent data-loss; not a proven kernel bug.

Expected validation

occt=empty/empty gmsh=empty ifc=schema_n/a

Byte assertions

Tier-3 assertions

Cross-references

Ad043

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Ad047: ADVANCED_FACE.same_sense = .F. while supporting PLANE has +Z normal; face flag inverts surface normal — orientation is inverse of host surface; ShapeFix orientation flip produces negative computed area downstream; GEOMETRIC_CURVE_SET IS model entity — OCC yields empty */
3HEADER;
4FILE_DESCRIPTION(('Ad047'),'2;1');
5FILE_NAME('Ad047.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','','');
6FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }'));
7ENDSEC;
8DATA;
9#1=CARTESIAN_POINT('',(0.0,0.0,0.0));
10#2=GEOMETRIC_CURVE_SET('',(#1));
11#3=CARTESIAN_POINT('',(0.0,0.0,0.0));
12#4=DIRECTION('',(0.0,0.0,1.0));
13#5=DIRECTION('',(1.0,0.0,0.0));
14#6=AXIS2_PLACEMENT_3D('',#3,#4,#5);
15#7=PLANE('',#6);
16#8=CARTESIAN_POINT('',(0.0,0.0,0.0));
17#9=CARTESIAN_POINT('',(1.0,0.0,0.0));
18#10=CARTESIAN_POINT('',(1.0,1.0,0.0));
19#11=CARTESIAN_POINT('',(0.0,1.0,0.0));
20#12=DIRECTION('',(1.0,0.0,0.0));
21#13=DIRECTION('',(0.0,1.0,0.0));
22#14=DIRECTION('',(-1.0,0.0,0.0));
23#15=DIRECTION('',(0.0,-1.0,0.0));
24#16=VECTOR('',#12,1.0);
25#17=VECTOR('',#13,1.0);
26#18=VECTOR('',#14,1.0);
27#19=VECTOR('',#15,1.0);
28#20=LINE('',#8,#16);
29#21=LINE('',#9,#17);
30#22=LINE('',#10,#18);
31#23=LINE('',#11,#19);
32#24=VERTEX_POINT('',#8);
33#25=VERTEX_POINT('',#9);
34#26=VERTEX_POINT('',#10);
35#27=VERTEX_POINT('',#11);
36#28=EDGE_CURVE('',#24,#25,#20,.T.);
37#29=EDGE_CURVE('',#25,#26,#21,.T.);
38#30=EDGE_CURVE('',#26,#27,#22,.T.);
39#31=EDGE_CURVE('',#27,#24,#23,.T.);
40#32=ORIENTED_EDGE('',$,$,#28,.T.);
41#33=ORIENTED_EDGE('',$,$,#29,.T.);
42#34=ORIENTED_EDGE('',$,$,#30,.T.);
43#35=ORIENTED_EDGE('',$,$,#31,.T.);
44#36=EDGE_LOOP('',(#32,#33,#34,#35));
45#37=FACE_OUTER_BOUND('',#36,.T.);
46#38=ADVANCED_FACE('inverted_face',(#37),#7,.F.);
47ENDSEC;
48END-ISO-10303-21;