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
36#ifndef vtkButterflySubdivisionFilter_h
37#define vtkButterflySubdivisionFilter_h
38
39#include "vtkFiltersModelingModule.h" // For export macro
41
42VTK_ABI_NAMESPACE_BEGIN
43class vtkCellArray;
44class vtkIdList;
45class vtkIntArray;
46
47class VTKFILTERSMODELING_EXPORT vtkButterflySubdivisionFilter
49{
50public:
52
57 void PrintSelf(ostream& os, vtkIndent indent) override;
59
60protected:
62 ~vtkButterflySubdivisionFilter() override = default;
63
64private:
65 int GenerateSubdivisionPoints(vtkPolyData* inputDS, vtkIntArray* edgeData, vtkPoints* outputPts,
66 vtkPointData* outputPD) override;
67 void GenerateButterflyStencil(
68 vtkIdType p1, vtkIdType p2, vtkPolyData* polys, vtkIdList* stencilIds, double* weights);
69 void GenerateLoopStencil(
70 vtkIdType p1, vtkIdType p2, vtkPolyData* polys, vtkIdList* stencilIds, double* weights);
71 void GenerateBoundaryStencil(
72 vtkIdType p1, vtkIdType p2, vtkPolyData* polys, vtkIdList* stencilIds, double* weights);
73
75 void operator=(const vtkButterflySubdivisionFilter&) = delete;
76};
77
78VTK_ABI_NAMESPACE_END
79#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:23
a simple class to control print indentation
Definition vtkIndent.h:29
dynamic, self-adjusting array of int
Definition vtkIntArray.h:35
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:29
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition vtkPolyData.h:80
int vtkIdType
Definition vtkType.h:315