mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-15 10:08:34 +05:00
rnc : correction from Anthony Geay for a problem with medfiles when containing 0D elements
This commit is contained in:
parent
e079b751f3
commit
a66401aeb6
@ -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();
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user