Learn R Programming

SurfaceReconstruction (version 0.1.0)

getSomeNormals: Normals for a points could

Description

Returns a function which computes some normals for a 3D points cloud.

Usage

getSomeNormals(nbNeighbors, method = "pca")

Value

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.

Arguments

nbNeighbors

integer, number of neighbors used to compute the normals

method

one of "pca" or "jet"

Examples

Run this code
library(SurfaceReconstruction)
library(rgl)
psr <- PoissonReconstruction(ICN5D_eight, getSomeNormals(6))
open3d()
shade3d(psr, color = "cyan")
wire3d(psr)

Run the code above in your browser using DataLab