[Paraview] PV and the STL: memory allocation issue
Timothy M. Shead
tshead at sandia.gov
Thu Sep 17 14:54:49 EDT 2009
>> On Wed, Sep 16, 2009 at 11:16 AM, Fred Fred <stan1313 at hotmail.fr<mailto:stan1313 at hotmail.fr>> wrote:
>>> I use the STL through vtkstd:
>>>
>>> vtkstd::vector<vtkstd::vector<vtkstd::vector<double> > > grid;
This may-or-may not address your specific problem, but I wanted to
mention that this is a really inefficient way to store a
three-dimensional array. VTK has classes that provide efficient storage
of arbitrary-dimension dense and sparse arrays that you should consider
using instead - see vtkArray and its subclasses:
http://www.vtk.org/doc/nightly/html/classvtkArray.html
Cheers,
Tim
More information about the ParaView
mailing list