Interface Contour

A polyline in world coordinates produced by marching squares and/or simplified by Douglas-Peucker.

Closed contours connect points[points.length - 1] back to points[0] implicitly; the closing vertex is not duplicated in the array.

interface Contour {
    closed: boolean;
    points: Point[];
}

Properties

Properties

closed: boolean

True if the last and first vertices are joined by an implicit edge.

points: Point[]

Ordered vertices of the polyline.