Reorganized PrimitiveBatch3D, added box drawing