Rev | Line | |
---|
[1315] | 1 | #include "IntersectableWrapper.h"
|
---|
[1199] | 2 |
|
---|
| 3 |
|
---|
| 4 | namespace GtpVisibilityPreprocessor {
|
---|
| 5 |
|
---|
| 6 |
|
---|
[1327] | 7 | AxisAlignedBox3 FaceIntersectable::GetBox() const
|
---|
| 8 | {
|
---|
| 9 | return mItem->GetBoundingBox();
|
---|
| 10 | }
|
---|
[1199] | 11 |
|
---|
[1327] | 12 |
|
---|
| 13 | int FaceIntersectable::CastRay(Ray &ray)
|
---|
| 14 | { // TODO matt
|
---|
| 15 | return 0;
|
---|
| 16 | }
|
---|
[1199] | 17 |
|
---|
[1327] | 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 |
|
---|
[1138] | 65 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.