0
我试图导入上Meshlab这个VRML文件的文件:如何导入VRML 2.0 Meshlab
#VRML 2.0 utf-8
PROTO my_sphere [ exposedField SFFVec3f xyz 0 0 0 ] {
Transform {
translation IS xyz
children [
Shape {
appearance Appearance { material Material {
diffuseColor 1.0 0.05 0.05 } }
geometry Sphere { radius 0.66 }
}
]
}
}
my_sphere { xyz 0.0 0.0 0.119 } # 0
my_sphere { xyz 0.0 0.0 0.119 } # 1
,我发现了错误:
Error encountered while loading file:
"/my_path/test.wrl"
File: /my_path/test.wrl
Error details: -- line 2 col 32: invalid FieldType
-- line 4 col 42: "{" expected
我怎么能导入此文件类型?我可以很容易地在Blender上做到这一点。
类型某某领域是在列表中拼错定义的,它应该是SFVec3f。但是,即使有这种变化,Meshlab 2016也不会导入。 Meshlab X3D/VRML导入可能不支持PROTO语句。 –
在http://www.web3d.org/x3d/content/examples/Basic/X3dSpecifications/RedSphereBlueBoxIndex.html处的X3D示例的进一步实验 - 以VRML97的形式下载 - 显示Meshlab不支持Sphere的原始形状和框。看来只有像IndexedTriangleSet这样的网格节点才被支持 –
@VincentMarchetti哦,那么,如果它拼错了,为什么它在Blender上工作?它被解释为别的吗? – izxle