step-examples/12-3b-wires/Twi225.stp
Sources
- synthesized — no external source cited
Description
Every LINE puts a direction entity in the slot that requires a vector, so the reader aborts before self-intersection analysis is reached
Reproducer recipe
Expected kernel behavior
The vertex at (5,0,0) is the end of one edge and the start of three more, so this bound is a branching graph rather than a simple closed contour. Count the edge-ends incident on each vertex and, where the count exceeds two, treat the wire as several loops or chains glued at a point — separate them or reject the bound naming the vertex — rather than reporting the shared point as a curve crossing to be split, which would only recreate the same junction. The lines here are equally unbuildable, a direction standing where a vector must, and that has to surface as a diagnostic rather than an abort partway through translation.
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/* Twi225 - ShapeAnalysis_Wire.CheckSelfIntersection branch-point 3 * Defect: Wire with a vertex where 3 or more edges meet (branch point). 4 * CheckSelfIntersection assumes wire vertices are 2-edge vertices (start/end of 5 * adjacent edges). At a branch point with 3+ edges, the intersection detection 6 * logic incorrectly classifies the configuration as "self-intersection" rather 7 * than a topological degeneration or degeneracy condition that needs explicit handling. 8 */ 9HEADER; 10FILE_DESCRIPTION(('Twi225 test case','CheckSelfIntersection branch-point â vertex with 3+ edges'),'2;1'); 11FILE_NAME('Twi225.stp','2026-06-15T00:00:00',('[email protected]'),(''),'cad-research-suite','',''); 12FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 13ENDSEC; 14DATA; 15#1=APPLICATION_CONTEXT('automotive_design'); 16#2=APPLICATION_PROTOCOL_DEFINITION('international standard','automotive_design',2000,#1); 17#9000=PRODUCT_CONTEXT('',#1,'mechanical'); 18#9001=PRODUCT('Twi225','Twi225','',(#9000)); 19#9002=PRODUCT_DEFINITION_FORMATION('','',#9001); 20#9003=PRODUCT_DEFINITION_CONTEXT('part definition',#1,'design'); 21#9004=PRODUCT_DEFINITION('','',#9002,#9003); 22#9005=PRODUCT_DEFINITION_SHAPE('','',#9004); 23#9006=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 24#9007=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 25#9008=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 26#9009=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9006,'distance_accuracy_value',''); 27#9010=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9009))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9006,#9007,#9008))REPRESENTATION_CONTEXT('','3D')); 28#100=CARTESIAN_POINT('',(0.0,0.0,0.0)); 29#101=DIRECTION('',(0.0,0.0,1.0)); 30#102=DIRECTION('',(1.0,0.0,0.0)); 31#103=AXIS2_PLACEMENT_3D('',#100,#101,#102); 32#104=PLANE('',#103); 33/* Wire with branch point: vertex V_branch where 3 edges meet 34 Normal wire structure: V1 -> V_branch -> V3 35 V0 -> V_branch 36 V_branch -> V4 37 This creates a "Y" junction where CheckSelfIntersection will see 3 edges 38 meeting at one vertex and misinterpret it as self-intersection instead of 39 recognizing it as topological degeneracy. 40*/ 41#110=CARTESIAN_POINT('',(0.0,0.0,0.0)); 42#111=CARTESIAN_POINT('',(5.0,0.0,0.0)); 43#112=CARTESIAN_POINT('',(5.0,5.0,0.0)); 44#113=CARTESIAN_POINT('',(5.0,-5.0,0.0)); 45#114=CARTESIAN_POINT('',(10.0,0.0,0.0)); 46#115=CARTESIAN_POINT('',(0.0,0.0,0.0)); 47/* Create vertices for the branch junction */ 48#120=VERTEX_POINT('',#110); 49#121=VERTEX_POINT('',#111); 50#122=VERTEX_POINT('',#112); 51#123=VERTEX_POINT('',#113); 52#124=VERTEX_POINT('',#114); 53/* Edge1: entry to branch from V0 to V_branch */ 54#130=LINE('',#110,#102); 55#131=EDGE_CURVE('',#120,#121,#130,.T.); 56/* Edge2: first exit from branch, V_branch to V2 (upward) */ 57#132=DIRECTION('',(0.0,1.0,0.0)); 58#133=LINE('',#111,#132); 59#134=EDGE_CURVE('',#121,#122,#133,.T.); 60/* Edge3: second exit from branch, V_branch to V3 (downward) */ 61#135=DIRECTION('',(0.0,-1.0,0.0)); 62#136=LINE('',#111,#135); 63#137=EDGE_CURVE('',#121,#123,#136,.T.); 64/* Edge4: third exit from branch, V_branch to V4 (rightward) - creating 3-degree vertex */ 65#138=LINE('',#111,#102); 66#139=EDGE_CURVE('',#121,#124,#138,.T.); 67/* Edge5: close wire from V4 back to V0 */ 68#140=LINE('',#114,#102); 69#141=EDGE_CURVE('',#124,#120,#140,.T.); 70/* Oriented edges: E1, E2, E3, E4, E5 */ 71#200=ORIENTED_EDGE('',*,*,#131,.T.); 72#201=ORIENTED_EDGE('',*,*,#134,.T.); 73#202=ORIENTED_EDGE('',*,*,#137,.T.); 74#203=ORIENTED_EDGE('',*,*,#139,.T.); 75#204=ORIENTED_EDGE('',*,*,#141,.T.); 76/* Edge loop with branch point (V_branch where 3 edges meet) */ 77#210=EDGE_LOOP('',(#200,#201,#202,#203,#204)); 78/* Face outer bound */ 79#220=FACE_OUTER_BOUND('',#210,.T.); 80#221=ADVANCED_FACE('',(#220),#104,.T.); 81/* Shell and manifold representation */ 82#250=CLOSED_SHELL('',(#221)); 83#9021=SHELL_BASED_SURFACE_MODEL('sbsm',(#250)); 84#9022=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#9021),#9010); 85#9023=SHAPE_DEFINITION_REPRESENTATION(#9005,#9022); 86ENDSEC; 87END-ISO-10303-21;