Ignore:
Timestamp:
06/15/06 11:50:48 (18 years ago)
Author:
gumbau
Message:

LodStripsConstructor? optimized and fixed bug building a lodtree

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Geom/shared/GeoTool/src/GeoMeshViewUI.cpp

    r1014 r1017  
    10031003} 
    10041004 
     1005VertexBuffer *origSubMeshVB=NULL; 
     1006int orig_numindices=0; 
     1007Index *orig_indices=NULL; 
     1008 
    10051009//--------------------------------------------------------------------------- 
    10061010//      Button Process Callback 
     
    10141018        progressBarType =       PROCESS; 
    10151019        mProcessBar->position(0); 
     1020 
     1021        origSubMeshVB=NULL; 
    10161022 
    10171023        //      Initialize error flag. 
     
    10801086                                else 
    10811087                                { 
     1088                                        origSubMeshVB=mGeoMesh->mSubMesh[idMeshLeaves].mVertexBuffer->Clone(); 
     1089                                        orig_numindices=mGeoMesh->mSubMesh[idMeshLeaves].mIndexCount; 
     1090                                        orig_indices=new Index[orig_numindices]; 
     1091                                        for (int i=0; i<orig_numindices; i++) 
     1092                                                orig_indices[i]=mGeoMesh->mSubMesh[idMeshLeaves].mIndex[i]; 
     1093 
    10821094                                        std::cout << "Simplificando hojas..."; 
    10831095                                        simplifyLeavesCollapse(); 
     
    13241336                                                file_name[strlen(file_name) - 4]        =       '\0'; 
    13251337                                                 
     1338                                                mesh_saver->leavesSubMesh=idMeshLeaves; 
     1339                                                mesh_saver->leavesVB=origSubMeshVB; 
     1340                                                mesh_saver->numindices=orig_numindices; 
     1341                                                mesh_saver->indices=orig_indices; 
    13261342                                                mesh_saver->save(       mGeoMesh, 
    13271343                                                                                                                        strcat(file_name,".mesh")); 
Note: See TracChangeset for help on using the changeset viewer.