mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-08 13:23:51 +00:00
`UnknownArrayHandle` allows you to create a new instance of a compatible array so that when receiving an array of unknown type, a place to put the output can be created. However, these methods only worked if the number of components in each value could be determined statically at compile time. However, there are some special `ArrayHandle`s that can define the number of components at runtime. In this case, the `ArrayHandle` would throw an exception if `NewInstanceBasic` or `NewInstanceFloatBasic` was called. Although rare, this condition could happen when, for example, an array was extracted from an `UnknownArrayHandle` with `ExtractArrayFromComponents` or with `CastAndCallWithExtractedArray` and then the resulting array was passed to a function with arrays passed with `UnknownArrayHandle` such as `ArrayCopy`. |
||
---|---|---|
.. | ||
1.3 | ||
1.4 | ||
1.5 | ||
1.5.1 | ||
1.6 | ||
1.7 | ||
1.7.1 | ||
1.8 | ||
1.9 | ||
2.0 | ||
2.1 | ||
add-slice-multiple-filter.md | ||
arrayhandle-getcomponents.md | ||
arrayhandleconstant-extract-component.md | ||
constant-amr-arrays.md | ||
intel-union-placeholder.md | ||
new-instance-variable-components.md | ||
update-warps.md | ||
users-guide.md | ||
vecfromportal-operators.md |