Creates a single mesh, in a file, from one or more objects. More...
#include <Exporter.h>
Public Member Functions | |
bool | addMesh (const char *name, const MeshObject &mesh) override |
MergeExporter (std::string fileName, MeshCore::MeshIO::Format fmt) | |
~MergeExporter () | |
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 |
Protected Attributes | |
std::string | fName |
MeshObject | mergingMesh |
Protected Attributes inherited from Mesh::Exporter | |
std::map< const App::DocumentObject *, MeshObject > | meshCache |
std::map< const App::DocumentObject *, std::vector< std::string > > | subObjectNameCache |
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... | |
Creates a single mesh, in a file, from one or more objects.
MergeExporter::MergeExporter | ( | std::string | fileName, |
MeshCore::MeshIO::Format | fmt | ||
) |
MergeExporter::~MergeExporter | ( | ) |
|
overridevirtual |
Implements Mesh::Exporter.
References Mesh::MeshObject::addMesh(), Mesh::MeshObject::addSegment(), Mesh::MeshObject::countFacets(), Mesh::Segment::getIndices(), Mesh::Segment::getName(), Mesh::Segment::isSaved(), mergingMesh, Mesh::MeshObject::setKernel(), and Mesh::Segment::setName().
Referenced by PathScripts.PathCamoticsGui.CamoticsSimulation::worker().
|
protected |
Referenced by ~MergeExporter().
|
protected |
Referenced by addMesh(), and ~MergeExporter().