MCPcopy Create free account
hub / github.com/Kitware/VTK / UpdateRange

Function UpdateRange

Filters/Modeling/vtkContourLoopExtraction.cxx:54–69  ·  view source on GitHub ↗

Update the scalar range-------------------------------------------------

Source from the content-addressed store, hash-verified

52
53// Update the scalar range-------------------------------------------------
54void 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.

Callers 2

TraverseLoopFunction · 0.70
RequestDataMethod · 0.70

Calls 2

GetNumberOfComponentsMethod · 0.45
GetComponentMethod · 0.45

Tested by

no test coverage detected