摘要
采用WINDOWS API函数和UG/OPEN C API函数获取UG的主窗口指针并利用鼠标钩子捕捉鼠标点的屏幕位置,用OpenGL API函数将点云映射到窗口坐标系下,然后结合多边形内外点的判断算法实现点云的区域分割。应用实例表明了该技术的可行性,为点云的后续处理奠定了基础。
The main window pointer of UG is got by functions of windows API and UG/OPEN C API. The mouse coordinates in the screen are captured by setting a mouse hook. Then points are projected to the window coordinate system by calling OpenGL API functions, and the point cloud is partitioned into two regions based on an algorithm of point in-out polygon test. Finally, the proposed technology is proved to be feasible and valid by an application, which establishes the groundwork for subsequent treatment about point cloud.
出处
《现代机械》
2006年第5期27-29,共3页
Modern Machinery
基金
山东省教育厅科技攻关资助项目(03p02)
山东省自然科学基金资助项目(Y2004G10)
关键词
UG
反求工程
点云
交互操作
区域分割
UG
reverse engineering
point cloud
man-computer interaction
region segmentation