Type Alias Models

Models: Model[] & {
    autoUpdate: boolean;
    bounding: THREE.Box3;
    cacheCameras: (THREE.PerspectiveCamera | Camera)[];
    loaded: boolean;
    materialVersion: number;
    needsRender: boolean;
    refineProgress: [number, number];
    refined: boolean;
    getMaterial(): ModelMaterialValues;
    intersectRaycaster(raycaster: Raycaster): Intersection[];
    resetBrightness(): void;
    setMaterial(values: Partial<ModelMaterialValues>): void;
    update(renderer: WebGLRenderer, camera: Camera, mode: Mode): void;
}

Type declaration

  • autoUpdate: boolean

    是否自动更新模型

  • bounding: THREE.Box3

    包围盒

  • cacheCameras: (THREE.PerspectiveCamera | Camera)[]

    缓存相机

  • loaded: boolean

    是否家在完成

  • materialVersion: number
  • needsRender: boolean
  • refineProgress: [number, number]

    细化成都

  • refined: boolean

    是否细化完成

  • getMaterial:function
  • intersectRaycaster:function
    • 计算模型射线碰撞检测

      Parameters

      • raycaster: Raycaster

        THREE 射线对象

      Returns Intersection[]

      返回碰撞

  • resetBrightness:function
    • 突出模型

      Returns void

  • setMaterial:function
    • 设置材质参数

      Parameters

      Returns void

  • update:function
    • 更新模型

      Parameters

      Returns void