This commit is contained in:
2026-05-18 12:28:10 +08:00
parent fdc031673f
commit fb193c0528
4 changed files with 55 additions and 20 deletions

View File

@ -427,7 +427,6 @@ export class AppModel extends Monobehiver {
* @returns 模型名称,未找到返回 undefined
*/
findModelNameByMesh(mesh: AbstractMesh): string | undefined {
console.log(111111111111);
const keys = this.modelDic.Keys();
for (const key of keys) {
@ -711,6 +710,15 @@ export class AppModel extends Monobehiver {
});
}
/**
* 检查模型是否存在
* @param modelId 模型ID
* @returns 模型是否存在
*/
exists(modelId: string): boolean {
return this.modelDic.Has(modelId);
}
/**
* 应用 transform 到模型
* @param modelId 模型ID