mosaic.parametrization.Cylinder#

class Cylinder(centers, orientations, radius, height)[source]#

Bases: Parametrization

Parametrize a point cloud as a cylinder.

Parameters:
centersnp.ndarray

Center coordinates of the cylinder in X, Y, and Z.

orientationsnp.ndarray

Orientation matrix (direction vectors).

radiusfloat

Radius of the cylinder.

heightfloat

Height of the cylinder.

__init__(centers, orientations, radius, height)[source]#

Methods

__init__(centers, orientations, radius, height)

compute_distance(points, **kwargs)

Computes the distance between points and the parameterization.

compute_normal(points)

Compute surface normals for points on the cylinder.

fit(positions, **kwargs)

Fit a cylinder to point cloud data with improved stability.

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, ...])

Sample points from the surface of a cylinder.