34#ifndef KDCOUNTRAYINTERSECTIONHANDLER_H
35#define KDCOUNTRAYINTERSECTIONHANDLER_H
85 int checkIntersectionWithTriFaces(
const Ray<T> &
ray, std::vector<GbTriFaceMesh3D::TriFace> &triFaces,
86 std::vector<GbTriFaceMesh3D::Vertex> &nodes,
89 T e1x,
e1y,
e1z,
e2x,
e2y,
e2z,
px,
py,
pz, a, f,
sx,
sy,
sz,
u,
qx,
qy,
qz, v,
factor;
93 for (std::size_t
i = 0;
i < triFaces.size();
i++) {
156 v = f * (
ray.directionX *
qx +
ray.directionY *
qy +
ray.directionZ *
qz);
int intersectRay(const Ray< T > &ray, Node< T > &parent, Node< T > *&child1, Node< T > *&child2, std::set< ub_keys::Key3< int > > &mailbox) const override
int intersectRay(const Ray< T > &ray, const RayIntersectionHandler< T > &iHandler, std::set< ub_keys::Key3< int > > &mailbox)
std::shared_ptr< T > SPtr
bool greater(const T1 &value, const T2 &reference)
bool zero(const T &value)
bool less(const T1 &value, const T2 &reference)
static const int INTERSECTION
static const int ON_BOUNDARY
static const int INTERSECT_EDGE