VTK  9.3.0
vtkLoopSubdivisionFilter.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
37#ifndef vtkLoopSubdivisionFilter_h
38#define vtkLoopSubdivisionFilter_h
39
41#include "vtkFiltersModelingModule.h" // For export macro
42
43VTK_ABI_NAMESPACE_BEGIN
44class vtkPolyData;
45class vtkIntArray;
46class vtkPoints;
47class vtkIdList;
48
49class VTKFILTERSMODELING_EXPORT vtkLoopSubdivisionFilter : public vtkApproximatingSubdivisionFilter
50{
51public:
53
58 void PrintSelf(ostream& os, vtkIndent indent) override;
60
61protected:
63 ~vtkLoopSubdivisionFilter() override = default;
64
65 int GenerateSubdivisionPoints(vtkPolyData* inputDS, vtkIntArray* edgeData, vtkPoints* outputPts,
66 vtkPointData* outputPD) override;
67 int GenerateEvenStencil(vtkIdType p1, vtkPolyData* polys, vtkIdList* stencilIds, double* weights);
69 vtkIdType p1, vtkIdType p2, vtkPolyData* polys, vtkIdList* stencilIds, double* weights);
70
72
73private:
75 void operator=(const vtkLoopSubdivisionFilter&) = delete;
76};
77
78VTK_ABI_NAMESPACE_END
79#endif
generate a subdivision surface using an Approximating Scheme
list of point or cell ids
Definition vtkIdList.h:23
a simple class to control print indentation
Definition vtkIndent.h:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
dynamic, self-adjusting array of int
Definition vtkIntArray.h:35
generate a subdivision surface using the Loop Scheme
int GenerateSubdivisionPoints(vtkPolyData *inputDS, vtkIntArray *edgeData, vtkPoints *outputPts, vtkPointData *outputPD) override
~vtkLoopSubdivisionFilter() override=default
vtkLoopSubdivisionFilter()=default
void GenerateOddStencil(vtkIdType p1, vtkIdType p2, vtkPolyData *polys, vtkIdList *stencilIds, double *weights)
static vtkLoopSubdivisionFilter * New()
Construct object with NumberOfSubdivisions set to 1.
int GenerateEvenStencil(vtkIdType p1, vtkPolyData *polys, vtkIdList *stencilIds, double *weights)
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void PrintSelf(ostream &os, vtkIndent indent) override
Construct object with NumberOfSubdivisions set to 1.
represent and manipulate point attribute data
represent and manipulate 3D points
Definition vtkPoints.h:29
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition vtkPolyData.h:80
int vtkIdType
Definition vtkType.h:315