(5)利用Set Position和Set Orientation行为模块,定位针的初始位置和方向。由于上述调用的2D Picking模块返回了针刺点的三维坐标以及该点所在人体表面的法向量,因此可以根据这些信息来设置针的初始位置和方向。这里需要特别指出的是2D Picking模块输出的是世界坐标(world space coordinates)信息,而Set Orientation模块需要是自身坐标系(Local Coordinate System)信息,因此要进行相应的坐标变换。
(6)通过Switch On Key 、Rotate、 Translate等行为模块以及VSL共同实现进针手法的模拟。其中Switch On Key用来响应计算机小键盘的输入,当按下不同的键时,Rotate、 Translate分别完成针的方向控制和进针控制,同时利用VSL脚本编程实现进针的深度的计算, Text Display显示在针刺之后得到的数据反馈。程序流程如图3所示。
Design and Implementation of The Virtual Teaching System Based on Virtools Technology
LUO HongWANG Shi-yong
(Center of Educational Technology of the Second Military Medical University, Shanghai, 200433)
Abstract:Virtual teaching system based on Virtools technology may improve the teaching efficiency and effect. This paper generalizes the characters and advantages of Virtools technology. And the people’s cognitive characters existing in the virtual teaching system are analysed. Moreover, it states how to apply Virtools technology by an example of introducing the design and implementation of the virtual teaching system of “Wrist-Ankle Acupuncture”.