BoundingVolume
- class compas_fab.robots.BoundingVolume(volume_type, volume)[source]
Bases:
object
A container for describing a bounding volume.
- Parameters
volume_type – The type of bounding volume, one of
BoundingVolume.VOLUME_TYPES
.volume (
compas.datastructures.Mesh
orcompas.geometry.Primitive
) – The volume can be either acompas.geometry.Box
, acompas.geometry.Sphere
, or acompas.datastructures.Mesh
.
- Attributes
volume_type – The type of bounding volume, one of
BoundingVolume.VOLUME_TYPES
.volume (
compas.datastructures.Mesh
orcompas.geometry.Primitive
) – The volume can be either acompas.geometry.Box
, acompas.geometry.Sphere
, or acompas.datastructures.Mesh
.
- Class Attributes
BOX – Box bounding volume type.
SPHERE – Sphere bounding volume type.
MESH – Mesh bounding volume type.
VOLUME_TYPES – List of supported bounding volume types.
Methods
Make a copy of this
BoundingVolume
.Create a
BoundingVolume
from acompas.geometry.Box
.Create a
BoundingVolume
from acompas.datastructures.Mesh
.Create a
BoundingVolume
from acompas.geometry.Sphere
.Scale the volume uniformly.
Transform the volume using a
compas.geometry.Transformation
.