Learn R Programming

Morpho (version 2.12)

invertFaces: invert faces' orientation of triangular mesh

Description

inverts faces' orientation of triangular mesh and recomputes vertex normals

Usage

invertFaces(mesh)

Value

returns resulting mesh

Arguments

mesh

triangular mesh of class mesh3d

Author

Stefan Schlager

See Also

updateNormals

Examples

Run this code


data(nose)
if (FALSE) {
rgl::shade3d(shortnose.mesh,col=3)
}
noseinvert <- invertFaces(shortnose.mesh)
## show normals
if (FALSE) {
plotNormals(noseinvert,long=0.01)
}

Run the code above in your browser using DataLab