------------------------------------------------------------------------------ Set the number of x-y subdivisions in the plane.
| 50 | //------------------------------------------------------------------------------ |
| 51 | // Set the number of x-y subdivisions in the plane. |
| 52 | void vtkPlaneSource::SetResolution(int xR, int yR) |
| 53 | { |
| 54 | if (xR != this->XResolution || yR != this->YResolution) |
| 55 | { |
| 56 | this->XResolution = xR; |
| 57 | this->YResolution = yR; |
| 58 | |
| 59 | this->XResolution = (this->XResolution > 0 ? this->XResolution : 1); |
| 60 | this->YResolution = (this->YResolution > 0 ? this->YResolution : 1); |
| 61 | |
| 62 | this->Modified(); |
| 63 | } |
| 64 | } |
| 65 | |
| 66 | //------------------------------------------------------------------------------ |
| 67 | void vtkPlaneSource::GetAxis1(double a1[3]) |