[vtkusers] Fill vtkCellArray fast/efficiently through wrappers

Gerrick Bivins Gerrick.Bivins at halliburton.com
Thu Aug 21 11:19:56 EDT 2014


Hi all,
I have some large unstructured models that I've been profiling lately.
The biggest bottleneck seems to be populating the vtkCellArray for the grid.
I've tried things like pre-allocate the arrays to avoid resizing (I think) and still,
the profiler is pointing out that vtkIdList.SetId in the JNI layer is the issue (see attached).

I found this thread that gave me some hope:
http://public.kitware.com/pipermail/vtkusers/2010-January/056542.html
but I can't seem to find the right methods in the wrappers to "SetArray"
on the vtkIdTypeArray.

The float and double variants have the SetJavaArray
method which I've been using, so the question is, is there a way
to quickly/efficiently set the vtkCellArray through the "wrapped" APIs such as Java?

Gerrick



[Your Enterprise is Bigger than a Desktop]<https://www.landmarksoftware.com/Pages/DefaultHome.aspx>

----------------------------------------------------------------------
This e-mail, including any attached files, may contain confidential and privileged information for the sole use of the intended recipient.  Any review, use, distribution, or disclosure by others is strictly prohibited.  If you are not the intended recipient (or authorized to receive information for the intended recipient), please contact the sender by reply e-mail and delete all copies of this message.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20140821/f887f920/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 134818 bytes
Desc: image001.jpg
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20140821/f887f920/attachment-0001.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ProfilerVTK.png
Type: image/png
Size: 31126 bytes
Desc: ProfilerVTK.png
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20140821/f887f920/attachment-0001.png>


More information about the vtkusers mailing list