Fixed bad property handling in OpenMesh Stripifier doing create and delete of properties in generator function not in constructor/destructor.
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@102 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
@@ -1,31 +1,31 @@
|
||||
//=============================================================================
|
||||
//
|
||||
// OpenMesh
|
||||
// Copyright (C) 2001-2003 by Computer Graphics Group, RWTH Aachen
|
||||
// www.openmesh.org
|
||||
//
|
||||
//
|
||||
// OpenMesh
|
||||
// Copyright (C) 2001-2003 by Computer Graphics Group, RWTH Aachen
|
||||
// www.openmesh.org
|
||||
//
|
||||
//-----------------------------------------------------------------------------
|
||||
//
|
||||
// License
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it
|
||||
// under the terms of the GNU Lesser General Public License as published
|
||||
// by the Free Software Foundation, version 2.1.
|
||||
//
|
||||
// This library is distributed in the hope that it will be useful, but
|
||||
// WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with this library; if not, write to the Free Software
|
||||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
//
|
||||
//
|
||||
// License
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it
|
||||
// under the terms of the GNU Lesser General Public License as published
|
||||
// by the Free Software Foundation, version 2.1.
|
||||
//
|
||||
// This library is distributed in the hope that it will be useful, but
|
||||
// WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with this library; if not, write to the Free Software
|
||||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
//
|
||||
//-----------------------------------------------------------------------------
|
||||
//
|
||||
//
|
||||
// $Revision$
|
||||
// $Date$
|
||||
//
|
||||
//
|
||||
//=============================================================================
|
||||
|
||||
//=============================================================================
|
||||
@@ -57,7 +57,7 @@ namespace OpenMesh {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/** \class StripifierT StripifierT.hh <OpenMesh/Tools/Utils/StripifierT.hh>
|
||||
This class decomposes a triangle mesh into several triangle strips.
|
||||
*/
|
||||
@@ -66,7 +66,7 @@ template <class Mesh>
|
||||
class StripifierT
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
typedef unsigned int Index;
|
||||
typedef std::vector<Index> Strip;
|
||||
typedef typename Strip::const_iterator IndexIterator;
|
||||
@@ -75,11 +75,10 @@ public:
|
||||
|
||||
|
||||
/// Default constructor
|
||||
StripifierT(Mesh& _mesh) : mesh_(_mesh) {}
|
||||
StripifierT(Mesh& _mesh);
|
||||
|
||||
/// Destructor
|
||||
~StripifierT() {}
|
||||
|
||||
~StripifierT();
|
||||
|
||||
/// Compute triangle strips, returns number of strips
|
||||
unsigned int stripify();
|
||||
|
||||
Reference in New Issue
Block a user