There is a class in Ogre Ogre::Boxthat looks like it can support a three-dimensional block. However, this class uses a data type size_tto store its coordinates. Since it size_tis essentially an unsigned integer , it cannot process negative numbers, so using it for any real geometry is not possible. I know that I can just keep a few digits or independently come up with a homegrown boxing class, but what is Ogre’s usual way of doing this? Also, I don't care if the box uses integers or floats for storage, it's just that it doesn't matter to the task.
source
share