BoundingVolume

class compas_fab.robots.BoundingVolume[source]

Bases: object

A container for describing a bounding volume.

Parameters:
volume_type

The type of bounding volume, one of BoundingVolume.VOLUME_TYPES.

volumecompas.datastructures.Mesh or compas.geometry.Primitive

The volume can be either a compas.geometry.Box, a compas.geometry.Sphere, or a compas.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.

volumecompas.datastructures.Mesh or compas.geometry.Primitive

The volume can be either a compas.geometry.Box, a compas.geometry.Sphere, or a compas.datastructures.Mesh.

Methods

copy

Make a copy of this BoundingVolume.

from_box

Create a BoundingVolume from a compas.geometry.Box.

from_mesh

Create a BoundingVolume from a compas.datastructures.Mesh.

from_sphere

Create a BoundingVolume from a compas.geometry.Sphere.

scale

Scale the volume uniformly.

transform

Transform the volume using a compas.geometry.Transformation.