ENABLE_ADAPTIVE_LAYER_HEIGHT_PROFILE -> Disabled unused code

This commit is contained in:
Enrico Turri 2019-11-13 15:06:17 +01:00
parent 8768b04c8a
commit 6eee31bf5a
2 changed files with 5 additions and 1 deletions

View File

@ -140,6 +140,7 @@ float SlicingAdaptive::cusp_height(float z, float cusp_value, int &current_facet
return height;
}
#if !ENABLE_ADAPTIVE_LAYER_HEIGHT_PROFILE
// Returns the distance to the next horizontal facet in Z-dir
// to consider horizontal object features in slice thickness
float SlicingAdaptive::horizontal_facet_distance(float z)
@ -158,5 +159,6 @@ float SlicingAdaptive::horizontal_facet_distance(float z)
return (z + (float)m_slicing_params.max_layer_height > (float)m_slicing_params.object_print_z_height()) ?
std::max((float)m_slicing_params.object_print_z_height() - z, 0.f) : (float)m_slicing_params.max_layer_height;
}
#endif // !ENABLE_ADAPTIVE_LAYER_HEIGHT_PROFILE
}; // namespace Slic3r

View File

@ -32,7 +32,9 @@ public:
#endif // ENABLE_ADAPTIVE_LAYER_HEIGHT_PROFILE
void prepare();
float cusp_height(float z, float cusp_value, int &current_facet);
#if !ENABLE_ADAPTIVE_LAYER_HEIGHT_PROFILE
float horizontal_facet_distance(float z);
#endif // !ENABLE_ADAPTIVE_LAYER_HEIGHT_PROFILE
protected:
SlicingParameters m_slicing_params;