Sketcher: Automatic calculation of divisions for comb

This commit is contained in:
Abdullah Tahiri
2017-02-12 22:19:34 +01:00
committed by wmayer
parent 9a66d39a99
commit 58594866f7

View File

@@ -3598,7 +3598,7 @@ void ViewProviderSketch::draw(bool temp /*=false*/, bool rebuildinformationlayer
double firstparam = spline->getFirstParameter();
double lastparam = spline->getLastParameter();
const int ndiv = 64;
const int ndiv = poles.size()>4?poles.size()*16:64;
double step = (lastparam - firstparam ) / (ndiv -1);
std::vector<double> paramlist(ndiv);