-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvtkTesselateBoundaryLoops.h
111 lines (85 loc) · 3.27 KB
/
vtkTesselateBoundaryLoops.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
/*=========================================================================
Program: Visualization Toolkit
Module: vtkTesselateBoundaryLoops.h
Language: C++
Version: $Id$
Copyright (c) 2004 Goodwin Lawlor
All rights reserved.
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.
=========================================================================*/
// .NAME vtkTesselateBoundaryLoops - tesselate boundary loops, aka, fill in surface holes.
// .SECTION Description
// This filter will convert boundary edges that form a closed loop into tesselated polygons. It will not
// smoothly interpolate over a surface hole.
#ifndef __vtkTesselateBoundaryLoops_h
#define __vtkTesselateBoundaryLoops_h
#include "vtkPolyDataAlgorithm.h"
#include "vtkBioengConfigure.h" // Include configuration header.
class vtkFeatureEdges;
class vtkCleanPolyData;
class vtkStripper;
class vtkPolyData;
class vtkTriangleFilter;
class vtkAppendPolyData;
class vtkReverseSense;
class VTK_BIOENG_EXPORT vtkTesselateBoundaryLoops : public vtkPolyDataAlgorithm
{
public:
vtkTypeMacro(vtkTesselateBoundaryLoops,vtkPolyDataAlgorithm);
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
// Constructor
static vtkTesselateBoundaryLoops *New();
// Description:
// Set the tolerance for point merging of line verts... if line verts aren't exactly coincident
// they wont be joined up into a loop. With a tolerance they can be incouraged to be coincident.
vtkSetMacro(Tolerance, float);
vtkGetMacro(Tolerance, float);
// Description:
// Set the maximum number of lines in a loop. Default is 1000;
vtkSetMacro(MaximumLength, int);
vtkGetMacro(MaximumLength, int);
//Description:
// Append the tesselated loops to the input dataset. Default is Off.
vtkSetMacro(AppendTesselationToInput, int);
vtkGetMacro(AppendTesselationToInput, int);
vtkBooleanMacro(AppendTesselationToInput,int);
// Description:
// Reverse the sense (front/back face) of the loops being tesselated
vtkSetMacro(ReverseSense, int);
vtkGetMacro(ReverseSense, int);
vtkBooleanMacro(ReverseSense, int);
// Description:
// Sometimes boundary edges are non-manifold and need to be included
vtkSetMacro(NonManifoldEdges, int);
vtkGetMacro(NonManifoldEdges, int);
vtkBooleanMacro(NonManifoldEdges, int);
// Description:
// Get the number of boundary loops
vtkGetMacro(NumberOfLoops, int);
protected:
vtkTesselateBoundaryLoops();
~vtkTesselateBoundaryLoops();
vtkFeatureEdges *FeatureEdges;
vtkCleanPolyData *Clean;
vtkStripper *Stripper;
vtkPolyData *tmpPolyData;
vtkReverseSense *Reverse;
vtkTriangleFilter *Tesselator;
vtkAppendPolyData *Append;
vtkCleanPolyData *Clean2;
float Tolerance;
int AppendTesselationToInput;
int ReverseSense;
int MaximumLength;
int NumberOfLoops;
int NonManifoldEdges;
// Usual data generation method
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
private:
vtkTesselateBoundaryLoops(const vtkTesselateBoundaryLoops&); // Not implemented.
void operator=(const vtkTesselateBoundaryLoops&); // Not implemented.
};
#endif