Bitbybit Docs
    Preparing search index...

    Class CylinderDto (Inputs.OCCT)

    用于 shapes.solid.createCylinder 的圆柱体的尺寸和放置方式,它将圆柱体以圆形底面立于 center 上。

    Index

    Constructors

    • Parameters

      • Optionalradius: number
      • Optionalheight: number
      • Optionalcenter: Point3
      • Optionaldirection: Vector3
      • Optionalangle: number
      • OptionaloriginOnCenter: boolean

      Returns Bit.Inputs.OCCT.CylinderDto

    Properties

    radius: number

    圆形底面的半径,以模型单位表示。

    1
    

    0

    Infinity

    0.1

    height: number

    圆柱体从其底面沿 direction 生长的距离,以模型单位表示。

    2
    

    0

    Infinity

    0.1

    center: Point3

    底面的中心,或当 originOnCenter 为 true 时圆柱体的中点。

    [0, 0, 0]
    
    direction?: Vector3

    圆柱体生长的方向;默认沿 Y 轴竖立。

    [0, 1, 0]
    
    angle?: number

    构建整个圆周的多少,以度为单位;小于 360 会切掉一个楔形,就像切一块蛋糕。

    360
    

    0

    Infinity

    1

    originOnCenter?: boolean

    为 true 时,圆柱体向后移动其高度的一半,使 center 位于其中间。

    false