8#ifndef IGL_RAY_MESH_INTERSECT_H
9#define IGL_RAY_MESH_INTERSECT_H
28 typename Derivedsource,
33 const Eigen::MatrixBase<Derivedsource> & source,
34 const Eigen::MatrixBase<Deriveddir> & dir,
35 const Eigen::MatrixBase<DerivedV> & V,
36 const Eigen::MatrixBase<DerivedF> & F,
37 std::vector<igl::Hit> & hits);
41 typename Derivedsource,
46 const Eigen::MatrixBase<Derivedsource> & source,
47 const Eigen::MatrixBase<Deriveddir> & dir,
48 const Eigen::MatrixBase<DerivedV> & V,
49 const Eigen::MatrixBase<DerivedF> & F,
58 typename Derivedsource,
63 const Eigen::MatrixBase<Derivedsource> & source,
64 const Eigen::MatrixBase<Deriveddir> & dir,
65 const Eigen::MatrixBase<DerivedV> & V,
66 const Eigen::MatrixBase<DerivedF> & F,
70#ifndef IGL_STATIC_LIBRARY
71# include "ray_mesh_intersect.cpp"
#define IGL_INLINE
Definition igl_inline.h:15
bool ray_mesh_intersect(const Eigen::MatrixBase< Derivedsource > &source, const Eigen::MatrixBase< Deriveddir > &dir, const Eigen::MatrixBase< DerivedV > &V, const Eigen::MatrixBase< DerivedF > &F, std::vector< igl::Hit > &hits)
Shoot a ray against a mesh (V,F) and collect all hits.
bool ray_triangle_intersect(const Eigen::MatrixBase< Derivedsource > &source, const Eigen::MatrixBase< Deriveddir > &dir, const Eigen::MatrixBase< DerivedV > &V, const Eigen::MatrixBase< DerivedF > &F, const int f, igl::Hit &hit)
Reimplementation of the embree::Hit struct from embree1.0.
Definition Hit.h:18