Initial support for the X3D scene file format (see http://www.web3d.org/).

For now, just mesh import. Supports all geometry nodes in Rendering, Geometry3D, CAD geometry modules. No support for materials, color, or textures. Normals in the file (if any) are ignored. Light sources, viewpoints, sensors, world, shaders, scripts also ignored.
This commit is contained in:
Seva Alekseyev 2016-08-08 10:50:38 -04:00 committed by Ghostkeeper
parent 3b8e84b689
commit e4049296d9
2 changed files with 818 additions and 0 deletions

View file

@ -0,0 +1,26 @@
# Seva Alekseyev with National Institutes of Health, 2016
from . import X3DReader
from UM.i18n import i18nCatalog
catalog = i18nCatalog("cura")
def getMetaData():
return {
"plugin": {
"name": catalog.i18nc("@label", "X3D Reader"),
"author": "Seva Alekseyev",
"version": "0.5",
"description": catalog.i18nc("@info:whatsthis", "Provides support for reading X3D files."),
"api": 3
},
"mesh_reader": [
{
"extension": "x3d",
"description": catalog.i18nc("@item:inlistbox", "X3D File")
}
]
}
def register(app):
return { "mesh_reader": X3DReader.X3DReader() }