BoundingVolume

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

Bases: object

A container for describing a bounding volume.

type

The type of the bounding volume.

Type

int

volume

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

Type

object

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

__init__(type, volume)[source]

Initialize self. See help(type(self)) for accurate signature.