Changeset 1083 for GTP/trunk/Lib/Geom/shared/GTGeometry/src/libs
- Timestamp:
- 07/05/06 20:18:06 (18 years ago)
- 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 10 10 // Parameters --> None 11 11 //-------------------------------------------------------------------------------------------------------------------------------- 12 Foliage::Foliage(const Geometry::SubMesh *leavesSubMesh, const Geometry::TreeSimplificationSequence &simpSeq, Geometry::CREATEVERTEXDATAFUNC vdfun, Geometry::CREATEINDEXDATAFUNC idfun):12 Foliage::Foliage(const Geometry::SubMesh *leavesSubMesh, const Geometry::TreeSimplificationSequence * simpSeq, Geometry::CREATEVERTEXDATAFUNC vdfun, Geometry::CREATEINDEXDATAFUNC idfun): 13 13 Acth(NULL), 14 14 create_vertex_data_func(vdfun==NULL?Geometry::DefaultVertexDataCreator:vdfun), … … 304 304 305 305 /// returns the number of total leafs 306 bool Foliage::ReadSimpSeq(const Geometry::TreeSimplificationSequence &simpSeq)306 bool Foliage::ReadSimpSeq(const Geometry::TreeSimplificationSequence * simpSeq) 307 307 { 308 308 int tn, tv1,tv2, e=0; 309 309 310 310 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++) 312 312 { 313 313 Leaves[tn].vertsLeaf[0] = it->mNewQuad[0]; -
GTP/trunk/Lib/Geom/shared/GTGeometry/src/libs/leaves/foliage.h
r1078 r1083 27 27 int active_leaf_count; 28 28 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); 30 30 Foliage (const Foliage *); 31 31 virtual ~Foliage (void); // Destructor … … 57 57 void ReadLeafs(const Geometry::SubMesh *); 58 58 void ReadVertices(const Geometry::SubMesh *); 59 bool ReadSimpSeq(const Geometry::TreeSimplificationSequence &); /// returns true when successful59 bool ReadSimpSeq(const Geometry::TreeSimplificationSequence *); /// returns true when successful 60 60 void FillRoot(void); 61 61
Note: See TracChangeset
for help on using the changeset viewer.