Re-scale mesh based on a fixed volume of 1
Arguments
- mesh
A triangular mesh of class mesh3d.
Value
A mesh with volume = 1.
Examples
Rvcg::vcgVolume(mcap)
#> Warning: Mesh is not watertight! USE RESULT WITH CARE!
#> [1] 0.006212184
mcap_scaled <- scale_volume(mcap)
Rvcg::vcgVolume(mcap_scaled)
#> Warning: Mesh is not watertight! USE RESULT WITH CARE!
#> [1] 0.9999979