handle case if a B-spline is straight and thus maximum curvature is zero

This commit is contained in:
wmayer
2018-08-26 19:17:16 +02:00
parent f6de3eac88
commit e02f5fae7c

View File

@@ -3728,14 +3728,12 @@ void ViewProviderSketch::draw(bool temp /*=false*/, bool rebuildinformationlayer
}
double temprepscale = ( 0.5 * maxdisttocenterofmass ) / maxcurv; // just a factor to make a comb reasonably visible
if( temprepscale > combrepscale )
double temprepscale = 0;
if (maxcurv > 0)
temprepscale = (0.5 * maxdisttocenterofmass) / maxcurv; // just a factor to make a comb reasonably visible
if (temprepscale > combrepscale)
combrepscale = temprepscale;
}
else {
}
}