I have created a 3d mesh in plotly.
import plotly.graph_objects as go
fig = go.Figure(data=[
go.Mesh3d(
x=[0, 1, 2, 0],
y=[0, 0, 1, 2],
z=[0, 2, 0, 1],
i=[0, 0, 0, 1],
j=[1, 2, 3, 2],
k=[2, 3, 1, 3],
)
])
fig.show()
Is there an easy way to calculate the volume (in cubic meters) of this mesh in plotly / python?
The object I showed should serve as an example. I am searching for a general approch for any object (not soleley for triangle/tetrahedral objects).
Kind Regards