Ignore:
Timestamp:
07/06/06 20:20:06 (19 years ago)
Author:
gumbau
Message:

LodTreeLibrary? constructor now has 3 parameters.
The leaves submesh is calculated inside the constructor.

Location:
GTP/trunk/Lib/Geom/shared/GeoTool
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Geom/shared/GeoTool/include/GeoMeshViewUI.h

    r1083 r1090  
    374374        void    setLodStripsLibrary(const Geometry::LodStripsLibraryData *, Mesh        *geomesh); 
    375375        //      Initialize the lodtreelibrary for visualization. 
    376         void    setLodTreesLibrary(const Geometry::LodStripsLibraryData *, const Geometry::TreeSimplificationSequence *, Mesh   *geomesh, uint32 ileafSubMesh); 
     376        void    setLodTreesLibrary(const Geometry::LodStripsLibraryData *, const Geometry::TreeSimplificationSequence *, Mesh   *geomesh/*, uint32 ileafSubMesh*/); 
    377377 
    378378        // Indentify the mesh of leaves. 
  • GTP/trunk/Lib/Geom/shared/GeoTool/src/GeoMeshView.cpp

    r1083 r1090  
    10321032        for (int submesh = 0; submesh < geoMesh->mSubMeshCount; submesh++) 
    10331033        { 
    1034                 if (submesh==leavesSubMesh) 
     1034                //if (submesh==leavesSubMesh) 
     1035                if (submesh == lodTreeLib->GetLeavesSubMesh()) 
    10351036                        continue; 
    10361037 
  • GTP/trunk/Lib/Geom/shared/GeoTool/src/GeoMeshViewUI.cpp

    r1083 r1090  
    852852                if (geoMeshLoader->GetTreeSimpSeq() && geoMeshLoader->GetLodStripsData()) 
    853853                { 
    854                         // select the first triangle-list submesh as leaves submesh 
     854/*                      // select the first triangle-list submesh as leaves submesh 
    855855                        int leafsSubMeshID = -1; 
    856856 
     
    862862                                        break; 
    863863                                } 
    864                         } 
    865  
    866                         setLodTreesLibrary(geoMeshLoader->GetLodStripsData(), geoMeshLoader->GetTreeSimpSeq(), mGeoMesh, leafsSubMeshID); 
     864                        }*/ 
     865 
     866                        setLodTreesLibrary(geoMeshLoader->GetLodStripsData(), geoMeshLoader->GetTreeSimpSeq(), mGeoMesh/*, leafsSubMeshID*/); 
    867867 
    868868                        //      Sets the aplication mode. 
     
    23422342//      Initialize the lodTreelibrary for visualization. 
    23432343//--------------------------------------------------------------------------- 
    2344 void    GeoMeshViewUI::setLodTreesLibrary(const LodStripsLibraryData *lodstripsdata, const TreeSimplificationSequence *treesimpseq, Mesh *geomesh, uint32 ileafSubMesh) 
     2344void    GeoMeshViewUI::setLodTreesLibrary(const LodStripsLibraryData *lodstripsdata, const TreeSimplificationSequence *treesimpseq, Mesh *geomesh/*, uint32 ileafSubMesh*/) 
    23452345{ 
    23462346        //      If there is no lod strips object. 
     
    23502350        //      New lod strips object. 
    23512351 
    2352         lodTreeLib = new Geometry::LodTreeLibrary(lodstripsdata,treesimpseq,geomesh,ileafSubMesh); 
     2352        lodTreeLib = new Geometry::LodTreeLibrary(lodstripsdata,treesimpseq,geomesh/*,ileafSubMesh*/); 
    23532353 
    23542354        //      Sets the slider range. 
Note: See TracChangeset for help on using the changeset viewer.