------------------------------------------------------------------------------
| 897 | |
| 898 | //------------------------------------------------------------------------------ |
| 899 | inline 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 | //------------------------------------------------------------------------------ |
| 921 | inline void vtkPolyData::GetCellPoints( |
no test coverage detected