The volume is always to be infinite, for some reason. (Also, there are
no checks to see if size is all zero:es and thus set it to empty, but
that is less critical.)
See code below:
Regards
/Marcus
void BoxVolume::setBoundsByCenterAndSize(const Pnt3f ¢er,
const Vec3f &size)
{
_min.setValues(center.x() - size.x() / 2.0f,
center.y() - size.y() / 2.0f,
center.z() - size.z() / 2.0f);
_max.setValues(center.x() + size.x() / 2.0f,
center.y() + size.y() / 2.0f,
center.z() + size.z() / 2.0f);
Volume::setValid (true);
Volume::setEmpty (false);
Volume::setInfinite(true);
^^^^
}
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users