File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Sources/Common/Core/DataArray Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -84,9 +84,17 @@ export interface vtkDataArray extends vtkObject {
84
84
setRange ( rangeValue : vtkRange , componentIndex : number ) : Range ;
85
85
86
86
/**
87
+ * Returns an array of the ranges for each component of the DataArray.
88
+ * Defaults to computing all the ranges if they aren't already computed.
87
89
*
90
+ * Passing `getRanges(false)` will return a clone of the ranges that have
91
+ * already been computed. This is useful when you want to avoid recomputing
92
+ * the ranges, which can be expensive.
93
+ *
94
+ * @param {boolean } [computeRanges] (default: true)
95
+ * @returns {vtkRange[] }
88
96
*/
89
- getRanges ( ) : vtkRange [ ] ;
97
+ getRanges ( computeRanges = true ) : vtkRange [ ] ;
90
98
91
99
/**
92
100
* Set the given tuple at the given index.
You can’t perform that action at this time.
0 commit comments