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

Method GetCellPoints

Common/DataModel/vtkPolyData.h:899–918  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

897
898//------------------------------------------------------------------------------
899inline unsigned char vtkPolyData::GetCellPoints(
900 vtkIdType cellId, vtkIdType& npts, vtkIdType const*& pts)
901{
902 if (!this->Cells)
903 {
904 this->BuildCells();
905 }
906
907 const TaggedCellId tag = this->Cells->GetTag(cellId);
908 if (tag.IsDeleted())
909 {
910 npts = 0;
911 pts = nullptr;
912 return VTK_EMPTY_CELL;
913 }
914
915 vtkCellArray* cells = this->GetCellArrayInternal(tag);
916 cells->GetCellAtId(tag.GetCellId(), npts, pts);
917 return tag.GetCellType();
918}
919
920//------------------------------------------------------------------------------
921inline void vtkPolyData::GetCellPoints(

Callers 4

IsPointUsedByCellMethod · 0.95
RemoveCellReferenceMethod · 0.95
AddCellReferenceMethod · 0.95
ReplaceCellPointMethod · 0.95

Calls 6

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

Tested by

no test coverage detected