13 #ifndef _GEMA_BVHACCELERATION_H_ 14 #define _GEMA_BVHACCELERATION_H_ 21 #include <default_builder.h> 22 #include <thread_pool.h> 42 using Scalar = double;
43 using Vec3 = bvh::Vec<Scalar, 3>;
44 using BBox = bvh::BBox<Scalar, 3>;
45 using Tri = bvh::Tri<Scalar, 3>;
46 using Node = bvh::Node<Scalar, 3>;
47 using Bvh = bvh::Bvh<Node>;
48 using Ray = bvh::Ray<Scalar, 3>;
49 using PrecomputedTri = bvh::PrecomputedTri<Scalar>;
56 std::vector<PrecomputedTri> preTri;
68 GmBVHAcceleration(
const double* triCoords,
const int* triIndex,
int numPoints,
int numTriangles, bvh::ThreadPool threadPool = bvh::ThreadPool());
75 bool segIntersection(
const double* start,
const double* end,
RayIntersection& ri);
79 void computeLinePoint(Vec3 p0, Vec3 dir,
double t,
double* out);
Definition: gmBVHAcceleration.h:31
Definition: gmBVHAcceleration.h:38