R/scale_volume.R
scale_volume.Rd
Re-scale mesh based on a fixed volume of 1
scale_volume(mesh)
A triangular mesh of class mesh3d.
A mesh with volume = 1.
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