From 607ffe778f10b6c79cb5972d6e52710e40c30c57 Mon Sep 17 00:00:00 2001 From: Paolo Cignoni Date: Thu, 26 Jan 2017 12:22:59 +0100 Subject: [PATCH] made public some functions in glPick to ease glu replacement... --- wrap/gl/pick.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/wrap/gl/pick.h b/wrap/gl/pick.h index d4ea2e8d..3fcb0f85 100644 --- a/wrap/gl/pick.h +++ b/wrap/gl/pick.h @@ -41,9 +41,8 @@ class GLPickTri typedef typename MESH_TYPE::VertexPointer VertexPointer; typedef typename MESH_TYPE::VertexType VertexType; -private: - - static CoordType Proj(const Eigen::Matrix &M, const ScalarType * viewport, const CoordType &p) +public: + static CoordType glProject(const Eigen::Matrix &M, const ScalarType * viewport, const CoordType &p) { const ScalarType vx=viewport[0]; const ScalarType vy=viewport[1]; @@ -67,7 +66,7 @@ private: pVec.resize(m.vert.size()); for(size_t i=0;i::glProject(M, viewportF,CoordType::Construct(m.vert[i].P())); } } @@ -227,7 +226,7 @@ public: ScalarType LocalEpsilon(0.001); for(size_t i =0;i=0 && p[0]=0 && p[1]