mosaic.parametrization.RBF#
- class RBF(rbf, direction, grid)[source]#
Bases:
ParametrizationParametrize a point cloud using radial basis functions.
- Parameters:
- rbfscipy.interpolate.Rbf
Radial basis function interpolator instance.
- directionstr
Direction of interpolation relative to positions.
- grid: Tuple
2D interpolation grid ranges.
Methods
__init__(rbf, direction, grid)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[, direction, function, smooth])Fit a RBF to a set of 3D points.
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])Sample points from the RBF.