| Coordinate Measuring Machine (CMM) is one of the most vital measuring equipment with high precision, and it is being used widely in major industries and enterprises around the world. However, at present, there are a large quantity of students lacking training time due to limited resources and high cost, and being failed to grasp operation skills due to backward teaching model. What’s more, there still existed a phenomenon that takes a long period and lots of human resources for CMM training in customer service and pre service because of lack CMM operation assessment.In order to solve these problems, this paper designed and released a Virtual CMM Software based on virtual reality (VR) technology, which aims to reduce training cycle, improve teaching effect and develop skill ability through a realistic device and scene, interactive experience of human nature and the whole measuring process.In view of collision limitations in Unity3D and typical contact algorithm, this paper designs a new precise collision algorithm called Discrete Space & Model(DSM). Firstly, describe a model with complex geometry (STL format) in a new effective space filled with a series of the same cube cells in a regular distribution. Then, decimally discrete the whole space and the effective -space -model. We can extract the potential collision space through the possessive relation between sinusoids triangles and 8 adjacent cube cells, until the size of potential collision space achieved accuracy standards. Compared with other algorithms, this method will greatly reduce the nonlinear intersection calculation among triangles and improve the accuracy and efficiency of virtual collision algorithm.This paper also designs an improved MVC pattern, namely Model, View and Control, which solved the division of functions and labors. Meanwhile, Virtual CMM can simulate measurements and fit characteristic figure like sphere via least square method. More importantly, we create a new experiment in cross-platforms cooperation among PC, Android and Embedded Platform. |