#include "igl_inline.h"
#include "Hit.h"
#include <Eigen/Core>
#include <functional>
#include "unproject_onto_mesh.cpp"
 
Go to the source code of this file.
 | 
| template<typename DerivedV , typename DerivedF , typename Derivedbc >  | 
| bool  | igl::unproject_onto_mesh (const Eigen::Vector2f &pos, const Eigen::Matrix4f &model, const Eigen::Matrix4f &proj, const Eigen::Vector4f &viewport, const Eigen::MatrixBase< DerivedV > &V, const Eigen::MatrixBase< DerivedF > &F, int &fid, Eigen::PlainObjectBase< Derivedbc > &bc) | 
|   | Unproject a screen location (using current opengl viewport, projection, and model view) to a 3D position onto a given mesh, if the ray through the given screen location (x,y) hits the mesh.  
  | 
|   | 
| template<typename Derivedbc >  | 
| bool  | igl::unproject_onto_mesh (const Eigen::Vector2f &pos, const Eigen::Matrix4f &model, const Eigen::Matrix4f &proj, const Eigen::Vector4f &viewport, const std::function< bool(const Eigen::Vector3f &, const Eigen::Vector3f &, igl::Hit &) > &shoot_ray, int &fid, Eigen::PlainObjectBase< Derivedbc > &bc) | 
|   | This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.  
  | 
|   |