libigl v2.5.0
Loading...
Searching...
No Matches
ray_triangle_intersect.h
Go to the documentation of this file.
1#ifndef IGL_RAY_TRIANGLE_INTERSECT_H
2#define IGL_RAY_TRIANGLE_INTERSECT_H
3
4#include "igl_inline.h"
5#include <Eigen/Core>
6
7namespace igl
8{
27 template <
28 typename DerivedO,
29 typename DerivedD,
30 typename DerivedV0,
31 typename DerivedV1,
32 typename DerivedV2>
34 const Eigen::MatrixBase<DerivedO> & O,
35 const Eigen::MatrixBase<DerivedD> & D,
36 const Eigen::MatrixBase<DerivedV0> & V0,
37 const Eigen::MatrixBase<DerivedV1> & V1,
38 const Eigen::MatrixBase<DerivedV2> & V2,
39 const typename DerivedO::Scalar epsilon,
40 typename DerivedO::Scalar & t,
41 typename DerivedO::Scalar & u,
42 typename DerivedO::Scalar & v,
43 bool & parallel);
44}
45
46#ifndef IGL_STATIC_LIBRARY
47# include "ray_triangle_intersect.cpp"
48#endif
49
50#endif
#define IGL_INLINE
Definition igl_inline.h:15
Definition AABB.h:18
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< typename DerivedV::Scalar > &hit)