From: gdd Date: Thu, 14 Apr 2011 12:08:29 +0000 (+0000) Subject: rnc : correction from Anthony Geay for a problem with medfiles when containing 0D... X-Git-Tag: V6_3_0a1~2 X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=commitdiff_plain;h=a66401aeb637ce6d36c4f7e0663ffaab8be9223b rnc : correction from Anthony Geay for a problem with medfiles when containing 0D elements --- 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);