step-examples/12-3a-shells/Tsh113.stp
Sources
- synthesized — no external source cited
Description
ShapeUpgrade_RemoveInternalWires edge-loop aliasing
Reproducer recipe
Expected kernel behavior
The z=0 face and the z=5 face both name the same `EDGE_LOOP` instance as their inner bound, and that loop's geometry lies entirely in z=0 — five units off the second face's plane — while that face's own correctly placed hole loop is defined but never referenced. On import give every face its own copy of each bound's edges and vertices, so that repairing or removing a wire on one face can never mutate another face's boundary, and validate that every bound actually lies on its face's surface. The z=5 face's inner bound fails that test: reject it (or re-point it at the unreferenced loop) with a diagnostic naming the face and the offending bound, rather than trimming a plane with a wire that is not on it.
Notes
RUNTIME-VERIFIED 2026-08-09 — this file's recorded `signal(11)` is driven by an inline entity instance written directly inside another entity's argument list (a vector constructor carrying a bare coordinate list where a direction reference belongs). A conforming exchange file may only define entity instances as top-level numbered statements, so the reader cannot bind the inline construct, the attribute resolves to null, and the abort happens during loading — before any repair routine runs. Full census in `BACKLOG.md` (M.18).
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/* Tsh113 - ShapeUpgrade_RemoveInternalWires duplicate-wire-id 3 * Defect: two FACE_BOUND entities referencing the same EDGE_LOOP id (aliasing); 4 * RemoveInternalWires removes the wire on one face, breaking the other. */ 5HEADER; 6FILE_DESCRIPTION(('Tsh113 - duplicate wire id aliasing','wave 19'),'2;1'); 7FILE_NAME('Tsh113.stp','2026-06-15T00:00:00',(''),(''),'heal coverage','',''); 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/* Two faces that share the same EDGE_LOOP id (internal wire) via aliasing */ 15 16/* Face 1: outer quad */ 17#100=CARTESIAN_POINT('',(0,0,0)); 18#101=CARTESIAN_POINT('',(10.0,0,0)); 19#102=CARTESIAN_POINT('',(10.0,10.0,0)); 20#103=CARTESIAN_POINT('',(0,10.0,0)); 21 22/* Inner hole for Face 1 */ 23#104=CARTESIAN_POINT('',(2.0,2.0,0)); 24#105=CARTESIAN_POINT('',(4.0,2.0,0)); 25#106=CARTESIAN_POINT('',(4.0,4.0,0)); 26#107=CARTESIAN_POINT('',(2.0,4.0,0)); 27 28/* Face 2: separate quad at different height */ 29#108=CARTESIAN_POINT('',(0,0,5.0)); 30#109=CARTESIAN_POINT('',(10.0,0,5.0)); 31#110=CARTESIAN_POINT('',(10.0,10.0,5.0)); 32#111=CARTESIAN_POINT('',(0,10.0,5.0)); 33 34/* Inner hole for Face 2 (SAME EDGE_LOOP as Face 1's hole via id #300) */ 35/* Points: same location but at z=5 */ 36#112=CARTESIAN_POINT('',(2.0,2.0,5.0)); 37#113=CARTESIAN_POINT('',(4.0,2.0,5.0)); 38#114=CARTESIAN_POINT('',(4.0,4.0,5.0)); 39#115=CARTESIAN_POINT('',(2.0,4.0,5.0)); 40 41/* VERTEX_POINT entities for Face 1 outer boundary */ 42#200=VERTEX_POINT('',#100); 43#201=VERTEX_POINT('',#101); 44#202=VERTEX_POINT('',#102); 45#203=VERTEX_POINT('',#103); 46 47/* VERTEX_POINT entities for Face 1 inner boundary */ 48#204=VERTEX_POINT('',#104); 49#205=VERTEX_POINT('',#105); 50#206=VERTEX_POINT('',#106); 51#207=VERTEX_POINT('',#107); 52 53/* VERTEX_POINT entities for Face 2 outer boundary */ 54#208=VERTEX_POINT('',#108); 55#209=VERTEX_POINT('',#109); 56#210=VERTEX_POINT('',#110); 57#211=VERTEX_POINT('',#111); 58 59/* VERTEX_POINT entities for Face 2 inner boundary */ 60#212=VERTEX_POINT('',#112); 61#213=VERTEX_POINT('',#113); 62#214=VERTEX_POINT('',#114); 63#215=VERTEX_POINT('',#115); 64 65/* Planes */ 66#300=AXIS2_PLACEMENT_3D('face1_plane',#100,DIRECTION('',(0,0,1)),DIRECTION('',(1,0,0))); 67#301=PLANE('',#300); 68#302=AXIS2_PLACEMENT_3D('face2_plane',#108,DIRECTION('',(0,0,1)),DIRECTION('',(1,0,0))); 69#303=PLANE('',#302); 70 71/* Face 1 outer boundary edges */ 72#400=LINE('',#100,VECTOR('',(1,0,0),10.0)); 73#401=EDGE_CURVE('f1_e1',#200,#201,#400,.T.); 74#402=LINE('',#101,VECTOR('',(0,1,0),10.0)); 75#403=EDGE_CURVE('f1_e2',#201,#202,#402,.T.); 76#404=LINE('',#102,VECTOR('',(-1,0,0),10.0)); 77#405=EDGE_CURVE('f1_e3',#202,#203,#404,.T.); 78#406=LINE('',#103,VECTOR('',(0,-1,0),10.0)); 79#407=EDGE_CURVE('f1_e4',#203,#200,#406,.T.); 80 81/* Face 1 inner boundary edges (hole) */ 82#408=LINE('',#104,VECTOR('',(1,0,0),2.0)); 83#409=EDGE_CURVE('f1_hole_e1',#204,#205,#408,.T.); 84#410=LINE('',#105,VECTOR('',(0,1,0),2.0)); 85#411=EDGE_CURVE('f1_hole_e2',#205,#206,#410,.T.); 86#412=LINE('',#106,VECTOR('',(-1,0,0),2.0)); 87#413=EDGE_CURVE('f1_hole_e3',#206,#207,#412,.T.); 88#414=LINE('',#107,VECTOR('',(0,-1,0),2.0)); 89#415=EDGE_CURVE('f1_hole_e4',#207,#204,#414,.T.); 90 91/* Face 2 outer boundary edges */ 92#416=LINE('',#108,VECTOR('',(1,0,0),10.0)); 93#417=EDGE_CURVE('f2_e1',#208,#209,#416,.T.); 94#418=LINE('',#109,VECTOR('',(0,1,0),10.0)); 95#419=EDGE_CURVE('f2_e2',#209,#210,#418,.T.); 96#420=LINE('',#110,VECTOR('',(-1,0,0),10.0)); 97#421=EDGE_CURVE('f2_e3',#210,#211,#420,.T.); 98#422=LINE('',#111,VECTOR('',(0,-1,0),10.0)); 99#423=EDGE_CURVE('f2_e4',#211,#208,#422,.T.); 100 101/* Face 2 inner boundary edges (hole) */ 102#424=LINE('',#112,VECTOR('',(1,0,0),2.0)); 103#425=EDGE_CURVE('f2_hole_e1',#212,#213,#424,.T.); 104#426=LINE('',#113,VECTOR('',(0,1,0),2.0)); 105#427=EDGE_CURVE('f2_hole_e2',#213,#214,#426,.T.); 106#428=LINE('',#114,VECTOR('',(-1,0,0),2.0)); 107#429=EDGE_CURVE('f2_hole_e3',#214,#215,#428,.T.); 108#430=LINE('',#115,VECTOR('',(0,-1,0),2.0)); 109#431=EDGE_CURVE('f2_hole_e4',#215,#212,#430,.T.); 110 111/* Edge loops */ 112#500=ORIENTED_EDGE('',*,*,#401,.T.); 113#501=ORIENTED_EDGE('',*,*,#403,.T.); 114#502=ORIENTED_EDGE('',*,*,#405,.T.); 115#503=ORIENTED_EDGE('',*,*,#407,.T.); 116#504=EDGE_LOOP('f1_outer_loop',(#500,#501,#502,#503)); 117 118/* SHARED EDGE LOOP - aliased by both faces */ 119#505=ORIENTED_EDGE('',*,*,#409,.F.); 120#506=ORIENTED_EDGE('',*,*,#411,.F.); 121#507=ORIENTED_EDGE('',*,*,#413,.F.); 122#508=ORIENTED_EDGE('',*,*,#415,.F.); 123#509=EDGE_LOOP('shared_hole_loop',(#505,#506,#507,#508)); 124 125#510=ORIENTED_EDGE('',*,*,#417,.T.); 126#511=ORIENTED_EDGE('',*,*,#419,.T.); 127#512=ORIENTED_EDGE('',*,*,#421,.T.); 128#513=ORIENTED_EDGE('',*,*,#423,.T.); 129#514=EDGE_LOOP('f2_outer_loop',(#510,#511,#512,#513)); 130 131/* Face 2 inner loop (separate from Face 1's) */ 132#515=ORIENTED_EDGE('',*,*,#425,.F.); 133#516=ORIENTED_EDGE('',*,*,#427,.F.); 134#517=ORIENTED_EDGE('',*,*,#429,.F.); 135#518=ORIENTED_EDGE('',*,*,#431,.F.); 136#519=EDGE_LOOP('f2_inner_loop',(#515,#516,#517,#518)); 137 138/* Face bounds */ 139#600=FACE_OUTER_BOUND('',#504,.T.); 140#601=FACE_BOUND('',#509,.T.); 141#602=FACE_OUTER_BOUND('',#514,.T.); 142/* Face 2 uses the SAME #509 EDGE_LOOP for its inner bound - ALIASING BUG */ 143#603=FACE_BOUND('',#509,.T.); 144 145/* Faces with aliased inner boundary reference */ 146#700=ADVANCED_FACE('face1_with_hole',(#600,#601),#301,.T.); 147#701=ADVANCED_FACE('face2_with_hole',(#602,#603),#303,.T.); 148 149/* Shell */ 150#800=OPEN_SHELL('aliased_hole_shell',(#700,#701)); 151 152/* Mandatory PRODUCT chain */ 153#9000=PRODUCT_CONTEXT('',#1,'mechanical'); 154#9001=PRODUCT('Tsh113','Tsh113','',(#9000)); 155#9002=PRODUCT_DEFINITION_FORMATION('','',#9001); 156#9003=PRODUCT_DEFINITION_CONTEXT('part definition',#1,'design'); 157#9004=PRODUCT_DEFINITION('','',#9002,#9003); 158#9005=PRODUCT_DEFINITION_SHAPE('','',#9004); 159#9006=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 160#9007=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 161#9008=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 162#9009=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9006,'distance_accuracy_value',''); 163#9010=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9009))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9006,#9007,#9008))REPRESENTATION_CONTEXT('','3D')); 164#9021=SHELL_BASED_SURFACE_MODEL('sbsm',(#800)); 165#9022=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#9021),#9010); 166#9023=SHAPE_DEFINITION_REPRESENTATION(#9005,#9022); 167ENDSEC; 168END-ISO-10303-21;