Description Usage Arguments Details Value
'mesh3d' objects contain a matrix of vertices and matrix of vertex indicies to describe each element.
1 | get_matrix_for_element_type(obj, element_type, all_vertices = NULL)
|
obj |
mesh3d object |
element_type |
single element type to extract. specify an integer 1:4 |
all_vertices |
normalised matrix of all vertices. If NULL, then will be calculated within this call |
This function maps the vertex indices to the actual vertex coordinates and returns a matrix of information to represent each element of the requested type.
numeric matrix representation of the given element type
element_id
- element index
element_type
- an integer from 1 to 4 indicating whether the element is
a point, line, triangle or quad
vorder
- vertex ordering within element
x,y,z
- coorindates of vertex
vertex
- global index of this vertex
vnx,vny,vnz
- unit vector in direction of vertex normal
fnx,fny,fnz
- unit vector in direction of face normal
fcx,fcy,fcz
- coordinates of centroid of element
zorder
- zorder
is used to control ggplot draw order.
For polygons it is based upon fcz
. For lines it is
the smaller of the z
coordinates. For points, it is the
z
coordinate of the point
zorder_var
- The value used to determine zorder
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.