VTK  9.1.0
vtkAdaptiveSubdivisionFilter.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkAdaptiveSubdivisionFilter.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
69#ifndef vtkAdaptiveSubdivisionFilter_h
70#define vtkAdaptiveSubdivisionFilter_h
71
72#include "vtkFiltersModelingModule.h" // For export macro
74
76
77class VTKFILTERSMODELING_EXPORT vtkAdaptiveSubdivisionFilter : public vtkPolyDataAlgorithm
78{
79public:
81
86 void PrintSelf(ostream& os, vtkIndent indent) override;
88
90
95 vtkSetClampMacro(MaximumEdgeLength, double, 0.000001, VTK_DOUBLE_MAX);
96 vtkGetMacro(MaximumEdgeLength, double);
98
100
106 vtkSetClampMacro(MaximumTriangleArea, double, 0.000001, VTK_DOUBLE_MAX);
107 vtkGetMacro(MaximumTriangleArea, double);
109
111
118 vtkSetClampMacro(MaximumNumberOfTriangles, vtkIdType, 1, VTK_ID_MAX);
119 vtkGetMacro(MaximumNumberOfTriangles, vtkIdType);
121
123
129 vtkSetClampMacro(MaximumNumberOfPasses, vtkIdType, 1, VTK_ID_MAX);
130 vtkGetMacro(MaximumNumberOfPasses, vtkIdType);
132
134
140 vtkGetObjectMacro(Locator, vtkIncrementalPointLocator);
142
144
149 vtkSetMacro(OutputPointsPrecision, int);
150 vtkGetMacro(OutputPointsPrecision, int);
152
158
163
164protected:
167
174
176
177private:
179 void operator=(const vtkAdaptiveSubdivisionFilter&) = delete;
180};
181
182#endif
subdivide triangles based on edge and/or area metrics
void CreateDefaultLocator()
Create a default locator.
~vtkAdaptiveSubdivisionFilter() override
void SetLocator(vtkIncrementalPointLocator *locator)
Set / get a spatial locator for merging points.
static vtkAdaptiveSubdivisionFilter * New()
Standard methods for instantiation, type info, and printing.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instantiation, type info, and printing.
vtkMTimeType GetMTime() override
Modified GetMTime because of the dependence on the locator.
vtkIncrementalPointLocator * Locator
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
Abstract class in support of both point location and point insertion.
a simple class to control print indentation
Definition: vtkIndent.h:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only polydata as output.
int vtkIdType
Definition: vtkType.h:332
#define VTK_ID_MAX
Definition: vtkType.h:336
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287
#define VTK_DOUBLE_MAX
Definition: vtkType.h:165