wangerzi / 3d-model-convert-to-gltf

Convert 3d model (STL/IGES/STEP/OBJ/FBX) to gltf and compression
Apache License 2.0
253 stars 51 forks source link

请教 #7

Open helei123 opened 3 years ago

helei123 commented 3 years ago

我获取了模型的树结构,怎么和gltf里面的nodes节点对应?

wangerzi commented 3 years ago

是什么格式的模型呢,如果是 fbx 或者 obj 的话是能对应的,STEP 和 IGES 这种通过 stl 中转的模型,由于转换压缩,会导致 nodes 丢失。

helei123 commented 3 years ago

catia导出的3dxml格式,我已经获取特征树的节点关系。我的思路是通过节点生成树。根据节点的直接child确定gltf里面nodes children的个数,根据节点的所有child确定gltf里面nodes children的值。叶子节点是mesh,其他节点就是children.有没有简单的方法?

------------------ 原始邮件 ------------------ 发件人: "wangerzi/3d-model-convert-to-gltf" @.>; 发送时间: 2021年6月30日(星期三) 下午3:29 @.>; @.**@.>; 主题: Re: [wangerzi/3d-model-convert-to-gltf] 请教 (#7)

是什么格式的模型呢,如果是 fbx 或者 obj 的话是能对应的,STEP 和 IGES 这种通过 stl 中转的模型,由于转换压缩,会导致 nodes 丢失。

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.