Uranium
Application Framework
|
Base class for mesh writer objects. More...
Public Member Functions | |
__init__ (self) | |
write (self, stream, node) | |
Output a collection of nodes to stream in such a way that it makes sense for the file format. | |
__init__ (self) | |
write (self, stream, data) | |
![]() | |
__init__ (self) | |
getPluginId (self) | |
setPluginId (self, plugin_id) | |
Static Protected Member Functions | |
_meshNodes (nodes) | |
Filters a collection of nodes to only include nodes that are actual meshes. | |
Additional Inherited Members | |
![]() | |
_plugin_id | |
Base class for mesh writer objects.
UM.Mesh.MeshWriter.MeshWriter.__init__ | ( | self | ) |
Reimplemented from UM.FileHandler.FileWriter.FileWriter.
|
staticprotected |
Filters a collection of nodes to only include nodes that are actual meshes.
This does not include auxiliary nodes such as tool handles.
nodes | A sequence of nodes. |
UM.Mesh.MeshWriter.MeshWriter.write | ( | self, | |
stream, | |||
node | |||
) |
Output a collection of nodes to stream in such a way that it makes sense for the file format.
For example, in case of STL, it makes sense to go through all children of the nodes and write all those as transformed vertices to a single file.
stream | IOStream The stream to output to. |
nodes | A collection of scene nodes to write to the stream. |
Reimplemented from UM.FileHandler.FileWriter.FileWriter.