mosaic.operations.fit#

fit(geometry, method, **kwargs)[source]#

Fit a model to a point cloud.

Parameters:
geometryGeometry or GeometryData

Input point cloud geometry.

methodstr

Fitting method. Options are: - ‘alpha_shape’ : Alpha-shape based surface reconstruction - ‘ball_pivoting’ : Ball pivoting surface reconstruction - ‘poisson’ : Poisson surface reconstruction - ‘flying_edges’ : Flying edges isosurface extraction - ‘sphere’ : Least-squares sphere - ‘ellipsoid’ : Ellipsoid via eigenvalue decomposition - ‘cylinder’ : Cylinder via PCA and constrained optimization - ‘rbf’ : Radial basis function interpolation - ‘spline’ : Spline curve through control points

Returns:
mosaic.geometry.GeometryData

Geometry with fitted model attached.

Raises:
ValueError

If method is unsupported or point count is insufficient (<50).