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

Method GetCellEdgeNeighbors

Common/DataModel/vtkPolyData.cxx:1251–1270  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Get the neighbors at an edge. More efficient than the general GetCellNeighbors() and looks specifically for edge neighbors.

Source from the content-addressed store, hash-verified

1249// Get the neighbors at an edge. More efficient than the general GetCellNeighbors()
1250// and looks specifically for edge neighbors.
1251void vtkPolyData::GetCellEdgeNeighbors(
1252 vtkIdType cellId, vtkIdType p1, vtkIdType p2, vtkIdList* cellIds)
1253{
1254 cellIds->Reset();
1255 if (!this->Links)
1256 {
1257 this->BuildLinks();
1258 }
1259
1260 if (!this->Editable)
1261 {
1262 vtkStaticCellLinks* links = static_cast<vtkStaticCellLinks*>(this->Links.Get());
1263 GetCellEdgeNeighborsImpl<vtkStaticCellLinks>(links, cellId, p1, p2, cellIds);
1264 }
1265 else
1266 {
1267 vtkCellLinks* links = static_cast<vtkCellLinks*>(this->Links.Get());
1268 GetCellEdgeNeighborsImpl<vtkCellLinks>(links, cellId, p1, p2, cellIds);
1269 }
1270}
1271
1272namespace
1273{

Callers 15

FindTriangleMethod · 0.80
CheckEdgeMethod · 0.80
MarkPDBoundaryFunction · 0.80
FindEdgeMethod · 0.80
GetMeanCurvatureMethod · 0.80
FindRegionTipToeMethod · 0.80
FindEdgeMethod · 0.80
SplitMeshMethod · 0.80
SplitCellMethod · 0.80
CleanAndCheckSurfaceMethod · 0.80
RequestDataMethod · 0.80

Calls 3

BuildLinksMethod · 0.95
ResetMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected