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

Method FindUpLabel

Common/DataModel/vtkReebGraph.cxx:2294–2307  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

2292
2293//------------------------------------------------------------------------------
2294vtkIdType vtkReebGraph::Implementation::FindUpLabel(vtkIdType nodeId, vtkReebLabelTag label)
2295{
2296 for (vtkIdType arcId = this->GetNode(nodeId)->ArcUpId; arcId;
2297 arcId = this->GetArc(arcId)->ArcDwId0)
2298 {
2299 for (vtkIdType labelId = this->GetArc(arcId)->LabelId0; labelId;
2300 labelId = this->GetLabel(labelId)->HNext)
2301 {
2302 if (this->GetLabel(labelId)->label == label)
2303 return labelId;
2304 }
2305 }
2306 return 0;
2307}
2308
2309//------------------------------------------------------------------------------
2310void vtkReebGraph::Implementation::ResizeMainArcTable(int newSize)

Callers 2

AddMeshTetrahedronMethod · 0.95
AddMeshTriangleMethod · 0.95

Calls 3

GetNodeMethod · 0.95
GetArcMethod · 0.95
GetLabelMethod · 0.95

Tested by

no test coverage detected