Bitbybit Docs
    Preparing search index...

    Class ElegantTable

    A table with a rounded-corner top that overhangs a thicker base panel, carried on round tapered legs set in pairs along two opposite sides. You vary the height, width and length, the panel thicknesses and overhang, the corner rounding, the leg radii and the number of leg pairs. It is computed for members of the Silver and Gold plans.

    Index

    Constructors

    create

    • Builds the table from its top panel, base panel and legs, standing on the ground with Y up.

      The legs taper from radiusLegTop under the base panel to radiusLegBottom at the ground, and the result holds each part's shapes and points as well as the whole table. It throws when the caller is not on the Silver or Gold plan.

      Parameters

      • inputs: ElegantTableDto

        Table sizes, panel thicknesses, rounding, leg radii and count, scale and placement

      Returns Promise<ElegantTableData<TopoDSShapePointer>>

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

    draw

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

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

      Parameters

      • inputs: ElegantTableDrawDto<PBRMetallicRoughnessMaterial>

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

      Returns ElegantTableDrawDto<PBRMetallicRoughnessMaterial>

      The same draw options

    get points

    get shapes