quad2trimesh | R Documentation |
converts a mesh containing quadrangular faces into one only consisting of triangles
quad2trimesh(mesh, updateNormals = TRUE)
mesh |
object of class "mesh3d" |
updateNormals |
logical: request recalculation of (angle weighted) vertex normals. |
triangular mesh with updated normals
Sigma <- diag(3:1) #create a 3D-covariance matrix
require(rgl)
quadmesh <- ellipse3d(Sigma)##create quadmesh
trimesh <- quad2trimesh(quadmesh)# convert to trimesh
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.