Learn R Programming

Morpho (version 2.6)

invertFaces: invert faces' orientation of triangular mesh

Description

inverts faces' orientation of triangular mesh and recomputes vertex normals

Usage

invertFaces(mesh)

Arguments

mesh

triangular mesh of class mesh3d

Value

returns resulting mesh

See Also

updateNormals

Examples

Run this code
# NOT RUN {

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

Run the code above in your browser using DataLab