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

Method CopyArrayForCells

IO/XML/vtkXMLPUnstructuredGridReader.cxx:176–190  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

174
175//------------------------------------------------------------------------------
176void vtkXMLPUnstructuredGridReader::CopyArrayForCells(
177 vtkAbstractArray* inArray, vtkAbstractArray* outArray)
178{
179 if (!this->PieceReaders[this->Piece])
180 {
181 return;
182 }
183 if (!inArray || !outArray)
184 {
185 return;
186 }
187
188 vtkIdType numCells = this->PieceReaders[this->Piece]->GetNumberOfCells();
189 outArray->InsertTuples(this->StartCell, numCells, 0, inArray);
190}
191
192//------------------------------------------------------------------------------
193vtkXMLDataReader* vtkXMLPUnstructuredGridReader::CreatePieceReader()

Callers

nothing calls this directly

Calls 2

GetNumberOfCellsMethod · 0.45
InsertTuplesMethod · 0.45

Tested by

no test coverage detected