Bitbybit Docs
    Preparing search index...

    Class HexGridDto (Inputs.Frame)

    The counts and hexagon size of the honeycomb frame.hexGrid lays out in the plane of frame: one frame at the center of each hexagon, turned the same way as frame.

    Index

    Constructors

    • Parameters

      • Optionalframe: Bit.Inputs.Base.Frame
      • OptionalcountX: number
      • OptionalcountY: number
      • Optionalradius: number
      • Optionalcentered: boolean

      Returns HexGridDto

    Properties

    The frame whose plane and axes the honeycomb follows; left out, the world frame.

    undefined
    

    true

    countX?: number

    How many hexagons in each row, along the X axis.

    3
    

    1

    Infinity

    1

    countY?: number

    How many rows, along the Y axis; every second row is shifted by half a hexagon.

    3
    

    1

    Infinity

    1

    radius?: number

    The distance from a hexagon's center to one of its corners, in model units; two corners lie on the frame's Y axis.

    1
    

    0

    true

    Infinity

    0.1

    centered?: boolean

    When true the honeycomb is centered on the frame's origin; otherwise its first hexagon sits there.

    false