fix decimater module template parameter for Apps

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@646 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
Matthias Möller
2012-08-08 14:04:23 +00:00
parent 1af3dcac53
commit d1213f23ea
3 changed files with 18 additions and 18 deletions

View File

@@ -103,8 +103,8 @@ public:
typedef MeshViewerWidget inherited_t;
typedef Decimater::DecimaterT<mesh_t> decimater_t;
typedef Decimater::ModQuadricT< decimater_t > mod_quadric_t;
typedef Decimater::ModNormalFlippingT< decimater_t > mod_nf_t;
typedef Decimater::ModQuadricT< mesh_t > mod_quadric_t;
typedef Decimater::ModNormalFlippingT< mesh_t > mod_nf_t;
// object types
typedef std::auto_ptr< decimater_t > decimater_o;
@@ -149,11 +149,11 @@ public: // inherited
decimater_ = tmp;
}
{
mod_quadric_o tmp( new mod_quadric_t( *decimater_ ) );
mod_quadric_o tmp( new mod_quadric_t( mesh() ) );
mod_quadric_ = tmp;
}
{
mod_nf_o tmp( new mod_nf_t ( *decimater_ ) );
mod_nf_o tmp( new mod_nf_t ( mesh() ) );
mod_nf_ = tmp;
}