45 #include "MeshRepairPlugin.hh" 46 #include "MeshFixingT.hh" 47 #include "NonManifoldVertexFixingT.hh" 48 #include "BoundarySnappingT.hh" 68 emit log(
LOGERR, tr(
"Unsupported Object Type."));
73 emit createBackup(_objectId,
"snapBoundary",
UPDATE_ALL);
74 emit scriptInfo(
"snapBoundary(" + QString::number(_objectId) +
", " + QString::number(_eps) +
")");
95 emit log(
LOGERR, tr(
"Unsupported Object Type."));
100 emit createBackup(_objectId,
"fixNonManifoldVertices",
UPDATE_ALL);
101 emit scriptInfo(
"fixNonManifoldVertices(" + QString::number(_objectId) +
")");
117 emit log(
LOGERR,
"Fixmesh encountered Problems! Object: " + QString::number(_objectId) +
".");
123 emit createBackup(_objectId,
"Fixed mesh",
UPDATE_ALL);
125 emit scriptInfo(
"fixMesh(" + QString::number(_objectId) +
", " + QString::number(_epsilon) +
")" );
128 emit log(
LOGERR,tr(
"Unsupported Object Type for mesh fixing!") );
const UpdateType UPDATE_ALL(UpdateTypeSet(1))
Identifier for all updates.
void snap(double _epsilon)
snaps boundary vertices
Snaps selected vertices at boundaries.
void fixMesh(int _objectId, double _epsilon)
Fix a mesh.
bool getMesh(int _identifier, PolyMesh *&_mesh)
Get the Poly Mesh which has the given identifier.
Removed non-manifold vertices from a mesh by duplicating them.
void fixNonManifoldVertices(int _objectId)
remove non-manifold vertices by duplicating them
void update_normals()
Compute normals for all primitives.
void snapBoundary(int _objectId, double _eps)
Snaps selected vertices at boundaries.