BoundingVolume
- class compas_fab.robots.BoundingVolume[source]
Bases:
objectA container for describing a bounding volume.
- Parameters:
- volume_type
The type of bounding volume, one of
BoundingVolume.VOLUME_TYPES.- volume
compas.datastructures.Meshorcompas.geometry.Primitive The volume can be either a
compas.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.Meshorcompas.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.
Methods
Make a copy of this
BoundingVolume.Create a
BoundingVolumefrom acompas.geometry.Box.Create a
BoundingVolumefrom acompas.datastructures.Mesh.Create a
BoundingVolumefrom acompas.geometry.Sphere.Scale the volume uniformly.
Transform the volume using a
compas.geometry.Transformation.