vcgSmoothImplicit | R Documentation |
Applies implicit smoothing algorithms on a triangular mesh.
vcgSmoothImplicit(
mesh,
lambda = 0.2,
useMassMatrix = TRUE,
fixBorder = FALSE,
useCotWeight = FALSE,
degree = 1L,
lapWeight = 1,
SmoothQ = FALSE
)
mesh |
triangular mesh stored as object of class "mesh3d". |
lambda |
numeric: the amount of smoothness, useful only if
|
useMassMatrix |
logical: whether to use mass matrix to keep the mesh
close to its original position (weighted per area distributed on vertices);
default is |
fixBorder |
logical: whether to fix the border vertices of the mesh;
default is |
useCotWeight |
logical: whether to use cotangent weight; default is
|
degree |
integer: degrees of 'Laplacian'; default is |
lapWeight |
numeric: weight when |
SmoothQ |
logical: whether to smooth the quality (distances to target). |
returns an object of class "mesh3d" with:
vb |
4xn matrix containing n vertices as homolougous coordinates. |
normals |
4xn matrix containing vertex normals. |
it |
4xm matrix containing vertex indices forming triangular faces. |
Zhengjia Wang
vcgPlyRead,vcgClean,vcgSmooth
data(humface)
smoothface <- vcgSmoothImplicit(humface)
## view
## Not run:
require(rgl)
shade3d(smoothface, col=3)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.