Learn R Programming

Morpho (version 2.1)

plotNormals: plots the normals of a triangular surface mesh.

Description

visualises the vertex normals of a triangular surface mesh of class mesh3d. If no normals are contained, they are computed.

Usage

plotNormals(x, long = 1, lwd = 1, col = 1)

Arguments

x
object of class "mesh3d"
long
length of the normals (default is 1)
lwd
width of the normals
col
color of the normals

Examples

Run this code
require(rgl)
data(nose)
plotNormals(shortnose.mesh,col=4,long=0.01)
shade3d(shortnose.mesh,col=3)

Run the code above in your browser using DataLab