]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
rnc : correction from Anthony Geay for a problem with medfiles when containing 0D...
authorgdd <gdd>
Thu, 14 Apr 2011 12:08:29 +0000 (12:08 +0000)
committergdd <gdd>
Thu, 14 Apr 2011 12:08:29 +0000 (12:08 +0000)
src/DriverMED/DriverMED_R_SMESHDS_Mesh.cxx
src/SMDS/SMDS_MeshElementIDFactory.cxx

index 7f23e4b457491f60ef79d65a0df9d2abbcf8fa20..b37836c72103e07583bf50b60a8c31519f050fa0 100644 (file)
@@ -145,7 +145,7 @@ DriverMED_R_SMESHDS_Mesh
           aResult = DRS_FAIL;
           continue;
         }
-
+       aMeshInfo->myDim=aMeshInfo->mySpaceDim;//Bug correction to ignore meshdim in MEDFile because can be false.
         PCoordHelper aCoordHelper = GetCoordHelper(aNodeInfo);
 
         EBooleen anIsNodeNum = aNodeInfo->IsElemNum();
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);