------------------------------------------------------------------------------
| 586 | |
| 587 | //------------------------------------------------------------------------------ |
| 588 | int vtkPolyData::GetMaxCellSize() |
| 589 | { |
| 590 | int maxCellSize = 0; |
| 591 | |
| 592 | if (this->Verts) |
| 593 | { |
| 594 | maxCellSize = std::max(maxCellSize, this->Verts->GetMaxCellSize()); |
| 595 | } |
| 596 | |
| 597 | if (this->Lines) |
| 598 | { |
| 599 | maxCellSize = std::max(maxCellSize, this->Lines->GetMaxCellSize()); |
| 600 | } |
| 601 | |
| 602 | if (this->Polys) |
| 603 | { |
| 604 | maxCellSize = std::max(maxCellSize, this->Polys->GetMaxCellSize()); |
| 605 | } |
| 606 | |
| 607 | if (this->Strips) |
| 608 | { |
| 609 | maxCellSize = std::max(maxCellSize, this->Strips->GetMaxCellSize()); |
| 610 | } |
| 611 | |
| 612 | return maxCellSize; |
| 613 | } |
| 614 | |
| 615 | //------------------------------------------------------------------------------ |
| 616 | int vtkPolyData::GetMaxSpatialDimension() |