Skip to content

Templates and other minor changes#1366

Merged
alecjacobson merged 3 commits into
devfrom
templates
Nov 30, 2019
Merged

Templates and other minor changes#1366
alecjacobson merged 3 commits into
devfrom
templates

Conversation

@alecjacobson

Copy link
Copy Markdown
Contributor

Check all that apply (change to [x])

  • All changes meet libigl style-guidelines.
  • Adds new .cpp file.
  • Adds corresponding unit test.
  • Adds corresponding python binding.
  • This is a minor change.

show_labels(false),
show_texture(false),
// UINT_MAX sets all bits to 1 so these defaults get applied to all view cores
show_faces (UINT_MAX),

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using ~unsigned(0) would be better to carry the meaning that we are setting all bits.


IGL_INLINE void ImGuiMenu::draw_labels(const igl::opengl::ViewerData &data)
{
// Alec: How can we get these to respect (optionally) the depth of the scene?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be possible to do with ImGui, albeit a bit difficult. See e.g. this discussion. There are other important issues with our current setup for drawing labels (see #1109), so we might be better off re-implementing 3D labels outside of the ImGui framework.

@alecjacobson alecjacobson merged commit 5847741 into dev Nov 30, 2019
@jdumas jdumas deleted the templates branch December 1, 2019 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants