BoundingVolume

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

Bases: object

A container for describing a bounding volume.

Attributes
  • type (int) – The type of the bounding volume.

  • volume (object) – The volume can be either a Box, a Sphere, or a Mesh.

Methods

__init__(type, volume)

Initialize self.

copy()

Make a copy of this BoundingVolume.

from_box(box)

Creates a BoundingVolume from a compas.geometry.Box.

from_mesh(mesh)

Creates a BoundingVolume from a compas.datastructures.Mesh.

from_sphere(sphere)

Creates a BoundingVolume from a compas.geometry.Sphere.

scale(scale_factor)

transform(transformation)

Attributes

BOX

MESH

SPHERE