BoundingVolume.from_box

classmethod BoundingVolume.from_box(box)[source]

Create a BoundingVolume from a compas.geometry.Box.

Parameters:
boxcompas.geometry.Box

Box to define BoundingVolume with.

Returns:
BoundingVolume

Examples

>>> from compas.geometry import Frame
>>> from compas.geometry import Box
>>> from compas_fab.robots import BoundingVolume
>>> box = Box(1., 1., 1.)
>>> bv = BoundingVolume.from_box(box)
>>> bv.type
1