Skip to contents

Compute volume for manifold meshes

Usage

vcg_mesh_volume(mesh)

Arguments

mesh

triangular mesh of class 'mesh3d'

Value

The numeric volume of the mesh

Examples


# Initial mesh
mesh <- vcg_sphere()

vcg_mesh_volume(mesh)
#> [1] 4.152741