Hi Alvaro, <br><br>I can have look at the code and get back to you today. At first glance, it does look funny. I'll report back shortly. <br><br>Cheers, <br><br>Michel<br><br><div class="gmail_quote">2009/10/7 Alvaro Gómez <span dir="ltr"><<a href="mailto:agomez@fing.edu.uy">agomez@fing.edu.uy</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I'm working with Release 4.2<br>
<br>
In<br>
void CrossHairSpatialObject::AttemptSetCursorPositionProcessing()<br>
<br>
the cursor position is checked against the bounding box. Is this check correct?<br>
------------------------------------------------<br>
if( m_CursorPositionToBeSet[0] < bounds[0] ||<br>
m_CursorPositionToBeSet[1] > bounds[1] ||<br>
m_CursorPositionToBeSet[2] < bounds[2] ||<br>
m_CursorPositionToBeSet[3] > bounds[3] ||<br>
m_CursorPositionToBeSet[4] < bounds[4] ||<br>
m_CursorPositionToBeSet[5] > bounds[5] )<br>
{<br>
validPosition = true;<br>
}<br>
------------------------------------------------<br>
<br>
m_CursorPositionToBeSet[3], m_CursorPositionToBeSet[4] and m_CursorPositionToBeSet[5] are not valid values.<br>
<br>
The if clause seems to check an invalid position, not a valid position.<br>
<br>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Michel Audette, Ph.D. <br>R & D Engineer, <br>Kitware Inc.,<br>Chapel Hill, N.C. <br><br>