meshVolume | R Documentation |
Computes the volume bounded by a mesh.
meshVolume(mesh)
mesh |
a mesh given either as a list containing (at least) the two fields
|
A number, the volume bounded by the mesh.
library(MeshesOperations) R <- 4; r <- 2 mesh <- torusMesh(R, r) meshVolume(mesh) # true volume of the torus: 2 * pi^2 * R * r^2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.