Patent ID: 8855407

Claim:
A method being executed by a processor of an electronic device for adjusting an orientation of a three-dimensional (3D) product model in a machine coordinate system, the method comprising: reading information of the 3D product model from a storage device, the information comprising original coordinates of vertices of a plurality of meshed triangles; creating a part coordinate system of the 3D product model based on dimensional information in a two-dimensional (2D) drawing of a product stored in the storage device; determining an identity matrix A 2 of the machine coordinate system based on an origin of the machine coordinate system and vectors of X, Y, Z axes of the machine coordinate system; determining a translation transformation matrix A 1 of the part coordinate system in relation to the machine coordinate system based on coordinates of the origin of the part coordinate system in the machine coordinate system; determining a rotational transformation matrix R of the 3D product model based on the identity matrix A 2 and an inverse matrix A 1 ′ of the translation transformation A 1 ; and automatically adjusting the orientation of the 3D product model such that axes of the part coordinate system are aligned with the axes of the machine coordinate system based on the original coordinates of vertices of the meshed triangles of the 3D product model and the rotational transformation matrix R.