rnc : correction from Anthony Geay for a problem with medfiles when containing 0D elements

This commit is contained in:
gdd 2011-04-14 12:08:29 +00:00
parent e079b751f3
commit a66401aeb6
2 changed files with 3 additions and 2 deletions

View 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();

View 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);