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

Method FetchFaces

Common/DataModel/vtkUnstructuredGridCellIterator.cxx:246–262  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

244
245//------------------------------------------------------------------------------
246void vtkUnstructuredGridCellIterator::FetchFaces()
247{
248 if (this->PolyFaceLocs)
249 {
250 const vtkIdType cellId = this->Cells->GetCurrentCellId();
251 vtkIdType nfaces = 0;
252 vtkIdType npts = 0;
253 nfaces = this->PolyFaceLocs->GetCellSize(cellId);
254 this->PolyFaceLocs->Dispatch(GetPolyhedronNPts{}, cellId, this->PolyFaceConn, npts);
255 this->Faces->AllocateExact(nfaces, npts);
256 this->PolyFaceLocs->Dispatch(CopyPolyhedronCell{}, cellId, this->PolyFaceConn, this->Faces);
257 }
258 else
259 {
260 this->Faces->Reset();
261 }
262}
263VTK_ABI_NAMESPACE_END

Callers 3

GetCellFacesMethod · 0.45
GetNumberOfFacesMethod · 0.45

Calls 4

GetCellSizeMethod · 0.45
DispatchMethod · 0.45
AllocateExactMethod · 0.45
ResetMethod · 0.45

Tested by

no test coverage detected