Commit 849ee4d2 authored by Jan Möbius's avatar Jan Möbius

Docu and indents

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@726 fdac6126-5c0c-442c-9429-916003d36597
parent d085da3b
......@@ -118,7 +118,7 @@ void DecimaterT<Mesh>::heap_vertex(VertexHandle _vh) {
if (collapse_target.is_valid()) {
// std::clog << " added|updated" << std::endl;
mesh_.property(collapse_target_, _vh) = collapse_target;
mesh_.property(priority_, _vh) = best_prio;
mesh_.property(priority_, _vh) = best_prio;
if (heap_->is_stored(_vh))
heap_->update(_vh);
......@@ -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;
......
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