VTK  9.3.1
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 
43 VTK_ABI_NAMESPACE_BEGIN
44 class vtkPolyData;
45 class vtkIntArray;
46 class vtkPoints;
47 class vtkIdList;
48 
49 class VTKFILTERSMODELING_EXPORT vtkLoopSubdivisionFilter : public vtkApproximatingSubdivisionFilter
50 {
51 public:
53 
56  static vtkLoopSubdivisionFilter* New();
58  void PrintSelf(ostream& os, vtkIndent indent) override;
60 
61 protected:
62  vtkLoopSubdivisionFilter() = default;
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);
68  void GenerateOddStencil(
69  vtkIdType p1, vtkIdType p2, vtkPolyData* polys, vtkIdList* stencilIds, double* weights);
70 
72 
73 private:
75  void operator=(const vtkLoopSubdivisionFilter&) = delete;
76 };
77 
78 VTK_ABI_NAMESPACE_END
79 #endif
represent and manipulate point attribute data
Definition: vtkPointData.h:29
Store vtkAlgorithm input/output information.
int vtkIdType
Definition: vtkType.h:315
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:79
static vtkPolyDataAlgorithm * New()
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:34
a simple class to control print indentation
Definition: vtkIndent.h:28
virtual int GenerateSubdivisionPoints(vtkPolyData *inputDS, vtkIntArray *edgeData, vtkPoints *outputPts, vtkPointData *outputPD)=0
list of point or cell ids
Definition: vtkIdList.h:22
generate a subdivision surface using an Approximating Scheme
Store zero or more vtkInformation instances.
generate a subdivision surface using the Loop Scheme
represent and manipulate 3D points
Definition: vtkPoints.h:28
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.