BoundingVolume.from_sphere

classmethod BoundingVolume.from_sphere(sphere)

Create a BoundingVolume from a compas.geometry.Sphere.

Parameters

sphere (compas.geometry.Sphere) – Sphere to define BoundingVolume with.

Returns

BoundingVolume

Examples

>>> from compas.geometry import Sphere
>>> from compas_fab.robots import BoundingVolume
>>> sphere = Sphere((1., 1., 1.), 5.)
>>> bv = BoundingVolume.from_sphere(sphere)
>>> bv.type
2