基于 OpenGL 和 SolidWorks 的机械系统运动仿真原理及实现仇艳凯1, 黄道敏2, 谢  炜1, 唐国元1, 李广华1( 1. 华中科技大学智能机械与控制研究所, 湖北 武汉 430074; 2. 空军雷达学院, 湖北 武汉 430010)Realization and Principle of Motion Simulation for Mechanical System Based on OpenGL andSolidWorksQIU Yan kai1, HUANG Dao  min2, XIE Wei1, TANG Guo  yuan1, LI Guang  hua1( 1. Institut e of Intelligent Machine and Control, Huazhong University of Science and Technology, Wuhan 430074, China;2. Air Force Radar Academy, Wuhan 430010, China) 摘要: 为了 规划机械系统的运动轨迹, 优化设计参数, 以及开发上位机监控界面, 研究了 一个运动仿真系 统. 三维模型基于三维 CA D 软件 SolidWorks建立, 用 OpenGL 作为 三维图 形的接口, 运动 仿真软件以 Windows 操作系统为开发平台, 采用 VisualC+ + 6. 0 的 MFC 为 开发环境. 详细讨论了 实现运动仿真的一些关键技术, 并开发了 仿真软件. 仿真结果证明了 这种方法的可行性, 对其它动态过程的三维仿真也有一定的意义.关键词: 动画仿真; 坐标变换; OpenGL; SolidWorks中图分类号: T H164; TP391. 9文献标识码: A文章编号: 10012257( 2010) 12002503Abstract: In order to plan the trajectory, opti收稿日 期: 2010 09 07mize the designing parameters and develop the upper machine supervisory interface of the computersupervisory system for the mechanical system, amotion simulation system is studied. T he threedimensional model is built by the model tool of SolidWorks. T hrough data format conversion, the modelis imported into OpenGL. T he motion simulationsoftware is developed by M FC of Visual C+ + 6. 0,which is supported by the Windows operating system. Some key technology of the motion simulationis discussed in detail and the simulation software isdeveloped. T he feasibility of the method is provedby the simulation result, and the application of themethod in the system also offers the valuable reference for other applications.Key words: animation simulation; coordinatetransformation; OpenGL; SolidWorks0  引言