BoundingVolume
- class compas_fab.robots.BoundingVolume[source]
Bases:
Data
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 a
compas.geometry.Box
, acompas.geometry.Sphere
, or acompas.datastructures.Mesh
.
Notes
- BoundingVolume.BOX
Box bounding volume type.
- BoundingVolume.SPHERE
Sphere bounding volume type.
- BoundingVolume.MESH
Mesh bounding volume type.
- BoundingVolume.VOLUME_TYPES
List of supported bounding volume types.
- 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 a
compas.geometry.Box
, acompas.geometry.Sphere
, or acompas.datastructures.Mesh
.
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
.Inherited Methods
Converts the instance to a string.
Construct an object of this type from a JSON file.
Construct an object of this type from a JSON string.
Compute a hash of the data for comparison during version control using the sha256 algorithm.
Convert an object to its native data representation and save it to a JSON file.
Convert an object to its native data representation and save it to a JSON string.
Validate the data against the object's data schema.