是否有一种简单的方法来计算plitly / python中网格的体积(立方米)
我在Plotly中创建了一个3D网格。
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()
有没有简单的方法可以在Plotly / Python中计算此网格的音量(以立方米为单位)?
我展示的对象应该作为一个例子。我正在寻找任何对象(不是三角形/四面体对象的索利利)的一般批准。
亲切的问候
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论