Commit fd8ed29e authored by Jan Möbius's avatar Jan Möbius
Browse files

Mixed not ready yet. Keep for next release



git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@729 fdac6126-5c0c-442c-9429-916003d36597
parent 19ab724a
......@@ -118,29 +118,7 @@ size_t MixedDecimaterT<Mesh>::decimate_to_faces(const size_t _n_vertices,const
r_collapses = McDecimaterT<Mesh>::decimate_to_faces(n_vertices_mc, n_faces_mc);
} else {
const int samples = this->samples();
// MinimalSample count for the McDecimater
const int min = 2;
// Maximal number of samples for the McDecimater
const int max = samples;
// Number of incremental steps
const int steps = 7;
for ( int i = 0; i < steps; ++i ) {
// Compute number of samples to be used
int samples = double( min) + double(i)/(double(steps)-1.0) * (max-2) ;
// We won't allow 1 here, as this is the last step in the incremental part
double decimaterLevel = (double(i + 1)) * _mc_factor / (double(steps) );
this->set_samples(samples);
r_collapses = McDecimaterT<Mesh>::decimate_constraints_only(decimaterLevel);
}
r_collapses += McDecimaterT<Mesh>::decimate_constraints_only(_mc_factor);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment