View source: R/PoissonReconstruction.R
PoissonReconstruction | R Documentation |
Poisson reconstruction of a surface, from a cloud of 3D points.
PoissonReconstruction( points, normals = NULL, spacing = NULL, sm_angle = 20, sm_radius = 30, sm_distance = 0.375 )
points |
numeric matrix which stores the points, one point per row |
normals |
numeric matrix which stores the normals, one normal per row
(it must have the same size as the |
spacing |
size parameter; smaller values increase the precision of the
output mesh at the cost of higher computation time; set to |
sm_angle |
bound for the minimum facet angle in degrees |
sm_radius |
relative bound for the radius of the surface Delaunay balls |
sm_distance |
relative bound for the center-center distances |
See Poisson Surface Reconstruction.
A triangle mesh, of class mesh3d
(ready for plotting
with rgl).
library(SurfaceReconstruction) library(rgl) # Solid Möbius strip Psr_mesh <- PoissonReconstruction(SolidMobiusStrip) shade3d(Psr_mesh, color= "yellow") wire3d(Psr_mesh, color = "black") # Hopf torus Psr_mesh <- PoissonReconstruction(HopfTorus, spacing = 0.2) shade3d(Psr_mesh, color= "darkorange") wire3d(Psr_mesh, color = "black")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.