VMTK
Loading...
Searching...
No Matches
vtkvmtkNonManifoldSteepestDescent.h
Go to the documentation of this file.
1/*=========================================================================
2
3Program: VMTK
4
5 Copyright (c) Luca Antiga, David Steinman. All rights reserved.
6 See LICENSE file for details.
7
8 Portions of this code are covered under the VTK copyright.
9 See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm
10 for details.
11
12 This software is distributed WITHOUT ANY WARRANTY; without even
13 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 PURPOSE. See the above copyright notices for more information.
15
16=========================================================================*/
28
29#ifndef __vtkvmtkNonManifoldSteepestDescent_h
30#define __vtkvmtkNonManifoldSteepestDescent_h
31
32#include "vtkPolyDataAlgorithm.h"
33#include "vtkDataArray.h"
34//#include "vtkvmtkComputationalGeometryWin32Header.h"
35#include "vtkvmtkWin32Header.h"
36
37#define VTK_VMTK_DOWNWARD 0
38#define VTK_VMTK_UPWARD 1
39
40class VTK_VMTK_COMPUTATIONAL_GEOMETRY_EXPORT vtkvmtkNonManifoldSteepestDescent : public vtkPolyDataAlgorithm
41{
42 public:
43 vtkTypeMacro(vtkvmtkNonManifoldSteepestDescent,vtkPolyDataAlgorithm);
44 void PrintSelf(std::ostream& os, vtkIndent indent) override;
45
47
49
53 vtkSetStringMacro(DescentArrayName);
54 vtkGetStringMacro(DescentArrayName);
56
58
64 vtkSetMacro(Direction,int);
65 vtkGetMacro(Direction,int);
70
71
72 protected:
75
76 virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override;
77
79
84 double GetSteepestDescent(vtkPolyData* input, vtkIdType* edge, double s, vtkIdType* steepestDescentEdge, double &steepestDescentS);
85 double GetSteepestDescentInCell(vtkPolyData* input, vtkIdType cellId, vtkIdType* edge, double s, vtkIdType* steepestDescentEdge, double &steepestDescentS, double &steepestDescentLength);
87
88 vtkDataArray* DescentArray;
90
93
94 private:
96 void operator=(const vtkvmtkNonManifoldSteepestDescent&); // Not implemented.
97};
98
99#endif
100
Provides an abstract base class for steepest descent on a polygonal non-manifold.
static vtkvmtkNonManifoldSteepestDescent * New()
void PrintSelf(std::ostream &os, vtkIndent indent) override