Salome HOME
projects
/
modules
/
geom.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove redundant code
[modules/geom.git]
/
src
/
OCC2VTK
/
GEOM_FaceSource.h
diff --git
a/src/OCC2VTK/GEOM_FaceSource.h
b/src/OCC2VTK/GEOM_FaceSource.h
index 8a824f8e0529ef733205e131507934fa3b3ee3d3..4f1c4732bb26b1e7e6ee4c335e215dad6ef7100c 100755
(executable)
--- a/
src/OCC2VTK/GEOM_FaceSource.h
+++ b/
src/OCC2VTK/GEOM_FaceSource.h
@@
-1,4
+1,4
@@
-// Copyright (C) 2007-201
4
CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-201
5
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
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
@@
-24,12
+24,15
@@
#include <gp_Pnt.hxx>
#include <TopoDS_Face.hxx>
#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;
#include <vtkPoints.h>
#include <vtkPolyDataAlgorithm.h>
class vtkPolyData;
-class FaceSourceInternal;
class OCC2VTK_EXPORT GEOM_FaceSource: public vtkPolyDataAlgorithm
{
class OCC2VTK_EXPORT GEOM_FaceSource: public vtkPolyDataAlgorithm
{
@@
-37,11
+40,11
@@
public:
vtkTypeMacro(GEOM_FaceSource,vtkPolyDataAlgorithm);
void AddFace(const TopoDS_Face& theFace);
vtkTypeMacro(GEOM_FaceSource,vtkPolyDataAlgorithm);
void AddFace(const TopoDS_Face& theFace);
- void Clear()
;
- bool IsEmpty()
;
+ void Clear()
{ myFaceSet.Clear();}
+ bool IsEmpty()
{return myFaceSet.IsEmpty();}
protected:
protected:
- FaceSourceInternal* myData;
+ TFaceSet myFaceSet;
static
void MoveTo(gp_Pnt thePnt,
static
void MoveTo(gp_Pnt thePnt,