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
groupsIReadOnlyList<GeoRectangle2[]>The boxes, in groups of those that belong together. A null group is passed over.
sheetSheetThe 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
groupsorsheetis 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
groupsIReadOnlyList<GeoRectangle2[]>The boxes, in groups of those that belong together. A null group is passed over.
sheetSheetThe sheet: its size, scale, offsets, where it lies, and where each new one goes.
optionsPackOptionsThe 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,sheetoroptionsis null.- ArgumentException
The offsets of the sheet leave it no room.