fix detect of 0,0 start point

This commit is contained in:
Eric Trombly
2020-04-22 11:39:12 -05:00
parent c10eed7eb0
commit 745945d2cb

View File

@@ -3311,7 +3311,10 @@ void Area::toPath(Toolpath &path, const std::list<TopoDS_Shape> &shapes,
// rapid horizontal move if start Z is below retraction
if(fabs((p.*getter)()-retraction) > Precision::Confusion()) {
if(_pstart && p.IsEqual(plast, Precision::Confusion())){
// check if last is equal to current, if it is change last so the initial G0 is still emitted
gp_Pnt tmpPlast = plast;
(tmpPlast.*setter)((p.*getter)());
if(_pstart && p.IsEqual(tmpPlast, Precision::Confusion())){
plast.SetCoord(10.0, 10.0, 10.0);
(plast.*setter)(retraction);
}