source: GTP/trunk/Lib/Vis/Preprocessing/src/IntersectableWrapper.cpp @ 1327

Revision 1327, 1.1 KB checked in by mattausch, 18 years ago (diff)
Line 
1#include "IntersectableWrapper.h"
2
3
4namespace GtpVisibilityPreprocessor {
5
6
7AxisAlignedBox3 FaceIntersectable::GetBox() const
8{       
9        return mItem->GetBoundingBox();
10}
11
12
13int FaceIntersectable::CastRay(Ray &ray)
14{       // TODO matt
15        return 0;
16}
17       
18template<typename T>
19bool IntersectableWrapper<T>::IsConvex() const
20{
21        return true;
22}
23
24template<typename T>
25bool IntersectableWrapper<T>::IsWatertight() const
26{
27        return true;
28}
29
30template<typename T>
31float IntersectableWrapper<T>::IntersectionComplexity()
32{
33        return 1.0f;
34}
35
36template<typename T>
37int IntersectableWrapper<T>::NumberOfFaces() const
38{
39        return 0;
40}
41
42template<typename T>
43int IntersectableWrapper<T>::GetRandomSurfacePoint(Vector3 &point,
44                                                                                                Vector3 &normal)
45{
46        return 0;
47}
48
49template<typename T>
50int IntersectableWrapper<T>::GetRandomVisibleSurfacePoint(Vector3 &point,
51                                                                                                           Vector3 &normal,
52                                                                                                           const Vector3 &viewpoint,
53                                                                                                           const int maxTries)
54{
55        return 0;
56}
57 
58template<typename T>
59ostream &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.