BoundingVolume

class compas_fab.robots.BoundingVolume(volume_type, volume)[source]

Bases: object

A container for describing a bounding volume.

Parameters
Attributes
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

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.