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

Method GetPolygonalGridFromBlockPackingZone

IO/Geometry/vtkTecplotReader.cxx:997–1019  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

995}
996
997void 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
1021void vtkTecplotReader::GetPolyhedralGridFromBlockPackingZone(int numNodes, int numCells,
1022 int numFaces, int zoneIndx, const char* zoneName, vtkMultiBlockDataSet* multZone)

Callers 1

ReadFileMethod · 0.95

Calls 10

GetPolygonalGridCellsMethod · 0.95
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