[IGSTK-Users] CrossHairSpatialObject
Alvaro Gómez
agomez at fing.edu.uy
Wed Oct 7 10:02:39 EDT 2009
I'm working with Release 4.2
In
void CrossHairSpatialObject::AttemptSetCursorPositionProcessing()
the cursor position is checked against the bounding box. Is this check
correct?
------------------------------------------------
if( m_CursorPositionToBeSet[0] < bounds[0] ||
m_CursorPositionToBeSet[1] > bounds[1] ||
m_CursorPositionToBeSet[2] < bounds[2] ||
m_CursorPositionToBeSet[3] > bounds[3] ||
m_CursorPositionToBeSet[4] < bounds[4] ||
m_CursorPositionToBeSet[5] > bounds[5] )
{
validPosition = true;
}
------------------------------------------------
m_CursorPositionToBeSet[3], m_CursorPositionToBeSet[4] and
m_CursorPositionToBeSet[5] are not valid values.
The if clause seems to check an invalid position, not a valid position.
More information about the IGSTK-Users
mailing list