Bitbybit Docs
    Preparing search index...

    Class DrawPointDto<T> (Inputs.Point)

    One point and how to draw it: its size, color and opacity, and whether the drawn mesh will be updated later.

    Type Parameters

    • T
    Index

    Constructors

    • Provide options without default values

      Type Parameters

      • T

      Parameters

      • Optionalpoint: Point3
      • Optionalopacity: number
      • Optionalsize: number
      • Optionalcolours: string | string[]
      • Optionalupdatable: boolean
      • OptionalpointMesh: T

      Returns DrawPointDto<T>

    Properties

    point: Point3

    The point to draw, as [x, y, z].

    undefined
    
    opacity: number

    How opaque the point is, from 0 (invisible) to 1 (solid).

    1
    

    0

    1

    0.1

    size: number

    Size of the drawn point, in model units.

    3
    

    0

    Infinity

    0.1

    colours: string | string[]

    Color of the point as a hex string such as #ff0000; a list of strings is also accepted.

    #444444
    
    updatable: boolean

    When true, the drawn mesh is built so its position can be changed later without redrawing.

    false
    
    pointMesh?: T

    A mesh drawn earlier for this point; when given it is updated in place instead of a new one being made.

    undefined
    

    true