Hi all,<br> how could i apply a rotation arround x axis (1,0,0) forwarded by another rotation arround z axis (0,0,1)?<br> <br> I tried this way but it takes much time!<br> <br> &nbsp;&nbsp;&nbsp;<span style="font-weight: bold; font-style: italic;"> volumefilter = VolumeFilterType::New();</span><br style="font-weight: bold; font-style: italic;"> <span style="font-weight: bold; font-style: italic;">&nbsp;&nbsp;&nbsp; volumefilter2 = VolumeFilterType::New();</span><br style="font-weight: bold; font-style: italic;"> <span style="font-weight: bold; font-style: italic;">&nbsp;&nbsp;&nbsp; rotation1 = VersorTransformType::New();</span><br style="font-weight: bold; font-style: italic;"> <span style="font-weight: bold; font-style: italic;">&nbsp;&nbsp;&nbsp; rotation2 = VersorTransformType::New();</span><br style="font-weight: bold; font-style: italic;"> <span style="font-weight: bold; font-style: italic;">&nbsp;&nbsp;&nbsp; interpolator = InterpolatorType::New();</span><br
 style="font-weight: bold; font-style: italic;"> <span style="font-weight: bold; font-style: italic;">&nbsp;&nbsp;&nbsp; </span><span style="font-weight: bold; font-style: italic;">volumefilter-&gt;SetInterpolator( interpolator );</span><br style="font-weight: bold; font-style: italic;"> <span style="font-weight: bold; font-style: italic;">&nbsp;&nbsp;&nbsp; </span><span style="font-weight: bold; font-style: italic;">volumefilter-&gt;SetDefaultPixelValue( 1 );</span><br style="font-weight: bold; font-style: italic;"> <span style="font-weight: bold; font-style: italic;">&nbsp;&nbsp;&nbsp; </span><span style="font-weight: bold; font-style: italic;">volumefilter2-&gt;SetInterpolator( interpolator );</span><br style="font-weight: bold; font-style: italic;"> <span style="font-weight: bold; font-style: italic;">&nbsp;&nbsp;&nbsp; </span><span style="font-weight: bold; font-style: italic;">volumefilter2-&gt;SetDefaultPixelValue( 1 );</span><br style="font-weight: bold; font-style: italic;">
 <span style="font-weight: bold; font-style: italic;">&nbsp;&nbsp;&nbsp; </span><span style="font-weight: bold; font-style: italic;">degreesToRadians = atan(1.0) / 45.0;</span><br style="font-weight: bold; font-style: italic;"> <br> <span style="font-weight: bold; font-style: italic;">&nbsp;&nbsp;&nbsp; volumefilter-&gt;SetOutputOrigin( m_inputimagesorigin );</span><br style="font-weight: bold; font-style: italic;"> <span style="font-weight: bold; font-style: italic;">&nbsp;&nbsp;&nbsp; volumefilter-&gt;SetOutputSpacing( m_inputimagespacing );</span><br style="font-weight: bold; font-style: italic;"> <span style="font-weight: bold; font-style: italic;">&nbsp;&nbsp;&nbsp; volumefilter-&gt;SetSize( m_inputimagesize );</span><br style="font-weight: bold; font-style: italic;"> <span style="font-weight: bold; font-style: italic;">&nbsp;&nbsp;&nbsp; </span><br style="font-weight: bold; font-style: italic;"> <span style="font-weight: bold; font-style: italic;">&nbsp;&nbsp;&nbsp;
 volumefilter2-&gt;SetOutputOrigin( m_inputimagesorigin );</span><br style="font-weight: bold; font-style: italic;"> <span style="font-weight: bold; font-style: italic;">&nbsp;&nbsp;&nbsp; volumefilter2-&gt;SetOutputSpacing( m_inputimagespacing );</span><br style="font-weight: bold; font-style: italic;"> <span style="font-weight: bold; font-style: italic;">&nbsp;&nbsp;&nbsp; volumefilter2-&gt;SetSize( m_inputimagesize );</span><br style="font-weight: bold; font-style: italic;"> <span style="font-weight: bold; font-style: italic;">&nbsp;&nbsp;&nbsp; </span><br style="font-weight: bold; font-style: italic;"> <span style="font-weight: bold; font-style: italic;">&nbsp;&nbsp;&nbsp; volumefilter-&gt;SetInput( m_VolumeReader-&gt;GetOutput() );</span><br style="font-weight: bold; font-style: italic;"> <span style="font-weight: bold; font-style: italic;">&nbsp;&nbsp;&nbsp; volumefilter2-&gt;SetInput( volumefilter-&gt;GetOutput() );</span><br style="font-weight: bold; font-style: italic;">
 <span style="font-weight: bold; font-style: italic;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; </span><br style="font-weight: bold; font-style: italic;"> <span style="font-weight: bold; font-style: italic;">&nbsp;&nbsp;&nbsp; center[0] = m_inputimagesorigin[0] + m_inputimagespacing[0] * m_inputimagesize[0] / 2.0;</span><br style="font-weight: bold; font-style: italic;"> <span style="font-weight: bold; font-style: italic;">&nbsp;&nbsp;&nbsp; center[1] = m_inputimagesorigin[1] + m_inputimagespacing[1] * m_inputimagesize[1] / 2.0;</span><br style="font-weight: bold; font-style: italic;"> <span style="font-weight: bold; font-style: italic;">&nbsp;&nbsp;&nbsp; center[2] = m_inputimagesorigin[2] + m_inputimagespacing[2] * m_inputimagesize[2] / 2.0;</span><br style="font-weight: bold; font-style: italic;"> <br style="font-weight: bold; font-style: italic;"> <span style="font-weight: bold; font-style: italic;">&nbsp;&nbsp;&nbsp; axis[0] = 0.0;</span><br style="font-weight: bold; font-style:
 italic;"> <span style="font-weight: bold; font-style: italic;">&nbsp;&nbsp;&nbsp; axis[1] = 0.0;</span><br style="font-weight: bold; font-style: italic;"> <span style="font-weight: bold; font-style: italic;">&nbsp;&nbsp;&nbsp; axis[2] = 1.0;</span><br style="font-weight: bold; font-style: italic;"> <span style="font-weight: bold; font-style: italic;">&nbsp;&nbsp;&nbsp; </span><br style="font-weight: bold; font-style: italic;"> <span style="font-weight: bold; font-style: italic;">&nbsp;&nbsp;&nbsp; const double angle1 = -PAngleValue[indice] * degreesToRadians;</span><br style="font-weight: bold; font-style: italic;"> <span style="font-weight: bold; font-style: italic;"></span><br style="font-weight: bold; font-style: italic;"> <span style="font-weight: bold; font-style: italic;">&nbsp;&nbsp;&nbsp; rot.Set(&nbsp; axis, angle1 );</span><br style="font-weight: bold; font-style: italic;"> <span style="font-weight: bold; font-style: italic;">&nbsp;&nbsp;&nbsp; rotation1-&gt;SetCenter(
 center );</span><br style="font-weight: bold; font-style: italic;"> <span style="font-weight: bold; font-style: italic;">&nbsp;&nbsp;&nbsp; rotation1-&gt;SetRotation( rot );</span><br style="font-weight: bold; font-style: italic;"> <span style="font-weight: bold; font-style: italic;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; </span><br style="font-weight: bold; font-style: italic;"> <span style="font-weight: bold; font-style: italic;">&nbsp;&nbsp;&nbsp; volumefilter-&gt;SetTransform( rotation1 );</span><br style="font-weight: bold; font-style: italic;"> <span style="font-weight: bold; font-style: italic;">&nbsp;&nbsp;&nbsp; </span><br style="font-weight: bold; font-style: italic;"> <span style="font-weight: bold; font-style: italic;">&nbsp;&nbsp;&nbsp; axis[0] = 1.0;</span><br style="font-weight: bold; font-style: italic;"> <span style="font-weight: bold; font-style: italic;">&nbsp;&nbsp;&nbsp; axis[1] = 0.0;</span><br style="font-weight: bold; font-style: italic;"> <span
 style="font-weight: bold; font-style: italic;">&nbsp;&nbsp;&nbsp; axis[2] = 0.0;</span><br style="font-weight: bold; font-style: italic;"> <span style="font-weight: bold; font-style: italic;">&nbsp;&nbsp;&nbsp; </span><br style="font-weight: bold; font-style: italic;"> <span style="font-weight: bold; font-style: italic;">&nbsp;&nbsp;&nbsp; const double angle3 = -SAngleValue[indice] * degreesToRadians;</span><br style="font-weight: bold; font-style: italic;"> <span style="font-weight: bold; font-style: italic;">&nbsp;&nbsp;&nbsp; rot.Set(&nbsp; axis, angle3 );</span><br style="font-weight: bold; font-style: italic;"> <span style="font-weight: bold; font-style: italic;">&nbsp;&nbsp;&nbsp; rotation2-&gt;SetCenter( center );</span><br style="font-weight: bold; font-style: italic;"> <span style="font-weight: bold; font-style: italic;">&nbsp;&nbsp;&nbsp; rotation2-&gt;SetRotation( rot );</span><br style="font-weight: bold; font-style: italic;"> <span style="font-weight: bold; font-style:
 italic;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; </span><br style="font-weight: bold; font-style: italic;"> <span style="font-weight: bold; font-style: italic;">&nbsp;&nbsp;&nbsp; volumefilter2-&gt;SetTransform( rotation2 );</span><br style="font-weight: bold; font-style: italic;"> <span style="font-weight: bold; font-style: italic;">&nbsp;&nbsp;&nbsp; volumefilter2-&gt;Update();<br> <br> </span><span style="font-style: italic;">thx for your time,<br> Regards.</span><span style="font-weight: bold; font-style: italic;"><br> </span><p>
                <hr size=1> Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international.
<a href="http://us.rd.yahoo.com/messenger/mail_taglines/default/*http://fr.beta.messenger.yahoo.com">Téléchargez</a> la version beta.