Learn R Programming

Rvcg (version 0.24)

vcgGeodist: Compute pseudo-geodesic distance between two points on a mesh

Description

Compute pseudo-geodesic distance between two points on a mesh

Usage

vcgGeodist(x, pt1, pt2)

Value

returns the geodesic distance between pt1 and pt2.

Arguments

x

triangular mesh of class mesh3d

pt1

3D coordinate on mesh or index of vertex

pt2

3D coordinate on mesh or index of vertex

Examples

Run this code
data(humface)
pt1 <- humface.lm[1,]
pt2 <- humface.lm[5,]
vcgGeodist(humface,pt1,pt2)

Run the code above in your browser using DataLab