Work on applying the probed heightmap.

This commit is contained in:
2023-05-18 07:24:05 +03:00
parent f78aa930d6
commit 4e7e059e22
13 changed files with 334 additions and 37 deletions
+2 -2
View File
@@ -81,14 +81,14 @@ G00 X0. Y0. Z0.25
}
for (auto &c: parser.commands) {
auto line = dynamic_cast<grbl::line_motion_cmd *>(c.get());
auto line = dynamic_cast<grbl::line_motion_cmd *>(c);
if (line != nullptr) {
std::cout << "Line from " << glm::to_string(line->start) << " to " << glm::to_string(line->end)
<< std::endl;
continue;
}
auto arc = dynamic_cast<grbl::arc_motion_cmd *>(c.get());
auto arc = dynamic_cast<grbl::arc_motion_cmd *>(c);
if (arc != nullptr) {
std::cout << "Arc from " << glm::to_string(arc->start) << " to " << glm::to_string(arc->end) << std::endl;
continue;