Bitbybit Docs
    Preparing search index...

    Class PyramidSimpleCellPart<T> (Advanced.Patterns.FacePatterns.PyramidSimple)

    One cell of a pyramid model: its place in the grid, its corner, center and apex points and the triangles of its pyramid. The cell getters of advanced.patterns.facePatterns.pyramidSimple read it.

    Type Parameters

    • T
    Index

    Constructors

    Properties

    id: string

    An identifier built from the cell's indexes, such as cell-0-0.

    uIndex: number

    The cell's position along U, counted from 0.

    vIndex: number

    The cell's position along V, counted from 0.

    cornerPoint1: Bit.Inputs.Base.Point3

    The corner at the cell's own U and V step.

    cornerPoint2: Bit.Inputs.Base.Point3

    The corner one grid step further along U.

    cornerPoint3: Bit.Inputs.Base.Point3

    The corner one grid step further along both U and V.

    cornerPoint4: Bit.Inputs.Base.Point3

    The corner one grid step further along V.

    cornerNormal1?: Vector3

    The surface normal at cornerPoint1.

    cornerNormal2?: Vector3

    The surface normal at cornerPoint2.

    cornerNormal3?: Vector3

    The surface normal at cornerPoint3.

    cornerNormal4?: Vector3

    The surface normal at cornerPoint4.

    centerPoint?: Bit.Inputs.Base.Point3

    The average of the four corner points; on a curved face it can sit slightly off the surface.

    centerNormal?: Bit.Inputs.Base.Point3

    The average of the four corner normals, scaled to length 1; the apex is raised along it.

    topPoint?: Bit.Inputs.Base.Point3

    The apex of the pyramid, the center point moved along the center normal by the cell's height.

    shapes?: {
        wire1?: T;
        wire2?: T;
        wire3?: T;
        wire4?: T;
        face1?: T;
        face2?: T;
        face3?: T;
        face4?: T;
        compound?: T;
    }

    The four triangular sides and their closed outlines, numbered by the cell edge they stand on (1 runs from corner 1 to 2), and their compound. A side whose corners coincide is missing.