Hierarchy

  • ModelHandle

Methods

  • Parameters

    • gl: WebGLRenderingContext | WebGL2RenderingContext
    • pointer: WebGLTexture
    • data: Float32Array | Uint8Array
    • Optional numberOfComponents: number

    Returns number

  • Parameters

    • renderId: number

    Returns number

  • Parameters

    Returns {
        id: number;
        model: number;
    }[]

  • Parameters

    • Optional args: number | number[]

    Returns void

  • Parameters

    • states: number[][]

    Returns void

  • Parameters

    • styleId: number
    • args: number | number[]

    Returns void

Accessors

  • get changed(): boolean
  • Indicates if there are any changes to be drawn. This flag is checked by the viewer to see if redraw is necessary

    Returns boolean

  • get empty(): boolean
  • Some models are empty - they don't contain any geometry

    Returns boolean

  • get isolatedProducts(): number[]
  • If drawProductId is defined, only this single product is drawn

    Returns number[]

  • set isolatedProducts(value: number[]): void
  • Parameters

    • value: number[]

    Returns void

  • get stopped(): boolean
  • indicates if this model should be used in a rendering loop or not.

    Returns boolean

  • set stopped(value: boolean): void
  • Parameters

    • value: boolean

    Returns void

Properties

clippable: boolean = true

participates in clipping operation only if true

id: number

Session unique ID used to manipulate this handle/model

meter: number

Conversion factor to one meter from model units

pickable: boolean = true

participates in picking operation only if true

pinned: boolean = false

indicates this model should never have drop items from rendering when Adaptive Performance is enabled

tag: any = null

Tag used to identify the model

wcs: vec3 = ...

local World Coordinate System origin

Constructors

Generated using TypeDoc