------------------------------------------------------------------------------
| 614 | |
| 615 | //------------------------------------------------------------------------------ |
| 616 | void vtkAxisAlignedTransformFilter::ComputeCellScale(vtkDataArray* xCoords, vtkDataArray* yCoords, |
| 617 | vtkDataArray* zCoords, int dims[3], double scales[3]) |
| 618 | { |
| 619 | if (dims[0] != 1) |
| 620 | { |
| 621 | scales[0] = xCoords->GetTuple1(1) - xCoords->GetTuple1(0); |
| 622 | } |
| 623 | if (dims[1] != 1) |
| 624 | { |
| 625 | scales[1] = yCoords->GetTuple1(1) - yCoords->GetTuple1(0); |
| 626 | } |
| 627 | if (dims[2] != 1) |
| 628 | { |
| 629 | scales[2] = zCoords->GetTuple1(1) - zCoords->GetTuple1(0); |
| 630 | } |
| 631 | } |
| 632 | |
| 633 | //------------------------------------------------------------------------------ |
| 634 | void vtkAxisAlignedTransformFilter::ApplyCellScale( |