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

Function CheckArrayPointData

IO/Geometry/Testing/Cxx/TestOBJReaderRelative.cxx:17–31  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

15
16//------------------------------------------------------------------------------
17int CheckArrayPointData(vtkDataArray* firstArray, vtkDataArray* secondArray, int idx)
18{
19 // Check that each component at a given index are the same in each array
20 for (int compIdx = 0; compIdx < secondArray->GetNumberOfComponents(); ++compIdx)
21 {
22 if (firstArray->GetComponent(idx, compIdx) != secondArray->GetComponent(idx, compIdx))
23 {
24 std::cerr << "Error: different values for "
25 "["
26 << (idx) << "]_" << compIdx << std::endl;
27 return 1;
28 }
29 }
30 return 0;
31}
32
33//------------------------------------------------------------------------------
34int TestOBJReaderRelative(int argc, char* argv[])

Callers 1

TestOBJReaderRelativeFunction · 0.85

Calls 2

GetNumberOfComponentsMethod · 0.45
GetComponentMethod · 0.45

Tested by

no test coverage detected