Ignore:
Timestamp:
09/28/06 17:49:37 (18 years ago)
Author:
gumbau
Message:

Updated modules to the new interface and the new simplification algorithm improvements.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Geom/shared/GTGeometry/include/GeoLodStripsLibrary.h

    r1090 r1526  
    3434        typedef struct 
    3535        { 
    36                 unsigned        long    strip; 
    37                 char                                            position; 
    38                 char                                            vertexRepetition; 
    39                 char                                            edgeRepetition; 
     36                unsigned        long    strip; // change this to uint32 
     37                char            position; 
     38                char            vertexRepetition; 
     39                char            edgeRepetition; 
     40                char            obligatory; 
    4041        }       LODRegisterType; 
    4142 
    4243        typedef struct 
    4344        { 
    44                 float                   Vertex[3]; 
     45                float           Vertex[3]; 
    4546                SmallInt        Next; 
    4647        } VertexType; 
     
    130131 
    131132                        //      Copa STL vectors to C arrays. 
    132                         void    CopyVectors2Arrays(); 
     133                        void    CopyVectors2Arrays(void); 
    133134 
    134135                        //      Loads Mesh. 
    135136                        void    LoadStripMesh(const LodStripsLibraryData *, Mesh *geomesh); 
    136137 
    137                         Geometry::CREATEINDEXDATAFUNC create_index_data_func; 
     138//                      Geometry::CREATEINDEXDATAFUNC create_index_data_func; 
    138139 
    139140                        //      Strips vector. 
     
    146147                        //Number of strips in each submesh 
    147148                        int* mStripsSubmesh; 
     149                        bool delete_indexdata; 
     150                        int *submesh_x_strip; 
     151                        Real lodFactor; 
     152                        IndexData *dataRetrievalInterface; 
     153                        uint32 current_triangle_count; 
    148154 
    149155                public: 
    150156 
    151                         IndexData *dataRetrievalInterface; 
     157                        IndexData *GetIndexDataInterface(void){ return dataRetrievalInterface; } 
    152158                         
    153159                        /**     Constructor, receives as a parameter the name of the file 
    154160                         *      including the multiresolution object. 
    155161                        */ 
    156                         LodStripsLibrary(const LodStripsLibraryData *, Mesh *geomesh, CREATEINDEXDATAFUNC idfun=NULL); 
     162                        LodStripsLibrary(const LodStripsLibraryData *, Mesh *geomesh, IndexData * userindexdata = NULL); 
    157163 
    158164                        /// Destructor. 
     
    182188                        uint32 GetTotalStripCount(void) const { return mTotalStrips; } 
    183189                        uint32 GetSubMeshtripCount(int submeshid) const { return mStripsSubmesh[submeshid]; } 
     190                        uint32 GetCurrentTriangleCount(void) const { return current_triangle_count; } 
     191 
     192                        virtual Real GetCurrentLodFactor(void) const { return lodFactor; } 
    184193        }; 
    185194} 
Note: See TracChangeset for help on using the changeset viewer.