Salome HOME
rnc : correction from Anthony Geay for a problem with medfiles when containing 0D...
[modules/smesh.git] / src / SMDS / SMDS_MeshElementIDFactory.cxx
index 1abf9e81f24928a9d0c42c65c1d3cdc6f624d1c5..c5027e9c2d9334f5f4c4f5ca0022154588b5fd38 100644 (file)
@@ -95,7 +95,8 @@ int SMDS_MeshElementIDFactory::SetInVtkGrid(SMDS_MeshElement * elem)
   // --- insert cell in vtkUnstructuredGrid
 
   vtkUnstructuredGrid * grid = myMesh->getGrid();
-  int typ = GetVtkCellType(elem->GetType());
+  //int locType = elem->GetType();
+  int typ = VTK_VERTEX;//GetVtkCellType(locType);
   int cellId = grid->InsertNextLinkedCell(typ, nodeIds.size(), &nodeIds[0]);
   cell->setVtkId(cellId); 
   //MESSAGE("SMDS_MeshElementIDFactory::SetInVtkGrid " << cellId);