[IGSTK-Developers] CylinderSpatialObjectRepresentation
Julien Jomier
jjomier at cs.unc.edu
Tue Dec 20 16:56:58 EST 2005
Hi Patrick,
David told me that the cylinder should be located in the [-Z,0],
therefore the cylinder should be translated by
-m_CylinderSpatialObject->GetHeight()/2.0
> One quick question: If we can just change the transform when we create
> the actor, what do we need the PrincipalAxisCalibration for?
I don't know what the PrincipalAxisCalibration class is actually doing,
but the user cannot change the actor, so we need a way to calibrate the
tool anyway.
Julien
Patrick Cheng wrote:
> Hi Julien,
>
> I checked out your recent change in the
> CylinderSpatialObjectRepresentation class. Now without setting the
> rotation part of the CalibrationTransform, the orientation of the
> CylinderObject will be correct, but with one little bug, in line 152
> (igstkCylinderObjectRepresentation.cxx)
> cylinderActor->SetPosition(0,0,-m_CylinderSpatialObject->GetHeight()/2.0);
> There should be no '-' sign. I tested it in the application.
>
> One quick question: If we can just change the transform when we create
> the actor, what do we need the PrincipalAxisCalibration for?
>
> Patrick
>
More information about the IGSTK-Developers
mailing list