Table of Contents

Constructor PackPlacement

Namespace
GeometryHelper.Packing
Assembly
GeometryHelper.dll

PackPlacement(int, GeoVector2, GeoRectangle2, bool)

Initializes a new instance of the PackPlacement struct for a box, whose ViewPolygon is then the box itself as a polygon of four points.

public PackPlacement(int sheetIndex, GeoVector2 translation, GeoRectangle2 viewBox, bool placed)

Parameters

sheetIndex int

Which sheet the box goes on, the first nought; -1 when it goes on none.

translation GeoVector2

How far the box moves.

viewBox GeoRectangle2

The box, moved.

placed bool

Whether the box found a place.

PackPlacement(int, GeoVector2, GeoRectangle2, GeoPolygon2, bool)

Initializes a new instance of the PackPlacement struct for a polygon.

public PackPlacement(int sheetIndex, GeoVector2 translation, GeoRectangle2 viewBox, GeoPolygon2 viewPolygon, bool placed)

Parameters

sheetIndex int

Which sheet the polygon goes on, the first nought; -1 when it goes on none.

translation GeoVector2

How far the polygon moves.

viewBox GeoRectangle2

The upright box round the polygon, moved.

viewPolygon GeoPolygon2

The polygon, moved.

placed bool

Whether the polygon found a place.