Description Usage Arguments Details Value See Also
View source: R/mesh-volume-fns.R
One half of the total volume computation.
1 |
mesh |
triangular mesh of class "mesh3d" |
direction |
one of "above" or "below" |
z_displ_mm |
vertical offset to prevent removal of vertices near the origin |
include_ref |
whether the returned mesh object should include the
reference circle plane? Default is |
experimental
This applies a sort of hack to slice the mesh and keep only points
residing above or below the x-y plane. The "hack" portion is translating the
actual reference plane away from the mesh by a very small distance. The volume
attributable to the offset is subtracted before completing the calculation.
The meshes used in this project can never be "watertight" and it is my
hope that so long as the mesh is 2-manifold, the volume computation is
accurate. This function calls Rvcg::vcgClean()
to remove non-manifold
faces, then remove unreferenced vertices, and (finally) remove non-manifold
vertices before coherently orienting the faces. This approach seems to resolve the non-manifoldness of the meshes
induced by downsampling, cylinder removal, and top/bottom removal.
list containing a numeric vector of length 1 (cm3 of soil residing above the reference plane) and the resulting mesh from the slicing operation
vol_gridded()
, vol_faceweighted()
, vol_pointwise()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.