step-examples/12-3b-wires/Twi095.stp
Sources
- OCCT MANTIS#0004968 (OCCT MANTIS tracker 502 as of 2026-05-02)
Description
A face has two wires (outer and inner, or two inners) that touch at a single point — neither crossing nor overlapping — sharing one vertex. The face is on the boundary of validity: depending on how the kernel models "touching", it is either a degenerate but legal face or a malformed one with non-simple boundary.
Reproducer recipe
Square outer wire 4×4 plus a triangular inner wire whose apex touches the midpoint of the outer wire's top edge. The shared vertex is referenced by both the outer wire's edge and the inner wire's apex.
Expected kernel behavior
detect tangential contact between wires of the same face and either split the touching wire into two or reject as a non-simple boundary.
Notes
**See also**: Tfa045. Synonyms: "two wires touch at single point", "tangential contact between hole and outer wire", "outer wire and inner wire share a vertex", "non-simple face boundary from touching wires", "kissing wires on face crash kernel".
Expected validation
occt=signal(11)/signal(11) gmsh=signal(11) ifc=schema_n/a
Closure intent
sheet — the open shell is the intended final geometry; a solid-only kernel should cleanly refuse.
Byte assertions
contains(b'V_shared')contains(b'shared_top_midpoint')contains(b'inner_triangle_apex_at_V_shared')
Cross-references
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* Twi095 - Touching wires on a face form a tangential contact at single vertex 3 * Square outer wire 4x4. The top edge is split at midpoint (2,4,0) into two 4 * sub-edges so that a SHARED VERTEX_POINT exists at that midpoint. An inner 5 * triangle wire's apex references the SAME VERTEX_POINT instance -- the 6 * outer wire and the inner wire touch at exactly one vertex. */ 7HEADER; 8FILE_DESCRIPTION(('Twi095 test case','Square outer + inner triangle whose apex IS the shared midpoint vertex'),'2;1'); 9FILE_NAME('Twi095.stp','2026-04-30T00:00:00',(''),(''),'cad-research-suite','',''); 10FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 1 1 1 1 }')); 11ENDSEC; 12DATA; 13#1=APPLICATION_CONTEXT('automotive_design'); 14#2=APPLICATION_PROTOCOL_DEFINITION('international standard','automotive_design',2000,#1); 15#10=CARTESIAN_POINT('',(0.0,0.0,0.0)); 16#11=DIRECTION('',(0.0,0.0,1.0)); 17#12=DIRECTION('',(1.0,0.0,0.0)); 18#13=AXIS2_PLACEMENT_3D('',#10,#11,#12); 19#14=PLANE('',#13); 20/* Square corners */ 21#20=CARTESIAN_POINT('',(0.0,0.0,0.0));#21=VERTEX_POINT('V1',#20); 22#22=CARTESIAN_POINT('',(4.0,0.0,0.0));#23=VERTEX_POINT('V2',#22); 23#24=CARTESIAN_POINT('',(4.0,4.0,0.0));#25=VERTEX_POINT('V3',#24); 24#26=CARTESIAN_POINT('shared_top_midpoint',(2.0,4.0,0.0));#27=VERTEX_POINT('V_shared',#26); 25#28=CARTESIAN_POINT('',(0.0,4.0,0.0));#29=VERTEX_POINT('V4',#28); 26/* Outer wire: 5 edges (top split into two sub-edges around V_shared) */ 27#30=DIRECTION('',(1.0,0.0,0.0));#31=VECTOR('',#30,1.0);#32=LINE('',#20,#31); 28#33=EDGE_CURVE('bottom',#21,#23,#32,.T.); 29#34=DIRECTION('',(0.0,1.0,0.0));#35=VECTOR('',#34,1.0);#36=LINE('',#22,#35); 30#37=EDGE_CURVE('right',#23,#25,#36,.T.); 31#38=DIRECTION('',(-1.0,0.0,0.0));#39=VECTOR('',#38,1.0);#40=LINE('',#24,#39); 32#41=EDGE_CURVE('top_right_subedge',#25,#27,#40,.T.); 33#42=DIRECTION('',(-1.0,0.0,0.0));#43=VECTOR('',#42,1.0);#44=LINE('',#26,#43); 34#45=EDGE_CURVE('top_left_subedge',#27,#29,#44,.T.); 35#46=DIRECTION('',(0.0,-1.0,0.0));#47=VECTOR('',#46,1.0);#48=LINE('',#28,#47); 36#49=EDGE_CURVE('left',#29,#21,#48,.T.); 37#50=ORIENTED_EDGE('',*,*,#33,.T.); 38#51=ORIENTED_EDGE('',*,*,#37,.T.); 39#52=ORIENTED_EDGE('',*,*,#41,.T.); 40#53=ORIENTED_EDGE('',*,*,#45,.T.); 41#54=ORIENTED_EDGE('',*,*,#49,.T.); 42#55=EDGE_LOOP('outer_5_edges_split_top',(#50,#51,#52,#53,#54)); 43#56=FACE_OUTER_BOUND('outer',#55,.T.); 44/* Inner triangle wire: apex shares V_shared (#27) with outer wire */ 45#60=CARTESIAN_POINT('',(1.5,3.0,0.0));#61=VERTEX_POINT('Ileft',#60); 46#62=CARTESIAN_POINT('',(2.5,3.0,0.0));#63=VERTEX_POINT('Iright',#62); 47#64=DIRECTION('',(1.0,0.0,0.0));#65=VECTOR('',#64,1.0);#66=LINE('',#60,#65); 48#67=EDGE_CURVE('inner_base',#61,#63,#66,.T.); 49#68=DIRECTION('',(-0.4472135954999579,0.8944271909999159,0.0));#69=VECTOR('',#68,2.236);#70=LINE('',#62,#69); 50#71=EDGE_CURVE('inner_right_to_apex',#63,#27,#70,.T.); 51#72=DIRECTION('',(-0.4472135954999579,-0.8944271909999159,0.0));#73=VECTOR('',#72,2.236);#74=LINE('',#26,#73); 52#75=EDGE_CURVE('inner_apex_to_left',#27,#61,#74,.T.); 53#80=ORIENTED_EDGE('',*,*,#67,.T.); 54#81=ORIENTED_EDGE('',*,*,#71,.T.); 55#82=ORIENTED_EDGE('',*,*,#75,.T.); 56#83=EDGE_LOOP('inner_triangle_apex_at_V_shared',(#80,#81,#82)); 57#84=FACE_INNER_BOUND('inner',#83,.T.); 58#90=ADVANCED_FACE('square_with_apex_touching_inner_tri',(#56,#84),#14,.T.); 59/* Wrap: minimal PRODUCT chain so OCCT TransferRoots produces a shape. */ 60#9000=PRODUCT_CONTEXT('',#1,'mechanical'); 61#9001=PRODUCT('Twi095','Twi095','',(#9000)); 62#9002=PRODUCT_DEFINITION_FORMATION('','',#9001); 63#9003=PRODUCT_DEFINITION_CONTEXT('part definition',#1,'design'); 64#9004=PRODUCT_DEFINITION('','',#9002,#9003); 65#9005=PRODUCT_DEFINITION_SHAPE('','',#9004); 66#9006=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 67#9007=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 68#9008=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 69#9009=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9006,'distance_accuracy_value',''); 70#9010=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9009))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9006,#9007,#9008))REPRESENTATION_CONTEXT('','3D')); 71#9020=OPEN_SHELL('wrap_shell',(#90)); 72#9021=SHELL_BASED_SURFACE_MODEL('wrap_sbsm',(#9020)); 73#9022=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#9021),#9010); 74#9023=SHAPE_DEFINITION_REPRESENTATION(#9005,#9022); 75ENDSEC; 76END-ISO-10303-21;