Line | |
---|
1 | #include "IntersectableWrapper.h"
|
---|
2 |
|
---|
3 |
|
---|
4 | namespace GtpVisibilityPreprocessor {
|
---|
5 |
|
---|
6 |
|
---|
7 | AxisAlignedBox3 FaceIntersectable::GetBox() const
|
---|
8 | {
|
---|
9 | return mItem->GetBoundingBox();
|
---|
10 | }
|
---|
11 |
|
---|
12 |
|
---|
13 | int FaceIntersectable::CastRay(Ray &ray)
|
---|
14 | { // TODO matt
|
---|
15 | return 0;
|
---|
16 | }
|
---|
17 |
|
---|
18 | template<typename T>
|
---|
19 | bool IntersectableWrapper<T>::IsConvex() const
|
---|
20 | {
|
---|
21 | return true;
|
---|
22 | }
|
---|
23 |
|
---|
24 | template<typename T>
|
---|
25 | bool IntersectableWrapper<T>::IsWatertight() const
|
---|
26 | {
|
---|
27 | return true;
|
---|
28 | }
|
---|
29 |
|
---|
30 | template<typename T>
|
---|
31 | float IntersectableWrapper<T>::IntersectionComplexity()
|
---|
32 | {
|
---|
33 | return 1.0f;
|
---|
34 | }
|
---|
35 |
|
---|
36 | template<typename T>
|
---|
37 | int IntersectableWrapper<T>::NumberOfFaces() const
|
---|
38 | {
|
---|
39 | return 0;
|
---|
40 | }
|
---|
41 |
|
---|
42 | template<typename T>
|
---|
43 | int IntersectableWrapper<T>::GetRandomSurfacePoint(Vector3 &point,
|
---|
44 | Vector3 &normal)
|
---|
45 | {
|
---|
46 | return 0;
|
---|
47 | }
|
---|
48 |
|
---|
49 | template<typename T>
|
---|
50 | int IntersectableWrapper<T>::GetRandomVisibleSurfacePoint(Vector3 &point,
|
---|
51 | Vector3 &normal,
|
---|
52 | const Vector3 &viewpoint,
|
---|
53 | const int maxTries)
|
---|
54 | {
|
---|
55 | return 0;
|
---|
56 | }
|
---|
57 |
|
---|
58 | template<typename T>
|
---|
59 | ostream &IntersectableWrapper<T>::Describe(ostream &s)
|
---|
60 | {
|
---|
61 | s << mItem;
|
---|
62 | return s;
|
---|
63 | }
|
---|
64 |
|
---|
65 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.