This generic function adds normals at each of the vertices of a polyhedron by averaging the normals of each incident face. This has the effect of making the surface of the object appear smooth rather than faceted when rendered.
1 2 3
An object to which to add normals.
Additional parameters which will be passed to the methods.
See Details below.
Currently methods are supplied for
These methods work by averaging the normals on the faces incident at
each vertex. By default these are weighted according to the angle
in the polygon at that vertex.
angleWeighted = FALSE, a slightly faster
but less accurate weighting by the triangle area is used.
Prior to rgl version 0.104.12 an incorrect weighting was used;
it can be partially reproduced by using
angleWeighted = NA,
but not all the bugs in that scheme will be kept.
A new object of the same class as
x, with normals added.
1 2 3 4 5
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.