G38 fixes for probe visualization per mlampert
This commit is contained in:
@@ -342,9 +342,10 @@ void PathSegmentWalker::walk(PathSegmentVisitor &cb, const Base::Vector3d &start
|
||||
lrot = nrot;
|
||||
|
||||
|
||||
} else if ((name=="G38.2")||(name=="38.3")||(name=="G38.4")||(name=="G38.5")){
|
||||
} else if ((name=="G38.2")||(name=="G38.3")||(name=="G38.4")||(name=="G38.5")){
|
||||
// Straight probe
|
||||
cb.g38(i, last, next);
|
||||
last = next;
|
||||
} else if(name=="G17") {
|
||||
pz = &Base::Vector3d::z;
|
||||
} else if(name=="G18") {
|
||||
|
||||
@@ -549,6 +549,7 @@ public:
|
||||
|
||||
virtual void g38(int id, const Base::Vector3d &last, const Base::Vector3d &next)
|
||||
{
|
||||
#if 0
|
||||
Base::Vector3d p1(next.x,next.y,last.z);
|
||||
points.push_back(p1);
|
||||
colorindex.push_back(0);
|
||||
@@ -561,6 +562,11 @@ public:
|
||||
colorindex.push_back(0);
|
||||
|
||||
pushCommand(id);
|
||||
#else
|
||||
(void)last;
|
||||
const std::deque<Base::Vector3d> pts{};
|
||||
gx(id, &next, pts, 2);
|
||||
#endif
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user