BoundingVolume.from_sphere
- classmethod BoundingVolume.from_sphere(sphere)[source]
Create a
BoundingVolume
from acompas.geometry.Sphere
.- Parameters:
- sphere
compas.geometry.Sphere
Sphere to define
BoundingVolume
with.
- sphere
- Returns:
Examples
>>> from compas.geometry import Sphere >>> from compas_fab.robots import BoundingVolume >>> sphere = Sphere(5.0, Frame.worldXY()) >>> bv = BoundingVolume.from_sphere(sphere) >>> bv.type 2