Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

vcgMeshres

calculates the average edge length of a triangular mesh


Description

calculates the average edge length of a triangular mesh, iterating over all faces.

Usage

vcgMeshres(mesh)

Arguments

mesh

triangular mesh stored as object of class "mesh3d"

Value

res

average edge length (a.k.a. mesh resolution)

edgelength

vector containing lengths for each edge

Author(s)

Stefan Schlager

Examples

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)

Rvcg

Manipulations of Triangular Meshes Based on the 'VCGLIB' API

v0.19.2
GPL (>= 2) | file LICENSE
Authors
Stefan Schlager [aut, cre, cph], Girinon Francois [ctb]
Initial release
2021-01-11

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.