剖视图 - Forge Viewer

Section floor view - Forge Viewer

我希望能够过滤我上传的 Revit 建筑以显示某些楼层(例如地下室、一楼、屋顶)。我知道我可以从工具栏分割视图,但我想通过点击按钮来分割视图(在我的例子中,树按钮:地下室 - 地板 - 屋顶)。

我一直在看这个教程: https://developer.autodesk.com/en/docs/viewer/v2/tutorials/basic-application/

但在这里我需要上传所有树视图的预切模型。有没有其他方法,或者我会选择教程中的选项?

您可以从 API 控制剖面,因此您可以创建调用 API 的按钮并控制如何设置剖面。看看 viewer API documentation 中的 setCutPlanes 方法。

这是一篇说明如何使用此方法的文章:Viewer setCutPlanes

您还可以查看此博客 post,其中介绍了我如何使用 ThreeCSG (Constructive solid geometry) to perform boolean operations in the viewer and isolate walls specific to each floor: Boolean Operations in the Forge Viewer

希望对您有所帮助。