mosaic.parametrization.Parametrization#

class Parametrization(*args, **kwargs)[source]#

Bases: ABC

Abstract base class to represent picklable parametrizations.

__init__(*args, **kwargs)[source]#

Methods

__init__(*args, **kwargs)

compute_distance(points, **kwargs)

Computes the distance between points and the parameterization.

compute_normal(positions, *args, **kwargs)

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

fit(positions, *args, **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 the parametrization.