You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.7 KiB
C
54 lines
1.7 KiB
C
3 weeks ago
|
/*=========================================================================
|
||
|
|
||
|
Program: Visualization Toolkit
|
||
|
Module: vtkRemoveDuplicatePolys.h
|
||
|
|
||
|
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
|
||
|
All rights reserved.
|
||
|
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
|
||
|
|
||
|
This software is distributed WITHOUT ANY WARRANTY; without even
|
||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||
|
PURPOSE. See the above copyright notice for more information.
|
||
|
|
||
|
=========================================================================*/
|
||
|
/**
|
||
|
* @class vtkRemoveDuplicatePolys
|
||
|
* @brief remove duplicate/degenerate polygons
|
||
|
*
|
||
|
* vtkRemoveDuplicatePolys is a filter that removes duplicate or degenerate
|
||
|
* polygons. Assumes the input grid does not contain duplicate points. You
|
||
|
* may want to run vtkCleanPolyData first to assert it. If duplicated
|
||
|
* polygons are found they are removed in the output.
|
||
|
*
|
||
|
* @sa
|
||
|
* vtkCleanPolyData
|
||
|
*/
|
||
|
|
||
|
#ifndef vtkRemoveDuplicatePolys_h
|
||
|
#define vtkRemoveDuplicatePolys_h
|
||
|
|
||
|
#include "vtkFiltersCoreModule.h" // For export macro
|
||
|
#include "vtkPolyDataAlgorithm.h"
|
||
|
|
||
|
class VTKFILTERSCORE_EXPORT vtkRemoveDuplicatePolys : public vtkPolyDataAlgorithm
|
||
|
{
|
||
|
public:
|
||
|
static vtkRemoveDuplicatePolys* New();
|
||
|
void PrintSelf(ostream& os, vtkIndent indent) override;
|
||
|
vtkTypeMacro(vtkRemoveDuplicatePolys, vtkPolyDataAlgorithm);
|
||
|
|
||
|
protected:
|
||
|
vtkRemoveDuplicatePolys();
|
||
|
~vtkRemoveDuplicatePolys() override;
|
||
|
|
||
|
// Usual data generation method.
|
||
|
virtual int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
|
||
|
|
||
|
private:
|
||
|
vtkRemoveDuplicatePolys(const vtkRemoveDuplicatePolys&) = delete;
|
||
|
void operator=(const vtkRemoveDuplicatePolys&) = delete;
|
||
|
};
|
||
|
|
||
|
#endif
|