step-examples/12-3a-shells/Tsh163.stp
Sources
- synthesized — no external source cited
Description
ShapeAnalysis_Shell.FreeEdges edge-by-vertex-coincidence
Reproducer recipe
Expected kernel behavior
Live oracle measurement: OCCT crashes (SIGSEGV) reading this file, on both the heal-on and heal-off path. Two EDGE_CURVEs both start or end at the same shared vertex, but the LINE geometry underlying one of them does not actually pass through that vertex's coordinates — a topological match with a geometric discontinuity. A kernel must never crash on this input: a free-edge or connectivity check based only on shared VERTEX_POINT identity is not sufficient — verify that each edge's curve geometry actually reaches the vertex coordinates it claims to reference, and report a mismatch as a defect rather than treating vertex-identity alone as proof of geometric continuity.
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/* Tsh163 - ShapeAnalysis_Shell.FreeEdges edge-by-vertex-coincidence 3 * Defect: Two edges connect at a vertex but their curve geometries don't agree 4 * at the vertex. FreeEdges treats them as connected (no free edge reported) even 5 * though the geometry shows discontinuity. */ 6HEADER; 7FILE_DESCRIPTION(('Tsh163 test case','Edges with vertex-geometry mismatch'),'2;1'); 8FILE_NAME('Tsh163.stp','2026-06-15T00:00:00',(''),(''),'auto-generated','',''); 9FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 10ENDSEC; 11DATA; 12#1=APPLICATION_CONTEXT('automotive_design'); 13#2=APPLICATION_PROTOCOL_DEFINITION('international standard','automotive_design',2000,#1); 14/* Two faces sharing a vertex but with misaligned curves at that vertex */ 15#100=CARTESIAN_POINT('v0',(0.0,0.0,0.0)); 16#101=CARTESIAN_POINT('v1',(1.0,0.0,0.0)); 17#102=CARTESIAN_POINT('v2',(0.5,1.0,0.0)); 18#103=CARTESIAN_POINT('v3',(1.5,1.0,0.0)); 19#110=VERTEX_POINT('',#100); #111=VERTEX_POINT('',#101); 20#112=VERTEX_POINT('',#102); #113=VERTEX_POINT('',#103); 21/* Edge 1: (0,1) straight line */ 22#200=DIRECTION('',(1.0,0.0,0.0)); 23#201=VECTOR('',#200,1.0); 24#202=DIRECTION('',(0.0,1.0,0.0)); 25#203=VECTOR('',#202,1.0); 26#204=DIRECTION('',(-0.5,1.0,0.0)); #205=VECTOR('',#204,1.12); 27#206=DIRECTION('',(0.5,1.0,0.0)); #207=VECTOR('',#206,1.12); 28#210=LINE('e01',#100,#201); #211=EDGE_CURVE('shared_01',#110,#111,#210,.T.); 29#212=LINE('e02_f1',#100,#202); #213=EDGE_CURVE('',#110,#112,#212,.T.); 30#214=LINE('e12_f1',#101,#204); #215=EDGE_CURVE('e12_tri1',#111,#112,#214,.T.); 31#216=LINE('e01_other',#100,#201); #217=EDGE_CURVE('edge_01_f2',#110,#111,#216,.T.); 32#218=LINE('e13_f2',#101,#206); #219=EDGE_CURVE('e13_tri2',#111,#113,#218,.T.); 33#220=LINE('e03_f2',#100,#202); #221=EDGE_CURVE('e03_f2',#100,#113,#220,.T.); 34/* Face 1: triangle (0,1,2) */ 35#300=ORIENTED_EDGE('',*,*,#211,.T.); 36#301=ORIENTED_EDGE('',*,*,#215,.T.); 37#302=ORIENTED_EDGE('',*,*,#213,.F.); 38#303=EDGE_LOOP('',(#300,#301,#302)); 39#304=FACE_OUTER_BOUND('',#303,.T.); 40#305=AXIS2_PLACEMENT_3D('',#100,#202,#200); 41#306=PLANE('plane_f1',#305); 42#310=ADVANCED_FACE('tri_f1',(#304),#306,.T.); 43/* Face 2: triangle (1,2,3) with edge01 reference - geometry mismatch */ 44#320=ORIENTED_EDGE('',*,*,#211,.F.); 45#321=ORIENTED_EDGE('',*,*,#219,.T.); 46#322=ORIENTED_EDGE('',*,*,#221,.F.); 47#323=EDGE_LOOP('',(#320,#321,#322)); 48#324=FACE_OUTER_BOUND('',#323,.T.); 49#325=AXIS2_PLACEMENT_3D('',#101,#202,#200); 50#326=PLANE('plane_f2',#325); 51#330=ADVANCED_FACE('tri_f2',(#324),#326,.T.); 52#400=OPEN_SHELL('faces_vertex_mismatch',(#310,#330)); 53#9000=PRODUCT_CONTEXT('',#1,'mechanical'); 54#9001=PRODUCT('Tsh163','Tsh163','',(#9000)); 55#9002=PRODUCT_DEFINITION_FORMATION('','',#9001); 56#9003=PRODUCT_DEFINITION_CONTEXT('part definition',#1,'design'); 57#9004=PRODUCT_DEFINITION('','',#9002,#9003); 58#9005=PRODUCT_DEFINITION_SHAPE('','',#9004); 59#9006=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 60#9007=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 61#9008=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 62#9009=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9006,'distance_accuracy_value',''); 63#9010=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9009))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9006,#9007,#9008))REPRESENTATION_CONTEXT('','3D')); 64#9021=SHELL_BASED_SURFACE_MODEL('sbsm',(#400)); 65#9022=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#9021),#9010); 66#9023=SHAPE_DEFINITION_REPRESENTATION(#9005,#9022); 67ENDSEC; 68END-ISO-10303-21;