Uranium
Application Framework
|
Public Member Functions | |
__init__ (self, *args, **kwargs) | |
write (self, stream, node, mode=FileWriter.OutputMode.BinaryMode) | |
![]() | |
bool | getAddToRecentFiles (self) |
setInformation (self, str information_message) | |
str | getInformation (self) |
![]() | |
str | getId (self) |
None | setPluginId (self, str plugin_id) |
None | setMetaData (self, Dict[str, Any] metadata) |
Dict[str, Any] | getMetaData (self) |
str | getPluginId (self) |
None | setVersion (self, str version) |
str | getVersion (self) |
Static Protected Member Functions | |
_meshNodes (nodes) | |
Additional Inherited Members | |
![]() | |
_information | |
_add_to_recent_files | |
![]() | |
_plugin_id | |
_version | |
_metadata | |
_name | |
Base class for mesh writer objects
UM.Mesh.MeshWriter.MeshWriter.__init__ | ( | self, | |
* | args, | ||
** | kwargs ) |
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. :param nodes: A sequence of nodes. :return: The nodes among those that are actual scene nodes.
UM.Mesh.MeshWriter.MeshWriter.write | ( | self, | |
stream, | |||
node, | |||
mode = FileWriter.OutputMode.BinaryMode ) |
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. :param stream: :type{IOStream} The stream to output to. :param node: A collection of scene nodes to write to the stream.
Reimplemented from UM.FileHandler.FileWriter.FileWriter.