add_normals.mesh3d: Add face and vertex normals for mesh3d objects.

Description Usage Arguments Details

Description

This is a modified version of rgl::addNormals(). The rgl function only saves the vertex nomarls - but it does actually calculate face normals as an intermediate result.

Usage

1
2
## S3 method for class 'mesh3d'
add_normals(x, ...)

Arguments

x

mesh3d object

...

ignored

Details

This function is a clone of rgl::addNormals() where these face normals are assigned to the object rather than just being discarded.

There is also some extra logic so that no attempt is made to calculate normals of 'point' and 'line' objects.


coolbutuseless/threed documentation built on May 5, 2019, 7:08 a.m.