]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
0021347: [CEA 497] Visualisation into SMESH and VISU of hexagonal prism cells (MED_OC...
authoreap <eap@opencascade.com>
Fri, 16 Dec 2011 09:06:23 +0000 (09:06 +0000)
committereap <eap@opencascade.com>
Fri, 16 Dec 2011 09:06:23 +0000 (09:06 +0000)
0021380: EDF 1937 SMESH: Take into account QUAD9 and HEXA27

-  int GetVtkCellType(int SMDSType);

-  std::vector<int> myVtkCellTypes;

src/SMDS/SMDS_MeshElementIDFactory.cxx
src/SMDS/SMDS_MeshElementIDFactory.hxx

index 6c86e6f28b5137f7bb650ea52f7b5a06ae65a0e4..fad6622b048f33238a79b94a3d107938466020d5 100644 (file)
@@ -49,34 +49,6 @@ using namespace std;
 SMDS_MeshElementIDFactory::SMDS_MeshElementIDFactory():
   SMDS_MeshNodeIDFactory()
 {
-//    myIDElements.clear();
-//    myVtkIndex.clear();
-    myVtkCellTypes.clear();
-    myVtkCellTypes.reserve(SMDSEntity_Last);
-    myVtkCellTypes[SMDSEntity_Node]            = VTK_VERTEX;
-    myVtkCellTypes[SMDSEntity_0D]              = VTK_VERTEX;
-    myVtkCellTypes[SMDSEntity_Edge]            = VTK_LINE;
-    myVtkCellTypes[SMDSEntity_Quad_Edge]       = VTK_QUADRATIC_EDGE;
-    myVtkCellTypes[SMDSEntity_Triangle]        = VTK_TRIANGLE;
-    myVtkCellTypes[SMDSEntity_Quad_Triangle]   = VTK_QUADRATIC_TRIANGLE;
-    myVtkCellTypes[SMDSEntity_Quadrangle]      = VTK_QUAD;
-    myVtkCellTypes[SMDSEntity_Quad_Quadrangle] = VTK_QUADRATIC_TRIANGLE;
-    myVtkCellTypes[SMDSEntity_Polygon]         = VTK_POLYGON;
-    myVtkCellTypes[SMDSEntity_Quad_Polygon]    = VTK_POLYGON; // -PR- verifer
-    myVtkCellTypes[SMDSEntity_Tetra]           = VTK_TETRA;
-    myVtkCellTypes[SMDSEntity_Quad_Tetra]      = VTK_QUADRATIC_TETRA;
-    myVtkCellTypes[SMDSEntity_Pyramid]         = VTK_PYRAMID;
-    myVtkCellTypes[SMDSEntity_Quad_Pyramid]    = VTK_CONVEX_POINT_SET;
-    myVtkCellTypes[SMDSEntity_Hexa]            = VTK_HEXAHEDRON;
-    myVtkCellTypes[SMDSEntity_Quad_Hexa]       = VTK_QUADRATIC_HEXAHEDRON;
-    myVtkCellTypes[SMDSEntity_Penta]           = VTK_WEDGE;
-    myVtkCellTypes[SMDSEntity_Quad_Penta]      = VTK_QUADRATIC_WEDGE;
-//#ifdef VTK_HAVE_POLYHEDRON
-    myVtkCellTypes[SMDSEntity_Polyhedra]       = VTK_POLYHEDRON;
-//#else
-//    myVtkCellTypes[SMDSEntity_Polyhedra]       = VTK_CONVEX_POINT_SET;
-//#endif
-    myVtkCellTypes[SMDSEntity_Quad_Polyhedra]  = VTK_CONVEX_POINT_SET;
 }
 
 int SMDS_MeshElementIDFactory::SetInVtkGrid(SMDS_MeshElement * elem)
@@ -209,9 +181,3 @@ void SMDS_MeshElementIDFactory::Clear()
   myMin = myMax = 0;
   SMDS_MeshIDFactory::Clear();
 }
-
-int SMDS_MeshElementIDFactory::GetVtkCellType(int SMDSType)
-{
-    assert((SMDSType >=0) && (SMDSType< SMDSEntity_Last));
-    return myVtkCellTypes[SMDSType];
-}
index a110c1ea61cc3d3035e793f361105054a31452c4..6508fcc080b134c07c17a52f4bd9c8fb907f002b 100644 (file)
@@ -49,7 +49,6 @@ public:
   virtual void ReleaseID(int ID, int vtkId = -1);
   SMDS_ElemIteratorPtr elementsIterator() const;
   virtual void Clear();
-  int GetVtkCellType(int SMDSType);
 
 protected:
   void updateMinMax() const;
@@ -59,8 +58,6 @@ protected:
     if (id < myMin) myMin = id;
   }
 
-  std::vector<int> myVtkCellTypes;
-
 };
 
 #endif