Path.Area: fix Path.fromShapes retraction threshold

This commit is contained in:
Zheng, Lei
2017-06-14 16:08:08 +08:00
committed by Yorik van Havre
parent 17357ae2e6
commit 66595f28b3

View File

@@ -2901,6 +2901,7 @@ void Area::toPath(Toolpath &path, const std::list<TopoDS_Shape> &shapes,
threshold = fabs(threshold);
if(threshold < Precision::Confusion())
threshold = Precision::Confusion();
threshold *= threshold;
resume_height = fabs(resume_height);
AxisGetter getter = &gp_Pnt::Z;