Sphere#
- class Sphere(radius, center)#
Parametrize a point cloud as sphere.
Methods
Sphere.compute_normal
(points)Compute the normal vector at a given point on the sphere surface.
Sphere.fit
(positions)Fit an sphere to a set of 3D points.
Sphere.points_per_sampling
(sampling_density)Computes the apporximate number of random samples required to achieve a given sampling_density.
Sphere.sample
(n_samples[, radius, center])Samples points from the surface of a sphere.