I currently don’t understand on how to get the 3D Bounding Box of a component.
I’m sorry for asking so much.
import rhinoscriptsyntax as rs import ghpythonlib as ghpy import Grasshopper as gh import Rhino pt = rs.CreatePoint(0,0,0) box = ghpy.components.BoundingBox(mesh,ghpy.components.XYPlane(pt)) #print(dir(box)) # <-- Is this a bug? """ Runtime error (TypeErrorException): unsupported operand type(s) for +: 'list' and 'Array[str]' Traceback: line 81, in __dir__, "\Roaming\McNeel\Rhinoceros\6.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib\ghpythonlib\components.py" line 14, in script """ print(box.Volume) print(box.Corner) print(box.Properties) print(box.sdfsdf) # These all return Rhino.Geometry.Box, even when using nonsense attributes like in the last line.
I already checked the forum, but these posts didn’t really help me:
This one is using pure grasshopper for the bounding box though:
This one is for the minimum bounding box, all I need is a regular one: