【问题标题】:How to get bounding box info of intersection box in forge viewer?如何在伪造查看器中获取交叉框的边界框信息?
【发布时间】:2019-11-06 09:21:54
【问题描述】:

使用截面分析工具为模型的截面视图添加交集框后,是否可以得到它的边界框信息?


  1. 原模型


  1. 与需要提取边界框的框视图相交

【问题讨论】:

    标签: autodesk-forge autodesk-viewer autodesk


    【解决方案1】:

    您可以通过sectionExtension.tool访问截面框的几何信息:

    const sb = viewer.getExtension('Autodesk.Section')
    sb.tool.getSectionBoxValues() 
    //sectionBox: (6) [-2.8294310569763184, -6.648449420928955, -9.332106590270996, -0.0652092695236206, -1.3873761892318726, -3.4865833520889282]
    //sectionBoxTransform: (16) [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]
    

    【讨论】:

      猜你喜欢
      • 2021-04-22
      • 2018-08-23
      • 2020-04-10
      • 1970-01-01
      • 2018-06-24
      • 2019-05-11
      • 1970-01-01
      • 2021-03-24
      • 2017-12-30
      相关资源
      最近更新 更多