Apply avoid crossing perimeters also for supports.

This commit is contained in:
Lukáš Hejl 2020-12-15 06:46:44 +01:00
parent 26755eb1d1
commit 0ca337ac7a
3 changed files with 65 additions and 16 deletions

View file

@ -161,6 +161,8 @@ public:
// Get a layer approximately at print_z.
const Layer* get_layer_at_printz(coordf_t print_z, coordf_t epsilon) const;
Layer* get_layer_at_printz(coordf_t print_z, coordf_t epsilon);
// Get the first layer approximately bellow print_z.
const Layer* get_first_layer_bellow_printz(coordf_t print_z, coordf_t epsilon) const;
// print_z: top of the layer; slice_z: center of the layer.
Layer* add_layer(int id, coordf_t height, coordf_t print_z, coordf_t slice_z);