step-examples/12-3b-wires/Twi167.stp
Sources
- synthesized — no external source cited
Description
ShapeFix_Wire.FixIntersectingEdges loop-collapse
Reproducer recipe
Expected kernel behavior
Every edge here carries a pcurve on the z=0 plane, and the bow-tie crossing of the first and third edges at (5,5,0) is present identically in 3D and in the face's parameters. Compute the crossing once, in one representation, and transfer the split parameter to the other — solving separately in 3D and in parameter space yields two slightly different vertices and a wire that ends up neither closed nor properly split. After splitting, check each resulting loop for non-zero enclosed area before accepting it (both halves here are triangles of area 25), and discard any loop that collapses, with a diagnostic, rather than emitting it as a face boundary.
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Tier-3 assertions
shape_null == True
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* Twi167: GEOMETRIC_CURVE_SET containing EDGE_LOOP with 4 edges on PLANE; PLANE: normal +Z, origin (0,0,0); bow-tie topology: e0 A(0,0)âB(10,10), e1 B(10,10)âC(10,0), e2 C(10,0)âD(0,10), e3 D(0,10)âA(0,0); e0 and e2 cross at bowtie_crossing (5,5,0) IS defect; FixIntersectingEdges applied to crossing-edge wire collapses loop to single point without raising collapse-detection error IS mechanism; GEOMETRIC_CURVE_SET IS model entity â OCC yields empty; all EDGE_CURVEs ARE wired into EDGE_LOOP; never orphaned */ 3HEADER; 4FILE_DESCRIPTION(('Twi167'),'2;1'); 5FILE_NAME('Twi167.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','',''); 6FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 7ENDSEC; 8DATA; 9#9000=APPLICATION_CONTEXT('mechanical design'); 10#1=CARTESIAN_POINT('',(0.0,0.0,0.0)); 11#2=DIRECTION('',(0.0,0.0,1.0)); 12#3=DIRECTION('',(1.0,0.0,0.0)); 13#4=AXIS2_PLACEMENT_3D('',#1,#2,#3); 14#5=PLANE('',#4); 15#6=CARTESIAN_POINT('',(0.0,0.0,0.0)); 16#7=VERTEX_POINT('',#6); 17#8=CARTESIAN_POINT('',(10.0,10.0,0.0)); 18#9=VERTEX_POINT('',#8); 19#10=CARTESIAN_POINT('',(10.0,0.0,0.0)); 20#11=VERTEX_POINT('',#10); 21#12=CARTESIAN_POINT('',(0.0,10.0,0.0)); 22#13=VERTEX_POINT('',#12); 23#14=CARTESIAN_POINT('bowtie_crossing',(5.0,5.0,0.0)); 24#15=CARTESIAN_POINT('',(0.0,0.0,0.0)); 25#16=DIRECTION('',(0.707106781187,0.707106781187,0.0)); 26#17=VECTOR('',#16,14.1421356237); 27#18=LINE('',#15,#17); 28#19=CARTESIAN_POINT('',(0.0,0.0)); 29#20=DIRECTION('',(0.707106781187,0.707106781187)); 30#21=VECTOR('',#20,14.1421356237); 31#22=LINE('',#19,#21); 32#23=DEFINITIONAL_REPRESENTATION('',(#22),#*); 33#24=PCURVE('',#5,#23); 34#25=SURFACE_CURVE('',#18,(#24),.PCURVE_S1.); 35#26=EDGE_CURVE('',#7,#9,#25,.T.); 36#27=ORIENTED_EDGE('',*,*,#26,.T.); 37#28=CARTESIAN_POINT('',(10.0,10.0,0.0)); 38#29=DIRECTION('',(0.0,-1.0,0.0)); 39#30=VECTOR('',#29,10.0); 40#31=LINE('',#28,#30); 41#32=CARTESIAN_POINT('',(10.0,10.0)); 42#33=DIRECTION('',(0.0,-1.0)); 43#34=VECTOR('',#33,10.0); 44#35=LINE('',#32,#34); 45#36=DEFINITIONAL_REPRESENTATION('',(#35),#*); 46#37=PCURVE('',#5,#36); 47#38=SURFACE_CURVE('',#31,(#37),.PCURVE_S1.); 48#39=EDGE_CURVE('',#9,#11,#38,.T.); 49#40=ORIENTED_EDGE('',*,*,#39,.T.); 50#41=CARTESIAN_POINT('',(10.0,0.0,0.0)); 51#42=DIRECTION('',(-0.707106781187,0.707106781187,0.0)); 52#43=VECTOR('',#42,14.1421356237); 53#44=LINE('',#41,#43); 54#45=CARTESIAN_POINT('',(10.0,0.0)); 55#46=DIRECTION('',(-0.707106781187,0.707106781187)); 56#47=VECTOR('',#46,14.1421356237); 57#48=LINE('',#45,#47); 58#49=DEFINITIONAL_REPRESENTATION('',(#48),#*); 59#50=PCURVE('',#5,#49); 60#51=SURFACE_CURVE('',#44,(#50),.PCURVE_S1.); 61#52=EDGE_CURVE('',#11,#13,#51,.T.); 62#53=ORIENTED_EDGE('',*,*,#52,.T.); 63#54=CARTESIAN_POINT('',(0.0,10.0,0.0)); 64#55=DIRECTION('',(0.0,-1.0,0.0)); 65#56=VECTOR('',#55,10.0); 66#57=LINE('',#54,#56); 67#58=CARTESIAN_POINT('',(0.0,10.0)); 68#59=DIRECTION('',(0.0,-1.0)); 69#60=VECTOR('',#59,10.0); 70#61=LINE('',#58,#60); 71#62=DEFINITIONAL_REPRESENTATION('',(#61),#*); 72#63=PCURVE('',#5,#62); 73#64=SURFACE_CURVE('',#57,(#63),.PCURVE_S1.); 74#65=EDGE_CURVE('',#13,#7,#64,.T.); 75#66=ORIENTED_EDGE('',*,*,#65,.T.); 76#67=EDGE_LOOP('',(#27,#40,#53,#66)); 77#68=GEOMETRIC_CURVE_SET('',(#67)); 78#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 79#9051=PRODUCT('Twi167','Twi167','',(#9050)); 80#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 81#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 82#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 83#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 84#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 85#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 86#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 87#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 88#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 89#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#68),#9060); 90#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 91ENDSEC; 92END-ISO-10303-21;