Docu and indents
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@726 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
@@ -140,6 +140,7 @@ void DecimaterT<Mesh>::heap_vertex(VertexHandle _vh) {
|
||||
//-----------------------------------------------------------------------------
|
||||
template<class Mesh>
|
||||
size_t DecimaterT<Mesh>::decimate(size_t _n_collapses) {
|
||||
|
||||
if (!this->is_initialized())
|
||||
return 0;
|
||||
|
||||
@@ -215,6 +216,7 @@ size_t DecimaterT<Mesh>::decimate(size_t _n_collapses) {
|
||||
heap_.reset();
|
||||
|
||||
|
||||
|
||||
// DON'T do garbage collection here! It's up to the application.
|
||||
return n_collapses;
|
||||
}
|
||||
@@ -223,6 +225,7 @@ size_t DecimaterT<Mesh>::decimate(size_t _n_collapses) {
|
||||
|
||||
template<class Mesh>
|
||||
size_t DecimaterT<Mesh>::decimate_to_faces(size_t _nv, size_t _nf) {
|
||||
|
||||
if (!this->is_initialized())
|
||||
return 0;
|
||||
|
||||
|
||||
@@ -372,7 +372,7 @@ size_t McDecimaterT<Mesh>::decimate_constraints_only(float _factor) {
|
||||
unsigned int nf = mesh_.n_faces();
|
||||
|
||||
bool lastCollapseIllegal = false;
|
||||
// number of illegal collapses that occured in a row
|
||||
// number of illegal collapses that occurred in a row
|
||||
unsigned int illegalCollapses = 0;
|
||||
|
||||
bool collapsesUnchanged = false;
|
||||
|
||||
Reference in New Issue
Block a user