Display device and computer program product
The brightness is calculated by multiplying the angle between the normal vector of the component of the processing surface and the three-dimensional space by the adjustment magnification, which solves the problem of cumbersome light source position adjustment, realizes efficient brightness difference display without light source adjustment, and improves the clarity of processing surface observation.
Patent Information
- Application Number
- CN202280092446.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-01
- Publication Date
- 2025-09-23
- Estimated Expiration
- 2042-03-01
AI Technical Summary
In the prior art, adjusting the light source position to increase the polygon brightness difference requires adjusting multiple parameters, which places a heavy burden on the operator and makes it difficult to clearly observe the scars and stripe patterns on the processed surface under certain conditions.
By extracting the normal vector of the processing surface component, the brightness is calculated according to the angle between the normal vector and the three-dimensional space multiplied by the predetermined adjustment factor, and the graphic display is performed through the display unit, reducing the dependence on the position of the light source.
This allows for increased brightness differences without adjusting the light source position, reducing the burden on operators, clearly displaying scratches and streak patterns on the processed surface, and improving observation accuracy.
Smart Images

Figure CN118765406B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to a display device and a computer-readable medium storing a computer program. Background Art
[0002] Previously, there are known display devices that display the machined surface of a workpiece using three-dimensional computer graphics (for example, see Patent Document 1). The operator observes the results displayed on such a display device and judges the quality of the machined surface based on the unevenness of the machined surface. The quality of the machined surface is judged by observing the brightness difference between the polygons that constitute the machined surface. Therefore, the greater the brightness difference, the easier it is to observe the unevenness of the machined surface and judge the quality of the machined surface.
[0003] like Figure 5 As shown in the figure, in a common method for 3D computer graphics, the brightness of a polygon is determined by the relationship between the direction vector from the polygon toward the light source and the 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 position 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 Laid-Open No. 2017-138726 Summary of the Invention
[0007] Problems to be solved by the invention
[0008] However, when checking for scratches or streaks on a machined surface, the position of the light source must be adjusted to increase the brightness difference between the polygons that form the scratches or streaks. However, adjusting the position of the light source requires adjusting multiple parameters, which is labor-intensive and places a significant burden on the operator.
[0009] Means for solving problems
[0010] The display device disclosed in the present invention includes: 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 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.
[0011] In addition, the computer-readable medium storing a 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 magnification.
[0012] Effects of the Invention
[0013] According to the present disclosure, it is possible to provide a display device capable of reducing the burden on an operator and a computer-readable medium storing a computer program. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 A diagram schematically illustrating a display device according to an embodiment of the present disclosure.
[0015] Figure 2A This is a diagram 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 explaining a calculation example of the brightness calculation unit, and shows adjusted angles obtained by multiplying the angles formed between the normal vector of the polygon 1 and each axis by the adjustment magnification level.
[0017] Figure 2C This figure explains an example of calculation by the brightness calculation unit. Figure 2B A graph of the components of the new angled vector .
[0018] Figure 2D This figure explains an example of calculation by the brightness calculation unit. Figure 2B A graph of the new angled vector.
[0019] Figure 2E This figure explains the 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 3BThis is a diagram explaining a calculation example of the brightness calculation unit, and shows adjusted angles obtained by multiplying the angles formed between the normal vector of the polygon 2 and each axis by the adjustment magnification level.
[0022] Figure 3C This figure explains an example of calculation by the brightness calculation unit. Figure 3B A graph of the components of the new angled vector .
[0023] Figure 3D This figure explains an example of calculation by the brightness calculation unit. Figure 3B A graph of the new angled vector.
[0024] Figure 3E This figure explains the 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 the 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 accompanying drawings.
[0030] Figure 1 1 is a diagram schematically showing a display device 1 according to the present embodiment. In the present embodiment, a display device 1 that does not require position adjustment of a light source and can reduce a burden on an operator, and a computer-readable medium storing a computer program are provided.
[0031] The display device 1 is configured using, for example, a computer having memories 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 through 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 the surface where the polygon or pixel is located.
[0033] The normal vector extraction unit 12 extracts normal vectors of the machined surface components based on the shape information of the machined surface. If the shape information does not contain normal vectors, the normal vector extraction unit 12 calculates normal vectors from the vertices of polygons or pixels contained in the shape information to extract normal vectors.
[0034] The brightness calculation unit 13 calculates the brightness of the processed surface component based on the adjusted angle, which is obtained by multiplying the angle formed by the normal vector and each axis in three-dimensional space by a predetermined adjustment factor. Specifically, the brightness calculation unit 13 calculates the brightness of the processed surface component based on the adjusted angle, and then calculates the brightness of the processed surface component based on the sum of the three-dimensional components of the vector. The brightness calculation unit 13 calculates the brightness of the processed surface component using, for example, 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 based on arbitrary information received by the computer. This allows the adjustment magnification to be appropriately changed. The larger the adjustment magnification, the greater the brightness difference, resulting in a display image with more emphasized brightness.
[0037] The display unit 15 graphically displays the processed surface based on the brightness of the components of the processed surface.
[0038] Figures 2A to 2E as well as Figures 3A to 3EThese are diagrams illustrating calculation examples of the brightness calculation unit 13. Here, the normal vectors of two adjacent polygons 1 and 2 are used as an example for explanation. In addition, in these diagrams, the Z axis is omitted for convenience.
[0039] Figure 2A : This is a diagram showing the angles formed by the normal vector of polygon 1 and each axis. Figure 3A is a diagram showing the angles formed by the normal vector of polygon 2 and each axis. Figure 2A As shown, the brightness calculation unit 13 calculates the angles (α1, β1, γ1) formed by the normal vector (x1, y1, z1) of polygon 1 and each of the X-axis, Y-axis, and Z-axis by calculating the inverse trigonometric function as α1 = arccos (x1 / 1), β1 = arccos (y1 / 1), and γ1 = arccos (z1 / 1). Similarly, 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 diagram shows the adjusted angles obtained by multiplying the angles formed between the normal vector of polygon 1 and each axis by the adjustment magnification level. Figure 3B This is a diagram showing the adjusted angles obtained by multiplying the angles formed between the normal vector of polygon 2 and each axis by the adjustment magnification 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 levels are 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 based on the adjusted angle (α1', β1', γ1') by calculating the trigonometric function. Similarly, 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, and 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 the 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 the Figure 3C The new vector is obtained by calculating each component in this way.
[0043] Figure 2E It will Figure 2D The new vector is normalized. Figure 3E It will 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 ) is represented by . Similarly, the brightness calculation unit 13 converts the result of the addition of x2"+y2"+z2" into the range of brightness. When the range of brightness 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 the display image of the existing display device. Figure 6 This is the display image when the adjustment magnification level is set to 5. Figure 6 The display image of the display device 1 of this embodiment shown is 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] The display device 1 of this embodiment includes a normal vector extraction unit 12 that extracts normal vectors of the machined surface components based on shape information of the machined surface components; a brightness calculation unit 13 that calculates the brightness of the machined surface components based on the normal vectors; and a display unit 15 that graphically displays the machined surface based on the brightness of the machined surface components. The brightness calculation unit 13 is configured to calculate the brightness of the machined surface components based on an adjusted angle obtained by multiplying the angle formed by the normal vector and each axis of three-dimensional space by a predetermined adjustment factor.
[0048] Thus, according to the display device 1 of this embodiment, Figure 5 The existing brightness calculation method shown is 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 conventional brightness calculation methods, there is no need to adjust the light source to an appropriate position, which can reduce the burden on the operator.
[0049] In particular, according to this 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 the scratches, stripe patterns, etc. on the processed surface compared to the past.
[0050] In the display device 1 of the present embodiment, shape information is composed of a plurality of element information related to polygons or pixels, and each of the plurality of element information includes a normal vector of the surface where the polygon or pixel exists.
[0051] This ensures that the above-mentioned effects can be achieved even when the shape information is composed of multiple element information related to polygons or pixels. In other words, the present disclosure can be applied to any 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] As a result, 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 this 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 component based on the addition result of each three-dimensional spatial component of the vector.
[0055] Thereby, the above-mentioned effects can be reliably obtained.
[0056] In addition, in this embodiment, a computer-readable medium storing a computer program for operating the display device 1 is provided. The computer program stored in the computer-readable medium causes the computer constituting the display device 1 to execute the following steps: a normal vector extraction step of extracting the normal vectors of the processed surface components based on shape information of the processed surface components; a brightness calculation step of calculating the brightness of the processed surface components based on the normal vectors; and a display step of graphically displaying the processed surface based on the brightness of the processed surface components. Furthermore, in the brightness calculation step, the brightness of the processed surface components is calculated 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.
[0057] Therefore, according to the computer-readable medium storing 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-described embodiment, 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 herein can be used as a display device for a typical external computer. For example, it can be used as a display unit in a machining simulation device. Thus, when the display device disclosed herein is used as a display unit in a machining simulation device, after executing a machining simulation, it is possible to accurately evaluate the unevenness, scratches, and other features of the machined surface.
[0060] Explanation of symbols
[0061] 1 display device,
[0062] 11 Storage Department,
[0063] 12Normal vector extraction unit,
[0064] 13. Brightness calculation unit,
[0065] 14. 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 machined surface component based on shape information of the machined surface component; a brightness calculation unit for calculating the brightness of the component of the processing surface based on 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 component 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 magnification. The shape information is composed of a plurality of element information related to polygons or pixels. The plurality of element information items respectively include normal vectors of the polygon or the surface where the pixel is located.
2. The display device according to claim 1, wherein The display device further includes a magnification adjustment unit that sets the adjustment magnification.
3. The display device according to claim 1 or 2, 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 a summation result of each component of the vector in the three-dimensional space.
4. A computer program product, characterized in that Have your computer perform the following steps: a normal vector extraction step of extracting the normal vectors of the machined surface constituent elements based on shape information of the machined surface constituted by the machined surface constituent elements; a brightness calculation step of calculating the brightness of the components of the processing surface according to the normal vector; as well as A display step is performed to graphically display the processing surface according to the brightness of the components of the processing surface. In the brightness calculation step, the brightness of the processed surface component 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 magnification. The shape information is composed of a plurality of element information related to polygons or pixels. The plurality of element information items respectively include normal vectors of the polygon or the surface where the pixel is located.
Citation Information
Patent Citations
Face plate pattern finish simulation system and face plate pattern finish simulation method
JP2017138726A
Brightness control system, brightness control assisting device, brightness control method, brightness control assisting method and program
JP2014212422A