调用Forge中RCDB的PointCloudMarkUp绘制出来的标记不是动态的

我因为不需要面板,所以我只引用了FCDB中的PointCloudMarkUp部分,想要用来绘制动态的标记,但是绘制出来的标记确实静态的,请问是哪里出错了吗?
var hitTest = viewer.clientToWorld(event.canvasX, event.canvasY, true);

                            const markupInfo = {
                                fragId: hitTest.fragId,
                                point: hitTest.point,
                                dbId: hitTest.dbId,
                                size: 40
                            }
                           var markup = new pointcloudmarkup(viewer, options);
                            markup.addMarkup(markupInfo);
                            markup.startAnimation();                            
                            ![图片描述][1]


泛舟湖上清波郎朗
浏览 454回答 2
2回答

慕森王

找到原因了,缺少动画部分 `              

侃侃无极

 const loop = (t) => {                                    window.requestAnimationFrame(loop)                                    this.markup.update(0.0);                                 };                                loop(0.0);                             }                             `
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

JavaScript