Table of Contents

Class PackOptions

Namespace
GeometryHelper.Packing
Assembly
GeometryHelper.dll

How the boxes are packed: the gaps between them, how a group is laid out, and the order the groups go in.

public sealed class PackOptions
Inheritance
PackOptions
Inherited Members

Remarks

The gaps are in millimetres on paper, as the offsets of a Sheet are, and are multiplied by its Scale. They apply to polygons as to boxes: for polygons a gap is the least distance between the polygons themselves, not between their boxes.

Properties

Default

Gets the default options, a new instance each time it is read, so that changing what it gives changes no other packing, and its Tolerance is Global as it stands at the time.

FillEarlierSheets

Gets or sets whether a group may go onto a sheet before the last one, where it finds room; false unless set, so that each sheet is filled before the next is begun and no group goes back. Filling earlier sheets can take fewer of them.

GroupLayout

Gets or sets how the boxes of a group are laid out: afresh, as close together as they go, unless set.

GroupSpacing

Gets or sets the least gap between two groups, in millimetres on paper; nought unless set. A gap wider than Spacing shows which boxes belong together.

LargestGroupsFirst

Gets or sets whether the groups are packed largest first rather than in the order they are given, a group split over sheets block by block; false unless set. Largest first packs tighter; in their order, the sheets read as the groups were given.

Spacing

Gets or sets the least gap between two boxes of one group, in millimetres on paper; nought unless set.

StartCorner

Gets or sets the corner of the usable area each sheet fills from: the first block goes into it, the rows run from its side and are laid from its edge, and a group laid out afresh puts its first box at that corner of its block; UpperLeft unless set. From the lower right, three boxes 100 by 50 on a usable area 267 by 190 put two in the bottom row, the first at the right, and the third above the first.

Tolerance

Gets or sets the tolerance: how far a box may pass a free space, or the edge of the usable area, and still be taken to fit, so that sizes that add up exactly on paper still do in floating point. Global as it stands when the options are made, unless set.