<div dir="ltr">Hello, <div><br></div><div>does VTK provides a way of mapping a vtkImageData 3d coordinate to an vtkArray 1d coordinate and back? I.e: can I get the relation between the 3 indices that I have to pass to GetScalarPointer and the 1 index I have to pass to GetTuple()?</div>
<div><br></div><div><span style="color:rgb(128,0,128)">vtkImageData</span><span style="color:rgb(0,0,0)">-></span><span style="font-style:italic;color:rgb(0,0,0)">GetScalarPointer</span><span style="color:rgb(0,0,0)">(</span><span style="color:rgb(0,0,0)">indices</span><span style="color:rgb(0,0,0)">[</span><span style="color:rgb(0,0,128)">0</span><span style="color:rgb(0,0,0)">],</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">indices</span><span style="color:rgb(0,0,0)">[</span><span style="color:rgb(0,0,128)">1</span><span style="color:rgb(0,0,0)">],</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">indices</span><span style="color:rgb(0,0,0)">[</span><span style="color:rgb(0,0,128)">2</span><span style="color:rgb(0,0,0)">])</span><br>
</div><div><pre style="margin-top:0px;margin-bottom:0px"><br></pre><pre style="margin-top:0px;margin-bottom:0px"><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(128,0,128);font-family:arial">vtkImageData</span><span style="color:rgb(0,0,0)">-></span><span style="color:rgb(0,0,0)">GetPointData</span><span style="color:rgb(0,0,0)">()-></span><span style="color:rgb(0,0,0)">GetScalars</span><span style="color:rgb(0,0,0)">()->GetTuple(0);</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,0,0)"><br></span></pre></pre><pre style="margin-top:0px;margin-bottom:0px"><div style="font-family:arial;white-space:normal">Thanks in advance.</div><div style="font-family:arial;white-space:normal">
Regards,</div><div style="font-family:arial;white-space:normal">Manuel</div></pre></div></div>