Uranium
Application Framework
Loading...
Searching...
No Matches
UM.Mesh.MeshWriter.MeshWriter Class Reference
Inheritance diagram for UM.Mesh.MeshWriter.MeshWriter:
UM.FileHandler.FileWriter.FileWriter UM.PluginObject.PluginObject

Public Member Functions

 __init__ (self, *args, **kwargs)
 
 write (self, stream, node, mode=FileWriter.OutputMode.BinaryMode)
 
- Public Member Functions inherited from UM.FileHandler.FileWriter.FileWriter
bool getAddToRecentFiles (self)
 
 setInformation (self, str information_message)
 
str getInformation (self)
 
- Public Member Functions inherited from UM.PluginObject.PluginObject
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

- Public Attributes inherited from UM.PluginObject.PluginObject
str _name = "_%s" % self._name
 
- Protected Attributes inherited from UM.FileHandler.FileWriter.FileWriter
str _information = ""
 
 _add_to_recent_files = add_to_recent_files
 
- Protected Attributes inherited from UM.PluginObject.PluginObject
 _plugin_id = None
 
 _version = None
 
dict _metadata = {}
 
 _name = None
 

Detailed Description

Base class for mesh writer objects

Constructor & Destructor Documentation

◆ __init__()

UM.Mesh.MeshWriter.MeshWriter.__init__ ( self,
* args,
** kwargs )

Member Function Documentation

◆ _meshNodes()

UM.Mesh.MeshWriter.MeshWriter._meshNodes ( nodes)
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.

◆ write()

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.


The documentation for this class was generated from the following file: