Skip to content
Snippets Groups Projects
Commit 224dfab4 authored by David C. Lonie's avatar David C. Lonie
Browse files

Reduce dispatches in vtkDataArray.

Added overrides for the methods that take a vtkAbstractArray and dispatch
it, so that the common case of using these methods with NewInstance() can
avoid the dispatch overhead.

Also moved to vtkDataArrayRoundIfNecessary helpers from vtkDataArray.cxx
to vtkMath::RoundDoubleToIntegralIfNecessary so they can be reused from
other array implementations.

Also replaced some vtkDataArray::SafeDownCasts with FastDownCasts and
added more detail to some error messages.
parent a6e88725
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment