vtkLinearSubdivisionFilter.h 2.19 KB
Newer Older
1 2 3 4 5
/*=========================================================================

  Program:   Visualization Toolkit
  Module:    vtkLinearSubdivisionFilter.h

6
  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 8
  All rights reserved.
  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
Will Schroeder's avatar
Will Schroeder committed
9

10 11
     This software is distributed WITHOUT ANY WARRANTY; without even
     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12
     PURPOSE.  See the above copyright notice for more information.
13 14

=========================================================================*/
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
/**
 * @class   vtkLinearSubdivisionFilter
 * @brief   generate a subdivision surface using the Linear Scheme
 *
 * vtkLinearSubdivisionFilter is a filter that generates output by
 * subdividing its input polydata. Each subdivision iteration create 4
 * new triangles for each triangle in the polydata.
 *
 * @par Thanks:
 * This work was supported by PHS Research Grant No. 1 P41 RR13218-01
 * from the National Center for Research Resources.
 *
 * @sa
 * vtkInterpolatingSubdivisionFilter vtkButterflySubdivisionFilter
*/
30

31 32
#ifndef vtkLinearSubdivisionFilter_h
#define vtkLinearSubdivisionFilter_h
33

34
#include "vtkFiltersModelingModule.h" // For export macro
35
#include "vtkInterpolatingSubdivisionFilter.h"
36 37 38 39 40

class vtkIntArray;
class vtkPointData;
class vtkPoints;
class vtkPolyData;
41

42
class VTKFILTERSMODELING_EXPORT vtkLinearSubdivisionFilter : public vtkInterpolatingSubdivisionFilter
43 44
{
public:
45 46 47 48
  //@{
  /**
   * Construct object with NumberOfSubdivisions set to 1.
   */
Bill Lorensen's avatar
Bill Lorensen committed
49
  static vtkLinearSubdivisionFilter *New();
50
  vtkTypeMacro(vtkLinearSubdivisionFilter,vtkInterpolatingSubdivisionFilter);
51
  //@}
52 53

protected:
54
  vtkLinearSubdivisionFilter () {}
55
  ~vtkLinearSubdivisionFilter () override {}
56

57 58 59
  int GenerateSubdivisionPoints (vtkPolyData *inputDS,
                                 vtkIntArray *edgeData,
                                 vtkPoints *outputPts,
60
                                 vtkPointData *outputPD) override;
61

62
private:
63 64
  vtkLinearSubdivisionFilter(const vtkLinearSubdivisionFilter&) = delete;
  void operator=(const vtkLinearSubdivisionFilter&) = delete;
65 66 67 68 69
};

#endif


70
// VTK-HeaderTest-Exclude: vtkLinearSubdivisionFilter.h