add: mixedDecimater

add: unittests (for all Decimaters)
fix: collapses counter in McDecimater

refs #998

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@653 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
Matthias Möller
2012-08-22 08:49:55 +00:00
parent 8038dfb390
commit 6c9fc60520
9 changed files with 474 additions and 3 deletions

View File

@@ -72,7 +72,7 @@ namespace Decimater {
\see BaseModT, \ref decimater_docu
*/
template < typename MeshT >
class McDecimaterT : public BaseDecimaterT<MeshT>
class McDecimaterT : virtual public BaseDecimaterT<MeshT> //virtual especially for the mixed decimater
{
public: //-------------------------------------------------------- public types
@@ -106,10 +106,14 @@ public:
}
/** Decimate to target complexity (vertices and faces).
* Stops when the number of vertices or the number of faces is reached.
* Returns number of performed collapses.
*/
size_t decimate_to_faces( size_t _n_vertices=0, size_t _n_faces=0 );
size_t samples(){return randomSamples_;}
void set_samples(const size_t _value){randomSamples_ = _value;}
private: //------------------------------------------------------- private data