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
[email protected]
http://public.kitware.com/mailman/listinfo/rtk-users

Reply via email to