From ddf15b3bf4db0960ed8721b00b1f7ff4db0224cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20M=C3=B6bius?= Date: Fri, 19 Jun 2020 13:54:45 +0200 Subject: [PATCH] Decimate only on selected vertices, Fixed ugly typo --- src/OpenMesh/Tools/Decimater/DecimaterT.hh | 2 +- src/OpenMesh/Tools/Decimater/McDecimaterT.hh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/OpenMesh/Tools/Decimater/DecimaterT.hh b/src/OpenMesh/Tools/Decimater/DecimaterT.hh index 920a1bbe..6d0b3b4d 100644 --- a/src/OpenMesh/Tools/Decimater/DecimaterT.hh +++ b/src/OpenMesh/Tools/Decimater/DecimaterT.hh @@ -121,7 +121,7 @@ public: size_t decimate_to( size_t _n_vertices , bool _only_selected = false) { return ( (_n_vertices < this->mesh().n_vertices()) ? - decimate( this->mesh().n_vertices() - _n_vertices ) : 0 , _only_selected); + decimate( this->mesh().n_vertices() - _n_vertices , _only_selected ) : 0 ); } /** diff --git a/src/OpenMesh/Tools/Decimater/McDecimaterT.hh b/src/OpenMesh/Tools/Decimater/McDecimaterT.hh index 238c9d46..553e311d 100644 --- a/src/OpenMesh/Tools/Decimater/McDecimaterT.hh +++ b/src/OpenMesh/Tools/Decimater/McDecimaterT.hh @@ -122,7 +122,7 @@ public: size_t decimate_to( size_t _n_vertices , bool _only_selected = false) { return ( (_n_vertices < this->mesh().n_vertices()) ? - decimate( this->mesh().n_vertices() - _n_vertices ) : 0 , _only_selected); + decimate( this->mesh().n_vertices() - _n_vertices , _only_selected ) : 0 ); } /**