WIP: Cut with Tongue and Groove

* Changed limit value for tolerances
* Set optimize rendering value to true by default
This commit is contained in:
YuSanka 2023-07-11 13:44:17 +02:00
parent 83fa61ee41
commit 2e6d1ff08f
2 changed files with 3 additions and 2 deletions

View File

@ -480,6 +480,7 @@ bool GLGizmoCut3D::render_cut_mode_combo()
if (is_changed) {
m_mode = size_t(selection_idx);
update_raycasters_for_picking();
apply_color_clip_plane_colors();
if (auto oc = m_c->object_clipper()) {
@ -2205,7 +2206,7 @@ void GLGizmoCut3D::render_groove_input(const std::string& label, float& in_val,
is_changed = true;
}
}
else if (render_slider_double_input(label, in_val, in_tolerance, -0.1f, 2.0))
else if (render_slider_double_input(label, in_val, in_tolerance, -0.1f, std::min(0.3f*in_val, 1.5f)))
is_changed = true;
ImGui::SameLine();

View File

@ -125,7 +125,7 @@ class GLGizmoCut3D : public GLGizmoBase
float m_groove_angle_init;
float m_groove_depth_tolerance{ 0.1f };
float m_groove_width_tolerance{ 0.1f };
bool m_optimaze_groove_rendering{ false };
bool m_optimaze_groove_rendering{ true };
bool m_hide_cut_plane{ false };
bool m_connectors_editing{ false };