BoundingVolume.from_sphere
- classmethod BoundingVolume.from_sphere(sphere)[source]
Create a
BoundingVolumefrom acompas.geometry.Sphere.- Parameters:
- sphere
compas.geometry.Sphere Sphere to define
BoundingVolumewith.
- 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