mosaic.operations.GeometryOperations#

class GeometryOperations[source]#

Bases: object

Registry for geometry operation functions.

__init__(*args, **kwargs)#

Methods

__init__(*args, **kwargs)

cluster(geometry, method[, drop_noise, ...])

Partitions points into clusters using the specified clustering algorithm.

compute_normals(geometry[, method, k])

Calculates normals for points or flips existing normals.

crop(geometry, distance, query[, keep_smaller])

Filters points based on their distance to a set of query points.

downsample(geometry[, method])

Reduces point density by removing points based on spatial or random criteria.

duplicate(geometry, **kwargs)

Duplicate a geometry.

fit(geometry, method, **kwargs)

register(operation_name, func[, decorator])

Register an operation function.

remesh(geometry, method, **kwargs)

remove_outliers(geometry[, method])

Filters out points that are statistical outliers based on local neighborhoods.

sample(geometry, sampling, method[, ...])

Generates new points by sampling from a fitted parametric model.

skeletonize(geometry[, method, sigma])

Extract structural skeleton from point cloud.

smooth(geometry, method, **kwargs)

visibility(geometry[, visible])

Change the visibility of a geometry object