1. Technical Field
Embodiments of the present disclosure relate to the field of computer aided design (CAD) methods, and more particularly to a system and method for adjusting view of graphical representations of an object in a measuring report.
2. Description of Related Art
Three-dimensional (3D) measurement machines are widely used to measure the shape of an object. Such 3D measurement machine measures an object according to a set of spatial coordinates of points on the object by contacting a probe on the surface of the object at those points and building a 3D graphical representation of the surface based on the coordinates. The graphic of the surface can then be compared with a designed standard surface of the object. After measurement, the 3D measurement machine outputs a 3D measuring report. The 3D measuring report includes the graphic representation coded with different colors indicating variance from the designed standard surface. Unfortunately, the viewing angle of the 3D graphic representation is fixed once it is outputted in the measuring report, making it difficult to properly analyze differences.
Therefore, there is a need for a system and method which can overcome the above-mentioned problems.
All of the processes described below may be embodied in, and fully automated via, function modules executed by one or more general purpose computers or processors. The code modules may be stored in any type of computer-readable medium or other computer storage device. Some or all of the methods may alternatively be embodied in specialized computer hardware.
The database system 10 is electronically connected to the computer 20 and is operable to store data regarding a surface of an object. It may be understood that the object is a computer aided design (CAD) model. In one embodiment, the surface may be represented by a set of dense triangles (hereinafter, referred to as “the triangulated surface”). Such data on the triangulated surface may include vertex coordinates of each triangle on the surface, vector correlations of the three vertices of each triangle, and normal vectors of each triangle. The database system 10 is further operable to store data regarding a point-cloud of the object scanned by a 3D scanner (not shown in
The display device 30 displays the triangulated surface, the point-cloud, and outputs a measuring report. A user can then view the measurement results and make informed decisions based on the measurement results.
In one embodiment, the computer 20 comprises a defining module 210, a reading module 211, a determining module 212, a color assigning module 213, and a report outputting module 214. The modules 210-214 may be stored in a storage system 230 and comprise one or more computerized operations that are executable by a processor 215.
The defining module 210 is operable to define a plurality of tolerance ranges for an area of the surface of the object having a tolerance in a predetermined range. The surface of the object comprises a triangulated surface of the object having a plurality of triangles. A unique color is further defined by the defining module 210 for distinguishing each of the tolerance ranges. For example, a color of blue-black is assigned to a first tolerance range [−0.14 mil, −0.12 mil], a color of bright-yellow is assigned to a second tolerance range [+0.12 mil, +0.14 mil]. It is noted that, in this embodiment, tolerance values between the minimum boundary value and the maximum boundary value are regarded as allowable errors.
The reading module 211 is operable to read data of the point-cloud and the triangulated surface of the object from the database system 10. In one embodiment, the data of the triangulated surface comprises coordinates of each point in the triangulated surface, and the data of the point-cloud comprise coordinates of each point in the point-cloud.
The determining module 212 is operable to set parameters to determine a position and an angle of the point-cloud and the triangulated surface in a coordinate system. In one embodiment, the parameters include a user-selected position of the coordinates and a user-selected angle for viewing the point-cloud and the triangulated surface. The determining module 212 moves the point-cloud and the triangulated surface along each axis direction of the coordinate system to a user-selected position. For example, assuming the coordinates of the user-selected position are (2, 3, 4), the determining module 212 respectively moves the point-cloud and the triangulated surface along the X-axis, Y-axis and Z-axis to the coordinates (2, 3, 4). The determining module 212 allows rotations of the point-cloud and the triangulated surface along each axis direction (e.g., X-axis, Y-axis and Z-axis) at any desired angle.
The reading module 211 is further operable to read a nearest distance between each triangle and a nearest point in the point-cloud.
The color assigning module 213 is operable to assign a color to each triangle according to the colors assigned to the tolerance ranges in which each nearest distance falls. In one embodiment, for example, if the nearest distance between a triangle and a corresponding nearest point in the point-cloud of the object falls in the tolerance range [−0.14 mil, −0.12 mil], then the color assigning module 213 assigns the color of blue-black to the triangle.
Furthermore, the reading module 211 is operable to read an outline curve of the triangulated surface.
The report outputting module 214 is operable to output the measuring report. In one embodiment, the measuring report comprises the triangulated surface with the color of each triangle, and the outline curve of the triangulated surface. In one embodiment, the outputting module 214 outputs a measuring report as shown in
In block S102, the reading module 211 reads data of the point-cloud and the triangulated surface of the object from the database system 10. As mentioned above, the data of the triangulated surface comprises coordinates of each point in the triangulated surface, and the data of the point-cloud of the object comprise coordinates of each point in the point-cloud.
In block S103, the determining module 212 sets parameters to determine a position and an angle of the point-cloud and the triangulated surface in a coordinate system. As mentioned above, the parameters include a user-selected position of the coordinates and a user-selected angle for viewing the point-cloud and the triangulated surface. The determining module 212 moves the point-cloud and the triangulated surface along each axis direction of the coordinate system to a user-selected position.
In block S104, the reading module 211 also reads a nearest distance between each triangle and a nearest point in the point-cloud.
In block S105, the color assigning module 213 assigns a color to each triangle according to the colors assigned to the tolerance ranges in which each nearest distance falls. As mentioned above, if the nearest distance between each triangle and a nearest point in the point-cloud of the object falls in the tolerance range [−0.14 mil, −0.12 mil], then the color assigning module 216 assigns the color of blue-black to the triangle.
In block S106, the reading module 211 further reads an outline curve of the triangulated surface.
In block S107, The report outputting module 214 outputs the measuring report of the object. The measuring report comprises the triangulated surface with the color of each triangle, and the outline curve of the triangulated surface. As mentioned above, the outputting module 214 outputs a measuring report as shown in
Although certain inventive embodiments of the present disclosure have been specifically described, the present disclosure is not to be construed as being limited thereto. Various changes or modifications may be made to the present disclosure without departing from the scope and spirit of the present disclosure.
Number | Date | Country | Kind |
---|---|---|---|
200810301709.X | May 2008 | CN | national |