Line | |
---|
1 | #ifndef _IMGCLUSTER2D_H |
---|
2 | #define _IMGCLUSTER2D_H |
---|
3 | |
---|
4 | #include "IMGCluster.h" |
---|
5 | |
---|
6 | namespace IMG { |
---|
7 | |
---|
8 | class Cluster2d { |
---|
9 | public: |
---|
10 | inline Cluster2d() { |
---|
11 | Vector3s = NULL; |
---|
12 | cluster =NULL; |
---|
13 | normal = NULL; |
---|
14 | }; |
---|
15 | |
---|
16 | //* Create a 2d polygon from a polygon 3d. The projecte polygon is belong the dominant normal. |
---|
17 | // |
---|
18 | // |
---|
19 | int Create2d(Cluster * cluster, int type, int type_vertexs); |
---|
20 | |
---|
21 | void Print(); |
---|
22 | |
---|
23 | inline Ogre::Vector2 * GetVector3s() { return Vector3s; } |
---|
24 | |
---|
25 | inline std::vector<Ogre::Vector2> * GetVector3sVector() { return &Vector3s2_vector; } |
---|
26 | |
---|
27 | inline Ogre::Vector3 * GetNormal() { return normal; } |
---|
28 | |
---|
29 | |
---|
30 | private: |
---|
31 | unsigned int id; |
---|
32 | |
---|
33 | Cluster * cluster; |
---|
34 | |
---|
35 | Ogre::Vector2 *Vector3s;
|
---|
36 | std::vector<Ogre::Vector2> Vector3s2_vector;
|
---|
37 |
|
---|
38 | Ogre::Vector3 *normal; |
---|
39 | |
---|
40 | public: |
---|
41 | ~Cluster2d(); |
---|
42 | |
---|
43 | }; |
---|
44 | |
---|
45 | } |
---|
46 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.