Update the scalar range-------------------------------------------------
| 52 | |
| 53 | // Update the scalar range------------------------------------------------- |
| 54 | void UpdateRange(vtkDataArray* scalars, vtkIdType pid, double range[2]) |
| 55 | { |
| 56 | if (!scalars) |
| 57 | { |
| 58 | return; |
| 59 | } |
| 60 | |
| 61 | int numComp = scalars->GetNumberOfComponents(); |
| 62 | double s; |
| 63 | for (int i = 0; i < numComp; ++i) |
| 64 | { |
| 65 | s = scalars->GetComponent(pid, i); |
| 66 | range[0] = (s < range[0] ? s : range[0]); |
| 67 | range[1] = (s > range[1] ? s : range[1]); |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | // March along connected lines to the end---------------------------------- |
| 72 | // pts[0] is assumed to be the starting point and already inserted. |
no test coverage detected