------------------------------------------------------------------------------
| 3213 | |
| 3214 | //------------------------------------------------------------------------------ |
| 3215 | vtkIdType vtkReebGraph::Implementation::GetPreviousNodeId() |
| 3216 | { |
| 3217 | if (!this->currentNodeId) |
| 3218 | { |
| 3219 | return this->GetNextNodeId(); |
| 3220 | } |
| 3221 | |
| 3222 | for (vtkIdType nodeId = this->currentNodeId - 1; nodeId > 0; nodeId--) |
| 3223 | { |
| 3224 | // check if node is cleared |
| 3225 | if (!(this->GetNode(nodeId)->ArcUpId == -2)) |
| 3226 | { |
| 3227 | this->currentNodeId = nodeId; |
| 3228 | return this->currentNodeId; |
| 3229 | } |
| 3230 | } |
| 3231 | |
| 3232 | return this->currentNodeId; |
| 3233 | } |
| 3234 | |
| 3235 | //------------------------------------------------------------------------------ |
| 3236 | vtkIdType vtkReebGraph::Implementation::GetNextArcId() |
no test coverage detected