- Timestamp:
- 05/24/06 10:47:49 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Geom/shared/GTGeometry/include/GeoMeshSimplifier.h
r891 r980 2 2 #define __GEO_MESH_SIMPLIFIER__ 3 3 4 #include "GeoMesh.h" 5 #include "GeoMeshSimpSequence.h" 4 #include <math.h> 5 #include "GeoMesh.h" 6 #include "GeoMeshSimpSequence.h" 7 #include "vmi_simplifier.h" 8 6 9 //#include "SimplificationMethod.h" 7 10 … … 38 41 39 42 /// Starts the simplification process. Receives as a parameter the LOD factor in a range of [0,1]. This is a pure virtual method and must be overloaded in a derived class that implements a simplification algorithm. 40 virtual void Simplify 43 virtual void Simplify(Geometry::Real)=0; 41 44 42 45 /// Starts the simplification process. Receives as a parameter the number of vertices of the resulting mesh. This is a pure virtual method and must be overloaded in a derived class that implements a simplification algorithm. 43 virtual void Simplify 46 virtual void Simplify(Geometry::uint32)=0; 44 47 45 48 /// Returns the simplified mesh. 46 Mesh *GetMesh 49 Mesh *GetMesh(); 47 50 48 51 /// Returns the simplification sequence for general meshes. … … 55 58 56 59 //private: // fer protected 57 Mesh *meshsalida;58 MeshSimplificationSequence 59 const Mesh *objmesh;60 Mesh *mGeoMesh; 61 MeshSimplificationSequence *msimpsequence; 62 const Mesh *objmesh; 60 63 61 64 Geometry::Index indexMeshLeaves; … … 70 73 { 71 74 private: 75 76 // Auxiliar vertex buffer. 77 Geometry::VertexBuffer *mVB; 78 79 // Loads a vmi mesh with a given geometry mesh. 80 VMI::Mesh * initMeshStructure(Geometry::Mesh *geoMesh); 72 81 82 // Loads a geometry mesh with a given vmi mesh. 83 void loadMesh(); 84 85 // Find vertex in auxiliar vertex buffer. 86 void findVertex(size_t submesh, size_t index); 87 73 88 public: 89 74 90 /// Class constructor. Will call Simplifier class constructor. 75 ViewPointDrivenSimplifier (const Geometry::Mesh *,76 Geometry::TIPOFUNC upb=0);91 ViewPointDrivenSimplifier( const Geometry::Mesh *geoMesh, 92 Geometry::TIPOFUNC upb=0); 77 93 78 94 /// Class destructor. 79 virtual ~ViewPointDrivenSimplifier(void);95 ~ViewPointDrivenSimplifier(void); 80 96 81 97 /// Copy constructor … … 86 102 87 103 /// Starts the simplification process. Receives as a parameter the LOD factor in a range of [0,1]. Implements the Simplifier::Simplify method to perform an image based simplification. 88 void Simplify 104 void Simplify(Geometry::Real); 89 105 90 106 /// Starts the simplification process. Receives as a parameter the number of vertices of the resulting mesh. Implements the Simplifier::Simplify method to perform an image based simplification. 91 void Simplify (Geometry::uint32); 107 void Simplify(Geometry::uint32); 108 109 // Returns the simplified mesh. 110 //Mesh *GetMesh(); 111 92 112 93 113 }; … … 100 120 public: 101 121 /// Class constructor. Will call Simplifier class constructor. 102 GeometryBasedSimplifier ( const Geometry::Mesh *,122 GeometryBasedSimplifier( const Geometry::Mesh *geoMesh, 103 123 Geometry::TIPOFUNC upb=0); 104 124 105 125 /// Class destructor. 106 virtual ~GeometryBasedSimplifier(void);126 ~GeometryBasedSimplifier(void); 107 127 108 128 /// Copy constructor … … 113 133 114 134 /// Starts the simplification process. Receives as a parameter the LOD factor in a range of [0,1]. Implements the Simplifier::Simplify method to perform an image based simplification. 115 void Simplify 135 void Simplify(Geometry::Real); 116 136 117 137 /// Starts the simplification process. Receives as a parameter the number of vertices of the resulting mesh. Implements the Simplifier::Simplify method to perform an image based simplification. 118 void Simplify 138 void Simplify(Geometry::uint32); 119 139 }; 120 140 } // end of Geometry namespace; 121 141 122 142 #endif 143
Note: See TracChangeset
for help on using the changeset viewer.