threejs-worldgen
    Preparing search index...

    Interface Field

    One field. Plain data: feed corn fields to a crop renderer by polygon, rows and rowSpacing.

    interface Field {
        color: string;
        contour: boolean;
        crop: Crop;
        id: number;
        polygon: Vec2[];
        rows: [number, number];
        rowSpacing: number;
    }
    Index
    color: string

    Ground colour (#rrggbb), one of farm.colors[crop].

    contour: boolean

    True if the rows follow the contours (sloping ground) rather than the field's long side.

    crop: Crop

    What grows here.

    id: number

    Index in Farm.fields.

    polygon: Vec2[]

    Outline (frame-local), counter-clockwise, convex.

    rows: [number, number]

    Unit direction the rows (furrows, tramlines) run along, [x, z].

    rowSpacing: number

    Row spacing, metres (0 = no rows, e.g. pasture).