从 OpenCascade 导出,导入 OpenSceneGraph

发布于 2024-08-17 06:15:31 字数 375 浏览 1 评论 0原文

我们有一个使用 OCC 的建模工具和一个使用 OSG 的 3D 编辑器。我想要做的是,从第一个工具导出模型并导入到第二个工具中。我已经在网上搜索了好几天,但找不到解决方案。

三件事可以解决我的问题:

  1. OCC 的导出器可导出为 OSG 支持的格式(.ive、.osg 等),
  2. OSG 的导入器可从 OCC 支持的格式(.stp、.step、.igs、.igs)导入。 iges, .brp, .brep ),
  3. 一种转换器工具,用于在两种格式之间进行转换,一种是 OCC 支持的格式,另一种是 OSG 支持的格式。

有人以前做过这个吗,或者知道有什么可以提供帮助的吗?

我试图避免为 OCC 编写自定义导出器。

We have a modeling tool which uses OCC, and a 3d editor using OSG. What I want to do is, export the model from the first tool and import into the second tool. I have been searching the web for days, but I can't find a solution.

Three things can solve my problem:

  1. An exporter for OCC to export into OSG supported formats (.ive, .osg, and many more),
  2. An importer for OSG to import from OCC supported formats (.stp, .step, .igs, .iges, .brp, .brep ),
  3. A converter tool for converting between two formats, one format supported by OCC and one format supported by OSG.

Has anybody done this before, or know of anything that can help?

I am trying to avoid writing a custom exporter for OCC.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

眼眸 2024-08-24 06:15:31

我找到了解决方案。 OpenCascade 有一个导入/导出示例,可以导出不支持纹理的 VRML 文件。对导入导出代码的一些修改以及对其他部分(其中 OCC 模型由 VRML 类表示)的一些修改足以成功将我的模型导出到 VRML 文件。然后我为 OpenSceneGraph 构建了 VRML 插件并成功导入了模型。

I found a solution. OpenCascade has an import/export example, which can export VRML files without texture support. Some modifications on the import export code and some modifications on other parts (where the OCC model is represented by VRML classes) was enough to successfully export my model to a VRML file. Then i built the VRML plugin for OpenSceneGraph and successfully imported the model.

蓝海似她心 2024-08-24 06:15:31

CADExchanger(基于 OCC)在 BRep 和其他格式(STEP、IGES、STL、 VRML...)

CADExchanger (OCC based) does a pretty good job converting between BRep and other formats (STEP, IGES, STL, VRML...)

跨年 2024-08-24 06:15:31

为什么不看看 pythonocc.org。
我假设 OSG 采用网格?
在 (python)OCC 中加载 STEP / IGES 文件,抓取其网格,将顶点 / 索引推送到 OSG。
那行得通吗?

Why don't you have a look at pythonocc.org.
I'm assuming OSG takes meshes?
Load the STEP / IGES file in (python)OCC, grab its mesh, push the verts / indices to OSG.
Would that work?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文