mesh_volume | R Documentation |
Calculate volume of an arbitrary closed mesh by adding up signed tetrahedron volumes for each constituent triangle. Please ensure that the mesh is clean (e.g. no non-manifold vertices, etc)
mesh_volume(mesh, par_exec = FALSE, max_cores = NA)
mesh |
a closed mesh3d object for which volume will be computed |
par_exec |
boolean indicating whether par_exec processing is to be used. Default value is set to FALSE |
max_cores |
maximum number of cores to use if parallel processing is requested. Requesting more cores than are physically available will simply result in all cores being used. |
numeric value of the computed volume or NA in case of bad input
For small meshes it may be faster to use a single thread due to the overhead associated with starting the processing cluster.
data(demoFlake1)
mesh_volume(demoFlake1$mesh)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.