vcgMeshres | R Documentation |
calculates the average edge length of a triangular mesh, iterating over all faces.
vcgMeshres(mesh)
mesh |
triangular mesh stored as object of class "mesh3d" |
res |
average edge length (a.k.a. mesh resolution) |
edgelength |
vector containing lengths for each edge |
Stefan Schlager
data(humface)
mres <- vcgMeshres(humface)
#histogram of edgelength distribution
hist(mres$edgelength)
#visualise average edgelength
points( mres$res, 1000, pch=20, col=2, cex=2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.