step-examples/12-3a-shells/Tsh119.stp
Sources
- synthesized — no external source cited
Description
ShapeFix_Shell.Perform unused-vertex retention
Reproducer recipe
Expected kernel behavior
Live oracle measurement: OCCT crashes (SIGSEGV) reading this file, on both the heal-on and heal-off path. Face 3 is a degenerate triangle whose three EDGE_CURVEs all run from vertex #26 back to itself (zero length) using a private CARTESIAN_POINT at (20,20,0) shared by no other face. A kernel must never crash on this input: reject the degenerate face (all edges zero-length, self-referencing start/end vertex) with a diagnostic, and when a face carrying an otherwise-unreferenced vertex is dropped, also drop that vertex from the shell rather than leaving it referenced only by already-removed topology.
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
Byte assertions
contains(b'ADVANCED_FACE')
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* Tsh119 - ShapeFix_Shell.Perform unused-vertex retention 3 * Defect: shell where Perform removes a face; vertex used only by that face 4 * is left orphaned in the shell topology */ 5HEADER; 6FILE_DESCRIPTION(('Tsh119 - orphaned vertex after face removal','wave 25'),'2;1'); 7FILE_NAME('Tsh119.stp','2026-06-15T00:00:00',(''),(''),'heal coverage','',''); 8FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 9ENDSEC; 10DATA; 11#1=APPLICATION_CONTEXT('automotive_design'); 12#2=APPLICATION_PROTOCOL_DEFINITION('international standard','automotive_design',2000,#1); 13 14/* Two rectangular faces sharing one edge; third face uses orphan vertex */ 15/* Face 1: (0,0,0)-(10,0,0)-(10,10,0)-(0,10,0) [bottom] */ 16/* Face 2: (0,0,0)-(10,0,0)-(10,0,10)-(0,0,10) [front] */ 17/* Face 3: degenerate triangle at (20,20,0) using only orphan vertex */ 18 19/* Base vertices for faces 1-2 */ 20#10=CARTESIAN_POINT('',(0,0,0)); 21#11=CARTESIAN_POINT('',(10.0,0,0)); 22#12=CARTESIAN_POINT('',(10.0,10.0,0)); 23#13=CARTESIAN_POINT('',(0,10.0,0)); 24#14=CARTESIAN_POINT('',(10.0,0,10.0)); 25#15=CARTESIAN_POINT('',(0,0,10.0)); 26 27/* Orphan vertex (used only by degenerate face 3) */ 28#16=CARTESIAN_POINT('',(20.0,20.0,0)); 29 30/* Vertex references */ 31#20=VERTEX_POINT('',#10); 32#21=VERTEX_POINT('',#11); 33#22=VERTEX_POINT('',#12); 34#23=VERTEX_POINT('',#13); 35#24=VERTEX_POINT('',#14); 36#25=VERTEX_POINT('',#15); 37#26=VERTEX_POINT('',#16); 38 39/* Planes */ 40#30=AXIS2_PLACEMENT_3D('z0_plane',#10,DIRECTION('',(0,0,-1)),DIRECTION('',(1,0,0))); 41#31=PLANE('',#30); 42#32=AXIS2_PLACEMENT_3D('y0_plane',#10,DIRECTION('',(0,-1,0)),DIRECTION('',(1,0,0))); 43#33=PLANE('',#32); 44#34=AXIS2_PLACEMENT_3D('degenerate_plane',#16,DIRECTION('',(0,0,1)),DIRECTION('',(1,0,0))); 45#35=PLANE('',#34); 46 47/* Face 1 edges (bottom rectangle) */ 48#50=LINE('',#10,VECTOR('',(1,0,0),10.0)); 49#51=EDGE_CURVE('f1_e1',#20,#21,#50,.T.); 50#52=LINE('',#11,VECTOR('',(0,1,0),10.0)); 51#53=EDGE_CURVE('f1_e2',#21,#22,#52,.T.); 52#54=LINE('',#12,VECTOR('',(-1,0,0),10.0)); 53#55=EDGE_CURVE('f1_e3',#22,#23,#54,.T.); 54#56=LINE('',#13,VECTOR('',(0,-1,0),10.0)); 55#57=EDGE_CURVE('f1_e4',#23,#20,#56,.T.); 56 57/* Face 2 shared edge (shared with face 1) */ 58/* #51 reused as shared edge */ 59 60/* Face 2 vertical edges */ 61#58=LINE('',#11,VECTOR('',(0,0,1),10.0)); 62#59=EDGE_CURVE('f2_vert1',#21,#24,#58,.T.); 63#60=LINE('',#14,VECTOR('',(-1,0,0),10.0)); 64#61=EDGE_CURVE('f2_e2',#24,#25,#60,.T.); 65#62=LINE('',#15,VECTOR('',(0,0,-1),10.0)); 66#63=EDGE_CURVE('f2_e3',#25,#20,#62,.T.); 67 68/* Face 3 edges (degenerate triangle, all from/to orphan vertex) */ 69#64=LINE('',#16,VECTOR('',(0,0,0),1.0)); 70#65=EDGE_CURVE('f3_e1',#26,#26,#64,.T.); 71#66=EDGE_CURVE('f3_e2',#26,#26,#64,.T.); 72#67=EDGE_CURVE('f3_e3',#26,#26,#64,.T.); 73 74/* Face 1 edge loop (bottom) */ 75#80=ORIENTED_EDGE('',*,*,#51,.T.); 76#81=ORIENTED_EDGE('',*,*,#53,.T.); 77#82=ORIENTED_EDGE('',*,*,#55,.T.); 78#83=ORIENTED_EDGE('',*,*,#57,.T.); 79#84=EDGE_LOOP('f1_loop',(#80,#81,#82,#83)); 80 81/* Face 2 edge loop (front) */ 82#85=ORIENTED_EDGE('',*,*,#51,.F.); 83#86=ORIENTED_EDGE('',*,*,#59,.T.); 84#87=ORIENTED_EDGE('',*,*,#61,.T.); 85#88=ORIENTED_EDGE('',*,*,#63,.T.); 86#89=EDGE_LOOP('f2_loop',(#85,#86,#87,#88)); 87 88/* Face 3 edge loop (degenerate) */ 89#90=ORIENTED_EDGE('',*,*,#65,.T.); 90#91=ORIENTED_EDGE('',*,*,#66,.T.); 91#92=ORIENTED_EDGE('',*,*,#67,.T.); 92#93=EDGE_LOOP('f3_loop',(#90,#91,#92)); 93 94/* Face bounds */ 95#100=FACE_OUTER_BOUND('',#84,.T.); 96#101=FACE_OUTER_BOUND('',#89,.T.); 97#102=FACE_OUTER_BOUND('',#93,.T.); 98 99/* Faces */ 100#110=ADVANCED_FACE('f1',(#100),#31,.T.); 101#111=ADVANCED_FACE('f2',(#101),#33,.T.); 102#112=ADVANCED_FACE('f3_degenerate',(#102),#35,.T.); 103 104/* Open shell with orphan vertex */ 105#130=OPEN_SHELL('orphan_shell',(#110,#111,#112)); 106 107/* Mandatory PRODUCT chain */ 108#9000=PRODUCT_CONTEXT('',#1,'mechanical'); 109#9001=PRODUCT('Tsh119','Tsh119','',(#9000)); 110#9002=PRODUCT_DEFINITION_FORMATION('','',#9001); 111#9003=PRODUCT_DEFINITION_CONTEXT('part definition',#1,'design'); 112#9004=PRODUCT_DEFINITION('','',#9002,#9003); 113#9005=PRODUCT_DEFINITION_SHAPE('','',#9004); 114#9006=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 115#9007=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 116#9008=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 117#9009=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9006,'distance_accuracy_value',''); 118#9010=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9009))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9006,#9007,#9008))REPRESENTATION_CONTEXT('','3D')); 119#9021=SHELL_BASED_SURFACE_MODEL('sbsm',(#130)); 120#9022=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#9021),#9010); 121#9023=SHAPE_DEFINITION_REPRESENTATION(#9005,#9022); 122ENDSEC; 123END-ISO-10303-21;