我使用restoreState函数来设置裁剪平面,它工作得很好:
NOP_VIEWER.restoreState(JSON.parse('{"cutplanes": [[0,0,0,0]]}'));
但我怎样才能把切割平面移除呢?显示所有对象都不工作,也不工作。
NOP_VIEWER.restoreState(JSON.parse('{"cutplanes": []}'));
或
NOP_VIEWER.setCutPlanes();
发布于 2020-06-23 17:38:54
一种方法就是
NOP_VIEWER.restoreState(JSON.parse('{"cutplanes": null}'));发布于 2020-12-02 16:13:42
根据文档,必须将空数组传递给setCutPlanes()
https://forge.autodesk.com/en/docs/viewer/v7/reference/Viewing/Viewer3D/#setcutplanes-planes
传递空列表或null的
等效于设置零切割平面
https://stackoverflow.com/questions/62539737
复制相似问题