Module rectpack
rg3d_core
Rectangle packer is used to pack set of smaller rectangles into one big, it used in texture atlas packer.
See module docs.