getSomeNormals | R Documentation |
Returns a function which computes some normals for a 3D points cloud.
getSomeNormals(nbNeighbors, method = "pca")
nbNeighbors |
integer, number of neighbors used to compute the normals |
method |
one of |
A function which takes just one argument: a numeric matrix with three columns, each row represents a point, and the function returns a matrix of the same size as the input matrix, whose each row gives one unit normal for each point.
The getSomeNormals
function is intended to be used in the
PoissonReconstruction
function. If you want to use it for
another purpose, be careful because the function it returns does not
check the matrix it takes as argument.
library(SurfaceReconstruction) library(rgl) psr <- PoissonReconstruction(ICN5D_eight, getSomeNormals(6)) open3d() shade3d(psr, color = "cyan") wire3d(psr)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.