Salome HOME
Remove redundant code
[modules/geom.git] / src / OCC2VTK / GEOM_FaceSource.h
index 8a824f8e0529ef733205e131507934fa3b3ee3d3..4f1c4732bb26b1e7e6ee4c335e215dad6ef7100c 100755 (executable)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2014  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2015  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 
 #include <gp_Pnt.hxx>
 #include <TopoDS_Face.hxx> 
+#include <TopTools_ShapeMapHasher.hxx>
+#include <NCollection_Map.hxx> 
+typedef NCollection_Map<TopoDS_Face, TopTools_ShapeMapHasher> TFaceSet; 
  
 #include <vtkPoints.h> 
 #include <vtkPolyDataAlgorithm.h> 
 
 class vtkPolyData;
-class FaceSourceInternal;
 
 class OCC2VTK_EXPORT GEOM_FaceSource: public vtkPolyDataAlgorithm 
 { 
@@ -37,11 +40,11 @@ public:
   vtkTypeMacro(GEOM_FaceSource,vtkPolyDataAlgorithm); 
  
   void AddFace(const TopoDS_Face& theFace); 
-  void Clear();
-  bool IsEmpty();
+  void Clear(){ myFaceSet.Clear();} 
+  bool IsEmpty(){return myFaceSet.IsEmpty();}
  
 protected: 
-  FaceSourceInternal* myData;
+  TFaceSet myFaceSet; 
  
   static 
   void MoveTo(gp_Pnt thePnt,