计算机工程与应用 ›› 2011, Vol. 47 ›› Issue (15): 187-190.

• 图形、图像、模式识别 • 上一篇    下一篇

点云模型表面物体自由拖拽定位

李卫国1,叶文华1,丁 展2,陈文亮1   

  1. 1.南京航天航空大学 机电学院 江苏省“精密与微细制造技术”重点实验室,南京 210016
    2.大连富坤科技,辽宁 大连 116600
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2011-05-21 发布日期:2011-05-21

Dragging objects freely on surface of point cloud

LI Weiguo1,YE Wenhua1,DING Zhan2,CHEN Wenliang1   

  1. 1.Jiangsu Key Laboratory of Precision and Micro-Manufacturing Technology,Nanjing University of Aeronautics & Astronautics,Nanjing 210016,China
    2.Dalian Fukun,Dalian,Liaoning 116600,China
  • Received:1900-01-01 Revised:1900-01-01 Online:2011-05-21 Published:2011-05-21

摘要: 为实现在点云表面自由、合理地拖动其他物体,提出了一种基于硬件深度缓冲的拖拽算法。首先在鼠标按下阶段独立渲染一次指定的点云,快照出当前屏幕中该点云的深度缓冲,接着在鼠标移动阶段利用记录的深度缓冲计算参考多边形下一个位置处的质心坐标和法向,再利用相邻两个参考多边形质心和法向建立物体运动的旋转和平移分量,从而实现物体在点云表面的拖拽。实验结果表明,利用该方法可以实时、合理地在指定点云表面自由拖动任何物体。

关键词: 深度图, 点云, 帧缓冲, 深度裁剪, 拖拽手势, 逆向工程

Abstract: To drag objects freely and rationally along surface of point cloud,a dragging method based on hardware depth buffer is proposed.When mouse is down,the specified point cloud is rendered and the snap shot of the depth buffer in the current window is recorded.When mouse is moving,the recorded depth buffer is used to evaluate the next gravity and normal of the referenced polygon.The rotational and translational vector is constructed by using two neighbor gravities and normal of the referenced polygon.Finally,the functionality of object-moving along surface of point cloud is implemented.The experiment results show that any object can be dragged onto point cloud in real time and rationally by this method.

Key words: depth buffer image, point cloud, frame buffer, depth clipping, dragging gesture, reverse-engineering