SLA gizmo - fixed support points rendering (depth is now correctly accounted for)

This commit is contained in:
Lukas Matena 2019-02-15 16:15:18 +01:00
parent 672cf5d45f
commit 5966dcb78e
4 changed files with 43 additions and 46 deletions

View file

@ -439,7 +439,7 @@ protected:
#define SLAGIZMO_IMGUI_MODAL 1
#define SLAGIZMO_IMGUI_MODAL 0
class GLGizmoSlaSupports : public GLGizmoBase
{
private:
@ -449,6 +449,8 @@ private:
int m_old_instance_id = -1;
Vec3f unproject_on_mesh(const Vec2d& mouse_pos);
const float RenderPointScale = 1.f;
GLUquadricObj* m_quadric;
Eigen::MatrixXf m_V; // vertices
Eigen::MatrixXi m_F; // facets indices