BoundingVolume.from_sphere
- classmethod BoundingVolume.from_sphere(sphere)
Create a
BoundingVolume
from acompas.geometry.Sphere
.- Parameters
sphere (
compas.geometry.Sphere
) – Sphere to defineBoundingVolume
with.- Returns
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