<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Dec 18, 2014 at 9:25 AM, Vincent32160 <span dir="ltr"><<a href="mailto:vsh@magellium.fr" target="_blank">vsh@magellium.fr</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">That makes definitely sense.<br>
Apart this rotation and the variables radialSize and r, I got the impression<br>
that the rest of the code doesn't depend on the data. Do you agree with<br>
that?<br></blockquote><div><br></div><div>In addition to those, the code also assumes that the center of the cylinder</div><div>is at the center of the image, which might not be true for your data.</div><div><br></div><div>That's why I said that you might want to use the full 4x4 ResliceAxes matrix</div><div>instead of just using SetResliceAxesDirectionCosines.   If you use a 4x4</div><div>matrix, you can use the 4th column of the matrix to adjust the center.</div><div><br></div><div> - David</div></div></div></div>