| 995 | } |
| 996 | |
| 997 | void vtkTecplotReader::GetPolygonalGridFromBlockPackingZone(int numNodes, int numCells, |
| 998 | int numFaces, int zoneIndx, const char* zoneName, vtkMultiBlockDataSet* multZone) |
| 999 | { |
| 1000 | vtkPoints* gridPnts = vtkPoints::New(); |
| 1001 | vtkUnstructuredGrid* unstruct = vtkUnstructuredGrid::New(); |
| 1002 | this->GetArraysFromBlockPackingZone( |
| 1003 | numNodes, numCells, gridPnts, unstruct->GetPointData(), unstruct->GetCellData()); |
| 1004 | |
| 1005 | unstruct->SetPoints(gridPnts); |
| 1006 | gridPnts->Delete(); |
| 1007 | gridPnts = nullptr; |
| 1008 | |
| 1009 | this->GetPolygonalGridCells(numCells, numFaces, unstruct); |
| 1010 | |
| 1011 | if ((this->Internal->TopologyDim == 2 || this->Internal->TopologyDim == 3) || |
| 1012 | (this->Internal->TopologyDim == 0 && this->Internal->GeometryDim > 1)) |
| 1013 | { |
| 1014 | multZone->SetBlock(zoneIndx, unstruct); |
| 1015 | multZone->GetMetaData(zoneIndx)->Set(vtkCompositeDataSet::NAME(), zoneName); |
| 1016 | } |
| 1017 | unstruct->Delete(); |
| 1018 | unstruct = nullptr; |
| 1019 | } |
| 1020 | |
| 1021 | void vtkTecplotReader::GetPolyhedralGridFromBlockPackingZone(int numNodes, int numCells, |
| 1022 | int numFaces, int zoneIndx, const char* zoneName, vtkMultiBlockDataSet* multZone) |
no test coverage detected