<div dir="ltr">You should do:<br><div>vtkSmartPointer<vtkDataArray> data_array = vtkSmartPointer<vtkDataArray>::New();<br><br></div><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Feb 27, 2014 at 9:22 PM, Jinsik Oh <span dir="ltr"><<a href="mailto:js21cfriend@gmail.com" target="_blank">js21cfriend@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi, everyone<div><br></div><div>I have a problem in use vtkDataArray</div><div><br></div><div>I want store to data at vtkDataArray. so i try to this code</div>
<div><br></div><div><br></div><div>vtkSmartPointer<vtkDataArray> data_array;</div>
<div>data_array->New();<br></div><div>data_array->SetNumberOfComponents(1); # this line is error<br></div><div>data_array->SetNumberOfTuples(1);<br></div><div><br></div><div>error is complie error, that given exception error;</div>
<div><br></div><div>How can i solve this problem?</div><div><br></div><div>Is this code is wrong?</div><div><br></div><div>I use, vtk 5.10, VS2010, win& 64bit</div><div><br></div><div>Plz help to me</div></div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>