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

Method CountEdgeNeighbors

Testing/GenericBridge/vtkBridgeCell.cxx:327–346  ·  view source on GitHub ↗

------------------------------------------------------------------------------ \pre large_enough: GetDimension()>=2 \pre right_size: sizeof(sharing)==GetNumberOfBoundaries(1);

Source from the content-addressed store, hash-verified

325// \pre large_enough: GetDimension()>=2
326// \pre right_size: sizeof(sharing)==GetNumberOfBoundaries(1);
327void vtkBridgeCell::CountEdgeNeighbors(int* sharing)
328{
329 assert("pre: large_enough" && this->GetDimension() >= 2);
330
331 vtkIdType c = this->Cell->GetNumberOfEdges();
332 vtkIdList* cells = vtkIdList::New();
333 vtkIdType i = 0;
334 vtkCell* edge;
335 vtkIdList* pts;
336
337 while (i < c)
338 {
339 edge = this->Cell->GetEdge(i); // edge is deleted automatically by this->Cell
340 pts = edge->GetPointIds();
341 this->DataSet->Implementation->GetCellNeighbors(this->Id, pts, cells);
342 sharing[i] = cells->GetNumberOfIds();
343 ++i;
344 }
345 cells->Delete();
346}
347
348//------------------------------------------------------------------------------
349// Description:

Callers 1

Calls 9

GetDimensionMethod · 0.95
DeleteMethod · 0.65
assertFunction · 0.50
NewFunction · 0.50
GetNumberOfEdgesMethod · 0.45
GetEdgeMethod · 0.45
GetPointIdsMethod · 0.45
GetCellNeighborsMethod · 0.45
GetNumberOfIdsMethod · 0.45

Tested by

no test coverage detected