[Rtk-users] Bug in rtkDrawCubeImageFilter.h?

Simon Rit simon.rit at creatis.insa-lyon.fr
Thu Jul 14 11:32:21 EDT 2016


Yes thanks, this is a bug indeed. This has been fixed I think:
https://github.com/SimonRit/RTK/commit/4f050d7120a7540a5edd82eae883dec25d2cd6ac
50 is just the default value but the init was missing.
Simon

On Mon, Jul 11, 2016 at 4:58 PM, louie <ghostcz at hotmail.com> wrote:

> Hi RTK users,
>
> Is this a bug?
> If I have a cube with axis set to 50 and center set to 0, it will be
> neglected (m_Semiprincipalaxis won’t be calculated).
>
> RTK_DIR\code\rtkDrawCubeImageFilter.h
>
>   DrawCubeSpatialObject()
>   {
>       //why initialize?
>     m_Axis.Fill ( 50. );
>     m_Center.Fill ( 0. );
>     m_Angle = 0.;
>   }
>
> ...
>
>   void SetCenter ( VectorType Center )
>     {
>
>     // this also skipped the UpdateParamters().
>     if ( Center == this->m_SpatialObject.m_Center )
>       {
>         return;
>       }
>
>
>     this->m_SpatialObject.m_Center = Center;
>     this->m_SpatialObject.UpdateParameters();
>     this->Modified();
>     }
>
> Best regards,
> Louie
>
> _______________________________________________
> Rtk-users mailing list
> Rtk-users at public.kitware.com
> http://public.kitware.com/mailman/listinfo/rtk-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/rtk-users/attachments/20160714/af228052/attachment-0010.html>


More information about the Rtk-users mailing list