I have a foundation plan of concrete beams supported by piles. I figured out which piles belong to which beams with Boundigbox.Intersects, this works fine as long as the beam has not been rotated on the plan. The strange thing is that the MaxPoint does give the correct result.
As far as i know this is not happening in R24
The red arrow below is the beam rotated on plan and the piles below are no. 44 and 45 in the list. ( this is a copy from a not rotated element)
You’ll need to run a for loop over the list of items. It’s a very common task in Python and usuall early on the things to learn as a beginner. I have a video here which covers the core principle:
Thanks. I am also talking with people who arrange courses and such in / for our company.
There are some more colleagues who wanna learn Python. So we hope we can do that
through our company. Also trying to free up some hours in my projects.
But BoundingBox.ByMinimumVolume does consider the alignment of an element.
Never tried this. Also works. I guess i learned something today.
Though i also don’t understand why you (and i) get a false…
To get the minimum volume bounding box you have already created the Dynamo geometry, so using the Geometry.DoesIntersect removes the need to get the bounding boxes
Ah
The BoundingBoxes hasn’t the sam alignment because the BoundingBox.ByMinimumVolume in this case is a round pile and this has the alignment of the x- and y-grid.
I’m wondering why when I create a bounding box (BB) using the BB.ByGeometry nodes for two elements individually, and then check their intersection using the BB.Intersect node, it works fine. However, when I try the same with the elements grouped in a list, I don’t get the intersection BB. Can you help me understand this?