Skip to main content

findBestPacking

Callable


  • Find the best packing of a set of rectangles, given a set of rectangles and a set of packing criteria.


    Parameters

    • subjects: OutputRectType[]

      The rectangles to pack.

    • input: FinderInput

      The input data for the algorithm.

    • allowFlip: boolean = true
    • rest...comparators: Comparator[]

      The comparators to use.

    Returns RectWh

    The best packing of the given rectangles.