Line | |
---|
1 | |
---|
2 | #include <IMGCluster2d.h> |
---|
3 | #include <IMGCluster.h> |
---|
4 | |
---|
5 | namespace IMG |
---|
6 | { |
---|
7 | |
---|
8 | Cluster2d::Cluster2d() |
---|
9 | { |
---|
10 | Vector3s = NULL; |
---|
11 | cluster =NULL; |
---|
12 | normal = NULL; |
---|
13 | } |
---|
14 | |
---|
15 | Ogre::Vector2 * Cluster2d::getVector3s() |
---|
16 | { |
---|
17 | return Vector3s; |
---|
18 | } |
---|
19 | |
---|
20 | std::vector<Ogre::Vector2> * Cluster2d::getVector3sVector() |
---|
21 | { |
---|
22 | return &Vector3s2_vector; |
---|
23 | } |
---|
24 | |
---|
25 | Ogre::Vector3 * Cluster2d::getNormal() |
---|
26 | { |
---|
27 | return normal; |
---|
28 | } |
---|
29 | |
---|
30 | //* Create a 2d polygon from a polygon 3d. The projecte polygon is belong the dominant ERROR_MSG. |
---|
31 | // |
---|
32 | // |
---|
33 | int Cluster2d::create2d(Cluster * cluster, int type, int type_vertexs) |
---|
34 | { |
---|
35 | if (!cluster) |
---|
36 | { |
---|
37 | return false; |
---|
38 | } |
---|
39 | |
---|
40 | int axis = cluster->axisProjected(); |
---|
41 | |
---|
42 | this->cluster = cluster; |
---|
43 | |
---|
44 | return axis; |
---|
45 | } |
---|
46 | |
---|
47 | void Cluster2d::print() |
---|
48 | { |
---|
49 | Ogre::LogManager::getSingleton().logMessage("Printant cluster2d: " + Ogre::StringConverter::toString(id)); |
---|
50 | } |
---|
51 | |
---|
52 | Cluster2d::~Cluster2d() |
---|
53 | { |
---|
54 | } |
---|
55 | |
---|
56 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.