[Rtk-users] Bug in rtkDrawCubeImageFilter.h?
louie
ghostcz at hotmail.com
Mon Jul 11 10:58:15 EDT 2016
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/rtk-users/attachments/20160711/cd138587/attachment-0009.html>
More information about the Rtk-users
mailing list