Exposed exaggeration factor when rendering heightmap.
Added checkbox to select whether to run autoleveled program or not. Heightmap can handle non integer from_x and to_x.
This commit is contained in:
+11
-10
@@ -7,17 +7,18 @@
|
||||
|
||||
namespace grbl {
|
||||
|
||||
struct heightmap {
|
||||
static heightmap from_params(float from_x, float from_y, float to_x, float to_y, float resolution);
|
||||
float get_z_at(float x, float y) const;
|
||||
size_t index_from_coords(float x, float y) const;
|
||||
bool float_equal(float a, float b);
|
||||
|
||||
float from_x, from_y;
|
||||
float to_x, to_y;
|
||||
float resolution;
|
||||
size_t x_segments, y_segments;
|
||||
std::vector<glm::vec3> vertices;
|
||||
};
|
||||
struct heightmap {
|
||||
static heightmap from_params(float from_x, float from_y, float to_x, float to_y, float resolution);
|
||||
float get_z_at(float x, float y) const;
|
||||
size_t index_from_coords(float x, float y) const;
|
||||
|
||||
float from_x, from_y;
|
||||
float to_x, to_y;
|
||||
float resolution;
|
||||
size_t x_segments, y_segments;
|
||||
std::vector<glm::vec3> vertices;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user