------------------------------------------------------------------------------
| 119 | |
| 120 | //------------------------------------------------------------------------------ |
| 121 | void vtkDijkstraGraphGeodesicPath::Reset() |
| 122 | { |
| 123 | std::fill( |
| 124 | this->Internals->CumulativeWeights.begin(), this->Internals->CumulativeWeights.end(), -1.0); |
| 125 | std::fill(this->Internals->Predecessors.begin(), this->Internals->Predecessors.end(), -1); |
| 126 | std::fill(this->Internals->OpenVertices.begin(), this->Internals->OpenVertices.end(), false); |
| 127 | std::fill(this->Internals->ClosedVertices.begin(), this->Internals->ClosedVertices.end(), false); |
| 128 | if (this->RepelPathFromVertices) |
| 129 | { |
| 130 | std::fill( |
| 131 | this->Internals->BlockedVertices.begin(), this->Internals->BlockedVertices.end(), false); |
| 132 | } |
| 133 | |
| 134 | this->IdList->Reset(); |
| 135 | this->Internals->ResetHeap(); |
| 136 | } |
| 137 | |
| 138 | //------------------------------------------------------------------------------ |
| 139 | double vtkDijkstraGraphGeodesicPath::CalculateStaticEdgeCost( |
no test coverage detected