How to find a bounding box edge length?

If to use **Rhino.Geometry.BoundingBox.GetEdges()** we get the array of points for each of its edges. So, I can do a mathematical calculation with that points to get the length for each of the edges but I think there should be a more simple way to do it.

Hi @sadovshikov BoundingBox.GetEdges Method returns the Line array.So you only need to call the sum() function to accumulate the length of the line.like this

```
import math as m
edges = geo.GetBoundingBox(True).GetEdges()
a = m.fsum([line.Length for line in edges])
```

1 Like

@603419608 Thank you! I didnâ€™t know about the Length proper of a Line actually, itâ€™s merely my first steps in RhinoCommonâ€¦