TriangulateFaces.h 1.53 KB
Newer Older
1 2 3 4 5 6 7 8 9
//=========================================================================
//  Copyright (c) Kitware, Inc.
//  All rights reserved.
//  See LICENSE.txt for details.
//
//  This software is distributed WITHOUT ANY WARRANTY; without even
//  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
//  PURPOSE.  See the above copyright notice for more information.
//=========================================================================
10 11
#ifndef __smtk_extension_delaunay_TriangulateFaces_h
#define __smtk_extension_delaunay_TriangulateFaces_h
12 13

#include "smtk/extension/delaunay/Exports.h"
14
#include "smtk/operation/XMLOperation.h"
15

16 17
namespace smtk
{
T.J. Corona's avatar
T.J. Corona committed
18 19 20
namespace extension
{
namespace delaunay
21
{
22 23 24

class Session;

25
/**\brief Triangulate model faces into meshes using Delaunay.
26
  *
27 28
  * This operation creates smtk::mesh::MeshSets associated with
  * smtk::mesh::Faces using Delaunay. The MeshSets reside in the
29 30
  * smtk::mesh::Resource with the same UUID as the Faces' model. If this
  * resource does not yet exist during the construction of the meshes, it is
31
  * created and populated with the MeshSets.
32
  */
33
class SMTKDELAUNAYEXT_EXPORT TriangulateFaces : public smtk::operation::XMLOperation
34 35
{
public:
36 37
  smtkTypeMacro(TriangulateFaces);
  smtkCreateMacro(TriangulateFaces);
38 39
  smtkSharedFromThisMacro(smtk::operation::Operation);
  smtkSuperclassMacro(smtk::operation::XMLOperation);
40

41
  bool ableToOperate() override;
42 43

protected:
44
  TriangulateFaces();
T.J. Corona's avatar
T.J. Corona committed
45 46
  Result operateInternal() override;
  const char* xmlDescription() const override;
47
};
T.J. Corona's avatar
T.J. Corona committed
48 49 50
}
}
}
51

T.J. Corona's avatar
T.J. Corona committed
52
#endif