JavaScript SDK版本3.6.238

2023-03-29

三维模型
  • 新增了漫游人物形象——建筑工人,在工具栏的第三人称漫游功能里,支持切换为建筑工人形象,在场景中行走或者奔跑。
  • 新增了选择漫游人物形象的接口,支持通过调用接口切换人物模型。
//构造三维模型应用配置项
let webAppConfig = new Glodon.Bimface.Application.WebApplication3DConfig();
//在Config中配置人物形象
webAppConfig.avatar=Glodon.Bimface.Viewer.AvatarOption.ConstructionWorker;
//调用接口设置漫游人物形象
viewer3D.setAvatar(Glodon.Bimface.Viewer.AvatarOption.OfficeMale);
viewer3D.setNavigationMode(Glodon.Bimface.Viewer.NavigationMode3D.ThirdPerson);
//获取当前的漫游人物形象
viewer3D.getAvatar();
  • 剖切面功能新增设置剖切补面的接口,可自定义设置剖切后是否对构件进行补面填充处理。
// 构造剖切面配置项
let sectionPlaneConfig = new Glodon.Bimface.Plugins.Section.SectionPlaneConfig();
// 设置Viewer、剖切方向等参数
sectionPlaneConfig.viewer = viewer3D;
sectionPlaneConfig.plane = Glodon.Bimface.Plugins.Section.SectionPlanePlane.X;
// 关闭补面填充
sectionPlaneConfig.isHatchEnabled = false;
// 构造剖切面对象
let sectionPlane = new Glodon.Bimface.Plugins.Section.SectionPlane(sectionPlaneConfig);
// 开启补面填充
sectionPlane.enableHatch(true);
控制台
  • 优化了分享链接时间到期规则,分享链接到期时间修改为失效日期当天晚上23:59:59。