Learn R Programming

Rvcg (version 0.12.2)

vcgBorder: find all border vertices and faces of a triangular mesh

Description

Detect faces and vertices at the borders of a mesh and mark them.

Usage

vcgBorder(mesh)

Arguments

mesh
triangular mesh of class "mesh3d"

Value

  • bordervblogical: vector containing boolean value for each vertex, if it is a border vertex.
  • borderitlogical: vector containing boolean value for each face, if it is a border vertex.

See Also

vcgPlyRead

Examples

Run this code
data(humface)
borders <- vcgBorder(humface)
## view border vertices
require(rgl)
points3d(t(humface$vb[1:3,])[which(borders$bordervb == 1),],col=2)
wire3d(humface)
require(rgl)

Run the code above in your browser using DataLab