mosaic.parametrization.SplineCurve#

class SplineCurve(positions, order=1, **kwargs)[source]#

Bases: Parametrization

Parametrize a point cloud as a spline curve.

Parameters:
positionsnp.ndarray

Control points defining the spline curve

__init__(positions, order=1, **kwargs)[source]#

Methods

__init__(positions[, order])

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, **kwargs)

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.