Bitbybit Docs
    Preparing search index...

    Class SnakeChair

    A chair whose body is one thick board bent like a snake: a foot on the ground, a front riser, the seat and a backrest that leans back, with grooves that split the board into planks. You vary the seat height, the backrest height and lean, the width and depth, the board thickness, the grooves and the bend radius. It is computed for members of the Silver and Gold plans.

    Index

    Constructors

    create

    • Builds the snake-shaped chair body as one solid, with Y up and the seat facing +X.

      The bent profile runs along X and is extruded across Z by width, all in model units. It throws when the sizes break the rules in the DTO, or when the caller is not on the Silver or Gold plan.

      Parameters

      • inputs: SnakeChairDto

        Seat and backrest sizes, width, depth, board, grooves, bend radius and placement

      Returns Promise<SnakeChairData<TopoDSShapePointer>>

      The chair data with the body, the seat outline and center, and every shape

    draw

    • Collects the options that control how the snake chair is drawn.

      It returns the inputs unchanged, ready to pass to the drawing of the model: a material for the body, whether faces and edges are drawn, the edge color and width, and the meshing precision.

      Parameters

      • inputs: SnakeChairDrawDto<PBRMetallicRoughnessMaterial>

        Material, face and edge switches, edge color and width, and meshing precision

      Returns SnakeChairDrawDto<PBRMetallicRoughnessMaterial>

      The same draw options

    get points

    get shapes