Description Usage Arguments Details Value See Also Examples
View source: R/surfaceNormals.R
This function calculates the normal vectors of all the triangles which belong to the boundary of the αshape.
1 2  surfaceNormals(x, indexAlpha = 1, display = FALSE, col = 3, scale = 1,
...)

x 
An object of class 
indexAlpha 
A single value or vector with the indexes of

display 
Logical, if TRUE, 
col 
Color of the normal vectors. 
scale 
Scale parameter to control the length of the surface normals, only affect display. 
... 
Material properties. See 
The function surfaceNormals
computes the normal vectors of all the
triangles which belong to the boundary of the αshape for each
value of α in x$alpha[indexAlpha]
. The magnitude of each
vector is equal to the area of its associated triangle.
If indexAlpha="all"
or indexAlpha="ALL"
then the function
computes the normal vectors for all values of α in
as3d$alpha
.
If indexAlpha
is a single value then the function returns an
object of class "normals"
with the following components:
normals 
Threecolumn matrix with the euclidean coordinates of the normal vectors. 
centers 
Threecolumn matrix with the euclidean coordinates of the centers of the triangles that form the αshape. 
Otherwise surfaceNormals
returns a list of class
"normalsList"
(each object in the list as described above).
1 2 3 4  x < rtorus(1000, 0.5, 1)
alpha < 0.25
ashape3d.obj < ashape3d(x, alpha = alpha)
surfaceNormals(ashape3d.obj, display = TRUE)

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.