mirror of
https://github.com/QIDITECH/QIDISlicer.git
synced 2026-02-02 00:48:43 +03:00
add “precise_z_height”
This commit is contained in:
@@ -619,10 +619,11 @@ void GLCanvas3D::LayersEditing::generate_layer_height_texture()
|
||||
m_layers_texture.data.assign(m_layers_texture.width * m_layers_texture.height * 5, 0);
|
||||
}
|
||||
|
||||
//w27
|
||||
bool level_of_detail_2nd_level = true;
|
||||
m_layers_texture.cells = Slic3r::generate_layer_height_texture(
|
||||
*m_slicing_parameters,
|
||||
Slic3r::generate_object_layers(*m_slicing_parameters, m_layer_height_profile),
|
||||
Slic3r::generate_object_layers(*m_slicing_parameters, m_layer_height_profile,false),
|
||||
m_layers_texture.data.data(), m_layers_texture.height, m_layers_texture.width, level_of_detail_2nd_level);
|
||||
m_layers_texture.valid = true;
|
||||
}
|
||||
|
||||
@@ -1249,7 +1249,8 @@ void Selection::scale_to_fit_print_volume(const BuildVolume& volume)
|
||||
// check whether the top layer exceeds the maximum height of the print volume
|
||||
// and, in case, reduce the scale accordingly
|
||||
const auto [slicing_parameters, profile] = wxGetApp().plater()->canvas3D()->get_layers_height_data(get_object_idx());
|
||||
auto layers = generate_object_layers(slicing_parameters, profile);
|
||||
//w27
|
||||
auto layers = generate_object_layers(slicing_parameters, profile,false);
|
||||
auto layers_it = layers.rbegin();
|
||||
while (layers_it != layers.rend() && *layers_it > volume.bounding_volume().max.z()) {
|
||||
++layers_it;
|
||||
|
||||
@@ -1693,6 +1693,8 @@ void TabPrint::build()
|
||||
optgroup->append_single_option_line("elefant_foot_compensation", "elephant-foot-compensation_114487");
|
||||
//w26
|
||||
optgroup->append_single_option_line("elefant_foot_compensation_layers");
|
||||
//w27
|
||||
optgroup->append_single_option_line("precise_z_height");
|
||||
|
||||
optgroup = page->new_optgroup(L("Arachne perimeter generator"));
|
||||
optgroup->append_single_option_line("wall_transition_angle");
|
||||
@@ -3015,6 +3017,9 @@ void TabPrinter::build_sla()
|
||||
//w26
|
||||
optgroup->append_single_option_line("elefant_foot_compensation_layers");
|
||||
optgroup->append_single_option_line("elefant_foot_min_width");
|
||||
//w27
|
||||
optgroup->append_single_option_line("precise_z_height");
|
||||
|
||||
optgroup->append_single_option_line("gamma_correction");
|
||||
|
||||
optgroup = page->new_optgroup(L("Exposure"));
|
||||
|
||||
Reference in New Issue
Block a user