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

Method GetPointCells

IO/Exodus/vtkCPExodusIIElementBlock.cxx:128–142  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

126
127//------------------------------------------------------------------------------
128void vtkCPExodusIIElementBlockImpl::GetPointCells(vtkIdType ptId, vtkIdList* cellIds)
129{
130 const int targetElement = PointToNode(ptId);
131 int* element = this->GetStart();
132 int* elementEnd = this->GetEnd();
133
134 cellIds->Reset();
135
136 element = std::find(element, elementEnd, targetElement);
137 while (element != elementEnd)
138 {
139 cellIds->InsertNextId(static_cast<vtkIdType>((element - this->Elements) / this->CellSize));
140 element = std::find(element, elementEnd, targetElement);
141 }
142}
143
144//------------------------------------------------------------------------------
145int vtkCPExodusIIElementBlockImpl::GetMaxCellSize()

Callers 1

Calls 6

PointToNodeFunction · 0.85
InsertNextIdMethod · 0.80
findFunction · 0.50
GetStartMethod · 0.45
GetEndMethod · 0.45
ResetMethod · 0.45

Tested by

no test coverage detected