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 *, MeshObject > | meshCache |
std::map< const App::DocumentObject *, std::vector< std::string > > | subObjectNameCache |
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
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 | ( | ) |
Writes AMF footer.
|
overridevirtual |
Implements Mesh::Exporter.
References MeshCore::MeshFacetIterator::End(), and Mesh::Exporter::xmlEscape().
Referenced by PathScripts.PathCamoticsGui.CamoticsSimulation::worker().