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

Method ExchangeLocalVals

Filters/Parallel/vtkPKdTree.cxx:1110–1134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1108 this->CurrentPtArray[localOffset + 2] = val[2];
1109}
1110void vtkPKdTree::ExchangeLocalVals(int pos1, int pos2)
1111{
1112 float temp[3];
1113
1114 float* pt1 = this->GetLocalVal(pos1);
1115 float* pt2 = this->GetLocalVal(pos2);
1116
1117 if (!pt1 || !pt2)
1118 {
1119 VTKERROR("ExchangeLocalVal - bad index");
1120 return;
1121 }
1122
1123 temp[0] = pt1[0];
1124 temp[1] = pt1[1];
1125 temp[2] = pt1[2];
1126
1127 pt1[0] = pt2[0];
1128 pt1[1] = pt2[1];
1129 pt1[2] = pt2[2];
1130
1131 pt2[0] = temp[0];
1132 pt2[1] = temp[1];
1133 pt2[2] = temp[2];
1134}
1135
1136void vtkPKdTree::DoTransfer(int from, int to, int fromIndex, int toIndex, int count)
1137{

Callers 3

ExchangeValsMethod · 0.95
PartitionAboutMyValueMethod · 0.95

Calls 1

GetLocalValMethod · 0.95

Tested by

no test coverage detected