我正在创建像这样的剖面:
this.viewer.loadExtension("Autodesk.Section")
const SectionTool = this.viewer.getExtension("Autodesk.Section")
SectionTool.load()
SectionTool.activate()
SectionTool.tool.setSectionPlane(this.hitTest.face.normal, this.hitTest.point)
const state = this.viewer.getState();
this.viewer.restoreState(state);
这很好用,我得到了剖面。但是我无法像使用UI按钮创建时那样与该平面进行交互。谁能指出我的正确方向以实现这一目标?
谢谢你!
为什么要存储hitTest结果,然后还原没有切平面的状态的其他方面(如果它们是在已保存的状态中捕获的...,然后以编程方式从hittest结果中还原切平面的信息,例如: