Description Usage Arguments Details
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.
1 2 | ## S3 method for class 'mesh3d'
add_normals(x, ...)
|
x |
mesh3d object |
... |
ignored |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.