[Olena-patches] 908: Adapt gen_box and point1d class to the new box hierarchy.