blenderproc.python.sampler.Sphere module¶
-
blenderproc.python.sampler.Sphere.
sphere
(center, radius, mode)[source]¶ Samples a point from the surface or from the interior of solid sphere.
https://math.stackexchange.com/a/87238 https://math.stackexchange.com/a/1585996
Example 1: Sample a point from the surface of the solid sphere of a defined radius and center location.
Sphere.sample( center=Vector([0, 0, 0]), radius=2, mode="SURFACE" )
Parameters: Return type: ndarray