------------------------------------------------------------------------------ Translate the plane in the direction of the normal by the distance specified. Negative values move the plane in the opposite direction.
| 366 | // Translate the plane in the direction of the normal by the distance specified. |
| 367 | // Negative values move the plane in the opposite direction. |
| 368 | void vtkPlaneSource::Push(double distance) |
| 369 | { |
| 370 | int i; |
| 371 | |
| 372 | if (distance == 0.0) |
| 373 | { |
| 374 | return; |
| 375 | } |
| 376 | for (i = 0; i < 3; i++) |
| 377 | { |
| 378 | this->Origin[i] += distance * this->Normal[i]; |
| 379 | this->Point1[i] += distance * this->Normal[i]; |
| 380 | this->Point2[i] += distance * this->Normal[i]; |
| 381 | } |
| 382 | // set the new center |
| 383 | for (i = 0; i < 3; i++) |
| 384 | { |
| 385 | this->Center[i] = 0.5 * (this->Point1[i] + this->Point2[i]); |
| 386 | } |
| 387 | |
| 388 | this->Modified(); |
| 389 | } |
| 390 | |
| 391 | //------------------------------------------------------------------------------ |
| 392 | void vtkPlaneSource::Rotate(double angle, double rotationAxis[3]) |
no test coverage detected