您好,我正在尝试使用这个Forge标记示例:
https://github.com/wallabyway/markupExt我在markupExt.js中找到了这一行,但什么也没有发生:
this.raycaster.params.PointCloud.threshold = 5;
// hit-test markup size. Change this if markup 'hover' doesn't work

但是当我运行脚本时,我无法单击用于显示卡片的点
这是我的控制台返回:

发布于 2020-04-06 11:54:50
参数this.raycaster.params.PointCloud.threshold = 5将命中测试半径设置为5个单位。
该示例的问题在于,它适用于fusion360模型的世界范围,而不是Revit模型。
尝试取自此Revit示例的markupExt.js示例:https://github.com/apprentice3d/ForgeViewerExtensions
这将有助于将mouseX和Y坐标设置为命中测试的正确比例。
真对不起。让我知道这是否有助于干杯迈克尔
https://stackoverflow.com/questions/61001830
复制相似问题