In Extrusion dialog, the distance was troncated to the lower integer. With a distance <1, the extrusion vector size was zero.

This commit is contained in:
gdd 2012-03-21 15:41:10 +00:00
parent 5ea2cc6434
commit 51949e5059

View File

@ -1237,7 +1237,7 @@ void SMESHGUI_ExtrusionDlg::getExtrusionVector(SMESH::DirStruct& aVector) {
aNormale /= aNormale.Modulus();
long aVDist = (long)SpinBox_VDist->value();
double aVDist = (double)SpinBox_VDist->value();
aVector.PS.x = aNormale.X()*aVDist;
aVector.PS.y = aNormale.Y()*aVDist;