step-examples/12-3a-shells/Tsh204.stp
Sources
- OCCT/ShapeFix_Shell.FixFaceOrientation
Description
Shell containing two identical faces with opposite orientations. The aMapAdded tracking only warns about duplicates but processes both faces independently, causing repeated orientation fixes and inconsistent outward directions.
Reproducer recipe
Expected kernel behavior
Reject or heal with consistent orientation
Notes
duplicate_faces_undetected
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/* Tsh204 - ShapeFix_Shell.FixFaceOrientation.duplicate_faces_undetected 3 * Defect: aMapAdded tracks duplicates but only warns; duplicate faces still 4 * processed independently, causing repeated orientation fixes. */ 5HEADER; 6FILE_DESCRIPTION(('Tsh204 - duplicate faces orientation inconsistency'',''2;1'',''2;1'),'2;1'); 7FILE_NAME('Tsh204.stp','2026-06-16T00:00:00',(''),(''),'wave-61A','',''); 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 duplicate square face */ 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/* Edges for first copy of face */ 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#304=DIRECTION('',(-1.0,0.0,0.0)); 43#305=VECTOR('',#304,1.0); 44#314=LINE('',#102,#304); 45#315=EDGE_CURVE('',#112,#113,#314,.T.); 46 47#306=DIRECTION('',(0.0,-1.0,0.0)); 48#307=VECTOR('',#306,1.0); 49#316=LINE('',#103,#306); 50#317=EDGE_CURVE('',#113,#110,#316,.T.); 51 52/* First face loop (CCW normal) */ 53#400=ORIENTED_EDGE('',*,*,#311,.T.); 54#401=ORIENTED_EDGE('',*,*,#313,.T.); 55#402=ORIENTED_EDGE('',*,*,#315,.T.); 56#403=ORIENTED_EDGE('',*,*,#317,.T.); 57#410=EDGE_LOOP('',(#400,#401,#402,#403)); 58#420=FACE_OUTER_BOUND('',#410,.T.); 59#430=ADVANCED_FACE('',(#420),#212,.T.); 60 61/* Second face (exact duplicate with reverse orientation) */ 62#440=ORIENTED_EDGE('',*,*,#311,.F.); 63#441=ORIENTED_EDGE('',*,*,#313,.F.); 64#442=ORIENTED_EDGE('',*,*,#315,.F.); 65#443=ORIENTED_EDGE('',*,*,#317,.F.); 66#450=EDGE_LOOP('',(#440,#441,#442,#443)); 67#460=FACE_OUTER_BOUND('',#450,.T.); 68#470=ADVANCED_FACE('',(#460),#212,.T.); 69 70/* Shell with duplicate faces (opposite orientations) */ 71#500=CLOSED_SHELL('duplicate_faces_shell',(#430,#470)); 72 73#9000=PRODUCT_CONTEXT('',#1,'mechanical'); 74#9001=PRODUCT('Tsh204','Tsh204','',(#9000)); 75#9002=PRODUCT_DEFINITION_FORMATION('','',#9001); 76#9003=PRODUCT_DEFINITION_CONTEXT('part definition',#1,'design'); 77#9004=PRODUCT_DEFINITION('','',#9002,#9003); 78#9005=PRODUCT_DEFINITION_SHAPE('','',#9004); 79#9006=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 80#9007=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 81#9008=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 82#9009=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9006,'distance_accuracy_value',''); 83#9010=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9009))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9006,#9007,#9008))REPRESENTATION_CONTEXT('','3D')); 84#9021=SHELL_BASED_SURFACE_MODEL('sbsm',(#500)); 85#9022=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#9021),#9010); 86#9023=SHAPE_DEFINITION_REPRESENTATION(#9005,#9022); 87ENDSEC; 88END-ISO-10303-21;