
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
)
returns an object of class "mesh3d" with:
4xn matrix containing n vertices as homolougous coordinates.
4xn matrix containing vertex normals.
4xm matrix containing vertex indices forming triangular faces.
triangular mesh stored as object of class "mesh3d".
numeric: the amount of smoothness, useful only if
useMassMatrix
is TRUE
; default is 0.2
logical: whether to use mass matrix to keep the mesh
close to its original position (weighted per area distributed on vertices);
default is TRUE
logical: whether to fix the border vertices of the mesh;
default is FALSE
logical: whether to use cotangent weight; default is
FALSE
(using uniform 'Laplacian')
integer: degrees of 'Laplacian'; default is 1
numeric: weight when useCotWeight
is FALSE
;
default is 1.0
logical: whether to smooth the quality (distances to target).
Zhengjia Wang
vcgPlyRead,vcgClean,vcgSmooth
data(humface)
smoothface <- vcgSmoothImplicit(humface)
## view
if (FALSE) {
require(rgl)
shade3d(smoothface, col=3)
}
Run the code above in your browser using DataLab