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(); }