update postconditions, preconditions, filterclass

This commit is contained in:
Marco Callieri 2018-03-07 18:56:59 +01:00
parent 516c32e090
commit e4d49f2106
2 changed files with 7 additions and 7 deletions

View File

@ -226,7 +226,7 @@ int FilterUnsharp::postCondition(QAction *a) const
case FP_DIRECTIONAL_PRESERVATION:
case FP_VERTEX_QUALITY_SMOOTHING:
case FP_UNSHARP_QUALITY:
case FP_CREASE_CUT: return MeshModel::MM_UNKNOWN;
case FP_CREASE_CUT: return MeshModel::MM_ALL;
case FP_FACE_NORMAL_SMOOTHING:
case FP_RECOMPUTE_FACE_NORMAL:
case FP_RECOMPUTE_QUADFACE_NORMAL:
@ -234,6 +234,7 @@ int FilterUnsharp::postCondition(QAction *a) const
case FP_RECOMPUTE_VERTEX_NORMAL:
case FP_VERTEX_NORMAL_NORMALIZE: return MeshModel::MM_VERTNORMAL;
case FP_UNSHARP_VERTEX_COLOR: return MeshModel::MM_VERTCOLOR;
case FP_SCALAR_HARMONIC_FIELD: return MeshModel::MM_VERTQUALITY;
default : assert(0); return MeshModel::MM_ALL;
}
}
@ -263,12 +264,11 @@ int FilterUnsharp::postCondition(QAction *a) const
case FP_UNSHARP_GEOMETRY:
case FP_UNSHARP_QUALITY:
case FP_VERTEX_QUALITY_SMOOTHING:
case FP_UNSHARP_VERTEX_COLOR:
return 0;
case FP_SCALAR_HARMONIC_FIELD:
case FP_UNSHARP_VERTEX_COLOR: return MeshModel::MM_NONE;
default: assert(0);
}
return 0;
return MeshModel::MM_NONE;
}
void FilterUnsharp::initParameterSet(QAction *action, MeshDocument &md, RichParameterSet & parlst)

View File

@ -66,9 +66,9 @@ QString ExtraSampleGPUPlugin::filterName(FilterIDType filterId) const
// More than a single class can be choosen.
ExtraSampleGPUPlugin::FilterClass ExtraSampleGPUPlugin::getClass(QAction *a)
{
switch(ID(a))
switch(ID(a))
{
case FP_GPU_EXAMPLE : return MeshFilterInterface::Generic;
case FP_GPU_EXAMPLE: return MeshFilterInterface::RasterLayer; //should be generic, but better avoid it
default : assert(0);
}
return MeshFilterInterface::Generic;