BoundingVolume
-
class
compas_fab.robots.BoundingVolume(type, volume)[source] Bases:
objectA container for describing a bounding volume.
- Attributes
type (int) – The type of the bounding volume.
volume (object) – The volume can be either a Box, a Sphere, or a Mesh.
Methods
__init__(type, volume)Initialize self.
copy()Make a copy of this
BoundingVolume.from_box(box)Creates a BoundingVolume from a
compas.geometry.Box.from_mesh(mesh)Creates a
BoundingVolumefrom acompas.datastructures.Mesh.from_sphere(sphere)Creates a
BoundingVolumefrom acompas.geometry.Sphere.scale(scale_factor)transform(transformation)Attributes
BOXMESHSPHERE