| 1094 | return this->NextPtArray + (3 * localPos); |
| 1095 | } |
| 1096 | void vtkPKdTree::SetLocalVal(int pos, float* val) |
| 1097 | { |
| 1098 | if ((pos < this->StartVal[this->MyId]) || (pos > this->EndVal[this->MyId])) |
| 1099 | { |
| 1100 | VTKERROR("SetLocalVal - bad index"); |
| 1101 | return; |
| 1102 | } |
| 1103 | |
| 1104 | int localOffset = (pos - this->StartVal[this->MyId]) * 3; |
| 1105 | |
| 1106 | this->CurrentPtArray[localOffset] = val[0]; |
| 1107 | this->CurrentPtArray[localOffset + 1] = val[1]; |
| 1108 | this->CurrentPtArray[localOffset + 2] = val[2]; |
| 1109 | } |
| 1110 | void vtkPKdTree::ExchangeLocalVals(int pos1, int pos2) |
| 1111 | { |
| 1112 | float temp[3]; |