Tsh199 — Duplicate faces orientation inconsistency

§12.3a shells (sub-class: face-orientation-propagation)

crash topology

Sources

Description

Shell with two identical coplanar faces exhibits inconsistent outward normals after orientation fixing. FixFaceOrientation processes duplicates independently, failing to synchronize orientation across identical geometry.

Reproducer recipe

Expected kernel behavior

heal (reject or normalize all duplicate faces to consistent outward orientation)

Notes

Duplicate mutation, aMapAdded tracking ineffective

Expected validation

occt=signal(11)/signal(11) gmsh=signal(11) ifc=schema_n/a

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes
1ISO-10303-21;
2/* Tsh199 - ShapeFix_Shell.FixFaceOrientation.duplicate_faces_undetected
3 * Defect: Shell contains two identical faces; FixFaceOrientation fixes orientation
4 * but processes duplicates independently, causing inconsistent outward normals. */
5HEADER;
6FILE_DESCRIPTION(('Tsh199 - duplicate faces orientation inconsistency'',''2;1'',''2;1'),'2;1');
7FILE_NAME('Tsh199.stp','2026-06-16T00:00:00',(''),(''),'wave-59A','','');
8FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 1 1 1 1 }'));
9ENDSEC;
10DATA;
11#1=APPLICATION_CONTEXT('automotive_design');
12#2=APPLICATION_PROTOCOL_DEFINITION('international standard','automotive_design',2000,#1);
13
14/* Shared vertices for two identical unit-square faces */
15#100=CARTESIAN_POINT('',(0.0,0.0,0.0));
16#101=CARTESIAN_POINT('',(1.0,0.0,0.0));
17#102=CARTESIAN_POINT('',(1.0,1.0,0.0));
18#103=CARTESIAN_POINT('',(0.0,1.0,0.0));
19#110=VERTEX_POINT('',#100);
20#111=VERTEX_POINT('',#101);
21#112=VERTEX_POINT('',#102);
22#113=VERTEX_POINT('',#103);
23
24/* Plane z=0 */
25#200=DIRECTION('',(0.0,0.0,1.0));
26#201=DIRECTION('',(1.0,0.0,0.0));
27#210=CARTESIAN_POINT('',(0.5,0.5,0.0));
28#211=AXIS2_PLACEMENT_3D('',#210,#200,#201);
29#212=PLANE('',#211);
30
31/* First face edges 100->101->102->103 */
32#300=DIRECTION('',(1.0,0.0,0.0));
33#301=VECTOR('',#300,1.0);
34#310=LINE('',#100,#301);
35#311=EDGE_CURVE('',#110,#111,#310,.T.);
36
37#302=DIRECTION('',(0.0,1.0,0.0));
38#303=VECTOR('',#302,1.0);
39#312=LINE('',#101,#303);
40#313=EDGE_CURVE('',#111,#112,#312,.T.);
41
42#314=LINE('',#102,#300);
43#315=EDGE_CURVE('',#112,#113,#314,.F.);
44
45#316=LINE('',#103,#302);
46#317=EDGE_CURVE('',#113,#110,#316,.F.);
47
48/* First face loop */
49#400=ORIENTED_EDGE('',*,*,#311,.T.);
50#401=ORIENTED_EDGE('',*,*,#313,.T.);
51#402=ORIENTED_EDGE('',*,*,#315,.T.);
52#403=ORIENTED_EDGE('',*,*,#317,.T.);
53#410=EDGE_LOOP('',(#400,#401,#402,#403));
54#420=FACE_OUTER_BOUND('',#410,.T.);
55#430=ADVANCED_FACE('',(#420),#212,.T.);
56
57/* Duplicate face (second copy with opposite orientation) */
58#440=ORIENTED_EDGE('',*,*,#311,.F.);
59#441=ORIENTED_EDGE('',*,*,#313,.F.);
60#442=ORIENTED_EDGE('',*,*,#315,.F.);
61#443=ORIENTED_EDGE('',*,*,#317,.F.);
62#450=EDGE_LOOP('',(#440,#441,#442,#443));
63#460=FACE_OUTER_BOUND('',#450,.T.);
64#470=ADVANCED_FACE('',(#460),#212,.F.);
65
66/* Shell with duplicate faces */
67#500=CLOSED_SHELL('duplicate_faces_shell',(#430,#470));
68
69#9000=PRODUCT_CONTEXT('',#1,'mechanical');
70#9001=PRODUCT('Tsh199','Tsh199','',(#9000));
71#9002=PRODUCT_DEFINITION_FORMATION('','',#9001);
72#9003=PRODUCT_DEFINITION_CONTEXT('part definition',#1,'design');
73#9004=PRODUCT_DEFINITION('','',#9002,#9003);
74#9005=PRODUCT_DEFINITION_SHAPE('','',#9004);
75#9006=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
76#9007=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
77#9008=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
78#9009=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9006,'distance_accuracy_value','');
79#9010=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9009))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9006,#9007,#9008))REPRESENTATION_CONTEXT('','3D'));
80#9021=SHELL_BASED_SURFACE_MODEL('sbsm',(#500));
81#9022=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#9021),#9010);
82#9023=SHAPE_DEFINITION_REPRESENTATION(#9005,#9022);
83ENDSEC;
84END-ISO-10303-21;