Uranium
Application Framework
Loading...
Searching...
No Matches
UM.Mesh.MeshWriter.MeshWriter Class Reference

Base class for mesh writer objects. More...

Inheritance diagram for UM.Mesh.MeshWriter.MeshWriter:
UM.FileHandler.FileWriter.FileWriter UM.PluginObject.PluginObject

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)
 
- Public Member Functions inherited from UM.PluginObject.PluginObject
 __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

- Protected Attributes inherited from UM.PluginObject.PluginObject
 _plugin_id
 

Detailed Description

Base class for mesh writer objects.

Constructor & Destructor Documentation

◆ __init__()

UM.Mesh.MeshWriter.MeshWriter.__init__ (   self)

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.

Parameters
nodesA sequence of nodes.
Returns
The nodes among those that are actual scene nodes.

◆ write()

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.

Parameters
streamIOStream The stream to output to.
nodesA 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: