Bitbybit Docs
    Preparing search index...

    Class GoodCoffeeTable

    A low table with a wooden frame top that holds a recessed glass panel, four rectangular legs at the corners and an optional shelf between them. You vary the size, the frame and glass thicknesses, the glass inset, the chamfer, the shelf and the legs. It is computed for members of the Silver and Gold plans.

    Index

    Constructors

    create

    • Builds the coffee table from its framed glass top, four legs and an optional shelf, with Y up.

      The result holds each part's shapes and points as well as the whole table; a shelfTopOffset of 0 leaves the shelf out. 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: GoodCoffeeTableDto

        Table size, top and glass sizes, chamfer, shelf, legs, scale and placement

      Returns Promise<GoodCoffeeTableData<TopoDSShapePointer>>

      The table data with the top, shelf and leg parts, the drawing groups and every shape

    draw

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

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

      Parameters

      • inputs: GoodCoffeeTableDrawDto<PBRMetallicRoughnessMaterial>

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

      Returns GoodCoffeeTableDrawDto<PBRMetallicRoughnessMaterial>

      The same draw options

    get points

    get shapes