opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
liboscar
maths
bvh_prim.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <
liboscar/maths/aabb.h
>
4
5
#include <cstddef>
6
7
namespace
osc
8
{
9
// a primitive (leaf) in the BVH
10
//
11
// IDs and bounds an element from the input data (triangles/AABBs)
12
class
BVHPrim
final
{
13
public
:
14
BVHPrim
(
ptrdiff_t
id
,
const
AABB
&
bounds
) :
15
id_{
id
},
16
bounds_{
bounds
}
17
{}
18
19
ptrdiff_t
id
()
const
{
return
id_; }
20
const
AABB
&
bounds
()
const
{
return
bounds_; }
21
22
private
:
23
ptrdiff_t
id_{};
24
AABB bounds_{};
25
};
26
}
aabb.h
osc::BVHPrim
Definition
bvh_prim.h:12
osc::BVHPrim::BVHPrim
BVHPrim(ptrdiff_t id, const AABB &bounds)
Definition
bvh_prim.h:14
osc::BVHPrim::bounds
const AABB & bounds() const
Definition
bvh_prim.h:20
osc::BVHPrim::id
ptrdiff_t id() const
Definition
bvh_prim.h:19
osc
Definition
custom_decoration_generator.h:5
osc::to
constexpr U to(T &&value)
Definition
conversion.h:56
osc::AABB
Definition
aabb.h:14
Generated by
1.9.8