NEW:add "show hit face index" function
when show non_manifold_edges jira: none Change-Id: I9bb3e731715eb595c84e01acd0af86b5600618be (cherry picked from commit 6f56123a42a0837ddf5dbd7f12453899f6a2bcb2)
This commit is contained in:
parent
bfa92a5a23
commit
218cf55376
|
@ -205,6 +205,7 @@ void GLGizmoMmuSegmentation::render_non_manifold_edges() const {
|
||||||
m_non_manifold_edges_model.init_model_from_lines(non_manifold_edges);
|
m_non_manifold_edges_model.init_model_from_lines(non_manifold_edges);
|
||||||
m_non_manifold_edges_model.set_color(ColorRGBA::RED());
|
m_non_manifold_edges_model.set_color(ColorRGBA::RED());
|
||||||
}
|
}
|
||||||
|
if (m_non_manifold_edges_model.is_initialized()) {
|
||||||
const Camera & camera = wxGetApp().plater()->get_camera();
|
const Camera & camera = wxGetApp().plater()->get_camera();
|
||||||
auto view_mat = camera.get_view_matrix();
|
auto view_mat = camera.get_view_matrix();
|
||||||
auto proj_mat = camera.get_projection_matrix();
|
auto proj_mat = camera.get_projection_matrix();
|
||||||
|
@ -216,6 +217,7 @@ void GLGizmoMmuSegmentation::render_non_manifold_edges() const {
|
||||||
shader->stop_using();
|
shader->stop_using();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void GLGizmoMmuSegmentation::set_painter_gizmo_data(const Selection &selection)
|
void GLGizmoMmuSegmentation::set_painter_gizmo_data(const Selection &selection)
|
||||||
{
|
{
|
||||||
|
@ -502,7 +504,9 @@ void GLGizmoMmuSegmentation::on_render_input_window(float x, float y, float bott
|
||||||
|
|
||||||
float textbox_width = 1.5 * slider_icon_width;
|
float textbox_width = 1.5 * slider_icon_width;
|
||||||
SliderInputLayout slider_input_layout = {clipping_slider_left, sliders_width, drag_left_width + circle_max_width, textbox_width};
|
SliderInputLayout slider_input_layout = {clipping_slider_left, sliders_width, drag_left_width + circle_max_width, textbox_width};
|
||||||
|
if (wxGetApp().plater()->is_show_non_manifold_edges() && m_rr.mesh_id >= 0) {
|
||||||
|
m_imgui->text(_L("hit face") + ":" + std::to_string(m_rr.facet));
|
||||||
|
}
|
||||||
{
|
{
|
||||||
m_imgui->text(m_desc.at("filaments"));
|
m_imgui->text(m_desc.at("filaments"));
|
||||||
float text_offset = m_imgui->calc_text_size(m_desc.at("filaments")).x + m_imgui->scaled(1.5f);
|
float text_offset = m_imgui->calc_text_size(m_desc.at("filaments")).x + m_imgui->scaled(1.5f);
|
||||||
|
|
Loading…
Reference in New Issue