aPlane->SetOrientation(anOrientation);
aPlane->SetDistance(getDistance());
- myPrs3d->SetPlaneParam(aNormal, getDistance(), aPlane);
+ myPrs3d->SetPlaneParam(aNormal, 1. - getDistance(), aPlane);
vtkDataSet* aDataSet = myPrs3d->GetInput();
float *aPnt = aDataSet->GetCenter();
bool modal = false,
WFlags fl = 0 );
- float getDistance() { return 1. - (float)SpinBoxDistance->value(); }
+ float getDistance() { return (float)SpinBoxDistance->value(); }
void setDistance(const float theDistance) { SpinBoxDistance->setValue(theDistance); }
double getRotation1() { return SpinBoxRot1->value(); }
double getRotation2() { return SpinBoxRot2->value(); }