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

Method FillVectorVariable

IO/Geometry/vtkMFIXReader.cxx:2214–2223  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

2212
2213//------------------------------------------------------------------------------
2214void vtkMFIXReader::FillVectorVariable(int xindex, int yindex, int zindex, vtkFloatArray* v)
2215{
2216 for (int i = 0; i <= this->CellDataArray[xindex]->GetMaxId(); i++)
2217 {
2218 v->InsertComponent(i, 0, this->CellDataArray[xindex]->GetValue(i));
2219 v->InsertComponent(i, 1, this->CellDataArray[yindex]->GetValue(i));
2220 v->InsertComponent(i, 2, this->CellDataArray[zindex]->GetValue(i));
2221 }
2222 v->Modified();
2223}
2224
2225//------------------------------------------------------------------------------
2226void vtkMFIXReader::ConvertVectorFromCylindricalToCartesian(int xindex, int zindex)

Callers 1

MakeMeshMethod · 0.95

Calls 3

InsertComponentMethod · 0.45
GetValueMethod · 0.45
ModifiedMethod · 0.45

Tested by

no test coverage detected