Patent ID: 9098937
Filing Date: 2015-08-04
Classification: G06T

Abstract:
1. A computer-implemented method for simulating a three-dimensional (3D) model of a workpiece using an electronic device, the method being executed by at least one processor of the electronic device comprising: meshing, using the at least one processor, the 3D model of the workpiece using triangles, and outputting a first sequence of the triangles of the 3D model; normalizing, using the at least one processor, vertexes of each of the triangles in the first sequence, and obtaining a meshed model of the workpiece in a normalized coordinate system; dividing a two-dimensional (2D) image of the workpiece, and obtaining a second sequence of triangles of the divided 2D image by projecting the meshed model of the workpiece in the normalized coordinate system to a preset 2D coordinate system; obtaining, using the at least one processor, a pixel set and vertex coordinates of each of the triangles in the second sequence according to a traversal of the second sequence; electronically pasting each of the triangles in the second sequence to a corresponding position in the meshed 3D model; and displaying the pasted 3D model on a display device of the electronic device.