简体   繁体   English

如何建立具有灰度值的 3D 数组的 3D 模型? [Python]

[英]How to establish a 3D model with a 3D array with grayscale values? [python]

I have a 3D array, each element in this array is the grayscale value.我有一个 3D 数组,这个数组中的每个元素都是灰度值。 The position of the elements stand for the position of the voxel in the cube.元素的位置代表体素在立方体中的位置。 I would like to transform the array into a 3D cube model using python.我想使用 python 将数组转换为 3D 立方体模型。 But I did not find a good way.但是我没有找到好的方法。 Could anyone help?有人可以帮忙吗? Thank you.谢谢你。

您可以使用 Marching cubes 算法(这里有一个很好的视频解释它)和python stl 库来创建一个可用的文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM