Mesh::AmfExporter Class Reference

Used for exporting to Additive Manufacturing File (AMF) format. More...

#include <Exporter.h>

Public Member Functions

bool addMesh (const char *name, const MeshObject &mesh) override
 
 AmfExporter (std::string fileName, const std::map< std::string, std::string > &meta, bool compress=true)
 Writes AMF header. More...
 
 ~AmfExporter ()
 Writes AMF footer. More...
 
- Public Member Functions inherited from Mesh::Exporter
virtual bool addMesh (const char *name, const MeshObject &mesh)=0
 
int addObject (App::DocumentObject *obj, float tol)
 Add object and all subobjects and links etc. Returns the number of stuff added. More...
 
 Exporter ()
 
virtual ~Exporter ()=default
 

Additional Inherited Members

- Static Protected Member Functions inherited from Mesh::Exporter
static std::string xmlEscape (const std::string &input)
 Does some simple escaping of characters for XML-type exports. More...
 
- Protected Attributes inherited from Mesh::Exporter
std::map< const App::DocumentObject *, MeshObjectmeshCache
 
std::map< const App::DocumentObject *, std::vector< std::string > > subObjectNameCache
 

Detailed Description

Used for exporting to Additive Manufacturing File (AMF) format.

The constructor and destructor write the beginning and end of the AMF, add____() is used to add geometry

Constructor & Destructor Documentation

◆ AmfExporter()

AmfExporter::AmfExporter ( std::string  fileName,
const std::map< std::string, std::string > &  meta,
bool  compress = true 
)

Writes AMF header.

meta information passed in is applied at the <amf> tag level

References Base::FileInfo::dirPath(), Base::FileInfo::exists(), Base::FileInfo::fileName(), Base::FileInfo::filePath(), and Base::FileInfo::isWritable().

◆ ~AmfExporter()

AmfExporter::~AmfExporter ( )

Writes AMF footer.

Member Function Documentation

◆ addMesh()

bool AmfExporter::addMesh ( const char *  name,
const MeshObject mesh 
)
overridevirtual

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