Line | |
---|
1 | #include "KdIntersectable.h" |
---|
2 | |
---|
3 | |
---|
4 | namespace GtpVisibilityPreprocessor { |
---|
5 | |
---|
6 | |
---|
7 | KdIntersectable::KdIntersectable(KdNode *node): |
---|
8 | Intersectable(), mNode(node) |
---|
9 | { |
---|
10 | } |
---|
11 | |
---|
12 | |
---|
13 | void KdIntersectable::SetNode(KdNode *node) |
---|
14 | { |
---|
15 | mNode = node; |
---|
16 | } |
---|
17 | |
---|
18 | |
---|
19 | KdNode *KdIntersectable::GetNode() const
|
---|
20 | {
|
---|
21 | return mNode;
|
---|
22 | }
|
---|
23 | |
---|
24 | |
---|
25 | AxisAlignedBox3 KdIntersectable::GetBox() const |
---|
26 | { // TODO matt |
---|
27 | return AxisAlignedBox3(); |
---|
28 | } |
---|
29 | |
---|
30 | |
---|
31 | int KdIntersectable::CastRay(Ray &ray)
|
---|
32 | { // TODO matt
|
---|
33 | return 0;
|
---|
34 | }
|
---|
35 |
|
---|
36 |
|
---|
37 | bool KdIntersectable::IsConvex() const
|
---|
38 | {
|
---|
39 | return true;
|
---|
40 | }
|
---|
41 |
|
---|
42 |
|
---|
43 | bool KdIntersectable::IsWatertight() const
|
---|
44 | {
|
---|
45 | return true;
|
---|
46 | }
|
---|
47 |
|
---|
48 |
|
---|
49 | float KdIntersectable::IntersectionComplexity()
|
---|
50 | {
|
---|
51 | return 1.0f;
|
---|
52 | }
|
---|
53 |
|
---|
54 |
|
---|
55 | int KdIntersectable::NumberOfFaces() const
|
---|
56 | {
|
---|
57 | return 0;
|
---|
58 | }
|
---|
59 |
|
---|
60 |
|
---|
61 | int KdIntersectable::Type() const
|
---|
62 | {
|
---|
63 | return Intersectable::KD_INTERSECTABLE;
|
---|
64 | }
|
---|
65 |
|
---|
66 |
|
---|
67 | int KdIntersectable::GetRandomSurfacePoint(Vector3 &point,
|
---|
68 | Vector3 &normal)
|
---|
69 | {
|
---|
70 | return 0;
|
---|
71 | }
|
---|
72 |
|
---|
73 |
|
---|
74 | int KdIntersectable::GetRandomVisibleSurfacePoint(Vector3 &point,
|
---|
75 | Vector3 &normal,
|
---|
76 | const Vector3 &viewpoint,
|
---|
77 | const int maxTries)
|
---|
78 | {
|
---|
79 | return 0;
|
---|
80 | }
|
---|
81 |
|
---|
82 |
|
---|
83 | ostream &KdIntersectable::Describe(ostream &s)
|
---|
84 | {
|
---|
85 | s << mNode;
|
---|
86 | return s;
|
---|
87 | }
|
---|
88 | |
---|
89 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.