source: GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE/src/IMGCluster2d.cpp @ 731

Revision 731, 858 bytes checked in by igarcia, 18 years ago (diff)
Line 
1
2#include <IMGCluster2d.h>
3#include <IMGCluster.h>
4
5namespace IMG
6{
7
8Cluster2d::Cluster2d()
9{
10    Vector3s = NULL;
11    cluster =NULL;
12    normal = NULL;
13}
14
15Ogre::Vector2 * Cluster2d::getVector3s()
16{
17        return Vector3s;
18}
19
20std::vector<Ogre::Vector2> * Cluster2d::getVector3sVector()
21{
22        return &Vector3s2_vector;
23}
24
25Ogre::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//       
33int 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
47void Cluster2d::print()
48{
49        Ogre::LogManager::getSingleton().logMessage("Printant cluster2d: " + Ogre::StringConverter::toString(id));
50}
51
52Cluster2d::~Cluster2d()
53{
54}
55
56}
Note: See TracBrowser for help on using the repository browser.