Bitbybit Docs
    Preparing search index...

    Class SnakeTable

    A table whose body is one thick board bent back and forth like a snake: a foot on the ground, a riser, a shelf, a second riser and the top, with a glass panel on top and grooves that split the board into planks. You vary the size, the foot, the shelf height, the board thickness, the grooves, the bend radius and the glass. It is computed for members of the Silver and Gold plans.

    Index

    Constructors

    create

    • Builds the snake-shaped table body and its glass top, with Y up.

      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: SnakeTableDto

        Table size, foot, shelf, board and glass thicknesses, grooves, bend radius and placement

      Returns Promise<SnakeTableData<TopoDSShapePointer>>

      The table data with the body and glass shapes, the drawing groups and every shape

    draw

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

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

      Parameters

      • inputs: SnakeTableDrawDto<PBRMetallicRoughnessMaterial>

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

      Returns SnakeTableDrawDto<PBRMetallicRoughnessMaterial>

      The same draw options

    get points

    get shapes