Snapped the bottom interface layer print heights to the top interface

layer print heights to avoid too thin layer surfaces. The minimum layer
height at the nozzle page is maintained for the support layers.

Base layers are trimmed by the briding bottom surfaces.
This commit is contained in:
bubnikv 2017-03-28 13:46:31 +02:00
parent 9f7a5c7a6f
commit 40b75f6cee
2 changed files with 121 additions and 66 deletions

View file

@ -91,8 +91,13 @@ public:
return false;
}
// For the bridging flow, bottom_print_z will be above bottom_z to account for the vertical separation.
// For the non-bridging flow, bottom_print_z will be equal to bottom_z.
coordf_t bottom_print_z() const { return print_z - height; }
// To sort the extremes of top / bottom interface layers.
coordf_t extreme_z() const { return (this->layer_type == sltTopContact) ? this->bottom_z : this->print_z; }
SupporLayerType layer_type;
// Z used for printing, in unscaled coordinates.
coordf_t print_z;