Bitbybit Docs
    Preparing search index...

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

    The faces, grid size and pyramid height for advanced.patterns.facePatterns.pyramidSimple.createPyramidSimple. Each face is split into uNumber by vNumber cells, and every cell gets a pyramid height high.

    Type Parameters

    • T
    Index

    Constructors

    • Type Parameters

      • T

      Parameters

      • Optionalfaces: T[]
      • OptionaluNumber: number
      • OptionalvNumber: number
      • Optionalheight: number

      Returns PyramidSimpleDto<T>

    Properties

    faces: T[]

    The faces to cover. Each gets its own grid, and the getters count faces from 0 in this order.

    undefined
    
    uNumber: number

    How many cells, and so pyramids, each face gets along U.

    10
    

    1

    Infinity

    1

    vNumber: number

    How many cells, and so pyramids, each face gets along V.

    10
    

    1

    Infinity

    1

    height: number

    How far each apex sits from its cell's center along the averaged surface normal, in model units. A negative value points the pyramids against the normal.

    0.2
    

    -Infinity

    Infinity

    0.1

    precision: number

    The meshing precision used when the model is drawn; a smaller value gives a finer mesh. The shapes in the model do not depend on it.

    0.01
    

    0.000001

    5

    0.001