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

Method GetPreviousNodeId

Common/DataModel/vtkReebGraph.cxx:3215–3233  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

3213
3214//------------------------------------------------------------------------------
3215vtkIdType 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//------------------------------------------------------------------------------
3236vtkIdType vtkReebGraph::Implementation::GetNextArcId()

Callers 2

CloseStreamMethod · 0.80
PrintNodeDataMethod · 0.80

Calls 2

GetNextNodeIdMethod · 0.95
GetNodeMethod · 0.95

Tested by

no test coverage detected