VTK  9.3.0
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
45#ifndef vtkButterflySubdivisionFilter_h
46#define vtkButterflySubdivisionFilter_h
47
48#include "vtkFiltersModelingModule.h" // For export macro
50
51VTK_ABI_NAMESPACE_BEGIN
52class vtkCellArray;
53class vtkIdList;
54class vtkIntArray;
55
56class VTKFILTERSMODELING_EXPORT vtkButterflySubdivisionFilter
58{
59public:
61
66 void PrintSelf(ostream& os, vtkIndent indent) override;
68
69protected:
71 ~vtkButterflySubdivisionFilter() override = default;
72
73private:
74 int GenerateSubdivisionPoints(vtkPolyData* inputDS, vtkIntArray* edgeData, vtkPoints* outputPts,
75 vtkPointData* outputPD) override;
76 void GenerateButterflyStencil(
77 vtkIdType p1, vtkIdType p2, vtkPolyData* polys, vtkIdList* stencilIds, double* weights);
78 void GenerateLoopStencil(
79 vtkIdType p1, vtkIdType p2, vtkPolyData* polys, vtkIdList* stencilIds, double* weights);
80 void GenerateBoundaryStencil(
81 vtkIdType p1, vtkIdType p2, vtkPolyData* polys, vtkIdList* stencilIds, double* weights);
82
84 void operator=(const vtkButterflySubdivisionFilter&) = delete;
85};
86
87VTK_ABI_NAMESPACE_END
88#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:32
a simple class to control print indentation
Definition vtkIndent.h:38
dynamic, self-adjusting array of int
Definition vtkIntArray.h:44
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:38
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition vtkPolyData.h:89
int vtkIdType
Definition vtkType.h:315