Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface MeshComponent

Hierarchy

Index

Properties

declaredClass

declaredClass: string

destroyed

destroyed: boolean

faces

faces: Uint32Array

A flat array of indices that refer to vertices in the vertexAttributes of the mesh to which the component belongs.

Read more...

initialized

initialized: boolean

material

The material determines how the component is visualized.

Read more...

shading

shading: "source" | "flat" | "smooth"

Specifies the type of normals used for lighting.

Read more...

Methods

Protected _get

  • _get(propertyName: string): any
  • _get<T>(propertyName: string): T
  • Parameters

    • propertyName: string

    Returns any

  • Type parameters

    • T

    Parameters

    • propertyName: string

    Returns T

Protected _set

  • Type parameters

    • T

    Parameters

    • propertyName: string
    • value: T

    Returns MeshComponent

clone

  • Creates a deep clone.

    Read more...

    Returns MeshComponent

destroy

  • destroy(): void
  • Returns void

get

  • get<T>(propertyName: string): T
  • get(propertyName: string): any
  • Type parameters

    • T

    Parameters

    • propertyName: string

    Returns T

  • Parameters

    • propertyName: string

    Returns any

Protected notifyChange

  • notifyChange(propertyName: string): void
  • Parameters

    • propertyName: string

    Returns void

set

  • Type parameters

    • T

    Parameters

    • propertyName: string
    • value: T

    Returns MeshComponent

  • Parameters

    Returns MeshComponent

watch

  • Parameters

    • path: string | string[]
    • callback: WatchCallback
    • Optional sync: boolean

    Returns WatchHandle

Generated using TypeDoc