I have found a lot of threads dealing with this issue but none that actually solve it in a definite way.
Like this for example: Bounding Box by Geometry Coordinate System problem
- For finding the minimal space boundingbox of an instance, say a window.
- For calculating orientation of instances.
- For transforming instances or getting transformation from instances.
Can we have a node that returns the local coordinate system of an instance object?
Right now the bounding box only returns a box in the project coordinate system…
There used to be a node called BoundingBox.ByGeometryCoordinateSystem . You need that node.
Unfortunately, it’s been broken for a while and is being worked on.
Its a showstopper for a bunch of our new pipeline tools so its great to know that its being worked on.
And from reading the link its seems not to far of although it has been quite a while in the making.
Thanks for the reply!
Yes its very irritating this doesnt work…
Found another solution;
Use Elements.position-rotation node to get the rotation angle of the thing you want to fit a box to.
Get the objects geometry.
Rotate the geometry by the angle*-1, so it is orthogonal.
Fit a bounding box to the orthogonal geometry.
Use the correct bounding box to create/size whatever you want.
Rotate created geometry back to correct angle,
Use Set Rotation node to rotate family instances back to the original angle…