Bitbybit Docs
    Preparing search index...

    Class PhoneNest

    A 3D-printable desk stand for a phone: a thin curved shell with a base, a face leaning back and a ledge the phone rests on. You vary the heights, the widths at the back and front, the depth, the wall thickness, the rounding and the phone it is sized for, and can cut a pattern of openings into it. It is computed for members of the Silver and Gold plans.

    Index

    Constructors

    create

    draw

    get shapes

    Constructors

    create

    • Builds the phone stand together with a rounded box that stands in for the phone resting on it.

      The base runs along X with the ledge at the front, toward +X, and Y up. With applyOrnaments on, the openings are picked at random, so two builds differ. It throws when the caller is not on the Silver or Gold plan.

      Parameters

      • inputs: PhoneNestDto

        Stand and phone sizes, thickness, rounding, ornaments, scale and placement

      Returns Promise<PhoneNestData<TopoDSShapePointer>>

      The stand data with the stand and phone shapes, their groups and every shape with its id

    draw

    • Collects the options that control how the phone stand is drawn.

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

      Parameters

      • inputs: PhoneNestDrawDto<PBRMetallicRoughnessMaterial>

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

      Returns PhoneNestDrawDto<PBRMetallicRoughnessMaterial>

      The same draw options

    get shapes