## S3 method for class 'matrix':
meshDist(x, mesh2 = NULL, distvec = NULL, from = NULL,
to = NULL, steps = 20, ceiling = FALSE, uprange = 1, plot = TRUE,
sign = TRUE, tol = NULL, type = c("s", "p"), radius = NULL,
displace = FALSE, add = FALSE, ...)meshDist(x, ...)
## S3 method for class 'mesh3d':
meshDist(x, mesh2 = NULL, distvec = NULL, from = NULL,
to = NULL, steps = 20, ceiling = FALSE, file = "default",
imagedim = "100x800", uprange = 1, ray = FALSE, raytol = 50,
save = FALSE, plot = TRUE, sign = TRUE, tol = NULL,
displace = FALSE, shade = TRUE, method = c("morpho", "vcglib"),
add = FALSE, ...)
shade3d
. See
rgl.material
for details.this function needs the command line tools from the Auxiliaries section in
Baerentzen, Jakob Andreas. & Aanaes, H., 2002. Generating Signed Distance Fields From Triangle Meshes. Informatics and Mathematical Modelling, .
render.meshDist
, , export.meshDist
,
shade3d
require(rgl)
data(nose)##load data
##warp a mesh onto another landmark configuration:
warpnose.long <- warp.mesh(shortnose.mesh, shortnose.lm, longnose.lm)
meshDist(warpnose.long, shortnose.mesh, method="m")
#use signed distances and
#color distances < 0.01 green:
meshDist(warpnose.long, shortnose.mesh, sign=TRUE, tol=0.01, method="m")
Run the code above in your browser using DataLab