VTK  9.4.20250303
vtkButterflySubdivisionFilter.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
75#ifndef vtkButterflySubdivisionFilter_h
76#define vtkButterflySubdivisionFilter_h
77
78#include "vtkFiltersModelingModule.h" // For export macro
80
81VTK_ABI_NAMESPACE_BEGIN
82class vtkCellArray;
83class vtkIdList;
84class vtkIntArray;
85
86class VTKFILTERSMODELING_EXPORT vtkButterflySubdivisionFilter
88{
89public:
91
96 void PrintSelf(ostream& os, vtkIndent indent) override;
98
99protected:
101 ~vtkButterflySubdivisionFilter() override = default;
102
103private:
104 int GenerateSubdivisionPoints(vtkPolyData* inputDS, vtkIntArray* edgeData, vtkPoints* outputPts,
105 vtkPointData* outputPD) override;
106 void GenerateButterflyStencil(
107 vtkIdType p1, vtkIdType p2, vtkPolyData* polys, vtkIdList* stencilIds, double* weights);
108 void GenerateLoopStencil(
109 vtkIdType p1, vtkIdType p2, vtkPolyData* polys, vtkIdList* stencilIds, double* weights);
110 void GenerateBoundaryStencil(
111 vtkIdType p1, vtkIdType p2, vtkPolyData* polys, vtkIdList* stencilIds, double* weights);
112
114 void operator=(const vtkButterflySubdivisionFilter&) = delete;
115};
116
117VTK_ABI_NAMESPACE_END
118#endif
generate a subdivision surface using the Butterfly Scheme
~vtkButterflySubdivisionFilter() override=default
static vtkButterflySubdivisionFilter * New()
Construct object with NumberOfSubdivisions set to 1.
void PrintSelf(ostream &os, vtkIndent indent) override
Construct object with NumberOfSubdivisions set to 1.
object to represent cell connectivity
list of point or cell ids
Definition vtkIdList.h:133
a simple class to control print indentation
Definition vtkIndent.h:108
dynamic, self-adjusting array of int
generate a subdivision surface using an Interpolating Scheme
virtual int GenerateSubdivisionPoints(vtkPolyData *inputDS, vtkIntArray *edgeData, vtkPoints *outputPts, vtkPointData *outputPD)=0
represent and manipulate point attribute data
represent and manipulate 3D points
Definition vtkPoints.h:139
concrete dataset represents vertices, lines, polygons, and triangle strips
int vtkIdType
Definition vtkType.h:332