Display device and computer program

By using the normal vector and the angle of each axis in the three-dimensional space multiplied by the adjustment magnification to calculate the brightness in the display device, the problem of increasing the workload of adjusting the light source position is solved, and a clear display of scars and stripe patterns on the processed surface is achieved, reducing the operator's fatigue. burden.

CN118765406AActive Publication Date: 2024-10-11FANUC LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202280092446.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2022-03-01
Publication Date
2024-10-11
Estimated Expiration
2042-03-01

AI Technical Summary

Technical Problem

When confirming scratches, stripe patterns, etc. on the processed surface, the light source position needs to be adjusted to increase the brightness difference of the polygon, causing the operator to adjust multiple parameters, which increases the workload.

Method used

By providing a normal vector extraction unit, a brightness calculation unit and a display unit in the display device, the brightness of the components of the machining surface is calculated by multiplying the angle formed by the normal vector and each axis of the three-dimensional space by a predetermined adjustment magnification, thereby realizing graphic display. Adjustment of the light source position is avoided.

Benefits of technology

It reduces the operator's workload and can clearly confirm the scratches and stripe patterns on the processed surface without the need to adjust the light source position, improves the brightness difference of the display, and enhances the display effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118765406A_ABST
    Figure CN118765406A_ABST
Patent Text Reader

Abstract

The invention provides a display device and a computer program capable of reducing the burden of an operator. This display device is provided with: a normal vector extraction unit that extracts, on the basis of shape information of a machined surface comprising machined surface constituent elements, normal vectors of the machined surface constituent elements; a brightness calculation unit that calculates the brightness of the machined surface constituent element on the basis of the normal vector; and a display unit that graphically displays the machined surface on the basis of the brightness of the machined surface constituent elements, and the brightness calculation unit calculates the brightness of the machined surface constituent elements on the basis of an adjusted angle obtained by multiplying an angle formed by the normal vector and each axis of a three-dimensional space by a predetermined adjustment magnification.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to a display device and a computer program. Background Art

[0002] In the past, there is a known display device that displays the machined surface of a workpiece by three-dimensional computer graphics (for example, refer to Patent Document 1). The operator observes the result displayed on such a display device and judges the quality of the machined surface based on the concavity and convexity of the machined surface. The quality of the machined surface is judged by observing the difference in brightness of each polygon constituting the machined surface. Therefore, the greater the difference in brightness, the easier it is to observe the concavity and convexity of the machined surface and judge the quality of the machined surface.

[0003] like Figure 5 As shown, in a general method in three-dimensional computer graphics, the brightness of a polygon is determined by the relationship between a direction vector from the polygon toward a light source and a normal vector of the polygon. In this case, in order to increase the difference in brightness between each polygon, it is necessary to adjust the configuration of the light source to an appropriate position relative to the orientation of the processing surface.

[0004] Prior art literature

[0005] Patent Literature

[0006] Patent Document 1: Japanese Patent Application Publication No. 2017-138726 Summary of the invention

[0007] Problems to be solved by the invention

[0008] However, when checking the scratches, stripe patterns, etc. on the processed surface, it is necessary to adjust the position of the light source so as to increase the brightness difference of the polygons constituting the scratches, stripe patterns, etc. However, the adjustment of the position of the light source requires adjustment of multiple parameters, etc., which takes time and effort and becomes a great burden for the operator.

[0009] Means for solving problems

[0010] The display device disclosed in the present invention comprises: a normal vector extraction unit, which extracts the normal vector of the processing surface constituent elements based on the shape information of the processing surface composed of the processing surface constituent elements; a brightness calculation unit, which calculates the brightness of the processing surface constituent elements based on the normal vector; and a display unit, which graphically displays the processing surface based on the brightness of the processing surface constituent elements, and the brightness calculation unit calculates the brightness of the processing surface constituent elements based on an adjusted angle obtained by multiplying the angle formed by the normal vector and each axis of the three-dimensional space by a predetermined adjustment factor.

[0011] In addition, the computer program disclosed in the present invention enables the computer to execute the following steps: a normal vector extraction step, extracting the normal vector of the processing surface constituent elements based on the shape information of the processing surface composed of the processing surface constituent elements; a brightness calculation step, calculating the brightness of the processing surface constituent elements based on the normal vector; and a display step, graphically displaying the processing surface based on the brightness of the processing surface constituent elements, in which the brightness calculation step calculates the brightness of the processing surface constituent elements based on the adjusted angle obtained by multiplying the angle formed by the normal vector and each axis of the three-dimensional space by a predetermined adjustment factor.

[0012] Effects of the Invention

[0013] According to the present disclosure, it is possible to provide a display device and a computer program that can reduce the burden on an operator. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Figure 1 This is a diagram showing an overview of a display device according to an embodiment of the present disclosure.

[0015] Figure 2A This is a diagram for explaining a calculation example of the brightness calculation unit, and is a diagram showing angles formed by the normal vector of the polygon 1 and each axis.

[0016] Figure 2B This is a diagram for explaining a calculation example of the brightness calculation unit, and is a diagram showing adjusted angles obtained by multiplying the angles formed by the normal vector of the polygon 1 and each axis by the adjustment magnification level.

[0017] Figure 2C is a diagram for explaining a calculation example of a brightness calculation unit, and is a diagram showing a calculation example based on Figure 2B A graph of the components of the new angled vector .

[0018] Figure 2D is a diagram for explaining a calculation example of a brightness calculation unit, and is a diagram showing a calculation example based on Figure 2B A graph of the new angled vector.

[0019] Figure 2E is a diagram for explaining a calculation example of the brightness calculation unit. Figure 2D The new vector is normalized.

[0020] Figure 3A This is a diagram for explaining a calculation example of the brightness calculation unit, and is a diagram showing angles formed by the normal vector of the polygon 2 and each axis.

[0021] Figure 3B This is a diagram for explaining a calculation example of the brightness calculation unit, and is a diagram showing adjusted angles obtained by multiplying the angles formed by the normal vector of the polygon 2 and each axis by the adjustment magnification level.

[0022] Figure 3C is a diagram for explaining a calculation example of a brightness calculation unit, and is a diagram showing a calculation example based on Figure 3B A graph of the components of the new angled vector .

[0023] Figure 3D is a diagram for explaining a calculation example of a brightness calculation unit, and is a diagram showing a calculation example based on Figure 3B A graph of the new angled vector.

[0024] Figure 3E is a diagram for explaining a calculation example of the brightness calculation unit. Figure 3D The new vector is normalized.

[0025] Figure 4 This is a diagram showing an example of a method for calculating brightness according to one embodiment of the present disclosure.

[0026] Figure 5 This is a diagram showing an example of a conventional method for calculating brightness.

[0027] Figure 6 This is a display image of a display device according to one embodiment of the present disclosure.

[0028] Figure 7 This is a display image of a conventional display device. DETAILED DESCRIPTION

[0029] An embodiment of the present invention will be described in detail with reference to the drawings.

[0030] Figure 1 1 is a diagram showing an overview of a display device 1 according to the present embodiment. In the present embodiment, a display device 1 and a computer program are provided that do not require position adjustment of a light source and can reduce a burden on an operator.

[0031] The display device 1 is configured using, for example, a computer having a memory such as a ROM (read only memory) and a RAM (random access memory), a CPU (control processing unit), and a communication control unit connected to each other via a bus. Figure 1 As shown, the display device 1 includes a storage unit 11, a normal vector extraction unit 12, a brightness calculation unit 13, a magnification adjustment unit 14, and a display unit 15. The functions and operations of these units are achieved by the cooperation of a CPU, a memory, and a control program stored in the memory mounted on the computer.

[0032] The storage unit 11 stores the shape information of the processed surface composed of the processed surface constituent elements. The shape information of the processed surface is composed of a plurality of element information related to polygons or pixels. The plurality of constituent elements each have a vertex of a polygon or a normal vector of a surface where a polygon or a pixel exists.

[0033] The normal vector extraction unit 12 extracts the normal vector of the processed surface constituent elements based on the shape information of the processed surface. If the shape information does not have a normal vector, the normal vector extraction unit 12 calculates the normal vector from the vertices of the polygon or pixel included in the shape information to extract the normal vector.

[0034] The brightness calculation unit 13 calculates the brightness of the processed surface component based on the adjusted angle obtained by multiplying the angle formed by the normal vector and each axis of the three-dimensional space by a predetermined adjustment magnification. Specifically, the brightness calculation unit 13 calculates the vector of the three-dimensional space based on the adjusted angle, and calculates the brightness of the processed surface component based on the addition result of each component of the three-dimensional space of the vector. The brightness calculation unit 13 calculates the brightness of the processed surface component, for example, by the following method.

[0035] The brightness calculation unit 13 first calculates the angle formed by the normal vector of the polygon or pixel and each of the X-axis, Y-axis, and Z-axis by calculating the inverse trigonometric function. The brightness calculation unit 13 then multiplies each of the calculated angles by a predetermined adjustment factor to calculate the adjusted angle. The brightness calculation unit 13 then calculates a new vector based on the adjusted angle by calculating the trigonometric function. The brightness calculation unit 13 then normalizes the new vector and adds the components of the normalized new vector. The result of this addition is -(3 1 / 2 )~3 1 / 2 Therefore, the brightness calculation unit 13 converts the result of the addition into the range of brightness. When the range of brightness is set to 0.0 to 1.0, the conversion formula is brightness = ((the result of the addition) + 3 1 / 2 ) / (2×3 1 / 2 )express.

[0036] The magnification adjustment unit 14 arbitrarily sets the adjustment magnification used for calculation in the brightness calculation unit 13 according to arbitrary information received by the computer. Thus, the adjustment magnification is appropriately changed. The larger the adjustment magnification is set, the greater the brightness difference is, and a display image with more emphasized brightness can be obtained.

[0037] The display unit 15 graphically displays the processed surface based on the brightness of the components of the processed surface.

[0038] Figure 2A to Figure 2E as well as Figure 3A to Figure 3EThe diagrams are for explaining a calculation example of the brightness calculation unit 13. Here, the normal vectors of two polygons 1 and 2 arranged adjacent to each other are taken as an example for explanation. In addition, in these diagrams, the Z axis is omitted for convenience.

[0039] Figure 2A It is a diagram showing the angles formed by the normal vector of polygon 1 and each axis. Figure 3A is a graph showing the angles formed by the normal vector of polygon 2 and the axes. Figure 2A As shown, the brightness calculation unit 13 calculates the angles (α1, β1, γ1) formed by the normal vector (x1, y1, z1) of the polygon 1 and each of the X-axis, Y-axis, and Z-axis as α1=arccos(x1 / 1), β1=arccos(y1 / 1), and γ1=arccos(z1 / 1) by calculating the inverse trigonometric function. Figure 3A As shown, the brightness calculation unit 13 calculates the angles (α2, β2, γ2) formed by the normal vector (x2, y2, z2) of polygon 2 and each of the X-axis, Y-axis, and Z-axis by calculating the inverse trigonometric function as α2=arccos(x2 / 1), β2=arccos(y2 / 1), and γ2=arccos(z2 / 1).

[0040] Figure 2B This is a diagram showing the adjusted angles obtained by multiplying the angles formed by the normal vector of polygon 1 and each axis by the adjustment magnification level. Figure 3B This is a diagram showing the adjusted angles after multiplying the angles formed by the normal vector of polygon 2 and each axis by the adjustment factor level. Figure 2B As shown, the brightness calculation unit 13 calculates Figure 2A Each of the angles (α1, β1, γ1) calculated in this way is multiplied by the predetermined adjustment magnification level, and the adjusted angles (α1', β1', γ1') are calculated as α1'=level×α1, β1'=level×β1, γ1'=level×γ1. Figure 3B As shown, the brightness calculation unit 13 calculates Figure 3A Each of the angles (α2, β2, γ2) calculated in this way is multiplied by a predetermined adjustment magnification level, and the adjusted angles (α2', β2', γ2') are calculated as α2'=level×α2, β2'=level×β2, γ2'=level×γ2. The adjustment magnification level is set to 2 or 5, for example.

[0041] Figure 2C Is based on Figure 2B A graph of the components of the new angled vector . Figure 3C Is based on Figure 3BThe graph of the components of the new vector with adjusted angles. Figure 2C As shown, the brightness calculation unit 13 calculates the components of the new vector (x1', y1', z1') as x1'=cos(α1')×1, y1'=cos(β1')×1, z1'=cos(γ1')×1 according to the adjusted angle (α1', β1', γ1') by calculating the trigonometric function. Figure 3C As shown, the brightness calculation unit 13 calculates the components of the new vector (x2', y2', z2') as x2'=cos(α2')×1, y2'=cos(β2')×1, z2'=cos(γ2')×1 based on the adjusted angles (α2', β2', γ2') by calculating trigonometric functions.

[0042] Figure 2D Is based on Figure 2B A graph of the new angled vector. Figure 3D Is based on Figure 3B The new vector of the adjusted angle is shown in Figure 1. Figure 2D As shown, the brightness calculation unit 13 calculates the brightness of Figure 2C The new vector is obtained by calculating the components in this way. Figure 3D As shown, the brightness calculation unit 13 calculates the brightness of Figure 3C The new vector is obtained by calculating each component in this way.

[0043] Figure 2E Yes Figure 2D The new vector is normalized. Figure 3E Yes Figure 3D The new vector is normalized. Figure 2E As shown, the brightness calculation unit 13 normalizes the new vector (x1', y1', z1') and adds the components of the normalized new vector (x1", y1", z1"). Similarly, Figure 3E As shown, the brightness calculation unit 13 normalizes the new vector (x2', y2', z2') and adds the components of the normalized new vector (x2", y2", z2").

[0044] Here, the brightness calculation unit 13 converts the result of the addition of x1"+y1"+z1" into a brightness range. When the brightness range is set to 0.0 to 1.0, the conversion formula is brightness = ((x1"+y1"+z1") + 3 1 / 2 ) / (2×3 1 / 2 ). Similarly, the brightness calculation unit 13 converts the result of the addition of x2"+y2"+z2" into a brightness range. When the brightness range is set to 0.0 to 1.0, the conversion formula is brightness = ((x2"+y2"+z2")+31 / 2 ) / (2×3 1 / 2 )express.

[0045] Figure 6 is a display image of the display device 1 of this embodiment. Figure 7 is a display image of an existing display device. In addition, Figure 6 is the display image when the above adjustment magnification level is set to 5. Figure 6 The display image of the display device 1 of the present embodiment shown in FIG. Figure 7 Compared with the display image of the conventional display device shown, the scratches and streak patterns on the processed surface can be clearly confirmed.

[0046] According to this embodiment, the following effects are achieved.

[0047] In the display device 1 of the present embodiment, there are provided: a normal vector extraction unit 12, which extracts the normal vector of the processed surface constituent element based on the shape information of the processed surface composed of the processed surface constituent elements; a brightness calculation unit 13, which calculates the brightness of the processed surface constituent element based on the normal vector; and a display unit 15, which graphically displays the processed surface based on the brightness of the processed surface constituent element. In addition, the brightness calculation unit 13 is configured to calculate the brightness of the processed surface constituent element based on the adjusted angle obtained by multiplying the angle formed by the normal vector and each axis of the three-dimensional space by a predetermined adjustment magnification.

[0048] Therefore, according to the display device 1 of this embodiment, Figure 5 The existing brightness calculation methods shown are different, such as Figure 4 As shown, the brightness can be calculated based on the normal vector alone, regardless of the light source. Therefore, according to this embodiment, unlike the conventional brightness calculation method, it is not necessary to adjust the light source to an appropriate position, and the burden on the operator can be reduced.

[0049] In particular, according to the present embodiment, when the normal vector is only slightly tilted, when the polygon is small and the brightness difference is insufficient, when the light source illuminates the step perpendicularly, when there is a light source on the bisector of the angle formed by adjacent polygons and the brightness difference is insufficient, etc., it is possible to clearly confirm scratches, stripe patterns, etc. on the processed surface compared to the past.

[0050] In the display device 1 of the present embodiment, the shape information is composed of a plurality of element information related to the polygon or the pixel, and each of the plurality of element information has a normal vector of the surface where the polygon or the pixel exists.

[0051] Thus, even when the shape information is composed of a plurality of element information related to polygons or pixels, the above-mentioned effect can be reliably obtained. That is, the present disclosure can be applied as long as it is shape information that can identify a surface.

[0052] Furthermore, the display device 1 of the present embodiment is further provided with a magnification adjustment unit 14 for setting an adjustment magnification.

[0053] Thus, the magnification adjustment unit 14 can arbitrarily change the adjustment magnification, and thus a display image in which the brightness difference is emphasized can be obtained.

[0054] In the display device 1 of the present embodiment, the brightness calculation unit 13 calculates a vector in a three-dimensional space based on the adjusted angle, and calculates the brightness of the processed surface constituent element based on the addition result of each component of the vector in the three-dimensional space.

[0055] Thereby, the above-mentioned effects can be reliably obtained.

[0056] In addition, in the present embodiment, as a computer program for causing the above-mentioned display device 1 to operate, the computer constituting the display device 1 is caused to execute the following steps: a normal vector extraction step of extracting the normal vector of the processing surface constituent element based on the shape information of the processing surface constituted by the processing surface constituent elements; a brightness calculation step of calculating the brightness of the processing surface constituent element based on the normal vector; and a display step of graphically displaying the processing surface based on the brightness of the processing surface constituent element. In addition, in the brightness calculation step, the brightness of the processing surface constituent element is calculated based on the adjusted angle obtained by multiplying the angle formed by the normal vector and each axis of the three-dimensional space by a predetermined adjustment magnification.

[0057] Therefore, according to the computer program of this embodiment, the same effects as those described above can be obtained.

[0058] In addition, the present disclosure is not limited to the above-mentioned embodiments, and modifications and improvements within the scope that can achieve the purpose of the present disclosure are included in the present disclosure.

[0059] The display device disclosed in the present invention can be applied to a display device of a common external computer, for example, the display device disclosed in the present invention can be applied as a display unit in a processing simulation device. In this way, when the display device disclosed in the present invention is applied to a display unit in a processing simulation device, after executing the processing simulation, the unevenness, scratches, etc. of the processing surface can be evaluated with high precision.

[0060] Explanation of symbols

[0061] 1 display device,

[0062] 11 Storage unit,

[0063] 12Normal vector extraction unit,

[0064] 13Brightness calculation unit,

[0065] 14x ratio adjustment unit,

[0066] 15. Display unit.

Claims

1. A display device, characterized in that: have: a normal vector extraction unit for extracting a normal vector of a processing surface constituent element based on shape information of the processing surface constituted by the processing surface constituent elements; a brightness calculation unit, which calculates the brightness of the processing surface component according to the normal vector; as well as a display unit for graphically displaying the processed surface according to the brightness of the components of the processed surface; The brightness calculation unit calculates the brightness of the processed surface constituent element based on an adjusted angle obtained by multiplying an angle formed by the normal vector and each axis of the three-dimensional space by a predetermined adjustment factor.

2. The display device according to claim 1, characterized in that The shape information is composed of a plurality of element information related to polygons or pixels. The plurality of element information respectively include normal vectors of the polygon or the surface where the pixel is located.

3. The display device according to claim 1 or 2, characterized in that: The display device further includes a magnification adjustment unit that sets the adjustment magnification.

4. The display device according to any one of claims 1 to 3, characterized in that: The brightness calculation unit calculates a vector in a three-dimensional space based on the adjusted angle, and calculates the brightness of the processed surface constituent element based on an addition result of each component of the vector in the three-dimensional space.

5. A computer program, characterized in that Have your computer perform the following steps: A normal vector extraction step, extracting the normal vector of the processing surface constituent elements according to the shape information of the processing surface constituted by the processing surface constituent elements; A brightness calculation step, calculating the brightness of the components of the processing surface according to the normal vector; as well as A display step, graphically displaying the processed surface according to the brightness of the components of the processed surface, In the brightness calculation step, the brightness of the processed surface constituent element is calculated based on an adjusted angle obtained by multiplying an angle formed by the normal vector and each axis of the three-dimensional space by a predetermined adjustment factor.

Citation Information

Patent Citations

  • Face plate pattern finish simulation system and face plate pattern finish simulation method

    JP2017138726A

  • Method and device for displaying article

    JP2000235589A

  • Gloss expression method

    JP2004234524A

  • Brightness control system, brightness control assisting device, brightness control method, brightness control assisting method and program

    JP2014212422A

  • IMAGE PROCESSING DEVICE, CONTROL METHOD AND PROGRAM OF IMAGE PROCESSING DEVICE

    JP4031509B1