Table of Contents

Method Pack

Namespace
GeometryHelper.Packing
Assembly
GeometryHelper.dll

Pack(IReadOnlyList<GeoRectangle2[]>, Sheet)

Packs the boxes onto sheets like the one given, with the default options.

public static PackResult Pack(IReadOnlyList<GeoRectangle2[]> groups, Sheet sheet)

Parameters

groups IReadOnlyList<GeoRectangle2[]>

The boxes, in groups of those that belong together. A null group is passed over.

sheet Sheet

The sheet: its size, scale, offsets, where it lies, and where each new one goes.

Returns

PackResult

Where each box goes, in the shape the boxes were given, and the sheets they took.

Exceptions

ArgumentNullException

groups or sheet is null.

ArgumentException

The offsets of the sheet leave it no room.

Pack(IReadOnlyList<GeoRectangle2[]>, Sheet, PackOptions)

Packs the boxes onto sheets like the one given.

public static PackResult Pack(IReadOnlyList<GeoRectangle2[]> groups, Sheet sheet, PackOptions options)

Parameters

groups IReadOnlyList<GeoRectangle2[]>

The boxes, in groups of those that belong together. A null group is passed over.

sheet Sheet

The sheet: its size, scale, offsets, where it lies, and where each new one goes.

options PackOptions

The gaps, how a group is laid out, the order the groups go in, and the tolerance.

Returns

PackResult

Where each box goes, in the shape the boxes were given, and the sheets they took.

Exceptions

ArgumentNullException

groups, sheet or options is null.

ArgumentException

The offsets of the sheet leave it no room.