------------------------------------------------------------------------------
| 180 | |
| 181 | //------------------------------------------------------------------------------ |
| 182 | void vtkDataSetCellIterator::FetchPoints() |
| 183 | { |
| 184 | // This will fetch the point ids if needed: |
| 185 | vtkIdList* pointIds = this->GetPointIds(); |
| 186 | |
| 187 | vtkIdType numPoints = pointIds->GetNumberOfIds(); |
| 188 | vtkIdType* id = pointIds->GetPointer(0); |
| 189 | |
| 190 | this->Points->SetNumberOfPoints(numPoints); |
| 191 | |
| 192 | double point[3]; |
| 193 | for (int i = 0; i < numPoints; ++i) |
| 194 | { |
| 195 | this->DataSet->GetPoint(*id++, point); |
| 196 | this->Points->SetPoint(i, point); |
| 197 | } |
| 198 | } |
| 199 | VTK_ABI_NAMESPACE_END |
no test coverage detected