Ignore:
Timestamp:
07/05/06 20:18:06 (18 years ago)
Author:
gumbau
Message:
 
Location:
GTP/trunk/Lib/Geom/shared/GTGeometry/src/libs/leaves
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Geom/shared/GTGeometry/src/libs/leaves/foliage.cpp

    r1078 r1083  
    1010// Parameters --> None 
    1111//-------------------------------------------------------------------------------------------------------------------------------- 
    12 Foliage::Foliage(const Geometry::SubMesh *leavesSubMesh, const Geometry::TreeSimplificationSequence & simpSeq, Geometry::CREATEVERTEXDATAFUNC vdfun, Geometry::CREATEINDEXDATAFUNC idfun):  
     12Foliage::Foliage(const Geometry::SubMesh *leavesSubMesh, const Geometry::TreeSimplificationSequence * simpSeq, Geometry::CREATEVERTEXDATAFUNC vdfun, Geometry::CREATEINDEXDATAFUNC idfun):  
    1313Acth(NULL), 
    1414create_vertex_data_func(vdfun==NULL?Geometry::DefaultVertexDataCreator:vdfun), 
     
    304304 
    305305/// returns the number of total leafs 
    306 bool Foliage::ReadSimpSeq(const Geometry::TreeSimplificationSequence & simpSeq) 
     306bool Foliage::ReadSimpSeq(const Geometry::TreeSimplificationSequence * simpSeq) 
    307307{ 
    308308        int tn, tv1,tv2, e=0; 
    309309 
    310310        tn = leafCount; 
    311         for (std::vector<Geometry::TreeSimplificationSequence::Step>::const_iterator it = simpSeq.mSteps.begin(); it != simpSeq.mSteps.end(); it++) 
     311        for (std::vector<Geometry::TreeSimplificationSequence::Step>::const_iterator it = simpSeq->mSteps.begin(); it != simpSeq->mSteps.end(); it++) 
    312312        { 
    313313                Leaves[tn].vertsLeaf[0] = it->mNewQuad[0]; 
  • GTP/trunk/Lib/Geom/shared/GTGeometry/src/libs/leaves/foliage.h

    r1078 r1083  
    2727                int active_leaf_count; 
    2828 
    29                 Foliage (const Geometry::SubMesh *, const Geometry::TreeSimplificationSequence &, Geometry::CREATEVERTEXDATAFUNC vdfun=NULL, Geometry::CREATEINDEXDATAFUNC idfun=NULL); 
     29                Foliage (const Geometry::SubMesh *, const Geometry::TreeSimplificationSequence *, Geometry::CREATEVERTEXDATAFUNC vdfun=NULL, Geometry::CREATEINDEXDATAFUNC idfun=NULL); 
    3030                Foliage (const Foliage *); 
    3131                virtual ~Foliage (void); // Destructor 
     
    5757                void ReadLeafs(const Geometry::SubMesh *); 
    5858                void ReadVertices(const Geometry::SubMesh *); 
    59                 bool ReadSimpSeq(const Geometry::TreeSimplificationSequence &); /// returns true when successful 
     59                bool ReadSimpSeq(const Geometry::TreeSimplificationSequence *); /// returns true when successful 
    6060                void FillRoot(void); 
    6161 
Note: See TracChangeset for help on using the changeset viewer.