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
+4 -1
View File
@@ -3,6 +3,7 @@
#include <string>
#include <utility>
#include <vector>
#include "heightmap.h"
namespace grbl {
@@ -32,6 +33,7 @@ struct program {
bool load_from_file(std::string filename);
bool load_from_stream(std::istream& in);
bool load_from_string(const std::string& content);
bool load_from_lines(std::vector<std::string> lines);
void dump(std::ostream& out);
@@ -42,10 +44,11 @@ struct program {
instruction instruction_at(size_t index) {
return instructions.at(index);
}
bool is_loaded = false;
std::string filename;
std::vector<instruction> instructions{};
grbl::program apply_heightmap(grbl::heightmap& grid);
void save(std::string path);
};
}