Bitbybit Docs
    Preparing search index...

    Class PyramidSimple

    Covers faces with four-sided pyramids that follow the surface, one per cell of a U by V grid laid evenly over each face's UV range. The create methods return a pyramid model; the getters read from it the compound of all pyramids, the cells of each face with their points and triangles, and the polylines of the grid. The cell getters take a list of cells, which getAllPyramidCells and its siblings return.

    Index

    Constructors

    create

    • Raises a pyramid of the same height on every cell of a U by V grid over each face.

      Each face is split evenly across its UV range into uNumber by vNumber cells. A cell's apex sits height model units from its center along the averaged surface normal, so a negative height points against the normal. It computes only for members of the Silver and Gold plans.

      Parameters

      Returns Promise<PyramidSimpleData<TopoDSShapePointer>>

      A pyramid model holding the compound of all pyramids and, per face, its cells and grid polylines

    • Raises a pyramid on every cell of a U by V grid over each face, with heights shaped by attractor points.

      A cell whose center lies within an affector's radius gains between affectMinHeight for the farthest and affectMaxHeight for the closest affected cell, eased and scaled by the affector's factor, on top of defaultHeight; several affectors add up. It computes only for members of the Silver and Gold plans.

      Parameters

      Returns Promise<PyramidSimpleData<TopoDSShapePointer>>

      A pyramid model holding the compound of all pyramids and, per face, its cells and grid polylines

    get cell

    get cells

    get from cells

    get from face

    get shapes