View source: R/SSSreconstruction.R
SSSreconstruction | R Documentation |
Reconstruction of a surface from a cloud of 3D points.
SSSreconstruction(
points,
scaleIterations = 1,
neighbors = 12,
samples = 300,
separateShells = FALSE,
forceManifold = TRUE,
borderAngle = 45
)
points |
numeric matrix which stores the points, one point per row |
scaleIterations |
number of iterations used to increase the scale |
neighbors |
number of neighbors used to smooth the points cloud |
samples |
number of samples used to smooth the points cloud |
separateShells |
Boolean, whether to separate the shells |
forceManifold |
Boolean, whether to force a manifold output mesh |
borderAngle |
bound on the angle in degrees used to detect border edges |
See Scale-space Surface Reconstruction.
A cgalMesh
object.
library(cgalMeshes)
mesh <- SSSreconstruction(
SolidMobiusStrip, scaleIterations = 4,
forceManifold = TRUE, neighbors = 30
)
mesh$computeNormals()
rglMesh <- mesh$getMesh()
library(rgl)
open3d(windowRect = 50 + c(0, 0, 512, 512))
view3d(20, -40, zoom = 0.85)
shade3d(rglMesh, color = "tomato")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.