diff options
author | dan miller | 2007-10-19 05:22:23 +0000 |
---|---|---|
committer | dan miller | 2007-10-19 05:22:23 +0000 |
commit | 1ec410ecd725f5a3ccb2d2fc16f48730d9d9fe43 (patch) | |
tree | 51bcae7a1b8381a6bf6fd8025a7de1e30fe0045d /libraries/ode-0.9/OPCODE/Ice/IceTriList.h | |
parent | one more for the gipper (diff) | |
download | opensim-SC-1ec410ecd725f5a3ccb2d2fc16f48730d9d9fe43.zip opensim-SC-1ec410ecd725f5a3ccb2d2fc16f48730d9d9fe43.tar.gz opensim-SC-1ec410ecd725f5a3ccb2d2fc16f48730d9d9fe43.tar.bz2 opensim-SC-1ec410ecd725f5a3ccb2d2fc16f48730d9d9fe43.tar.xz |
trying to fix my screwup, please hold on
Diffstat (limited to 'libraries/ode-0.9/OPCODE/Ice/IceTriList.h')
-rw-r--r-- | libraries/ode-0.9/OPCODE/Ice/IceTriList.h | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/libraries/ode-0.9/OPCODE/Ice/IceTriList.h b/libraries/ode-0.9/OPCODE/Ice/IceTriList.h deleted file mode 100644 index b2b6ecf..0000000 --- a/libraries/ode-0.9/OPCODE/Ice/IceTriList.h +++ /dev/null | |||
@@ -1,61 +0,0 @@ | |||
1 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | ||
2 | /** | ||
3 | * Contains code for a triangle container. | ||
4 | * \file IceTrilist.h | ||
5 | * \author Pierre Terdiman | ||
6 | * \date April, 4, 2000 | ||
7 | */ | ||
8 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | ||
9 | |||
10 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | ||
11 | // Include Guard | ||
12 | #ifndef __ICETRILIST_H__ | ||
13 | #define __ICETRILIST_H__ | ||
14 | |||
15 | class ICEMATHS_API TriList : public Container | ||
16 | { | ||
17 | public: | ||
18 | // Constructor / Destructor | ||
19 | TriList() {} | ||
20 | ~TriList() {} | ||
21 | |||
22 | inline_ udword GetNbTriangles() const { return GetNbEntries()/9; } | ||
23 | inline_ Triangle* GetTriangles() const { return (Triangle*)GetEntries(); } | ||
24 | |||
25 | void AddTri(const Triangle& tri) | ||
26 | { | ||
27 | Add(tri.mVerts[0].x).Add(tri.mVerts[0].y).Add(tri.mVerts[0].z); | ||
28 | Add(tri.mVerts[1].x).Add(tri.mVerts[1].y).Add(tri.mVerts[1].z); | ||
29 | Add(tri.mVerts[2].x).Add(tri.mVerts[2].y).Add(tri.mVerts[2].z); | ||
30 | } | ||
31 | |||
32 | void AddTri(const Point& p0, const Point& p1, const Point& p2) | ||
33 | { | ||
34 | Add(p0.x).Add(p0.y).Add(p0.z); | ||
35 | Add(p1.x).Add(p1.y).Add(p1.z); | ||
36 | Add(p2.x).Add(p2.y).Add(p2.z); | ||
37 | } | ||
38 | }; | ||
39 | |||
40 | class ICEMATHS_API TriangleList : public Container | ||
41 | { | ||
42 | public: | ||
43 | // Constructor / Destructor | ||
44 | TriangleList() {} | ||
45 | ~TriangleList() {} | ||
46 | |||
47 | inline_ udword GetNbTriangles() const { return GetNbEntries()/3; } | ||
48 | inline_ IndexedTriangle* GetTriangles() const { return (IndexedTriangle*)GetEntries();} | ||
49 | |||
50 | void AddTriangle(const IndexedTriangle& tri) | ||
51 | { | ||
52 | Add(tri.mVRef[0]).Add(tri.mVRef[1]).Add(tri.mVRef[2]); | ||
53 | } | ||
54 | |||
55 | void AddTriangle(udword vref0, udword vref1, udword vref2) | ||
56 | { | ||
57 | Add(vref0).Add(vref1).Add(vref2); | ||
58 | } | ||
59 | }; | ||
60 | |||
61 | #endif //__ICETRILIST_H__ | ||