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