Bitbybit Docs
    Preparing search index...

    Class HexGridScaledToFitDto (Inputs.Point)

    用于 point.hexGridScaledToFit 的区域、数量和朝向,它调整六边形的大小,使给定数量的六边形填满宽度和高度。

    Index

    Constructors

    • Parameters

      • Optionalwidth: number
      • Optionalheight: number
      • OptionalnrHexagonsInHeight: number
      • OptionalnrHexagonsInWidth: number
      • OptionalcenterGrid: boolean
      • OptionalpointsOnGround: boolean

      Returns HexGridScaledToFitDto

    Properties

    width?: number

    要填充的总宽度,以模型单位表示;六边形的大小由它和 nrHexagonsInWidth 决定。

    10
    

    0

    Infinity

    0.1

    height?: number

    要填充的总高度,以模型单位表示。正六边形可能无法精确铺满它,因此实际高度可能略有不同。

    10
    

    0

    Infinity

    0.1

    nrHexagonsInWidth?: number

    横向有多少个六边形。

    10
    

    0

    Infinity

    1

    nrHexagonsInHeight?: number

    从上到下有多少个六边形。

    10
    

    0

    Infinity

    1

    flatTop?: boolean

    为 true 时,六边形的顶部和底部为平边;为 false 时,一个角朝上。

    false
    
    extendTop?: boolean

    为 true 时,网格被拉伸使其顶行越过顶边,从而填满矩形而在那里没有锯齿状边缘。

    false
    
    extendBottom?: boolean

    为 true 时,网格被拉伸使其底行越过底边,从而填满矩形而在那里没有锯齿状边缘。

    false
    
    extendLeft?: boolean

    为 true 时,网格被拉伸使其左列越过左边,从而填满矩形而在那里没有锯齿状边缘。

    false
    
    extendRight?: boolean

    为 true 时,网格被拉伸使其右列越过右边,从而填满矩形而在那里没有锯齿状边缘。

    false
    
    centerGrid?: boolean

    为 true 时,网格的中间位于原点,而不是其角点。

    false
    
    pointsOnGround?: boolean

    为 true 时,网格位于 XZ 地平面上(Y 变为 0),而不是 XY 平面。

    false