Line | |
---|
1 | #ifndef _IMGCLUSTER2D_H |
---|
2 | #define _IMGCLUSTER2D_H |
---|
3 | |
---|
4 | #include <IMGPrerequisites.h> |
---|
5 | |
---|
6 | namespace IMG { |
---|
7 | |
---|
8 | class Cluster; |
---|
9 | |
---|
10 | class _IMGExport Cluster2d { |
---|
11 | public: |
---|
12 | Cluster2d(); |
---|
13 | |
---|
14 | virtual ~Cluster2d(); |
---|
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 | Ogre::Vector2 * getVector3s(); |
---|
24 | |
---|
25 | std::vector<Ogre::Vector2> * getVector3sVector(); |
---|
26 | |
---|
27 | Ogre::Vector3 * getNormal(); |
---|
28 | |
---|
29 | protected: |
---|
30 | |
---|
31 | unsigned int id; |
---|
32 | |
---|
33 | Cluster * cluster; |
---|
34 | |
---|
35 | Ogre::Vector2 *Vector3s;
|
---|
36 |
|
---|
37 | std::vector<Ogre::Vector2> Vector3s2_vector;
|
---|
38 |
|
---|
39 | Ogre::Vector3 *normal; |
---|
40 | |
---|
41 | }; |
---|
42 | |
---|
43 | } |
---|
44 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.