JavaScript SDK版本3.6.127
2021-03-10
var boundary = [
{ x: -15000, y: 10000, z: -1000 },
{ x: -15000, y: -10000, z: -1000 },
{ x: -3000, y: -10000, z: -1000 },
{ x: 7000, y: 10000, z: -1000 }
];
// 构造剖切区域配置项
var sectionRegionConfig = new Glodon.Bimface.Plugins.Section.SectionRegionConfig();
// 配置剖切区域边界、高度、Viewer对象等参数
sectionRegionConfig.boundary = boundary;
sectionRegionConfig.height = 8000;
sectionRegionConfig.viewer = viewer3D;
// 构造剖切区域
sectionRegion = new Glodon.Bimface.Plugins.Section.SectionRegion(sectionRegionConfig);
// 构造三维标签配置项
var marker3dConfig = new Glodon.Bimface.Plugins.Marker3D.Marker3DConfig();
// 关闭三维标签hover效果,默认为true
marker3dConfig.hoverAnimation = false;
marker3dConfig.canvas = canvas;
// 将指定viewToken数据包中指定frameId的矢量图纸加载进ViewerDrawingSet中
viewer.addDrawings([{
id: 1,
viewToken: viewToken,
frameId: 1
}]);
BIMFACE智能客服
7*24提供专业的BIMFACE使用支持与帮助