poisson_surface_reconstruction

compas_cgal.reconstruction.poisson_surface_reconstruction(points, normals)[source]

Reconstruct a surface from a point cloud using the Poisson surface reconstruction algorithm.

Parameters:
pointslist of compas.geometry.Point or numpy.ndarray

The points of the point cloud.

normalslist of compas.geometry.Vector or numpy.ndarray

The normals of the point cloud.

Returns:
tuple of numpy.ndarray

The vertices and faces of the reconstructed surface.

Raises:
ValueError

If points or normals are not 3D If number of points and normals don’t match If less than 3 points are provided If points are not well-distributed for reconstruction

RuntimeError

If the reconstruction algorithm fails

Notes

The Poisson surface reconstruction algorithm requires: 1. A sufficiently dense point cloud 2. Well-oriented normals 3. Points distributed across a meaningful surface