So I have an STL file of a sphere that is cut in half. I want to find the volume of the inside of the file, but since it isn't 'water-tight' I can't find an accurate volume. Using the volume Trimesh function, the result of the volume changes at different rotational angles of the file.
For example, when I check for volume with no rotation, the volume is 1.872. But after rotating it 90, 90, 90 along the x,y,z, the volume of the file is now 2.044. What can I do to get the true inside volume of my cut sphere file without it changing when it's being rotated.
Current code to find volume:
import trimesh
my_mesh = trimesh.load('path/to/mesh/half_sphere.stl')
print(my_mesh.volume)