+//----------------------------------------------------------------------------
+class VTKVIEWER_EXPORT VTKViewer_Triangulator
+{
+ public:
+ VTKViewer_Triangulator();
+
+ ~VTKViewer_Triangulator();
+
+ bool
+ Execute(vtkUnstructuredGrid *theInput,
+ vtkCellData* thInputCD,
+ vtkIdType theCellId,
+ int theShowInside,
+ int theAllVisible,
+ int theAppendCoincident3D,
+ const char* theCellsVisibility,
+ vtkPolyData *theOutput,
+ vtkCellData* theOutputCD,
+ int theStoreMapping,
+ std::vector<vtkIdType>& theVTK2ObjIds,
+ std::vector< std::vector<vtkIdType> >& theDimension2VTK2ObjIds,
+ bool theIsCheckConvex);
+
+ private:
+ vtkIdList* myCellIds;
+
+ protected:
+ vtkIdType *myPointIds;
+ vtkIdList* myFaceIds;
+ vtkPoints* myPoints;
+
+ virtual
+ vtkPoints*
+ InitPoints(vtkUnstructuredGrid *theInput,
+ vtkIdType theCellId);
+
+ virtual
+ vtkIdType
+ GetNumFaces() = 0;
+
+ virtual
+ vtkCell*
+ GetFace(vtkIdType theFaceId) = 0;
+
+ vtkIdType
+ GetNbOfPoints();
+
+ vtkIdType
+ GetPointId(vtkIdType thePointId);
+
+ double
+ GetCellLength();
+
+ void
+ GetCellNeighbors(vtkUnstructuredGrid *theInput,
+ vtkIdType theCellId,
+ vtkCell* theFace,
+ vtkIdList* theCellIds);
+
+ vtkIdType
+ GetConnectivity(vtkIdType thePntId);
+};