JavaScript SDK版本3.6.257
2023-08-30
右键菜单新增【剖切盒适应】功能,支持选中部分构件后,将剖切盒切割到选中的构件位置。
新增设置路径漫游进度的接口,可还原漫游过程中任一时刻的相机位置及状态。
// 构造路径漫游配置项
let walkthroughConfig = new Glodon.Bimface.Plugins.Walkthrough.WalkthroughConfig();
walkthroughConfig.viewer = viewer3D;
// 构造路径漫游对象
let walkthrough = new Glodon.Bimface.Plugins.Walkthrough.Walkthrough(walkthroughConfig);
// 设置关键帧
let keyFrames = [];
keyFrames.push({
id: "frame-1",
position: { "x": 548.306, "y": 248.562, "z": 190.247 },
target: { "x": 166.224, "y": -376.472, "z": 471.612 },
coordinateSystem: "world",
stayTime: "1",
timeBetweenFrames: "2"
});
keyFrames.push({
id: "frame-2",
position: { "x": 392.232, "y": 177.558, "z": 179.452 },
target: { "x": 237.633, "y": -314.037, "z": 686.961 },
coordinateSystem: "world",
stayTime: "3",
timeBetweenFrames: "2"
});
keyFrames.push({
id: "frame-3",
position: { "x": 608.927, "y": 169.261, "z": 196.874 },
target: { "x": 206.835, "y": -377.968, "z": 597.341 },
coordinateSystem: "world",
stayTime: "2",
timeBetweenFrames: "2"
});
walkthrough.setKeyFrames(keyFrames);
// 开始路径漫游
walkthrough.play();
// 设置漫游进度
walkthrough.setProgress(0.5);
开发文档内新增快速入门模块,入门操作、基本概念的介绍均可在该模块内查阅。
开发指南模块内新增后端callback说明文档,对BIMFACE后端接口的callback参数使用方式进行了介绍。
BIMFACE智能客服
7*24提供专业的BIMFACE使用支持与帮助