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

Method GetCellPoints

Common/DataModel/vtkPolyData.cxx:902–919  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Copy a cells point ids into list provided. (Less efficient.)

Source from the content-addressed store, hash-verified

900//------------------------------------------------------------------------------
901// Copy a cells point ids into list provided. (Less efficient.)
902void vtkPolyData::GetCellPoints(vtkIdType cellId, vtkIdList* ptIds)
903{
904 if (this->Cells == nullptr)
905 {
906 this->BuildCells();
907 }
908
909 const TaggedCellId tag = this->Cells->GetTag(cellId);
910 if (tag.IsDeleted())
911 {
912 ptIds->SetNumberOfIds(0);
913 }
914 else
915 {
916 auto cells = this->GetCellArrayInternal(tag);
917 cells->GetCellAtId(tag.GetCellId(), ptIds);
918 }
919}
920
921//------------------------------------------------------------------------------
922void vtkPolyData::GetPointCells(vtkIdType ptId, vtkIdList* cellIds)

Callers 4

GetCellMethod · 0.95
IsEdgeMethod · 0.95
IsTriangleMethod · 0.95
RemoveGhostCellsMethod · 0.95

Calls 6

BuildCellsMethod · 0.95
GetCellArrayInternalMethod · 0.95
GetTagMethod · 0.80
SetNumberOfIdsMethod · 0.80
GetCellAtIdMethod · 0.45
GetCellIdMethod · 0.45

Tested by

no test coverage detected