GemaCoreLib
The GeMA Core library
Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
GmBVHAcceleration Class Reference

Public Member Functions

 GmBVHAcceleration (const double *triCoords, const int *triIndex, int numPoints, int numTriangles, bvh::ThreadPool threadPool=bvh::ThreadPool())
 
bool segIntersection (const double *start, const double *end, RayIntersection &ri)
 

Private Types

using Scalar = double
 
using Vec3 = bvh::Vec< Scalar, 3 >
 
using BBox = bvh::BBox< Scalar, 3 >
 
using Tri = bvh::Tri< Scalar, 3 >
 
using Node = bvh::Node< Scalar, 3 >
 
using Bvh = bvh::Bvh< Node >
 
using Ray = bvh::Ray< Scalar, 3 >
 
using PrecomputedTri = bvh::PrecomputedTri< Scalar >
 

Private Member Functions

void computeLinePoint (Vec3 p0, Vec3 dir, double t, double *out)
 

Private Attributes

Bvh bvh
 
std::vector< PrecomputedTri > preTri
 

The documentation for this class was generated from the following files: