mosaic.parametrization.Ellipsoid#

class Ellipsoid(radii, center, orientations)[source]#

Bases: Parametrization

Parametrize a point cloud as ellipsoid.

Parameters:
radiinp.ndarray

Radii of the ellipse along each axis

centernp.ndarray

Center of the ellipse along each axis

orientationsnp.ndarray

Square orientation matrix

__init__(radii, center, orientations)[source]#

Methods

__init__(radii, center, orientations)

compute_distance(points, **kwargs)

Computes the distance between points and the parameterization.

compute_normal(points)

Compute the normal vector at a given point on the surface.

fit(positions, **kwargs)

Fit a parametrization to a point cloud.

points_per_sampling(sampling_density[, ...])

Computes the approximate number of random samples required to achieve a given spatial sampling_density.

sample(n_samples[, normal_offset])

Samples points from the surface of an ellisoid.