VTK  9.4.20241222
vtkAdaptiveSubdivisionFilter.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
60#ifndef vtkAdaptiveSubdivisionFilter_h
61#define vtkAdaptiveSubdivisionFilter_h
62
63#include "vtkFiltersModelingModule.h" // For export macro
65
66VTK_ABI_NAMESPACE_BEGIN
68
69class VTKFILTERSMODELING_EXPORT vtkAdaptiveSubdivisionFilter : public vtkPolyDataAlgorithm
70{
71public:
73
78 void PrintSelf(ostream& os, vtkIndent indent) override;
80
82
87 vtkSetClampMacro(MaximumEdgeLength, double, 0.000001, VTK_DOUBLE_MAX);
88 vtkGetMacro(MaximumEdgeLength, double);
90
92
98 vtkSetClampMacro(MaximumTriangleArea, double, 0.000001, VTK_DOUBLE_MAX);
99 vtkGetMacro(MaximumTriangleArea, double);
101
103
110 vtkSetClampMacro(MaximumNumberOfTriangles, vtkIdType, 1, VTK_ID_MAX);
111 vtkGetMacro(MaximumNumberOfTriangles, vtkIdType);
113
115
121 vtkSetClampMacro(MaximumNumberOfPasses, vtkIdType, 1, VTK_ID_MAX);
122 vtkGetMacro(MaximumNumberOfPasses, vtkIdType);
124
126
132 vtkGetObjectMacro(Locator, vtkIncrementalPointLocator);
134
136
141 vtkSetMacro(OutputPointsPrecision, int);
142 vtkGetMacro(OutputPointsPrecision, int);
144
150
155
156protected:
159
166
168
169private:
171 void operator=(const vtkAdaptiveSubdivisionFilter&) = delete;
172};
173
174VTK_ABI_NAMESPACE_END
175#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.
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:108
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:315
#define VTK_ID_MAX
Definition vtkType.h:319
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:270
#define VTK_DOUBLE_MAX
Definition vtkType.h:154