54 #include "MeshRepairPlugin.hh"
55 #include "MeshFixingT.hh"
56 #include "NonManifoldVertexFixingT.hh"
57 #include "BoundarySnappingT.hh"
77 emit log(
LOGERR, tr(
"Unsupported Object Type."));
82 emit createBackup(_objectId,
"snapBoundary",
UPDATE_ALL);
83 emit scriptInfo(
"snapBoundary(" + QString::number(_objectId) +
", " + QString::number(_eps) +
")");
104 emit log(
LOGERR, tr(
"Unsupported Object Type."));
109 emit createBackup(_objectId,
"fixNonManifoldVertices",
UPDATE_ALL);
110 emit scriptInfo(
"fixNonManifoldVertices(" + QString::number(_objectId) +
")");
118 TriMesh* triMesh = 0;
126 emit log(
LOGERR,
"Fixmesh encountered Problems! Object: " + QString::number(_objectId) +
".");
129 triMesh->update_normals();
132 emit createBackup(_objectId,
"Fixed mesh",
UPDATE_ALL);
134 emit scriptInfo(
"fixMesh(" + QString::number(_objectId) +
", " + QString::number(_epsilon) +
")" );
137 emit log(
LOGERR,tr(
"Unsupported Object Type for mesh fixing!") );
bool getMesh(int _identifier, PolyMesh *&_mesh)
Get the Poly Mesh which has the given identifier.
void snap(double _epsilon)
snaps boundary vertices
void snapBoundary(int _objectId, double _eps)
Snaps selected vertices at boundaries.
const UpdateType UPDATE_ALL(UpdateTypeSet(1))
Identifier for all updates.
void fixMesh(int _objectId, double _epsilon)
Fix a mesh.
Removed non-manifold vertices from a mesh by duplicating them.
Snaps selected vertices at boundaries.
void fixNonManifoldVertices(int _objectId)
remove non-manifold vertices by duplicating them