<html><head><style type="text/css"><!-- DIV {margin:0px} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><DIV>hello,</DIV>
<DIV>I'm using VTK in may Project for the MPR and MIPs&nbsp;fonctionnalities&nbsp;, and I'm faced to aprblem that I cannot analyse because it depends on the vtkStructuredPoints::AllocateScalars().</DIV>
<DIV>the problem is that after the declaration , the specification of the dimensions of the Volume , the allocation doesn't happen and I allways have a NULL pointer when I use&nbsp; the GetScalarPointer() function.</DIV>
<DIV>this is the instructions I do for the Volume creation :</DIV>
<DIV>&nbsp; data2=vtkStructuredPoints::New();<BR>&nbsp; data2-&gt;SetDimensions(WdthVlm,HghtVlm,DpthVlm);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp; data2-&gt;SetSpacing (xsp, ysp, zsp);<BR>&nbsp; data2-&gt;SetScalarType(VTK_UNSIGNED_SHORT);<BR>&nbsp; data2-&gt;AllocateScalars();<BR>&nbsp;&nbsp;unsigned short *&nbsp; ptr2=(unsigned short *) data2-&gt;GetScalarPointer();</DIV>
<DIV>&nbsp;</DIV>
<DIV>//ptr2 is allways = = NULL</DIV>
<DIV>ths questions are :</DIV>
<DIV>&nbsp;in whitch conditions the allocation cannot happen?</DIV>
<DIV>&nbsp;how can I know if VTK did the allocation of the memory?</DIV>
<DIV>&nbsp;</DIV>
<DIV>NB: I have a&nbsp;1Go of RAM and a 3Ghz&nbsp;µP!&nbsp;(and I'm sure that I have enough memory available and the scalars are really&nbsp;&nbsp;VTK_UNSIGNED_SHORT).</DIV>
<DIV>&nbsp;</DIV>
<DIV>thank you for your help !</DIV>
<DIV>&nbsp;</DIV></div></body></html>