Attached is a simple example of a geometry object (sphere) and a surface mesh.
Can you please let me know if it's possible to get the volume of a geometry object or a 3D closed surface mesh?
As you can imagine, I need to calculate the volume of more complicated shapes.
Thanks for your help.
MA
import netgen.csg as csg
geo = csg.CSGeometry()
sphere = csg.Sphere(csg.Pnt(0, 0, 0), 3)
geo.Add(sphere)
mesh = geo.GenerateMesh(maxh=1.5)