[vtkusers] Problem in use vtkDataArray

Andy Bauer andy.bauer at kitware.com
Fri Feb 28 11:46:23 EST 2014


You should do:
vtkSmartPointer<vtkDataArray> data_array =
vtkSmartPointer<vtkDataArray>::New();




On Thu, Feb 27, 2014 at 9:22 PM, Jinsik Oh <js21cfriend at gmail.com> wrote:

> Hi, everyone
>
> I have a problem in use vtkDataArray
>
> I want store to data at vtkDataArray. so i try to this code
>
>
> vtkSmartPointer<vtkDataArray> data_array;
> data_array->New();
> data_array->SetNumberOfComponents(1); # this line is error
> data_array->SetNumberOfTuples(1);
>
> error is complie error, that given exception error;
>
> How can i solve this problem?
>
> Is this code is wrong?
>
> I use, vtk 5.10, VS2010, win& 64bit
>
> Plz help to me
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20140228/058a6be5/attachment.html>


More information about the vtkusers mailing list