------------------------------------------------------------------------------
| 60 | |
| 61 | //------------------------------------------------------------------------------ |
| 62 | void vtkLineSource::SetRefinementRatio(int index, double value) |
| 63 | { |
| 64 | if (index >= 0 && index < static_cast<int>(this->RefinementRatios.size())) |
| 65 | { |
| 66 | if (this->RefinementRatios[index] != value) |
| 67 | { |
| 68 | this->RefinementRatios[index] = value; |
| 69 | this->Modified(); |
| 70 | } |
| 71 | } |
| 72 | else |
| 73 | { |
| 74 | vtkErrorMacro("Invalid index: " << index); |
| 75 | } |
| 76 | } |
| 77 | |
| 78 | //------------------------------------------------------------------------------ |
| 79 | int vtkLineSource::GetNumberOfRefinementRatios() |