Fix aType detection for QUAD_Tetra elements

This commit is contained in:
vejmarie 2016-07-04 21:38:28 +02:00
parent ca0a640aed
commit a247aab259

View File

@ -63,7 +63,7 @@ SMDS_VtkCellIteratorToUNV::SMDS_VtkCellIteratorToUNV(SMDS_Mesh* mesh, int vtkCel
_mesh = mesh; _mesh = mesh;
_cellId = vtkCellId; _cellId = vtkCellId;
_index = 0; _index = 0;
_type = aType; // _type = aType;
//MESSAGE("SMDS_VtkCellInterlacedIterator (UNV)" << _type); //MESSAGE("SMDS_VtkCellInterlacedIterator (UNV)" << _type);
_vtkIdList = vtkIdList::New(); _vtkIdList = vtkIdList::New();
@ -72,6 +72,7 @@ SMDS_VtkCellIteratorToUNV::SMDS_VtkCellIteratorToUNV(SMDS_Mesh* mesh, int vtkCel
grid->GetCellPoints((vtkIdType)_cellId, (vtkIdType&)_nbNodes, pts); grid->GetCellPoints((vtkIdType)_cellId, (vtkIdType&)_nbNodes, pts);
_vtkIdList->SetNumberOfIds(_nbNodes); _vtkIdList->SetNumberOfIds(_nbNodes);
const int *ids = 0; const int *ids = 0;
_type = aType;
switch (_type) switch (_type)
{ {
case SMDSEntity_Quad_Edge: case SMDSEntity_Quad_Edge: