# More efficiency method for Intersection of lines?

**URL:** <https://forum.dynamobim.com/t/more-efficiency-method-for-intersection-of-lines/20991>\
**Category:** Geometry\
**Created:** [April 12, 2018, 6:12pm UTC](https://forum.dynamobim.com/t/more-efficiency-method-for-intersection-of-lines/20991 "2018-04-12T18:12:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![glenncai](https://avatars.discourse-cdn.com/v4/letter/g/dc4da7/32.png) [@glenncai](https://forum.dynamobim.com/u/glenncai)\
**Post date:** [April 12, 2018, 6:12pm UTC](https://forum.dynamobim.com/t/more-efficiency-method-for-intersection-of-lines/20991/1 "2018-04-12T18:12:57Z")

</div>

Hi,  
I’m able to get intersections of all cross diagonal lines by using Geometry.IntersectAll but seems run slow if i increase the amount of lines. Is there any better way that can make the program run faster? Thanks

 ![diagonalintersections](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/2/22e9d7c99e49b97a289c6a8a3c5f95f29f8c0870.JPG) ![diagonalInterection](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/6/16dcf7829ec9c65fd57b0aabb96aa4f613a3de9a.png)[InterectiontLogic.dyn](https://forum.dynamobim.com/uploads/short-url/96c8sQ56z24HHaL1uNMVkH4499w.dyn) (10.0 KB)  
[CrossDiagonalFillBySpacing.dyf](https://forum.dynamobim.com/uploads/short-url/ufVI4XKoFQWo7CA0gfgEvjmRJiE.dyf) (49.3 KB)

---

<div class="post-metadata">

**Author:** ![Thomas\_Mahon](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/thomas_mahon/32/64209_2.png) [@Thomas\_Mahon](https://forum.dynamobim.com/u/Thomas_Mahon)\
**Post date:** [April 12, 2018, 7:15pm UTC](https://forum.dynamobim.com/t/more-efficiency-method-for-intersection-of-lines/20991/2 "2018-04-12T19:15:56Z")

</div>

Curve.IntersectAll in BimorphNodes:

![Curve-IntersectsAll-Performance-Benchmarking-Test-Results](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/3/338a0e4b85c8c95fed940bf8d9cebb25c493bc63.png)

There’s more info [here](https://bimorph.com/dynamo-bim/bimorph-nodes-v2-1-released/) if you want to know more about the node.
