Sketcher: Fix zero curvature normal exception
This commit is contained in:
parent
ca05f86f6e
commit
4fe4792f4d
|
@ -3619,7 +3619,12 @@ void ViewProviderSketch::draw(bool temp /*=false*/, bool rebuildinformationlayer
|
|||
if(curvaturelist[i] > maxcurv)
|
||||
maxcurv = curvaturelist[i];
|
||||
|
||||
try {
|
||||
spline->normalAt(paramlist[i],normallist[i]);
|
||||
}
|
||||
catch(Base::Exception) {
|
||||
normallist[i] = Base::Vector3d(0,0,0);
|
||||
}
|
||||
|
||||
double temp = ( pointatcurvelist[i] - midp ).Length();
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user