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);
BIMFACE智能客服
7*24提供专业的BIMFACE使用支持与帮助