libigl v2.5.0
Loading...
Searching...
No Matches
unproject_in_mesh.h File Reference
#include "../igl_inline.h"
#include <Eigen/Core>
#include <vector>
#include "../Hit.h"
#include "unproject_in_mesh.cpp"

Go to the source code of this file.

Namespaces

namespace  igl
 
namespace  igl::embree
 

Functions

template<typename Derivedobj >
int igl::embree::unproject_in_mesh (const Eigen::Vector2f &pos, const Eigen::Matrix4f &model, const Eigen::Matrix4f &proj, const Eigen::Vector4f &viewport, const EmbreeIntersector &ei, Eigen::PlainObjectBase< Derivedobj > &obj, std::vector< igl::Hit > &hits)
 Unproject a screen location (using current opengl viewport, projection, and model view) to a 3D position inside a given mesh.
 
template<typename Derivedobj >
int igl::embree::unproject_in_mesh (const Eigen::Vector2f &pos, const Eigen::Matrix4f &model, const Eigen::Matrix4f &proj, const Eigen::Vector4f &viewport, const EmbreeIntersector &ei, Eigen::PlainObjectBase< Derivedobj > &obj)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.