SSSreconstruction: Scale-space surface reconstruction

View source: R/SSSreconstruction.R

SSSreconstructionR Documentation

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
)

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.

Value

A cgalMesh object.

Examples

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")

cgalMeshes documentation built on July 9, 2023, 7:45 p.m.