MCPcopy Create free account
hub / github.com/Kitware/VTK / GetPolyhedralGridFromBlockPackingZone

Method GetPolyhedralGridFromBlockPackingZone

IO/Geometry/vtkTecplotReader.cxx:1021–1043  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1019}
1020
1021void 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//------------------------------------------------------------------------------
1046void vtkTecplotReader::GetUnstructuredGridFromBlockPackingZone(int numNodes, int numCells,

Callers 1

ReadFileMethod · 0.95

Calls 10

SetBlockMethod · 0.80
DeleteMethod · 0.65
NewFunction · 0.50
GetPointDataMethod · 0.45
GetCellDataMethod · 0.45
SetPointsMethod · 0.45
SetMethod · 0.45
GetMetaDataMethod · 0.45

Tested by

no test coverage detected