------------------------------------------------------------------------------ InterpolateEdge: Interpolate the data in a vtkDataSetAttributes along a line This method works very much like vtkDataSetAttributes::InterpolateEdge except that rather than take the interpolation information from an input and copy it to an output, the values to interpolate are already placed in the output arrays. This
| 659 | // will continually cut (and consequently interpolate) the input until it |
| 660 | // fits within the bounds. |
| 661 | void vtkBoxClipDataSet::InterpolateEdge( |
| 662 | vtkDataSetAttributes* attributes, vtkIdType toId, vtkIdType fromId1, vtkIdType fromId2, double t) |
| 663 | { |
| 664 | int numArrays = attributes->GetNumberOfArrays(); |
| 665 | for (int i = 0; i < numArrays; i++) |
| 666 | { |
| 667 | vtkAbstractArray* array = attributes->GetAbstractArray(i); |
| 668 | |
| 669 | // We are ignoring any special interpolate flags (such as nearest neighbor |
| 670 | // interpolation). That kind of interpolation is not linear and could be |
| 671 | // incorrect when multiple cuts are performed on the same primitive (which |
| 672 | // can happen). |
| 673 | |
| 674 | array->InterpolateTuple(toId, fromId1, array, fromId2, array, t); |
| 675 | } |
| 676 | } |
| 677 | |
| 678 | //------------------------------------------------------------------------------ |
| 679 | // CellGrid: Subdivide cells in consistent tetrahedra. |
no test coverage detected