I want to assign a bounding box to my components on the largest surface and the longest edge. My components are always free-standing in space. How can I also take the longest curve into account when assigning the bounding box?
Thank you Volker, it works near by perfect. If i have groups it doesnt works and i dont know why… Have also a wonderfull Sunday You have any idea to solve it?
Yes, if it needs to work with a tree of data (i.e. multiple members) the script will need a little bit of alteration. Could you please give me some example geometry for me to work with?
Ok in that case the parts would need to be in a data tree. One branch could contain multiple parts. The file provided does not contain this information.
Oh. That I was not aware of. But it doesn’t matter for the first step, I don’t think. My initial plan was to flatten the BReps, work with that flattened list logic, then Unflatten back to the original tree structure. This is possible because there will ever only be one bounding box per BRep. The logic around ungrouping and regrouping exists outside of that, i.e. before and after. Maybe @martinsiegrist has time. Right now, I do not.
Let’s just consider that a question for another thread. I did test the cluster out on a data set randomly split into branches, so at least for a data tree, it will work.
Prost Jungs!
@michael.haertlein Just a tip: with the OpenNest plugin, you can tile these boxes out in the plane for an overview of the pieces. I don’t have any experience with this plug-in, but I know it exists.