Solving issue with first empty layer.

This commit is contained in:
tamasmeszaros 2019-01-15 14:25:28 +01:00
parent 519f5e5ea7
commit 831de96a81
3 changed files with 10 additions and 4 deletions

View file

@ -1746,7 +1746,7 @@ SlicedSupports SLASupportTree::slice(float layerh, float init_layerh) const
const Pad& pad = m_impl->pad();
if(!pad.empty()) gndlvl -= float(get_pad_elevation(pad.cfg));
std::vector<float> heights = {gndlvl};
std::vector<float> heights;
heights.reserve(size_t(modelh/layerh) + 1);
for(float h = gndlvl + init_layerh; h < gndlvl + modelh; h += layerh) {