Options
All
  • Public
  • Public/Protected
  • All
Menu

Class threef

Hierarchy

  • threef

Index

Properties

Static deguThreefTempBoxHelper

deguThreefTempBoxHelper: any

Methods

Static applyVectorToDom

  • applyVectorToDom(element: HTMLElement, v: Vector3, euler: Euler): void
  • Parameters

    • element: HTMLElement
    • Optional v: Vector3
    • Optional euler: Euler

    Returns void

Static blenderToThreeEuler

  • blenderToThreeEuler(euler: any): object

Static blenderToThreeVec3

  • blenderToThreeVec3(vec3: any): object

Static convertCoordinateSystem

  • convertCoordinateSystem(vec3: Vector3, map: Array<string>): Vector3

Static createObjectDictionaryFromScene

  • createObjectDictionaryFromScene(scene: Scene, mapping: Record<string, any>): Object
  • Parameters

    • scene: Scene
    • mapping: Record<string, any>

    Returns Object

Static findSceneByName

  • findSceneByName(name: string, scenes: Array<Scene>): Scene

Static getAnimationByName

  • getAnimationByName(name: string, animationClips: Array<AnimationClip>): AnimationClip
  • Parameters

    • name: string
    • animationClips: Array<AnimationClip>

    Returns AnimationClip

Static loadGltf

Static setFov

  • setFov(element: HTMLElement, camera: PerspectiveCamera): void
  • Parameters

    • element: HTMLElement
    • camera: PerspectiveCamera

    Returns void

Static toDomBoundingRect

  • toDomBoundingRect(object: Mesh, camera: PerspectiveCamera, width: number, height: number, options: any): any
  • Parameters

    • object: Mesh
    • camera: PerspectiveCamera
    • width: number
    • height: number
    • Optional options: any

    Returns any

Static toDomCoordinates

  • toDomCoordinates(object: Object3D, camera: PerspectiveCamera, width: number, height: number, scalar: number): Vector3
  • Parameters

    • object: Object3D
    • camera: PerspectiveCamera
    • width: number
    • height: number
    • Optional scalar: number

    Returns Vector3

Static toDomRotation

  • toDomRotation(object: Object3D, camera: Camera): Euler

Static toScreenXY

  • toScreenXY(position: Vector3, camera: Camera, width: number, height: number): object
  • Parameters

    • position: Vector3
    • camera: Camera
    • width: number
    • height: number

    Returns object

    • x: number
    • y: number
    • z: number

Static traverseSceneFor

  • traverseSceneFor(matchCondition: Function, execution: Function, scene: Scene): void
  • Parameters

    • matchCondition: Function
    • execution: Function
    • scene: Scene

    Returns void