Bitbybit Docs
    Preparing search index...

    Class Text3DData<T> (Advanced.Text3D)

    The result of every create method of advanced.text3d: the whole text as one shape, the shape of each character and, for text cut into a face, the faces left by the cut. Pass it to the getters of advanced.text3d to read its parts.

    Type Parameters

    • T
    Index

    Constructors

    Properties

    type: string

    The kind of object, always parametric-model.

    name: string

    The name of the model, text3d.

    advanceWidth: number

    How far the text advances along its line, in the units of fontSize. create records it; text on a face records it only when built from a font URL, one text at a time.

    boundingBox: { x1: number; y1: number; x2: number; y2: number }

    The box around the text's outlines before alignment, in the font's layout coordinates where y grows downward, scaled to fontSize. It is recorded where advanceWidth is.

    originalInputs?: Text3DDto | Texts3DFaceDto<T>

    The inputs the model was made from. Only createTextsOnFace records them.

    compound?: T

    The whole result as one shape: every letter for free-standing text, or what faceTextVar produced for text on a face.

    characterParts?: CharacterPart<T>[]

    One entry per character that has an outline, each holding that character's shape; spaces are skipped.

    faceParts?: FacePart<T>[]

    The faces left after cutting the letters out of the face the text was placed on, the main cutout first. Only text on a face that cuts it has them.

    Every shape of the model paired with the id the model's parts refer to it by.

    characterCenterCoordinates: Bit.Inputs.Base.Point3[]

    The center of each character in the order of characterParts: the center of mass of its solids when extruded, of its faces when flat. Several texts on one face leave it unset.