poisson_surface_reconstruction
poisson_surface_reconstruction(P, N, gs=None, h=None, corner=None, screened=False)
Reconstruct surface from point cloud
Given an oriented point cloud on a volume's surface, return the values on a regular grid of an implicit function that represents the volume enclosed by the surface.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
P |
numpy double array
|
Matrix of point cloud coordinates |
required |
N |
numpy double array
|
Matrix of unit-norm normals |
required |
gs |
numpy int array, optional (default None)
|
Vector of grid sizes [nx,ny] |
None
|
h |
numpy double array, optional (default None)
|
Vector of spacing between nearest grid |
None
|
corner |
numpy double array, optional (default None)
|
Vector of lowest-valued corner of the grid |
None
|
screened |
bool, optional (default False)
|
Whether to used screened Poisson Surface Reconstruction |
False
|
Returns:
Name | Type | Description |
---|---|---|
g |
numpy double array
|
Vector of implicit function values on the requested grid, ordered increasing and row first (see poisson_surface_reconstruction_unit_test.py) |
sigma |
double
|
The isolvalue of the surface; i.e. to be deducted from g if one wants the zero-level-set to cross the surface. |
Notes
This only works in 2D. This only outputs the grid implicit values, not a mesh
Examples:
TODO
Source code in src/gpytoolbox/poisson_surface_reconstruction.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 |
|