From a66401aeb637ce6d36c4f7e0663ffaab8be9223b Mon Sep 17 00:00:00 2001 From: gdd Date: Thu, 14 Apr 2011 12:08:29 +0000 Subject: [PATCH] rnc : correction from Anthony Geay for a problem with medfiles when containing 0D elements --- src/DriverMED/DriverMED_R_SMESHDS_Mesh.cxx | 2 +- src/SMDS/SMDS_MeshElementIDFactory.cxx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/DriverMED/DriverMED_R_SMESHDS_Mesh.cxx b/src/DriverMED/DriverMED_R_SMESHDS_Mesh.cxx index 7f23e4b45..b37836c72 100644 --- a/src/DriverMED/DriverMED_R_SMESHDS_Mesh.cxx +++ b/src/DriverMED/DriverMED_R_SMESHDS_Mesh.cxx @@ -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(); diff --git a/src/SMDS/SMDS_MeshElementIDFactory.cxx b/src/SMDS/SMDS_MeshElementIDFactory.cxx index 1abf9e81f..c5027e9c2 100644 --- a/src/SMDS/SMDS_MeshElementIDFactory.cxx +++ b/src/SMDS/SMDS_MeshElementIDFactory.cxx @@ -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); -- 2.39.2