Piece

class Piece(val rings: List<List<Vertex>>, val area: Double, val targetArea: Double)

One share of a plot that has been divided: the rings it is made of (the outline of each part followed by its holes, like DrawnPolygon.rings), its area and the area it was meant to have.

Constructors

Link copied to clipboard
constructor(rings: List<List<Vertex>>, area: Double, targetArea: Double)

Properties

Link copied to clipboard

the area of the piece, in square metres (see Measure.area).

Link copied to clipboard

the rings of the piece. The corners that were on the outline of the plot keep their VertexId; the ones the cuts made have new ones.

Link copied to clipboard

the area the share asked for, in square metres: the share's part of the area of the whole plot. area is that, to within what the arithmetic allows (a millionth).