Application hangs up after trying to set negative value of the planes for the CutPlanes presentation.
using namespace std;
static vtkFloatingPointType EPS = 1.0E-3;
+static int MIN_NB_PLANES = 1;
+static int MAX_NB_PLANES = 100;
vtkStandardNewMacro(VISU_CutPlanesPL);
VISU_CutPlanesPL
::SetNbParts(int theNb)
{
- myNbParts = theNb;
+ myNbParts = (theNb<MIN_NB_PLANES?MIN_NB_PLANES:(theNb>MAX_NB_PLANES?MAX_NB_PLANES:theNb));
myPartPosition.resize(myNbParts);
myPartCondition.resize(myNbParts,1);
Modified();