Bitbybit Docs
    Preparing search index...

    Class SnakeChairDto (Things.Furniture.Chairs.SnakeChair)

    Parameters of things.furniture.chairs.snakeChair.create. The seat and backrest values shape the bent profile, the board, groove and bend values shape the body, and rotation, scale, direction and origin place the chair.

    Implements

    Index

    Constructors

    • Parameters

      • OptionalsittingHeight: number
      • OptionalbackRestOffset: number
      • OptionalbackRestHeight: number
      • Optionalwidth: number
      • Optionallength: number
      • Optionalthickness: number
      • OptionalnrOrnamentPlanks: number
      • OptionalornamentDepth: number
      • OptionalfilletRadius: number
      • Optionalprecision: number
      • OptionaldrawEdges: boolean
      • Optionalrotation: number
      • Optionalscale: number
      • Optionalorigin: Bit.Inputs.Base.Point3
      • Optionaldirection: Vector3

      Returns SnakeChairDto

    Properties

    sittingHeight: number

    Height of the seat surface above the ground, in model units. It must be more than twice thickness, and the bend radius less than half of it.

    0.45
    

    0.1

    Infinity

    0.01

    backRestOffset: number

    How far the top of the backrest leans back past the rear edge of the seat, in model units. The foot reaches back by the same amount.

    0.1
    

    0

    Infinity

    0.1

    backRestHeight: number

    Height of the backrest above the seat, in model units. The bend radius must be less than half of it.

    0.7
    

    0.1

    Infinity

    0.01

    width: number

    Width of the chair across the bent profile, along Z, in model units.

    0.45
    

    0

    Infinity

    0.01

    length: number

    Depth of the seat along the bent profile, along X, in model units. It must be more than twice thickness, and the bend radius less than half of it.

    0.45
    

    0

    Infinity

    0.01

    thickness: number

    Thickness of the bent board, in model units.

    0.05
    

    0.01

    Infinity

    0.01

    nrOrnamentPlanks: number

    Number of planks the board is split into across its width by the grooves.

    7
    

    1

    Infinity

    1

    ornamentDepth: number

    Depth of the grooves between the planks, in model units.

    0.01
    

    0.001

    Infinity

    0.001

    filletRadius: number

    Radius of the rounded bends between the foot, front riser, seat and backrest, in model units.

    0.05
    

    0.001

    Infinity

    0.01

    precision: number

    Meshing precision used when the chair is drawn without options, multiplied by scale. It must be above 0; building the shapes does not use it.

    0.01
    

    0.000001

    5

    0.001

    drawEdges: boolean

    Whether edges are drawn when the chair is drawn without options. Building the shapes ignores it.

    true
    
    rotation: number

    Turn of the chair around the Y axis, in degrees, applied before it is aligned to direction and moved to origin.

    0
    

    0

    Infinity

    10

    scale: number

    Uniform scale factor, applied around origin after the chair is placed. Drawing without options also multiplies the edge width and precision by it.

    1
    

    0

    Infinity

    Point on the ground under the center of the seat that the chair is moved to.

    [0, 0, 0]
    
    direction: Vector3

    Direction the chair's up axis points along after placement. The default keeps it upright along Y.

    [0, 1, 0]