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);
  • 新增三维标签hover动画效果控制项
// 构造三维标签配置项
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
}]);
模型解析
  • 新增CATPart及CATProduct模型解析