<div dir="ltr"><div style="font-family:arial,sans-serif;font-size:13px"><div><div><div><div><div>Hi everybody,<br><br></div>I have a vtkImageData with an array of PointData:<br>vtkImageData *image......<br>int numberOfResultsForPointData = image-&gt;GetPointData()-&gt;GetNumberOfArrays();<br>
</div>where numberOfResultsForPointData &gt; 1 in my case.<br><br></div>I want to reslice the image by vtkImageReslice using:<br>vtkImageReslice *reslice = vtkImageReslice::New();<br>reslice-&gt;SetOutputDimensionality(2);<br>
</div><div>reslice-&gt;SetResliceAxes(.....)<br></div>reslice-&gt;SetInput(image);<br><br></div>The result of the rendering process gives me a slice of image&#39;s first point data.<br><br></div><div style="font-family:arial,sans-serif;font-size:13px">
I was trying to solve the problem by setting an active scalar or vector field (which I have both), but it was not giving me the wished result. Also I was playing around with vtkAlgorithm::SetInputArrayToProcess(), which was either not having any effect, or I was using it in a wrong way.<br>
<br></div><div style="font-family:arial,sans-serif;font-size:13px">So, how to change the point data array which is used by the reslicer?<br><br></div><div style="font-family:arial,sans-serif;font-size:13px">Thanks for your help,<br>
</div><div style="font-family:arial,sans-serif;font-size:13px">Knut</div></div>