Meshextract: Extract sub mesh

Description Usage Arguments Value Examples

View source: R/vtxtool.R

Description

The function extracts the vertices and edges from the reference tri-mesh based on the index vector and reconstructs the tri-mesh for the vertices and edges which were extracted.

Usage

1
Meshextract(ref.m, idx)

Arguments

ref.m

a reference tri-mesh of 3D face

idx

the index vector for extraction region

Value

a tri-mesh of facial region

Examples

1
2
3
4
5
data(refface)
ref.m <- refface$ref.m
seg.idx<- refface$seg.idx
nose.idx<- which(seg.idx==10)
nose.m <- Meshextract(ref.m,nose.idx)

changebio/MAGPA documentation built on June 15, 2020, 9:26 p.m.