| 1019 | } |
| 1020 | |
| 1021 | void vtkTecplotReader::GetPolyhedralGridFromBlockPackingZone(int numNodes, int numCells, |
| 1022 | int numFaces, int zoneIndx, const char* zoneName, vtkMultiBlockDataSet* multZone) |
| 1023 | { |
| 1024 | vtkPoints* gridPnts = vtkPoints::New(); |
| 1025 | vtkUnstructuredGrid* unstruct = vtkUnstructuredGrid::New(); |
| 1026 | this->GetArraysFromBlockPackingZone( |
| 1027 | numNodes, numCells, gridPnts, unstruct->GetPointData(), unstruct->GetCellData()); |
| 1028 | |
| 1029 | unstruct->SetPoints(gridPnts); |
| 1030 | gridPnts->Delete(); |
| 1031 | gridPnts = nullptr; |
| 1032 | |
| 1033 | this->GetPolyhedralGridCells(numCells, numFaces, unstruct); |
| 1034 | |
| 1035 | if ((this->Internal->TopologyDim == 2 || this->Internal->TopologyDim == 3) || |
| 1036 | (this->Internal->TopologyDim == 0 && this->Internal->GeometryDim > 1)) |
| 1037 | { |
| 1038 | multZone->SetBlock(zoneIndx, unstruct); |
| 1039 | multZone->GetMetaData(zoneIndx)->Set(vtkCompositeDataSet::NAME(), zoneName); |
| 1040 | } |
| 1041 | unstruct->Delete(); |
| 1042 | unstruct = nullptr; |
| 1043 | } |
| 1044 | |
| 1045 | //------------------------------------------------------------------------------ |
| 1046 | void vtkTecplotReader::GetUnstructuredGridFromBlockPackingZone(int numNodes, int numCells, |
no test coverage detected