gpt4 book ai didi

c++ - 从 Binary Mask (Segmentation) 获取 .STL 格式的 3D 网格

转载 作者:太空宇宙 更新时间:2023-11-04 16:01:59 25 4
gpt4 key购买 nike

我目前能够获得 these formats 的网格文件但是我想将网格文件保存为 .STL。我找到了关于 this STL MeshIO Class 的文档,但是,我似乎找不到要“包含”的标题。此外,如果我关注 this ,它仍然要求我输入正确的文件扩展名,因为当我给 .STL 扩展名时它不起作用。

有任何帮助或解决方法吗?

附言ITK-4.11.0,VS 13 更新 5,CMake - 3.8.0。如果您需要代码,请告诉我,我在这里没有看到要求。

最佳答案

只是在这里为可能感兴趣的人添加程序。

  1. 获取git executable .
  2. 在 CMake 中转到高级并将路径添加到 git 可执行文件 enter image description here
  3. 在模块中,添加 Module_IOSTL enter image description here
  4. 配置和生成。
  5. 构建 ITK.sln 文件。 (如果使用 VS)
  6. 配置并生成您的项目。
  7. 添加#include "itkSTLMeshIOFactory.h"
  8. 在初始化 MeshType 之前添加 itk::STLMeshIOFactory::RegisterOneFactory();
  9. MeshFileWriter 的文件扩展名为 .STL,瞧!

关于c++ - 从 Binary Mask (Segmentation) 获取 .STL 格式的 3D 网格,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42281881/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com