SPH
Public Member Functions | List of all members
BvhTriangle Class Reference

Trait for finding intersections with a triangle. More...

#include <Bvh.h>

Inheritance diagram for BvhTriangle:
BvhPrimitive

Public Member Functions

 BvhTriangle (const Vector &v0, const Vector &v1, const Vector &v2)
 
INLINE bool getIntersection (const Ray &ray, IntersectionInfo &intersection) const
 
INLINE Box getBBox () const
 
INLINE Vector getCenter () const
 

Additional Inherited Members

- Public Attributes inherited from BvhPrimitive
Size userData = Size(-1)
 Generic user data, can be used to store additional information to the primitives. More...
 

Detailed Description

Trait for finding intersections with a triangle.

Definition at line 71 of file Bvh.h.

Constructor & Destructor Documentation

◆ BvhTriangle()

BvhTriangle::BvhTriangle ( const Vector v0,
const Vector v1,
const Vector v2 
)
inline

Definition at line 77 of file Bvh.h.

Member Function Documentation

◆ getBBox()

INLINE Box BvhTriangle::getBBox ( ) const
inline

Definition at line 108 of file Bvh.h.

◆ getCenter()

INLINE Vector BvhTriangle::getCenter ( ) const
inline

Definition at line 116 of file Bvh.h.

◆ getIntersection()

INLINE bool BvhTriangle::getIntersection ( const Ray ray,
IntersectionInfo intersection 
) const
inline

Definition at line 83 of file Bvh.h.


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