vcgSubdivide | R Documentation |
subdivide the triangles of a mesh
vcgSubdivide(
x,
threshold = NULL,
type = c("Butterfly", "Loop"),
looptype = c("loop", "regularity", "continuity"),
iterations = 3,
silent = FALSE
)
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. |
returns subdivided mesh
The different algorithms are (from meshlab description):
Butterfly Subdivision: Apply Butterfly Subdivision Surface algorithm. It is an interpolated method, defined on arbitrary triangular meshes. The scheme is known to be C1 but not C2 on regular meshes
Loop Subdivision: Apply Loop's Subdivision Surface algorithm. It is an approximant subdivision method and it works for every triangle and has rules for extraordinary vertices. Options are "loop" a simple subdivision, "regularity" to enhance the meshe's regularity and "continuity" to enhance the mesh's continuity.
data(humface)
subdivide <- vcgSubdivide(humface,type="Loop",looptype="regularity")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.