remove "select folded faces" filter

This commit is contained in:
alemuntoni 2021-09-22 17:30:36 +02:00
parent dc3312a7aa
commit b12ff34627
2 changed files with 1 additions and 23 deletions

View File

@ -64,7 +64,6 @@ SelectionFilterPlugin::SelectionFilterPlugin()
CP_SELECT_NON_MANIFOLD_VERTEX,
FP_SELECT_FACES_BY_EDGE,
FP_SELECT_BY_COLOR,
FP_SELECT_FOLD_FACE,
FP_SELECT_OUTLIER
};
@ -150,7 +149,6 @@ QString SelectionFilterPlugin::filterName(ActionIDType filter) const
case CP_SELECT_NON_MANIFOLD_FACE : return tr("Select non Manifold Edges");
case CP_SELECT_NON_MANIFOLD_VERTEX : return tr("Select non Manifold Vertices");
case FP_SELECT_FACES_BY_EDGE: return tr("Select Faces with edges longer than...");
case FP_SELECT_FOLD_FACE : return tr("Select Folded Faces");
case FP_SELECT_OUTLIER: return tr("Select Outliers");
}
assert(0);
@ -184,8 +182,7 @@ QString SelectionFilterPlugin::filterInfo(ActionIDType filterId) const
case CP_SELECT_TEXBORDER : return tr("Colorize only border edges.");
case CP_SELECT_NON_MANIFOLD_FACE: return tr("Select the faces and the vertices incident on non manifold edges (e.g. edges where more than two faces are incident); note that this function select the components that are related to non manifold edges. The case of non manifold vertices is specifically managed by the pertinent filter.");
case CP_SELECT_NON_MANIFOLD_VERTEX: return tr("Select the non manifold vertices that do not belong to non manifold edges. For example two cones connected by their apex. Vertices incident on non manifold edges are ignored.");
case FP_SELECT_FOLD_FACE: return tr("Select the folded faces created by the Quadric Edge Collapse decimation. The face is selected if the angle between the face normal and the normal of the best fitting plane of the neighbor vertices is above the selected threshold.");
case FP_SELECT_OUTLIER: return tr("Select the vertex classified as outlier using Local Outlier Propabilty measure described in:<br> <b>'LoOP: Local Outlier Probabilities'</b> Kriegel et al.<br>CIKM 2009");
case FP_SELECT_OUTLIER: return tr("Select the vertex classified as outlier using Local Outlier Propabilty measure described in:<br> <b>'LoOP: Local Outlier Probabilities'</b> Kriegel et al.<br>CIKM 2009");
}
assert(0);
return QString("Unknown filter");
@ -286,11 +283,6 @@ RichParameterList SelectionFilterPlugin::initParameterList(const QAction *action
parlst.addParam(RichBool("InvVerts", defV, "Invert Vertices", "If true the filter will invert the set of selected vertices."));
} break;
case FP_SELECT_FOLD_FACE:
{
parlst.addParam(RichDynamicFloat("AngleThreshold", 160.0f, 90.0f, 180.0f, tr("Angle Threshold"), tr("Angle between the face and the best fitting plane of the neighbours vertices. If it is above the threshold the face is selected.")));
} break;
case FP_SELECT_OUTLIER:
{
parlst.addParam(RichDynamicFloat("PropThreshold", 0.8, 0.0, 1.0, tr("Probability"), tr("Threshold to select the vertex. The vertex is selected if the LoOP value is above the threshold.")));
@ -631,14 +623,6 @@ std::map<std::string, QVariant> SelectionFilterPlugin::applyFilter(
log( "Selected %d faces with and edge longer than %f",selFaceNum,threshold);
} break;
case FP_SELECT_FOLD_FACE:
{
Scalarm angle = math::ToRad(par.getDynamicFloat("AngleThreshold"));
m.updateDataMask(MeshModel::MM_VERTFACETOPO);
tri::Clean<CMeshO>::SelectFoldedFaceFromOneRingFaces(m.cm, cos(angle));
m.clearDataMask(MeshModel::MM_VERTFACETOPO);
} break;
case FP_SELECT_OUTLIER:
{
Scalarm threshold = par.getDynamicFloat("PropThreshold");
@ -683,7 +667,6 @@ FilterPlugin::FilterClass SelectionFilterPlugin::getClass(const QAction *action)
case FP_SELECT_BORDER:
case FP_SELECT_INVERT:
case FP_SELECT_FACES_BY_EDGE:
case FP_SELECT_FOLD_FACE:
case FP_SELECT_OUTLIER:
case FP_SELECT_BY_COLOR:
case CP_SELECT_NON_MANIFOLD_VERTEX:
@ -703,8 +686,6 @@ FilterPlugin::FilterClass SelectionFilterPlugin::getClass(const QAction *action)
case CP_SELECT_TEXBORDER: return MeshModel::MM_FACEFACETOPO;
case CP_SELFINTERSECT_SELECT: return MeshModel::MM_FACEMARK | MeshModel::MM_FACEFACETOPO;
case FP_SELECT_FOLD_FACE: return MeshModel::MM_VERTFACETOPO;
default: return MeshModel::MM_NONE;
}
}
@ -731,7 +712,6 @@ int SelectionFilterPlugin::postCondition(const QAction *action) const
case CP_SELECT_NON_MANIFOLD_VERTEX :
case FP_SELECT_FACES_BY_EDGE :
case FP_SELECT_UGLY :
case FP_SELECT_FOLD_FACE :
case FP_SELECT_OUTLIER : return MeshModel::MM_VERTFLAGSELECT | MeshModel::MM_FACEFLAGSELECT;
case FP_SELECT_DELETE_VERT :
case FP_SELECT_DELETE_ALL_FACE :
@ -753,7 +733,6 @@ int SelectionFilterPlugin::getPreConditions(const QAction * action) const
case FP_SELECT_BORDER:
case FP_SELECT_ERODE:
case FP_SELECT_DILATE:
case FP_SELECT_FOLD_FACE:
case FP_SELECT_CONNECTED: return MeshModel::MM_FACENUMBER;
case FP_SELECT_BY_COLOR: return MeshModel::MM_VERTCOLOR;
case FP_SELECT_BY_VERT_QUALITY: return MeshModel::MM_VERTQUALITY;

View File

@ -63,7 +63,6 @@ public:
CP_SELECT_NON_MANIFOLD_FACE,
CP_SELECT_NON_MANIFOLD_VERTEX,
FP_SELECT_FACES_BY_EDGE,
FP_SELECT_FOLD_FACE,
FP_SELECT_OUTLIER
} ;