Learn R Programming

cgalMeshes (version 2.2.0)

SSSreconstruction: Scale-space surface reconstruction

Description

Reconstruction of a surface from a cloud of 3D points.

Usage

SSSreconstruction(
  points,
  scaleIterations = 1,
  neighbors = 12,
  samples = 300,
  separateShells = FALSE,
  forceManifold = TRUE,
  borderAngle = 45
)

Value

A cgalMesh object.

Arguments

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

Details

See Scale-space Surface Reconstruction.

Examples

Run this code
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")

Run the code above in your browser using DataLab