A method and device for displaying three-dimensional graphics of parts and providing graphic data
By rendering and displaying the three-dimensional graphics of components based on the display selection control, the problem of the three-dimensional graphics of components with different attributes in the existing technology is solved, and a more accurate, intuitive and convenient display effect is achieved.
Patent Information
- Application Number
- CN201910356652.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-04-29
- Publication Date
- 2025-03-04
- Estimated Expiration
- 2039-04-29
AI Technical Summary
The prior art is difficult to display different properties of components through three-dimensional graphics preview, which leads to users being unable to accurately understand the actual appearance of components, which brings inconvenience to users.
A method and device are provided that allows the user to select different attributes of a component by displaying the selection controls and render and display the three-dimensional graphics of the component according to the attributes selected by the user, including material, surface processing technology, texture maps, surface roughness, metallicity and bump maps.
It realizes the rendered three-dimensional graphics of components based on different attributes selected by the user, enhances the display effect, making the three-dimensional graphics of components more accurate, intuitive and convenient during the display process, and users can preview components with different attributes.
Smart Images

Figure CN111862283B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of three-dimensional graphics processing of parts, and in particular to a method and device for displaying three-dimensional graphics of parts and providing graphic data. Background Art
[0002] With the rapid development of computer technology and network technology, the application research of three-dimensional graphics has attracted more and more attention. Three-dimensional images are a type of flat images that can make people feel the three-dimensional effect, and their application fields are becoming more and more extensive.
[0003] Existing applications for displaying three-dimensional graphics of parts usually display pre-designed three-dimensional graphics of parts according to the type or model of the parts selected by the user. It is well known that even for parts of the same type, when they have different properties (for example, different materials or surface processing techniques), the appearance of the actual product is different. However, existing applications for displaying graphics of parts either do not provide options for users to choose from for different properties of parts, or even if options corresponding to different properties of parts are provided, the options are not related to the displayed three-dimensional graphics of the parts. When the user selects options with different properties, the displayed three-dimensional graphics of the parts are always the same. As a result, the user cannot understand the actual appearance of the parts by previewing the graphics, which brings a lot of inconvenience to the user.
[0004] With respect to the technical problem in the prior art that users cannot preview three-dimensional graphics of parts with different attributes, no effective solution has been proposed so far. Summary of the invention
[0005] The embodiments of the present disclosure provide a method for displaying a three-dimensional graphic of a component, so as to at least solve the problems existing in the prior art.
[0006] According to one aspect of an embodiment of the present disclosure, a method for displaying a three-dimensional graphics of a component is provided, comprising: displaying a selection control, wherein the selection control is used to provide a user with at least one optional attribute of the component; in response to a user triggering an operation of the selection control, determining the attribute of the component selected by the user; and displaying the three-dimensional graphics of the component.
[0007] According to another aspect of an embodiment of the present disclosure, a method for providing graphic data is provided, comprising: receiving optional attribute information of a component selected by a user from a terminal device; determining graphic data for rendering three-dimensional graphics of the component based on the received optional attribute information, wherein the graphic data corresponds to the attribute selected by the user; and sending the graphic data to the terminal device.
[0008] According to another aspect of the embodiment of the present disclosure, a storage medium is provided, the storage medium includes a stored program, wherein when the program is running, a processor executes any of the above methods.
[0009] According to another aspect of an embodiment of the present disclosure, there is provided a device for displaying a three-dimensional graphics of a component, comprising: a selection control display module for displaying a selection control, wherein the selection control is used to provide a user with at least one optional attribute of the component; a component attribute determination module for determining the attribute of the component selected by the user in response to an operation of the user triggering the selection control; and a three-dimensional graphics display module for displaying a three-dimensional graphics of the component, wherein the three-dimensional graphics is rendered according to the attribute selected by the user.
[0010] According to another aspect of an embodiment of the present disclosure, a device for providing graphic data is provided, including: an attribute information receiving module for receiving optional attribute information of a component selected by a user from a terminal device; a graphic data determination module for determining graphic data for rendering a three-dimensional graphic of the component based on the received optional attribute information, wherein the graphic data corresponds to the optional attribute selected by the user; and a graphic data sending module for sending the graphic data to the terminal device.
[0011] In the embodiments of the present disclosure, the three-dimensional graphics of the parts are rendered according to different selected rendering attributes, wherein the rendering attributes include the material of the parts; the surface processing technology of the parts; the texture map of the parts; the surface roughness of the parts; the metalness of the parts; and the bump map of the parts. The three-dimensional graphics of the rendered parts can be displayed according to the different selected attributes, which enhances the display effect of the three-dimensional graphics of the parts, making the three-dimensional graphics of the parts more accurate, intuitive, and convenient during the display process, and having a better display effect. Thus, the user can preview the three-dimensional graphics of the parts with different attributes. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] The drawings described herein are used to provide a further understanding of the present disclosure and constitute a part of the present application. The illustrative embodiments of the present disclosure and their descriptions are used to explain the present disclosure and do not constitute an improper limitation on the present disclosure. In the drawings:
[0013] Figure 1 is a hardware structure block diagram for implementing the method according to Embodiment 1 of the present disclosure;
[0014] Figure 2 is a schematic diagram of a system for displaying three-dimensional graphics of components according to Embodiment 1 of the present disclosure;
[0015] Figure 3 is a flow chart of a method for displaying a three-dimensional graphic of a component according to the first aspect of Embodiment 1 of the present disclosure;
[0016] Figure 4 is a schematic diagram of a display selection control according to the first aspect of Embodiment 1 of the present disclosure;
[0017] Figure 5 is a schematic diagram of displaying rendered three-dimensional graphics according to the first aspect of Embodiment 1 of the present disclosure;
[0018] Figure 6 is a schematic diagram of a display selection control according to the first aspect of Embodiment 1 of the present disclosure;
[0019] Figure 7 is a schematic diagram of displaying rendered three-dimensional graphics according to the first aspect of Embodiment 1 of the present disclosure;
[0020] Figure 8 is a schematic diagram of a display selection control according to the first aspect of Embodiment 1 of the present disclosure;
[0021] Fig. 9 is a three-dimensional graphic of a component according to the first aspect of Embodiment 1 of the present disclosure;
[0022] Fig.10 It is a three-dimensional geometric surface figure of the component according to the first aspect of embodiment 1 of the present disclosure;
[0023] Fig.11 is a geometric contour edge line graphic of a component according to the first aspect of embodiment 1 of the present disclosure;
[0024] Fig.12 is a three-dimensional graphic of a component according to the first aspect of Embodiment 1 of the present disclosure;
[0025] Fig.13 is a geometric contour edge line graphic of a component according to the first aspect of embodiment 1 of the present disclosure;
[0026] Fig.14 It is the geometric outline edge graphic of an existing component;
[0027] Fig.15 It is the geometric outline edge graphic of an existing component;
[0028] Fig.16 It is the geometric outline edge graphic of an existing component;
[0029] Fig.17 is a flow chart of a method for displaying a three-dimensional graphic of a component according to the second aspect of Embodiment 1 of the present disclosure;
[0030] Fig.18is a schematic diagram of a device for displaying three-dimensional graphics of parts according to the first aspect of Embodiment 2 of the present disclosure;
[0031] Fig.19 is a schematic diagram of an apparatus for providing graphic data according to the second aspect of Embodiment 2 of the present disclosure;
[0032] Fig. 20 is a schematic diagram of a device for displaying three-dimensional graphics of parts according to the first aspect of Embodiment 3 of the present disclosure; and
[0033] Fig.21 It is a schematic diagram of the device for providing graphic data according to the second aspect of Embodiment 3 of the present disclosure. DETAILED DESCRIPTION
[0034] In order to enable those skilled in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only embodiments of a part of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without making creative work should fall within the scope of protection of the present disclosure.
[0035] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product, or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products, or devices.
[0036] Example 1
[0037] According to this embodiment, a method embodiment of displaying three-dimensional graphics of parts is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0038] The method embodiment provided in this embodiment can be executed in a mobile terminal, a computer terminal or a similar computing device. Figure 1The hardware structure block diagram of a computer terminal (or mobile device) for displaying three-dimensional graphics of parts is shown. Figure 1 As shown, the computer terminal 10 (or mobile device 10) may include one or more (102a, 102b, ..., 102n are used to illustrate) processors 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 104 for storing data, and a transmission module 106 for communication functions. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the I / O interface), a network interface, a power supply and / or a camera. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.
[0039] It should be noted that the one or more processors 102 and / or other data processing circuits described above may generally be referred to herein as "data processing circuits". The data processing circuits may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuit may be a single independent processing module, or may be incorporated in whole or in part into any of the other components in the computer terminal 10 (or mobile device). As involved in the embodiments of the present disclosure, the data processing circuit acts as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).
[0040] The memory 104 can be used to store software programs and modules of application software, such as the program instructions / data storage device corresponding to the method for modifying the dimensioning in the embodiment of the present disclosure. The processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, the method for displaying the three-dimensional graphics of the parts of the above-mentioned application program. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the computer terminal 10 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0041] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the computer terminal 10. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0042] The display may be, for example, a touch screen liquid crystal display (LCD) that enables a user to interact with a user interface of the computer terminal 10 (or mobile device).
[0043] It should be noted that, in some optional embodiments, the above Figure 1 The computer device (or mobile device) shown may include hardware elements (including circuits), software elements (including computer code stored on a computer-readable medium), or a combination of hardware elements and software elements. It should be noted that Figure 1 This is merely one example of a particular embodiment and is intended to illustrate the types of components that may be present in the above-described computer device (or mobile device).
[0044] Figure 2 1 is a schematic diagram of a system for displaying three-dimensional graphics of components according to the present embodiment. The system can be used to view and select optional attributes of three-dimensional graphics of industrial components on a terminal device 100, wherein the optional attributes include at least one of the following attributes: the material of the component; the surface processing technology of the component; the texture map of the component; the surface roughness of the component; the metalness of the component; and the bump map of the component. Figure 2 As shown, the system includes: a terminal device 100 and a server 200. The server 200 is a server of the system, and the terminal device 100 can interact with the server 200. The terminal device 100 is used to view the three-dimensional graphics of the parts and select optional attributes, so as to render the three-dimensional graphics of the parts according to the selected optional attributes and display them on the terminal device 100. It should be noted that the terminal device 100 and the server 200 in the system can both be applicable to the hardware structure described above.
[0045] In the above operating environment, according to the first aspect of this embodiment, a method for displaying a three-dimensional graphic of a component is provided. For example, the method can be performed by Figure 2 The terminal device 100 shown in FIG. Figure 3 A schematic diagram showing the process of the method is shown in FIG. Figure 3As shown, the method includes:
[0046] S302: Displaying a selection control, wherein the selection control is used to provide at least one optional attribute of a component to a user;
[0047] S304: In response to the user triggering the operation of selecting the control, determining the properties of the component selected by the user; and
[0048] S306: Displaying a three-dimensional graphic of the component, wherein the three-dimensional graphic is rendered according to the attributes selected by the user.
[0049] Specifically, refer to Figure 2 and Figures 4 to 8 As shown, a selection control is displayed on the terminal device 100, wherein the selection control is used to provide the user with at least one optional attribute of the component. Figures 4 to 8 , the user can trigger the selection controls 44-46 to select at least one optional attribute of the component. In response to the user triggering the selection control 41, the terminal device 100 accepts the user's operation of selecting an attribute after the selection control switches to an editable state, and the terminal device 100 determines the attribute of the component selected by the user. The terminal device 100 displays the three-dimensional graphics of the component according to the component attribute information selected by the user, wherein the three-dimensional graphics are rendered according to the attribute selected by the user.
[0050] As described in the background technology, existing applications for displaying graphics of parts either do not provide options for different attributes of parts for users to choose from, or even if options corresponding to different attributes of parts are provided, the options are not associated with the displayed three-dimensional graphics of the parts. When users select options with different attributes, the displayed three-dimensional graphics of the parts are always the same. As a result, users cannot understand the actual appearance of the parts by previewing the graphics, which brings a lot of inconvenience to users.
[0051] Through the method for displaying the three-dimensional graphics of parts described in this embodiment, the user can select different attributes of the parts on the terminal device 100. And the three-dimensional graphics of the parts are rendered according to the attributes selected by the user by the terminal device 100 or the server 200, so that the three-dimensional graphics corresponding to the attributes selected by the user can be displayed. Therefore, the user can understand the appearance of the selected parts by previewing. Therefore, the display process and effect of the three-dimensional graphics of the parts are more accurate, efficient and convenient.
[0052] Optionally, the optional attributes include at least one of the following attributes: the material of the component; the surface processing technology of the component; the texture map of the component; the surface roughness of the component; the metalness of the component; and the bump map of the component.
[0053] Specifically, the attributes provided in this embodiment include at least one of the following attributes: the material of the component; the surface processing technology of the component; the texture map of the component; the surface roughness of the component; the metalness of the component; and the concave-convex map of the component. In this way, the attributes selected by the user are limited to the attributes related to the component. Then, according to the attributes selected by the user, the three-dimensional graphics of the component are rendered. For example, the rendering method can be based on the material of the component (for example, it can be a metal material such as cast iron, steel, titanium alloy, or a non-metallic material such as rubber and plastic), or it can be based on the surface processing technology of the component (for example, it can be a surface treatment method such as quenching, sandblasting, knurling, and wire drawing), or it can be based on the texture map of the component, or it can be based on the concave-convex map of the component, so that the three-dimensional graphics of the component are more realistic and the display effect is better. The terminal device 100 can display the three-dimensional graphics of the component according to the rendering attributes selected by the user, and the display result is clear and intuitive, which enhances the three-dimensional graphics display effect of the component. In addition, the rendering method selection is more diverse, which not only provides different choices of component materials, but also provides different choices of component surface processing technology, improves the visualization of component preview images, provides more convenience for users, and makes the user's component customization process more efficient.
[0054] It can be seen that compared with the existing method of displaying the three-dimensional graphics of parts, the technical solution of this embodiment can select different rendering attributes for rendering the three-dimensional graphics of parts, wherein the rendering attributes include at least one of the following attributes: the material of the part; the surface processing technology of the part; the texture map of the part; the surface roughness of the part; the metalness of the part; and the bump map of the part. After the user performs a trigger operation on the selection control, the three-dimensional graphics of the part can be displayed according to the rendering attributes of the part selected by the user. On the basis of being able to display the three-dimensional graphics according to the rendering method selected by the user, more rendering method selection attributes are provided, which enhances the graphic display effect of the three-dimensional graphics of the parts, making the display process and effect of the three-dimensional graphics of the parts more accurate, efficient and convenient.
[0055] Optionally, the operation of displaying the three-dimensional graphics of the component includes: sending the attributes selected by the user to the server; receiving graphic data for rendering the three-dimensional graphics from the server, wherein the graphic data corresponds to the attributes selected by the user; rendering the three-dimensional graphics using the received graphic data; and displaying the rendered three-dimensional graphics.
[0056] Specifically, after determining the rendering attributes of the component selected by the user on the terminal device 100, the terminal device 100 sends the attribute information of the component to the server 200; the server 200 receives the attribute information of the component selected by the user, and updates the attribute information of the component to the database. Then, the server 200 generates a three-dimensional graphic of the component according to the attribute information of the component, wherein the three-dimensional graphic is rendered according to the attributes selected by the user; then, the server 200 sends the three-dimensional graphic of the component to the terminal device 100; the terminal device 100 receives the three-dimensional graphic of the component from the server 200, and displays the received three-dimensional graphic of the component. Thus, the user can directly view the three-dimensional graphic of the component selected by the user on the terminal device 100, and can then accurately and intuitively view the display effect of the three-dimensional graphic of the component generated according to the rendering method selected by the user.
[0057] Optionally, the operation of displaying the three-dimensional graphics of the component includes: determining graphic data corresponding to the attributes selected by the user from pre-stored graphic data, wherein the graphic data is used to render the three-dimensional graphics; and rendering the three-dimensional graphics using the determined graphic data; and displaying the rendered three-dimensional graphics.
[0058] Specifically, after the user selects the rendering attribute of the component by selecting the control, the terminal device 100 can locally generate a three-dimensional graphic image of the component according to the selected rendering attribute, and display the three-dimensional graphic image of the component, wherein the three-dimensional graphic image is rendered according to the attribute selected by the user. Thus, the user can directly view the three-dimensional graphic image of the component generated according to the rendering attribute selected by the user on the terminal device 100, so that the display effect of the three-dimensional graphic image of the component generated according to the rendering method selected by the user can be quickly, intuitively and accurately viewed.
[0059] Optionally, the operation of displaying a selection control includes at least one of the following operations: displaying a selection control comprising multiple sub-controls, wherein the sub-controls display graphic information corresponding to different materials; displaying a selection control comprising multiple sub-controls, wherein the sub-controls display information corresponding to different surface processing processes; displaying a selection control comprising multiple sub-controls, wherein the sub-controls display graphic information corresponding to different texture maps; displaying a selection control comprising multiple sub-controls, wherein the sub-controls display graphic information corresponding to different texture maps; displaying a selection control comprising multiple sub-controls, wherein the sub-controls are used to adjust parameter values of at least one of the following parameters: surface roughness of a component and metallicness of a component; and displaying a selection control comprising multiple sub-controls, wherein the sub-controls display graphic information corresponding to different bump maps.
[0060] Specifically, refer to Figure 4 and Figure 5 As shown, the selection control 41 (the dashed box 41 exemplarily shows the selection control 41) includes a plurality of sub-controls. Figure 4A sub-control 411 is exemplarily shown in a dotted frame. The sub-control 411 displays graphic information corresponding to different materials ( Figure 4 The graphic information is exemplarily shown as a rendering pattern). Thus, after the user clicks the sub-control 411, the terminal device 100 can display a three-dimensional graphic of a component of a material corresponding to the sub-control 411 according to the sub-control 411 clicked by the user (see Figure 4 ). Figure 4 and Figure 5 As shown in the figure, by selecting different materials, the 3D graphics of the parts will display different appearances corresponding to the selected properties, thereby enhancing the display effect of the 3D graphics of the parts.
[0061] refer to Figure 6 and Figure 7 As shown, the selection control 42 (the dashed box exemplarily shows the selection control 42) includes a plurality of sub-controls 421, wherein Figure 6 A sub-control 421 is exemplarily shown in a dotted box. The sub-control 421 displays information corresponding to different surface processing techniques, wherein the information is text information. Thus, after the user clicks the sub-control 421, the terminal device 100 can display a three-dimensional graphic of a component of the surface processing technique corresponding to the sub-control 421 according to the sub-control 421 clicked by the user (see Figure 7 ). Figure 6 and Figure 7 As shown in the figure, by selecting different surface processing technologies, the 3D graphics of the parts will display different appearances corresponding to the selected attributes, thereby enhancing the display effect of the 3D graphics of the parts.
[0062] refer to Figure 8 As shown, the selection controls 45 and 46 include a sub-control for adjusting the surface roughness of the component and a sub-control for adjusting the metallicness of the component. And the selection control 47 includes a sub-control for selecting the color of the component.
[0063] And refer to Figure 8 As shown, the selection control 43 includes a sub-control 431 for selecting a texture map of a component. For example, the sub-control 431 can determine the texture map of the component according to the selected file. Therefore, displaying the texture map in the three-dimensional graphics of the component can greatly improve the authenticity of the three-dimensional graphics of the component, reduce texture connection errors, and display the light and shadow effects of the component under the simulated moving light source, thereby improving the three-dimensional graphics display effect of the component.
[0064] In addition, the selection control 44 includes a sub-control 441 for selecting a bump map of a component. For example, the sub-control 441 can determine the bump map of the component according to the selected file. Thus, displaying the bump map in the three-dimensional graphics of the component can produce a bumpy visual effect on the surface of the three-dimensional graphics. Furthermore, the rough surface of the component can be simulated in the three-dimensional graphics, and a bump material map with depth changes can be given to the component, thereby enhancing the realism and display effect of the three-dimensional graphics of the component.
[0065] In summary, through the technical solution provided by this embodiment, the user can select the corresponding attribute according to the displayed control, thereby facilitating the user's operation and improving the user's convenience.
[0066] Optionally, in response to the user triggering an operation to select a control, the operation of determining the properties of a component selected by the user includes: in response to the user clicking the operation to select the control, determining the sub-control clicked by the user; and determining the properties corresponding to the sub-control selected by the user based on the sub-control clicked by the user.
[0067] Thus, the terminal device 100 can determine the attribute selected by the user according to the sub-control clicked by the user. Furthermore, the terminal device 100 can thereby determine the attribute of the component selected by the user, and render the three-dimensional graphics of the component accordingly. Thus, the user can preview the three-dimensional graphics of the selected component according to the selected sub-control, thereby facilitating the user's operation and improving the convenience of the user's use.
[0068] Optionally, the displayed three-dimensional graphics include: a three-dimensional geometric surface graphic corresponding to the component; and a geometric contour edge line graphic superimposed and displayed with the three-dimensional geometric surface graphic.
[0069] Specifically, Fig. 9 , a three-dimensional graphic in which a three-dimensional geometric surface graphic and a geometric contour edge graphic of a component are superimposed and displayed is shown as an example. Among them, the three-dimensional geometric surface graphic is a three-dimensional graphic of a component rendered according to different rendering attributes (wherein the different rendering attributes can be, for example, material attributes, surface processing technology attributes, texture mapping or bump mapping), that is, the rendering effect after rendering according to the selected rendering attributes can be displayed on the three-dimensional geometric surface graphic. The geometric contour edge graphic is a three-dimensional graphic that can display the contour edge of the component, so that the structural features of the component can be clearly and accurately displayed according to the geometric contour edge graphic. Among them, the three-dimensional geometric surface graphic corresponding to the figure mark 801 is displayed, and the geometric contour edge graphic corresponding to the figure mark 802 is displayed. The three-dimensional graphic of the component is displayed by superimposing the three-dimensional geometric surface graphic and the geometric contour edge graphic, which can highlight the edges and detail features of the component and enhance the three-dimensional display effect of the component.
[0070] The existing 3D graphics display method of rendered parts is to directly display the 3D rendering of the parts separately. When users view the 3D graphics of parts, they need to carefully identify or switch the view display mode multiple times to view the edges and detailed structural features of the parts. The detailed features of the parts are not prominent enough, and the 3D display effect is not good enough.
[0071] It can be seen that compared with the existing method of displaying the three-dimensional graphics of parts, the technical solution of this embodiment displays the three-dimensional geometric surface graphics corresponding to the parts on the terminal device 100 when the user views the three-dimensional graphics of the parts (see Fig.10 ) and geometric contour edge graphics (see Fig.11 ) superimposed three-dimensional graphics (see Fig. 9 ). This allows users to more accurately and intuitively understand the edges of parts and the 3D graphics display effects of the rendered detail structures when viewing the 3D graphics of parts, improving the visualization of the 3D graphics of parts and providing convenience for users.
[0072] Optionally, the operation of displaying the three-dimensional graphics of the component includes: obtaining a three-dimensional geometric surface graphic and a geometric contour edge line graphic; superimposing the obtained three-dimensional geometric surface graphic and geometric contour edge line graphic to generate a three-dimensional graphic; and displaying the generated three-dimensional graphic.
[0073] Specifically, the terminal device 100 obtains the three-dimensional geometric surface graphics and geometric contour edge graphics corresponding to the component to be viewed, wherein the terminal device 100 can obtain them from the server 200 or directly determine them in the local memory. After the terminal device 100 obtains the three-dimensional geometric surface graphics and geometric contour edge graphics, the three-dimensional geometric surface graphics and geometric contour edge graphics of the component are superimposed to generate a three-dimensional graphic of the component, and the generated three-dimensional graphic is displayed. In this way, the detailed features of the component are highlighted and the three-dimensional graphic display effect of the component is enhanced.
[0074] Optionally, the operation of obtaining three-dimensional geometric surface graphics and geometric contour edge line graphics includes: sending a request to obtain three-dimensional geometric surface graphics and geometric contour edge line graphics to a server; and receiving three-dimensional geometric surface graphics and geometric contour edge line graphics from the server.
[0075] Specifically, the terminal device 100 sends a request to the server 200 to obtain the 3D geometric surface graphics and geometric contour edge graphics of the component to be viewed. After responding to the request, the server 200 sends the 3D geometric surface graphics and geometric contour edge graphics of the component to be viewed to the terminal device 100. After receiving the 3D geometric surface graphics and geometric contour edge graphics, the terminal device 100 performs superposition processing on the received 3D geometric surface graphics and geometric contour edge graphics. Thus, the 3D graphics after superposition of the 3D geometric surface graphics and geometric contour edge graphics are displayed on the terminal device 100, so that the display effect is better.
[0076] Optionally, the operation of displaying the three-dimensional graphics of the component includes: determining the three-dimensional geometric surface graphics and geometric contour edge line graphics corresponding to the component from pre-stored graphics; superimposing the determined three-dimensional geometric surface graphics and geometric contour edge line graphics to generate a three-dimensional graphics; and displaying the generated three-dimensional graphics.
[0077] Specifically, after the terminal device 100 responds to the user's triggering operation of viewing the three-dimensional graphics of the component, the terminal device 100 directly determines the three-dimensional geometric surface graphics and geometric contour edge graphics corresponding to the component to be viewed in the pre-stored graphics on the local storage, and the terminal device 100 superimposes the above three-dimensional geometric surface graphics and geometric contour edge graphics to generate the three-dimensional graphics of the component and displays it. The above method of displaying the three-dimensional graphics of the component does not need to receive the three-dimensional geometric surface graphics and geometric contour edge graphics of the component from the server before processing and displaying, which reduces more restrictions on viewing the three-dimensional graphics of the component, and can enable users to view the three-dimensional graphics of the component more quickly and intuitively.
[0078] Optionally, the operation of generating a three-dimensional graphics includes: obtaining three-dimensional geometric surface graphics data corresponding to the three-dimensional geometric surface graphics and geometric contour edge line graphics data corresponding to the geometric contour edge line graphics; generating a three-dimensional geometric surface graphics based on the three-dimensional geometric surface graphics data, and generating a geometric contour edge line graphics based on the geometric contour edge line graphics data; and superimposing the generated three-dimensional geometric surface graphics and geometric contour edge line graphics to generate a three-dimensional graphics.
[0079] Specifically, after the terminal device 100 responds to the trigger operation of the user viewing the three-dimensional graphics of the component (wherein the three-dimensional graphics include three-dimensional geometric surface graphics and geometric contour edgeline graphics), it obtains three-dimensional geometric surface graphics data corresponding to the three-dimensional geometric surface graphics and geometric contour edgeline graphics data corresponding to the geometric contour edgeline graphics, wherein the terminal device 100 can, for example, obtain the above-mentioned three-dimensional geometric surface graphics data and geometric contour edgeline graphics data from the server 200 or local storage. The terminal device 100 generates a three-dimensional geometric surface graphics and a geometric contour edgeline graphics according to the acquired three-dimensional geometric surface graphics data and geometric contour edgeline graphics data. And the terminal device 100 superimposes the generated three-dimensional geometric surface graphics and geometric contour edgeline graphics to generate a three-dimensional graphics. Thereby, the details of the three-dimensional graphics of the component are displayed more prominently and the display effect is better.
[0080] Optionally, the operation of obtaining three-dimensional geometric surface graphics data and geometric contour edge line graphics data includes: sending a request to obtain three-dimensional geometric surface graphics data and geometric contour edge line graphics data to a server; and receiving three-dimensional geometric surface graphics data and geometric contour edge line graphics data from the server.
[0081] Specifically, after the terminal device 100 responds to the trigger operation of the user viewing the three-dimensional graphics of the component (wherein the three-dimensional graphics include three-dimensional geometric surface graphics and geometric contour edge graphics), the terminal device 100 sends a request to obtain three-dimensional geometric surface graphics data and geometric contour edge graphics data to the server 200, and the server 200 responds to the above request and sends the three-dimensional geometric surface graphics data and geometric contour edge graphics data of the component to the terminal device 100. Thus, the operation of generating three-dimensional geometric surface graphics and geometric contour edge graphics is completed.
[0082] Optionally, the operation of generating a three-dimensional graphics includes: determining three-dimensional geometric surface graphics data and geometric contour edge graphics data corresponding to the component from pre-stored graphics data; generating a three-dimensional geometric surface graphics based on the three-dimensional geometric surface graphics data, and generating a geometric contour edge graphics based on the geometric contour edge graphics data; and superimposing the generated three-dimensional geometric surface graphics and geometric contour edge graphics to generate a three-dimensional graphics.
[0083] Specifically, after the terminal device 100 responds to the user's triggering operation of viewing the three-dimensional graphics of the component (wherein the three-dimensional graphics include three-dimensional geometric surface graphics and geometric contour edge graphics), the terminal device 100 determines the three-dimensional geometric surface graphics data corresponding to the three-dimensional geometric surface graphics and the geometric contour edge graphics data corresponding to the geometric contour edge graphics from the graphics data pre-stored on the local memory. The terminal device 100 generates the three-dimensional geometric surface graphics and the geometric contour edge graphics according to the determined three-dimensional geometric surface graphics data and the geometric contour edge graphics data. And the generated three-dimensional geometric surface graphics and the geometric contour edge graphics are superimposed to generate a three-dimensional graphic. Thereby, the details of the three-dimensional graphics of the component are displayed more prominently and the display effect is better.
[0084] Optionally, the three-dimensional graphics also include dimension annotations, wherein the dimension annotations and dimension lines corresponding to the dimension annotations are used to display the size of the component.
[0085] Specifically, refer to Fig.12 As shown, after the user triggers the three-dimensional graphics of the parts to be viewed on the terminal device 100, the terminal device 100 can view the three-dimensional graphics of the parts in response to the user. The three-dimensional graphics include not only the three-dimensional geometric surface graphics corresponding to the parts and the geometric contour edge graphics superimposed and displayed with the three-dimensional geometric surface graphics, but also the annotated dimensions of the parts, that is, the user can view the three-dimensional graphics with the annotated dimensions of the parts on the terminal device 100, wherein the annotated dimensions in the three-dimensional graphics and the dimension lines corresponding to the annotated dimensions can display the dimensions of the parts. In the three-dimensional graphics, the annotated dimensions are annotated based on the superimposed three-dimensional geometric surface graphics and the geometric contour edge graphics. Since the superimposed display makes the edges and detail features of the parts stand out, the annotated dimensions of the detail parts of the parts are more accurate, thus providing a better display effect.
[0086] For example, Fig.12 In the example, a dimension of a component is shown as "10". It should be noted that Fig.12 The specific dimension "10" in the figure is only for the purpose of illustrative description. In practical applications, a three-dimensional graphic with dimension annotations of each structure can be displayed according to the actual structure and size of the parts.
[0087] Optionally, the displayed geometric contour edge graph is a geometric contour edge graph that has been processed by tangent filtering, and the tangent filtering process is used to filter out tangents in the geometric contour edge graph.
[0088] Specifically, refer to Fig.13As shown, the geometric contour edge graph is a three-dimensional contour graph, and the three-dimensional contour graph is processed by tangent filtering, and the tangent filtering is used to filter out the tangents in the three-dimensional contour graph. The user can view the three-dimensional contour graph of the component on the terminal device 100. For example, Fig.13 The figure shows an example of a three-dimensional contour line graphic of a component after filtering out tangents. The three-dimensional contour line graphic after filtering out tangents has no interfering edges, so that the three-dimensional graphic display effect of the component is better, avoiding unnecessary misunderstandings of the component structure that may occur when users view the three-dimensional contour line graphic.
[0089] When the existing 3D graphics of parts are displayed, they have tangent lines, which are also called tangent lines. They are the basic lines that must be created when performing 3D modeling. When the existing 3D graphics of parts are displayed, the tangent lines will be displayed together. Fig.14 and Fig.15 The tangent lines of the components in the prior art are shown in the figure numerals 1301 and 1401. Therefore, when viewing the three-dimensional graphics of the components, the display effect is not good, and the display of the tangent lines is easy to cause interference, and may even cause users to misunderstand the structure of the components.
[0090] It can be seen that compared with the existing three-dimensional contour line graphics display method, the technical solution of this embodiment is used to filter out the tangents in the three-dimensional contour line graphics after tangent filtering when displaying the three-dimensional contour line graphics. This makes the display effect of the three-dimensional contour line graphics of the parts better, and the three-dimensional graphic structure is clearer and more accurate, avoiding the interference of the tangents on the display of the three-dimensional contour line graphics, so that users can view the three-dimensional contour line graphics of the parts more quickly, intuitively, accurately and efficiently, saving time and effort.
[0091] Optionally, the tangent filtering process includes performing the following operations on the edge lines in the three-dimensional contour line graph of the object: determining whether the edge lines are tangent lines; and filtering out the edge lines determined to be tangent lines if the edge lines are determined to be tangent lines.
[0092] Specifically, in response to the user's trigger operation, the terminal device 100 traverses all the edges in the three-dimensional contour line graph, determines whether the edge of the three-dimensional contour line graph is a tangent, and when the determined edge is a tangent, filters out the edge determined to be a tangent. And the three-dimensional contour line graph after filtering out the tangent is displayed. By filtering out the tangent that may cause interference, the display effect of the three-dimensional contour line graph of the parts is better, and the three-dimensional graphic structure is clearer and more accurate.
[0093] Among them, Fig.13 In the figure, reference numerals 1201, 1202, 1205, 1206 and 1207 are all edge lines. Fig.14The reference numerals 1301, 1302 and 1303 and the attached Fig.15 The reference numerals 1401 in the figure are also edge lines.
[0094] Optionally, the operation of determining whether an edge line is a tangent line includes: determining whether two contour surfaces adjacent to an edge line in a three-dimensional contour line graph are rotation surfaces; and determining that the edge line is not a tangent line when at least one of the two contour surfaces is not a rotation surface.
[0095] Specifically, when determining whether an edge line is a tangent line, the terminal device 100 first determines two contour surfaces adjacent to each other by the edge line in the three-dimensional contour graph, and determines the type of the contour surface. Fig.13 In the figure, contour surfaces 1203 and 1204 are two contour surfaces adjacent to each other by edge line 1201. Fig.14 In FIG. 1 , contour surfaces 1304 and 1305 are two contour surfaces adjacent to edge line 1301. Also, with respect to edge lines 1205 and 1206, and edge lines 1302 and 1303, there are no contour surfaces adjacent to these edge lines in the graph, and therefore they are not tangent lines either.
[0096] If it is determined that the contour surface adjacent to the edge line is a rotation surface (such as a cylindrical surface, a conical surface, etc.), then this edge line is further judged as a possible candidate line for the tangent line; if it is determined that at least one of the contour surfaces on both sides of the edge line is not a rotation surface, then this edge line is determined not to be a tangent line.
[0097] Optionally, the operation of determining whether the edge is a tangent also includes: when the contour surfaces on both sides of the edge are both rotation surfaces, determining whether the rotation center lines of the contour surfaces on both sides of the edge coincide; and, determining that the edge is a tangent when the rotation center lines of the contour surfaces on both sides of the edge coincide, or determining that the edge is not a tangent when the rotation center lines of the contour surfaces on both sides of the edge do not coincide. For example, although contour surfaces 1203 and 1204 are rotation surfaces, the rotation center lines of contour surfaces 1203 and 1204 do not coincide, so edge 1201 is not a tangent. Since the two contour surfaces 1304 and 1305 adjacent to edge 1301 are rotation surfaces, and their rotation center lines coincide, edge 1301 is determined to be a tangent. Similarly, edge 1401 is also determined to be a tangent.
[0098] Specifically, when the terminal device 100 determines whether the edge is a tangent, after determining that the contour surfaces on both sides of the edge to be determined are both rotation surfaces, the tangent is used as a candidate line that may be a tangent, and then it is determined whether the rotation center lines of the contour surfaces on both sides of the tangent as the candidate line coincide. If they coincide, the edge is determined to be a tangent; if they do not coincide, the edge is determined not to be a tangent.
[0099] Optionally, the operation of determining whether an edge line is a tangent line also includes: when one of the two contour surfaces adjacent to the edge line is a rotational surface, performing the following operations: determining whether the normals of the two contour surfaces at the edge line coincide; and determining that the edge line is a tangent line when the normals of the two contour surfaces coincide, or determining that the edge line is not a tangent line when the normals of the two contour surfaces do not coincide.
[0100] refer to Fig.16 As shown, for example, in some cases, tangent lines also appear when only one contour surface is a rotational surface (where the other contour surface is a plane or other non-rotational surface), for example Figure 7 The chamfer 701 shown in FIG. Among them, the two contour surfaces 701 and 704 adjacent to the tangent line 702 are one rotational curved surface 701 and the other is a plane 704. Although the two contour surfaces 701 and 705 adjacent to the tangent line 703 are both rotational curved surfaces, it is difficult to define the rotation center lines of the two contour surfaces 701 and 705. Therefore, for this case, the method of judging whether the edge line is a tangent by judging whether the rotation center lines of the two contour surfaces adjacent to the edge line coincide is no longer applicable to more tangent cases.
[0101] Therefore, in this embodiment, another method for determining whether an edge is a tangent is proposed. That is, when at least one of the two contour surfaces adjacent to the edge is a rotational surface, it is determined whether the normals of the two contour surfaces at the edge coincide. When the normals of the two contour surfaces at the edge coincide, the edge can be determined to be a tangent.
[0102] In this way, it is possible to determine whether an edge line is a tangent line in more complex graphics, thereby increasing the accuracy of the tangent line filtering process.
[0103] Thus, according to the first aspect of this embodiment, the three-dimensional graphics of the rendered parts are displayed according to the attributes selected by the user, wherein the selectable attributes have multiple choices, and the selectable attributes include: the material of the part; the surface processing technology of the part; the texture map of the part; the surface roughness of the part; the metalness of the part; and the bump map of the part. The three-dimensional graphics of the rendered parts can be displayed according to the different selected attributes, which enhances the display effect of the three-dimensional graphics of the parts, making the three-dimensional graphics of the parts more accurate, intuitive, and convenient during the display process, and having a better display effect. Thus, the user can preview the three-dimensional graphics of parts with different attributes.
[0104] In addition, according to a second aspect of this embodiment, a method for providing graphic data is provided, the method comprising: Figure 2 The server 200 shown in FIG. Fig.17 A schematic diagram showing the process of the method is shown in FIG. Fig.17As shown, the method includes:
[0105] S1702: Receive optional attribute information of the selected component from the terminal device;
[0106] S1704: Determine, based on the received optional attribute information, graphic data for rendering a three-dimensional graphic of the component, wherein the graphic data corresponds to the attribute selected by the user; and
[0107] S1706: Sending graphic data to the terminal device.
[0108] Specifically, the server 200 receives the optional attributes of the component selected by the user on the terminal device 100, and the server 200 determines the graphic data corresponding to the optional attributes sent by the terminal device 100 for rendering the three-dimensional graphics of the component based on the received optional attribute information. After determination, the server 200 sends the determined graphic data to the terminal device 100, and the terminal device 100 renders the three-dimensional graphics of the component based on the received graphic data.
[0109] Optionally, the optional attributes include at least one of the following attributes: the material of the component; the surface processing technology of the component; the texture map of the component; the surface roughness of the component; the metalness of the component; and the bump map of the component.
[0110] In addition, reference Figures 9 to 16 As shown, the description of the three-dimensional graphics in the first aspect of this embodiment is also applicable to the three-dimensional graphics provided by the server 200 to the terminal device 100, and will not be repeated here.
[0111] Therefore, according to the second aspect of this embodiment, it is achieved that on the basis of being able to render and display three-dimensional graphics according to the rendering method selected by the user, more optional attributes of rendering methods can be provided, thereby enhancing the graphic display effect of the three-dimensional graphics of parts and components, making the display process of the three-dimensional graphics of parts and components more accurate, intuitive, and convenient, and the display effect is better.
[0112] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence, because according to the present invention, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
[0113] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0114] Example 2
[0115] Fig.18 The device 1800 for displaying a three-dimensional graphic of a component according to the first aspect of this embodiment is shown. The device 1800 corresponds to the method according to the first aspect of embodiment 1. Fig.18 As shown, the device 1800 includes: a selection control display module 1810, used to display a selection control, wherein the selection control is used to provide the user with at least one optional attribute of a component; a component attribute determination module 1820, used to determine the attribute of the component selected by the user in response to the user triggering the operation of the selection control; and a three-dimensional graphics display module 1830, used to display a three-dimensional graphics of the component, wherein the three-dimensional graphics is rendered according to the attribute selected by the user.
[0116] Optionally, the optional attributes include at least one of the following attributes: the material of the component; the surface processing technology of the component; the texture map of the component; the surface roughness of the component; the metalness of the component; and the bump map of the component
[0117] Optionally, the selection control display module 1810 includes at least one of the following modules: a first display sub-module, used to display a selection control including multiple sub-controls, wherein graphic information corresponding to different materials is displayed on the sub-controls; a second display sub-module, used to display a selection control including multiple sub-controls, wherein information corresponding to different surface processing processes is displayed on the sub-controls; a third display sub-module, used to display a selection control including multiple sub-controls, wherein graphic information corresponding to different texture maps is displayed on the sub-controls; a fourth display sub-module, used to adjust the parameter value of at least one of the following parameters: the surface roughness of the component and the metallicity of the component; and a fifth display sub-module, used to display a selection control including multiple sub-controls, wherein graphic information corresponding to different bump maps is displayed on the sub-controls.
[0118] Optionally, the component attribute determination module 1820 includes: a first determination submodule, used to determine the subcontrol clicked by the user in response to the user clicking the selection control; and a second determination submodule, used to determine the attribute corresponding to the subcontrol selected by the user based on the subcontrol clicked by the user.
[0119] Optionally, the three-dimensional graphics display module 1830 includes: a graphics data determination sub-module, used to determine graphics data corresponding to attributes selected by the user from pre-stored graphics data, wherein the graphics data is used to render three-dimensional graphics; a first rendering sub-module, used to render three-dimensional graphics using the determined graphics data; and a first three-dimensional graphics display sub-module, used to display the rendered three-dimensional graphics.
[0120] Optionally, the three-dimensional graphics display module 1830 includes: a sending attribute sub-module, used to send the attributes selected by the user to the server; a receiving sub-module, used to receive graphic data for rendering three-dimensional graphics from the server, wherein the graphic data corresponds to the attributes selected by the user; a second rendering sub-module, used to render three-dimensional graphics using the received graphic data; and a second three-dimensional graphics display sub-module, used to display the rendered three-dimensional graphics.
[0121] Optionally, the three-dimensional graphics in the three-dimensional graphics display module 1830 include: a three-dimensional geometric surface graphic corresponding to the component; and a geometric contour edge line graphic superimposed and displayed with the three-dimensional geometric surface graphic.
[0122] also, Fig.19 The device 1900 for providing graphic data according to the second aspect of this embodiment is shown, and the device 1900 corresponds to the method according to the second aspect of embodiment 1. Fig.19 As shown, the device 1900 includes: an attribute information receiving module 1910, used to receive optional attribute information of a component selected by a user from a terminal device; a graphic data determination module 1920, used to determine graphic data for rendering a three-dimensional graphic of the component based on the received optional attribute information, wherein the graphic data corresponds to the optional attribute selected by the user; and a graphic data sending module 1930, used to send the graphic data to the terminal device.
[0123] Optionally, the optional attributes include at least one of the following attributes: the material of the component; the surface processing technology of the component; the texture map of the component; the surface roughness of the component; the metalness of the component; and the bump map of the component
[0124] Thus, according to this embodiment, the three-dimensional graphics of the rendered parts are displayed according to the attributes selected by the user, wherein the selectable attributes have multiple choices, and the selectable attributes include: the material of the part; the surface processing technology of the part; the texture map of the part; the surface roughness of the part; the metalness of the part; and the bump map of the part. The three-dimensional graphics of the rendered parts can be displayed according to the different selected attributes, which enhances the display effect of the three-dimensional graphics of the parts, making the three-dimensional graphics of the parts more accurate, intuitive, and convenient during the display process, and having a better display effect. Thus, the user can preview the three-dimensional graphics of parts with different attributes.
[0125] Example 3
[0126] Fig. 20 The apparatus 2000 for displaying a three-dimensional graphic of a component according to the first aspect of this embodiment is shown. The apparatus 2000 corresponds to the method according to the first aspect of embodiment 1. Fig. 20 As shown, the device 2000 includes: a first processor 2010; and a first memory 2020, connected to the first processor 2010, and used to provide the first processor 2010 with instructions for processing the following processing steps: displaying a selection control, wherein the selection control is used to provide a user with at least one optional attribute of a component; in response to the user triggering an operation of the selection control, determining the attribute of the component selected by the user; and displaying a three-dimensional graphic of the component, wherein the three-dimensional graphic is rendered according to the attribute selected by the user.
[0127] Optionally, the optional attributes include at least one of the following attributes: the material of the component; the surface processing technology of the component; the texture map of the component; the surface roughness of the component; the metalness of the component; and the bump map of the component.
[0128] Optionally, the operation of displaying a selection control includes at least one of the following operations: displaying a selection control comprising multiple sub-controls, wherein the sub-controls display graphic information corresponding to different materials; displaying a selection control comprising multiple sub-controls, wherein the sub-controls display information corresponding to different surface processing processes; displaying a selection control comprising multiple sub-controls, wherein the sub-controls display graphic information corresponding to different texture maps; displaying a selection control comprising multiple sub-controls, wherein the sub-controls display graphic information corresponding to different texture maps; displaying a selection control comprising multiple sub-controls, wherein the sub-controls are used to adjust parameter values of at least one of the following parameters: surface roughness of a component and metallicness of a component; and displaying a selection control comprising multiple sub-controls, wherein the sub-controls display graphic information corresponding to different bump maps.
[0129] Optionally, in response to the user triggering an operation to select a control, the operation of determining the properties of a component selected by the user includes: in response to the user clicking the operation to select the control, determining the sub-control clicked by the user; and determining the properties corresponding to the sub-control selected by the user based on the sub-control clicked by the user.
[0130] Optionally, the operation of displaying the three-dimensional graphics of the component includes: determining graphic data corresponding to the attributes selected by the user from pre-stored graphic data, wherein the graphic data is used to render the three-dimensional graphics; rendering the three-dimensional graphics using the determined graphic data; and displaying the rendered three-dimensional graphics.
[0131] Optionally, the operation of displaying the three-dimensional graphics of the component includes: sending the attributes selected by the user to the server; receiving graphic data for rendering the three-dimensional graphics from the server, wherein the graphic data corresponds to the attributes selected by the user; rendering the three-dimensional graphics using the received graphic data; and displaying the rendered three-dimensional graphics.
[0132] Optionally, the displayed three-dimensional graphics include: a three-dimensional geometric surface graphic corresponding to the component; and a geometric contour edge line graphic superimposed and displayed with the three-dimensional geometric surface graphic.
[0133] Optionally, the displayed geometric contour edge graph is a geometric contour edge graph that has been processed by tangent filtering, and the tangent filtering process is used to filter out tangents in the geometric contour edge graph.
[0134] also, Fig.21 The device 2100 for providing graphic data according to the second aspect of this embodiment is shown, and the device 2100 corresponds to the method according to the second aspect of embodiment 1. Fig.21 As shown, the device 2100 includes: a second processor 2110; and a second memory 2120, which is connected to the second processor 2110 and is used to provide the second processor 2110 with instructions for processing the following processing steps: receiving optional attribute information of a component selected by a user from a terminal device; determining graphic data for rendering a three-dimensional graphic of the component based on the received optional attribute information, wherein the graphic data corresponds to the optional attribute selected by the user; and sending the graphic data to the terminal device.
[0135] Optionally, the optional attributes include at least one of the following attributes: the material of the component; the surface processing technology of the component; the texture map of the component; the surface roughness of the component; the metalness of the component; and the bump map of the component.
[0136] Thus, according to this embodiment, the three-dimensional graphics of the rendered parts are displayed according to the attributes selected by the user, wherein the selectable attributes have multiple choices, and the selectable attributes include: the material of the part; the surface processing technology of the part; the texture map of the part; the surface roughness of the part; the metalness of the part; and the bump map of the part. The three-dimensional graphics of the rendered parts can be displayed according to the different selected attributes, which enhances the display effect of the three-dimensional graphics of the parts, making the three-dimensional graphics of the parts more accurate, intuitive, and convenient during the display process, and having a better display effect. Thus, the user can preview the three-dimensional graphics of parts with different attributes.
[0137] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0138] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0139] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0140] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0141] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0142] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
[0143] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for displaying a three-dimensional graphic of a component, characterized in that: include: displaying a selection control, wherein the selection control is used to provide a user with at least one selectable property of a component; In response to the user triggering the selection control, determining the property of the component selected by the user; as well as Displaying a three-dimensional graphic of the component, wherein the three-dimensional graphic is rendered according to the attributes selected by the user; The optional attributes include at least one of the following attributes: the material of the component; the surface processing technology of the component; the texture map of the component; the surface roughness of the component; the metalness of the component; and the bump map of the component; Displays the actions of the selection control, including at least one of the following: Displaying the selection control including a plurality of sub-controls, wherein the sub-controls display graphic information corresponding to different materials; Displaying the selection control including a plurality of sub-controls, wherein the sub-controls display information corresponding to different surface processing processes; Displaying the selection control including a plurality of sub-controls, wherein the sub-controls display graphic information corresponding to different texture maps; Displaying the selection control including a plurality of sub-controls, wherein the sub-controls are used to adjust the parameter value of at least one of the following parameters: the surface roughness of the component and the metalness of the component; and Displaying the selection control including a plurality of sub-controls, wherein the sub-controls display graphic information corresponding to different bump maps; In response to the user triggering the selection control, the operation of determining the property of the component selected by the user includes: In response to the user clicking the selection control, determining the sub-control clicked by the user; and Determining, according to the sub-control clicked by the user, an attribute corresponding to the sub-control selected by the user; The operation of displaying the three-dimensional graphics of the component includes: Determining graphic data corresponding to the attribute selected by the user from pre-stored graphic data, wherein the graphic data is used to render the three-dimensional graphic; Rendering three-dimensional graphics using the determined graphics data; and Display rendered 3D graphics; The operation of displaying the three-dimensional graphics of the component includes: Sending the attributes selected by the user to a server; receiving graphic data for rendering a three-dimensional graphic from the server, wherein the graphic data corresponds to the attribute selected by the user; Rendering three-dimensional graphics using the received graphics data; and Display rendered 3D graphics; The displayed three-dimensional graphics include: a three-dimensional geometric surface graphic corresponding to the component; and a geometric contour edge graphic superimposed and displayed with the three-dimensional geometric surface graphic; The displayed geometric contour edge graph is a geometric contour edge graph that has been processed by tangent filtering, wherein the tangent filtering is used to filter out tangents in the geometric contour edge graph; The operation of determining whether an edge is a tangent includes: determining whether two contour surfaces adjacent to an edge in a three-dimensional contour line figure are rotation surfaces; and determining that the edge is not a tangent when at least one of the two contour surfaces is not a rotation surface; the operation of determining whether an edge is a tangent also includes: determining whether the rotation center lines of the contour surfaces on both sides of the edge coincide when both contour surfaces are rotation surfaces; and determining that the edge is a tangent when the rotation center lines of the contour surfaces on both sides of the edge coincide, or determining that the edge is not a tangent when the rotation center lines of the contour surfaces on both sides of the edge do not coincide; the operation of determining whether an edge is a tangent also includes: when one of the two contour surfaces adjacent to the edge is a rotation surface, performing the following operations: determining whether the normals of the two contour surfaces at the edge coincide; and determining that the edge is a tangent when the normals of the two contour surfaces coincide, or determining that the edge is not a tangent when the normals of the two contour surfaces do not coincide.
2. A storage medium, characterized in that: The storage medium includes a stored program, wherein when the program is executed, the method of claim 1 is executed by a processor.
Citation Information
Patent Citations
Method for improving speed and visual fidelity of multi-pose 3D renderings
CN104520903A
Method and device for displaying three-dimensional graph and providing graph and graph data
CN111862334A