buildable

fun buildable(polygon: DrawnPolygon, distanceMeters: Double, engine: InsetEngine, newVertexId: () -> VertexId): Buildable

The part of polygon that is at least distanceMeters metres from every edge, with mitred corners (a hole grows by the same distance). It is empty when the plot is narrower than twice the distance.

This is the same distance on every side. A plot whose front, sides and back have different setbacks is not covered.

Parameters

engine

what takes the strip off (for example JtsOverlayEngine of the boolean-ops module).

newVertexId

makes the ids of the corners of the result, which are all new.

Throws

if distanceMeters is negative or not a number, or the plot crosses the antimeridian.