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

Method GetPreviousArcId

Common/DataModel/vtkReebGraph.cxx:3252–3270  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

3250
3251//------------------------------------------------------------------------------
3252vtkIdType vtkReebGraph::Implementation::GetPreviousArcId()
3253{
3254 if (!this->currentArcId)
3255 {
3256 return this->GetNextArcId();
3257 }
3258
3259 for (vtkIdType arcId = this->currentArcId - 1; arcId > 0; arcId--)
3260 {
3261 // check if arc is cleared
3262 if (!(this->GetArc(arcId)->LabelId1 == -2))
3263 {
3264 this->currentArcId = arcId;
3265 return this->currentArcId;
3266 }
3267 }
3268
3269 return this->currentArcId;
3270}
3271
3272//------------------------------------------------------------------------------
3273vtkIdType vtkReebGraph::Implementation::GetArcDownNodeId(vtkIdType arcId)

Callers 2

CloseStreamMethod · 0.80
PrintNodeDataMethod · 0.80

Calls 2

GetNextArcIdMethod · 0.95
GetArcMethod · 0.95

Tested by

no test coverage detected