VMTK
Loading...
Searching...
No Matches
vtkvmtkPolyDataScissors.h
Go to the documentation of this file.
1/*=========================================================================
2
3Program: VMTK
4
5 Copyright (c) Luca Antiga, David Steinman. All rights reserved.
6 See LICENSE file for details.
7
8 Portions of this code are covered under the VTK copyright.
9 See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm
10 for details.
11
12 This software is distributed WITHOUT ANY WARRANTY; without even
13 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 PURPOSE. See the above copyright notices for more information.
15
16=========================================================================*/
28
29#ifndef __vtkvmtkPolyDataScissors_h
30#define __vtkvmtkPolyDataScissors_h
31
32#include "vtkPolyDataAlgorithm.h"
33#include "vtkPolyData.h"
34//#include "vtkvmtkComputationalGeometryWin32Header.h"
35#include "vtkvmtkWin32Header.h"
36
37class VTK_VMTK_COMPUTATIONAL_GEOMETRY_EXPORT vtkvmtkPolyDataScissors : public vtkPolyDataAlgorithm
38{
39 public:
40 vtkTypeMacro(vtkvmtkPolyDataScissors,vtkPolyDataAlgorithm);
41 void PrintSelf(std::ostream& os, vtkIndent indent) override;
42
44
46
51 vtkSetObjectMacro(CutLine,vtkPolyData);
52 vtkGetObjectMacro(CutLine,vtkPolyData);
54
56
60 vtkSetStringMacro(CutLinePointIdsArrayName);
61 vtkGetStringMacro(CutLinePointIdsArrayName);
63
64 protected:
67
68 virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override;
69 int GetCellsOnSameSide(vtkPolyData* input, vtkIdType targetCellId0, vtkIdType targetCellId1, vtkIdType referenceCellId, vtkIdType linePointId0, vtkIdType linePointId1, vtkIdType linePointId2, vtkIdList *cellsOnSameSide);
70 int IsEdgeInCell(vtkPolyData *input, vtkIdType edgePointId0, vtkIdType edgePointId1, vtkIdType cellId);
71
73 vtkPolyData *CutLine;
74
75private:
76 vtkvmtkPolyDataScissors(const vtkvmtkPolyDataScissors&); // Not implemented.
77 void operator=(const vtkvmtkPolyDataScissors&); // Not implemented.
78};
79
80#endif
void PrintSelf(std::ostream &os, vtkIndent indent) override
int GetCellsOnSameSide(vtkPolyData *input, vtkIdType targetCellId0, vtkIdType targetCellId1, vtkIdType referenceCellId, vtkIdType linePointId0, vtkIdType linePointId1, vtkIdType linePointId2, vtkIdList *cellsOnSameSide)
int IsEdgeInCell(vtkPolyData *input, vtkIdType edgePointId0, vtkIdType edgePointId1, vtkIdType cellId)
static vtkvmtkPolyDataScissors * New()
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override