From 5ca26aa1f65cfb57a75e3e2afad4d27c1850cefc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20M=C3=B6bius?= Date: Mon, 27 Apr 2009 13:53:13 +0000 Subject: [PATCH] Revert last patch git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@103 fdac6126-5c0c-442c-9429-916003d36597 --- Tools/Utils/StripifierT.cc | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/Tools/Utils/StripifierT.cc b/Tools/Utils/StripifierT.cc index e05a6423..23e05058 100644 --- a/Tools/Utils/StripifierT.cc +++ b/Tools/Utils/StripifierT.cc @@ -54,19 +54,13 @@ StripifierT:: StripifierT(Mesh& _mesh) : mesh_(_mesh) { - // preprocess: add new properties - mesh_.add_property( processed_ ); - mesh_.add_property( used_ ); - mesh_.request_face_status(); + } template StripifierT:: ~StripifierT() { - // postprocess: remove properties - mesh_.remove_property(processed_); - mesh_.remove_property(used_); - mesh_.release_face_status(); + } template @@ -74,10 +68,20 @@ unsigned int StripifierT:: stripify() { + // preprocess: add new properties + mesh_.add_property( processed_ ); + mesh_.add_property( used_ ); + mesh_.request_face_status(); + // build strips clear(); build_strips(); + // postprocess: remove properties + mesh_.remove_property(processed_); + mesh_.remove_property(used_); + mesh_.release_face_status(); + return n_strips(); }