mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-23 22:29:41 +08:00

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.
27 lines
717 B
Python
27 lines
717 B
Python
# 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() }
|