|
|
@ -1,14 +1,12 @@ |
|
|
import Viewport from '@/core/engine/Viewport.ts' |
|
|
import Viewport from '@/core/engine/Viewport.ts' |
|
|
import { compileTypeScript, executeTypeScript } from '@/core/script/ModelScript.ts' |
|
|
import { executeTypeScript } from '@/core/script/ModelScript.ts' |
|
|
import * as THREE from 'three' |
|
|
import * as THREE from 'three' |
|
|
import { getMatrixFromTf } from '@/core/ModelUtils.ts' |
|
|
import { getMatrixFromTf } from '@/core/ModelUtils.ts' |
|
|
import type { Object3DLike } from '@/types/ModelTypes.ts' |
|
|
import type { Object3DLike } from '@/types/ModelTypes.ts' |
|
|
import TaskManager from '../manager/TaskManager.ts' |
|
|
import TaskManager from '../manager/TaskManager.ts' |
|
|
import Cl2Entity from '@/modules/amr/ptr/cl2/Cl2Entity.ts' |
|
|
import Cl2Entity from '@/modules/amr/ptr/cl2/Cl2Entity.ts' |
|
|
import ClxEntity from '@/modules/amr/ptr/clx/ClxEntity.ts' |
|
|
// import ClxEntity from '@/modules/amr/ptr/clx/ClxEntity.ts'
|
|
|
import { getRenderer } from '@/core/manager/ModuleManager.ts' |
|
|
import { getRenderer } from '@/core/manager/ModuleManager.ts' |
|
|
import { markRaw } from 'vue' |
|
|
|
|
|
import ToolProxyManager from '@/runtime/ToolProxyManager.ts' |
|
|
|
|
|
|
|
|
|
|
|
export default class ModelManager implements IControls, Model { |
|
|
export default class ModelManager implements IControls, Model { |
|
|
private viewport: Viewport |
|
|
private viewport: Viewport |
|
|
@ -18,7 +16,8 @@ export default class ModelManager implements IControls, Model { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
getClx(id: string): ClxIf { |
|
|
getClx(id: string): ClxIf { |
|
|
return new ClxEntity(this.viewport, id) |
|
|
throw new Error("不支持"); |
|
|
|
|
|
// return new ClxEntity(this.viewport, id)
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
createTask(agv: object): TaskManager { |
|
|
createTask(agv: object): TaskManager { |
|
|
|