vcgSubdivide: subdivide the triangles of a mesh

Description Usage Arguments Value Note Examples

View source: R/vcgSubdivide.r

Description

subdivide the triangles of a mesh

Usage

1
2
3
vcgSubdivide(x, threshold = NULL, type = c("Butterfly", "Loop"),
  looptype = c("loop", "regularity", "continuity"), iterations = 3,
  silent = FALSE)

Arguments

x

triangular mesh of class "mesh3d"

threshold

minimum edge length to subdivide

type

character: algorithm used. Options are Butterfly and Loop (see notes)

looptype

character: method for type = loop options are "loop","regularity","continuity" (see notes)

iterations

integer: number of iterations

silent

logical: suppress output.

Value

returns subdivided mesh

Note

The different algorithms are (from meshlab description):

Examples

1
2
data(humface)
subdivide <- vcgSubdivide(humface,type="Loop",looptype="regularity")

zarquon42b/Rvcg documentation built on Jan. 17, 2019, 9:10 a.m.