Method and device for displaying and generating three-dimensional contour line graphics based on tangent filtering

By filtering out tangents in the three-dimensional contour pattern, the problem of tangent interference is solved, the display effect is improved, and a clearer three-dimensional structure display is achieved.

CN111862335BActive Publication Date: 2024-11-29HANGZHOU YOUGONGPIN TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN201910356706.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-04-29
Publication Date
2024-11-29
Estimated Expiration
2039-04-29

AI Technical Summary

Technical Problem

When the prior art displays three-dimensional graphics of industrial parts, the display of tangent lines will interfere with the view, affect the user's accurate understanding of the component structure, and lack effective solutions.

Method used

A tangent filtering method is used to generate and display the three-dimensional contour pattern after filtering the tangent by determining whether the edges in the three-dimensional contour pattern are tangents and filtering them when determined as tangents.

Benefits of technology

It improves the display effect of three-dimensional contour lines, avoids the interference of tangent lines on the graphics, and makes users more fast, intuitive and accurate when viewing, saving time and effort.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111862335B_ABST
    Figure CN111862335B_ABST
Patent Text Reader

Abstract

The present application discloses a method and device for displaying and generating three-dimensional contour graphics based on tangent filtering. The method for displaying three-dimensional contour graphics based on tangent filtering includes: displaying a three-dimensional contour graphic of an object, wherein the three-dimensional contour graphic is a three-dimensional contour graphic that has been processed by tangent filtering, and the tangent filtering process is used to filter out the tangents in the three-dimensional contour graphic. Thus, the display of the three-dimensional contour graphic based on tangent filtering is realized, so that the display effect of the three-dimensional contour graphic of the parts is better.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of three-dimensional graphics processing, and in particular to a method and device for displaying and generating three-dimensional contour line graphics based on tangent filtering. Background Art

[0002] With the rapid development of computer technology and network technology, the application research of three-dimensional stereo is getting more and more attention. Three-dimensional stereo is a kind of flat image that can make people feel the three-dimensional effect, and its application field is becoming more and more extensive.

[0003] In the prior art, when displaying the 3D graphics of industrial parts, the tangents of the 3D graphics will be displayed in the 3D graphics. The tangents are the basic lines that must be created when performing 3D modeling. The display of the tangents will affect the display effect of the 3D view of the parts, causing interference to the user when viewing the 3D graphics of the parts, and affecting the accurate representation of the 3D structure of the parts themselves.

[0004] With respect to the technical problems existing in the above-mentioned prior art, no effective solutions have been proposed yet. Summary of the invention

[0005] The embodiments of the present disclosure provide a method and device for displaying and generating three-dimensional contour line graphics based on tangent filtering, so as to at least solve the technical problems existing in the prior art that when viewing the three-dimensional graphics of parts, the display effect is poor, the display of tangents is easy to cause interference, and may even cause users to have a misunderstanding of the structure of the parts.

[0006] According to one aspect of an embodiment of the present disclosure, a method for displaying three-dimensional contour line graphics based on tangent filtering is provided, including: displaying the three-dimensional contour line graphics of an object, wherein the three-dimensional contour line graphics is a three-dimensional contour line graphics that has been processed by tangent filtering, and the tangent filtering processing is used to filter out tangents in the three-dimensional contour line graphics.

[0007] According to another aspect of an embodiment of the present disclosure, a method for generating a three-dimensional contour line graphic based on tangent filtering is provided, comprising: acquiring a three-dimensional contour line graphic of an object; and performing tangent filtering processing on the three-dimensional contour line graphic to generate a three-dimensional contour line graphic with tangents filtered out.

[0008] According to another aspect of an embodiment of the present disclosure, a storage medium is further provided, wherein the storage medium includes a stored program, wherein when the program is run, a processor executes any one of the above methods.

[0009] According to another aspect of an embodiment of the present disclosure, a device for displaying three-dimensional contour line graphics based on tangent filtering is also provided, the device comprising: a first display module, for displaying the three-dimensional contour line graphics of an object, wherein the three-dimensional contour line graphics is a three-dimensional contour line graphics that has been processed by tangent filtering, and the tangent filtering processing is used to filter out tangents in the three-dimensional contour line graphics.

[0010] According to another aspect of an embodiment of the present disclosure, a device for generating three-dimensional contour line graphics based on tangent filtering is also provided, the device comprising: an acquisition module for acquiring the three-dimensional contour line graphics of an object; and a generation module for performing tangent filtering on the three-dimensional contour line graphics to generate a three-dimensional contour line graphics with tangents filtered out.

[0011] According to another aspect of an embodiment of the present disclosure, a device for displaying three-dimensional contour line graphics based on tangent filtering is also provided, the device comprising: a first processor; and a first memory connected to the first processor, for providing the first processor with instructions for processing the following processing steps: displaying a three-dimensional contour line graphics of an object, wherein the three-dimensional contour line graphics is a three-dimensional contour line graphics that has been processed by tangent filtering, and the tangent filtering processing is used to filter out tangents in the three-dimensional contour line graphics.

[0012] According to another aspect of an embodiment of the present disclosure, a device for generating three-dimensional contour line graphics based on tangent filtering is also provided, the device comprising: a second processor; and a second memory connected to the second processor, for providing the second processor with instructions for processing the following processing steps: obtaining a three-dimensional contour line graphics of an object; and performing tangent filtering on the three-dimensional contour line graphics to generate a three-dimensional contour line graphics with tangents filtered out.

[0013] In the disclosed embodiment, a three-dimensional contour line graphics display based on tangent filtering is implemented, so that the display effect of the three-dimensional contour line graphics of the parts is better, and the three-dimensional graphic structure is clearer and more accurate, avoiding the interference of tangents on the three-dimensional contour line graphics of the parts, so that users can view the three-dimensional contour line graphics of the parts more quickly, intuitively, accurately and efficiently, saving time and effort. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] 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:

[0015] Figure 1 is a hardware structure block diagram for implementing the method according to Embodiment 1 of the present disclosure;

[0016] Figure 2is a schematic diagram of a three-dimensional contour line graphic display system based on tangent filtering according to Embodiment 1 of the present disclosure;

[0017] Figure 3 is a flow chart of a three-dimensional contour line graphics display method based on tangent filtering according to the first aspect of Embodiment 1 of the present disclosure;

[0018] Figure 4 is a three-dimensional contour line graphic of a component according to the first aspect of Embodiment 1 of the present disclosure;

[0019] Figure 5 It is a three-dimensional contour line graphic of an existing component described in the background technology;

[0020] Figure 6 It is a three-dimensional contour line graphic of an existing component described in the background technology;

[0021] Figure 7 It is a three-dimensional contour line graphic of an existing component described in the background technology;

[0022] Figure 8 is a flow chart of a method for generating a three-dimensional contour line graphic based on tangent filtering according to the second aspect of Embodiment 1 of the present disclosure;

[0023] Fig. 9 is a schematic diagram of a three-dimensional contour line graphic display device based on tangent filtering according to the first aspect of Embodiment 2 of the present disclosure;

[0024] Fig.10 is a schematic diagram of a device for generating a three-dimensional contour line graphic according to the second aspect of Embodiment 2 of the present disclosure;

[0025] Fig.11 is a schematic diagram of a three-dimensional contour line graphic display device based on tangent filtering according to the first aspect of Embodiment 3 of the present disclosure; and

[0026] Fig.12 It is a schematic diagram of a device for generating three-dimensional contour line graphics according to the second aspect of Example 3 of the present disclosure. DETAILED DESCRIPTION

[0027] 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.

[0028] 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.

[0029] Example 1

[0030] According to this embodiment, an embodiment of a three-dimensional contour line graphics display method or generation method based on tangent filtering 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.

[0031] The method embodiment provided in this embodiment can be executed in a mobile terminal, a computer terminal or a similar computing device. Figure 1 The hardware structure block diagram of a computer terminal (or mobile device) for implementing a three-dimensional contour line graphic display method or generation method based on tangent filtering 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 device 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 are shown.

[0032] 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).

[0033] 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 three-dimensional contour line graphic display method or generation method based on tangent filtering 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 three-dimensional contour line graphic display method based on tangent filtering of the above-mentioned application program is realized. 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 a combination thereof.

[0034] 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.

[0035] 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).

[0036] 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 1This 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).

[0037] Figure 2 1 is a schematic diagram of a system for displaying three-dimensional contour lines based on tangent filtering according to this embodiment. The system can be used to view the three-dimensional contour lines of industrial parts (ie, objects) on a terminal device 100. 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 display the three-dimensional contour line graphics of the parts. 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.

[0038] In the above operating environment, according to the first aspect of this embodiment, a three-dimensional contour line graphic display method based on tangent filtering is provided. For example, the method can be 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 3 As shown, the method includes:

[0039] S302: Displaying a three-dimensional contour line graphic of the object, wherein the three-dimensional contour line graphic is a three-dimensional contour line graphic that has been processed by tangent filtering, and the tangent filtering processing is used to filter out tangents in the three-dimensional contour line graphic.

[0040] Specifically, refer to Figure 2 and Figure 4 As shown, after the terminal device 100 responds to the user's trigger operation (where the trigger operation may be, for example, clicking on the editable interface of the selected component), the terminal device 100 displays the three-dimensional contour line graphics of the component (i.e., the object). The three-dimensional contour line graphics are three-dimensional contour line graphics that have been processed by tangent filtering, and the tangent filtering process is used to filter out the tangents in the three-dimensional contour line graphics. The user can view the three-dimensional contour line graphics of the component on the terminal device 100. For example, Figure 4 The 3D contour line graphics of the component after filtering the tangents are shown as an example. The 3D contour line graphics after filtering out the tangents have no interfering edges, which makes the 3D graphics display effect of the component better and avoids the user's possible misinterpretation of the component structure when viewing the 3D contour line graphics.

[0041] Refer to Figure 5 and Figure 6As shown in the background technology, existing parts have tangent lines when displaying three-dimensional graphics. The tangent lines are also called tangent lines, which are the basic lines that must be created when performing 3D modeling. When displaying the three-dimensional graphics of existing parts, the tangent lines are displayed together. Figure 5 and Figure 6 The tangent lines of the components in the prior art are shown in the figure numerals 501 and 601. 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.

[0042] It can be seen that compared with the existing method for displaying the three-dimensional contour line graphics of parts, 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 parts better, and the three-dimensional graphic structure is clearer and more accurate, avoiding the interference of tangents on the correct display of the three-dimensional contour line graphics, so that users can view the three-dimensional contour line graphics of parts more quickly, intuitively, accurately and efficiently, saving time and effort.

[0043] In addition, although the technical solution of the present disclosure is described in this embodiment by taking parts as specific examples of "objects", it should be clear to those skilled in the art that the specific form of "objects" is not limited thereto. For example, "objects" can be a cartoon character, a building, or a model, etc.

[0044] 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.

[0045] 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 the tangent is filtered out is displayed. Therefore, the technical solution of this embodiment filters out the tangents that may cause interference by traversing all the edges, so that the method of this embodiment will not miss any tangent, thereby making the process of filtering out the tangent more comprehensive and effective.

[0046] Among them, Figure 4 In the figure, reference numerals 401, 402, 405, 406 and 407 are all edge lines. Figure 5 Reference numerals 501, 502, and 503 and the attached Figure 6 Those marked with reference numeral 601 in the figure are also edge lines.

[0047] 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 figure are rotation surfaces; and when both contour surfaces are rotation surfaces, performing the following operations: determining whether the rotation center lines of the two contour surfaces coincide; and determining that the edge line is a tangent line when the rotation center lines of the two contour surfaces coincide, or determining that the edge line is not a tangent line when the rotation center lines of the two contour surfaces do not coincide.

[0048] 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. Figure 4 In FIG. 4 , contour surfaces 403 and 404 are two contour surfaces adjacent to each other by edge line 401 . Figure 5 In FIG, contour surfaces 504 and 505 are two contour surfaces adjacent to each other by edge line 501. If it is determined that the two contour surfaces adjacent to each other by edge line are both rotational curved surfaces (such as cylindrical surfaces, conical surfaces, etc.), then this edge line is further judged as a candidate line that may be a tangent line, and the following operations are performed: determining whether the rotation center lines of the two contour surfaces coincide; and determining that the edge line is a tangent line if the rotation center lines of the two contour surfaces coincide, or determining that the edge line is not a tangent line if the rotation center lines of the two contour surfaces do not coincide.

[0049] For example, despite Figure 4 The contour surfaces 403 and 404 in are rotational surfaces, but the rotation center lines of the contour surfaces 403 and 404 do not coincide, so the edge line 401 is not a tangent line. Figure 5 The two contour surfaces 504 and 505 adjacent to the edge line 501 are rotational curved surfaces, and their rotation center lines coincide, so the edge line 501 is determined to be a tangent line. Similarly, the edge line 601 is also determined to be a tangent line.

[0050] In the prior art, when generating a three-dimensional contour line graph of an object, a tangent line is usually formed on the cylindrical surface. Such a tangent line will interfere with people's observation of the three-dimensional contour line graph. However, the existing technology for generating three-dimensional contour line graphs often ignores such tangent lines. The applicant has noticed the inconvenience caused by such tangent lines when people observe the three-dimensional contour line graph, and based on the characteristics of such tangent lines and adjacent contour surfaces, a solution for automatically filtering out such contour line graphs is designed. This improves the display effect of the three-dimensional contour line graph.

[0051] 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.

[0052] refer to Figure 7 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 shown in . 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.

[0053] 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.

[0054] 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.

[0055] In addition, optionally, the method also includes: receiving a user's trigger operation; in response to the user's trigger operation, determining the edge selected by the user in the three-dimensional contour line graphic; and determining the edge selected by the user as a tangent line and filtering out the edge selected by the user.

[0056] Specifically, in some cases, the user may need to manually filter out the tangents. In this case, the terminal device 100 will receive a trigger operation from the user. The trigger operation may be, for example, a user double-clicking an edge line in a three-dimensional contour line graph with a mouse, a user clicking an edge line in a three-dimensional contour line graph with a mouse, or a user selecting an edge line in a three-dimensional contour line graph and clicking a confirmation button.

[0057] After receiving the user's trigger operation, the terminal device 100 determines the edge selected by the user in the three-dimensional contour line graph in response to the user's trigger operation, and then determines the edge selected by the user as a tangent line, and filters out the edge selected by the user.

[0058] In this way, the user can manually filter out the tangent lines, thereby making it easier for the user to read and process the three-dimensional contour line graphics.

[0059] Optionally, the method further includes: receiving a trigger operation of a user; and displaying a three-dimensional contour line graphic of the object that has not been subjected to tangent filtering processing in response to the trigger operation of the user.

[0060] Specifically, in some cases, the user may not need to display the three-dimensional graphics of the parts after filtering out the tangents. In this case, the terminal device 100 receives the user's trigger operation. The trigger operation may be, for example, an operation such as the user double-clicking or clicking a confirmation button for displaying the three-dimensional graphics with tangents with a mouse. In this way, the user can select the three-dimensional contour graphics that have not been filtered by the tangents, thereby satisfying the user's need to read the three-dimensional graphics with tangents quickly and conveniently.

[0061] Therefore, according to the first aspect of this embodiment, the three-dimensional contour line graphics of the parts after tangent filtering processing are displayed, so that the display effect of the three-dimensional contour line graphics of the parts is better, and the three-dimensional graphic structure is clearer and more accurate, avoiding the interference of tangents on the display of 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.

[0062] In addition, reference Figure 8 According to the second aspect of this embodiment, a method for generating a three-dimensional contour line graph is provided. Figure 2 The method can be executed on both the terminal device 100 and the server 200 shown, and includes:

[0063] S802: Acquire a three-dimensional contour line graphic of the object; and

[0064] S804: Perform tangent filtering processing on the three-dimensional contour line graphic to generate a three-dimensional contour line graphic with the tangents filtered out.

[0065] Specifically, referring to the first aspect of this embodiment, the method generates a three-dimensional contour line graphic with the tangents filtered out by tangent filtering, so that the display effect of the three-dimensional contour line graphic of the parts (i.e., objects) is 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 graphic, so that users can view the three-dimensional contour line graphic of the parts more quickly, intuitively, accurately and efficiently, saving time and effort.

[0066] In addition, although the technical solution of the present disclosure is described in this embodiment by taking parts as specific examples of "objects", it should be clear to those skilled in the art that the specific form of "objects" is not limited thereto. For example, "objects" can be a cartoon character, a building, or a model, etc.

[0067] 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.

[0068] 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 the tangent is filtered out is displayed. Therefore, the technical solution of this embodiment filters out the tangents that may cause interference by traversing all the edges, so that the method of this embodiment will not miss any tangent, thereby making the process of filtering out the tangent more comprehensive and effective.

[0069] Among them, Figure 4 401, 402, 405, 406 and 407 and Figure 5 The reference numerals 502 and 503 in the figure are both edge lines. Figure 5 The reference numeral 501 and the attached Figure 6 The reference numeral 601 in the figure indicates tangent lines.

[0070] 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 figure are rotation surfaces; and when both contour surfaces are rotation surfaces, performing the following operations: determining whether the rotation center lines of the two contour surfaces coincide; and determining that the edge line is a tangent line when the rotation center lines of the two contour surfaces coincide, or determining that the edge line is not a tangent line when the rotation center lines of the two contour surfaces do not coincide.

[0071] Specifically, when determining whether an edge line is a tangent line, first determine two contour surfaces adjacent to each other by the edge line in the three-dimensional contour figure, and determine the type of the contour surface. Figure 4 In FIG. 4 , contour surfaces 403 and 404 are two contour surfaces adjacent to each other by edge line 401 . Figure 5In FIG, contour surfaces 504 and 505 are two contour surfaces adjacent to each other by edge line 501. If it is determined that the two contour surfaces adjacent to each other by edge line are both rotational curved surfaces (such as cylindrical surfaces, conical surfaces, etc.), then this edge line is further judged as a candidate line that may be a tangent line, and the following operations are performed: determining whether the rotation center lines of the two contour surfaces coincide; and determining that the edge line is a tangent line if the rotation center lines of the two contour surfaces coincide, or determining that the edge line is not a tangent line if the rotation center lines of the two contour surfaces do not coincide.

[0072] For example, despite Figure 4 The contour surfaces 403 and 404 in are rotational surfaces, but the rotation center lines of the contour surfaces 403 and 404 do not coincide, so the edge line 401 is not a tangent line. Figure 5 The two contour surfaces 504 and 505 adjacent to the edge line 501 are rotational curved surfaces, and their rotation center lines coincide, so the edge line 501 is determined to be a tangent line. Similarly, the edge line 601 is also determined to be a tangent line.

[0073] In the prior art, when generating a three-dimensional contour line graph of an object, a tangent line is usually formed on the cylindrical surface. Such a tangent line will interfere with people's observation of the three-dimensional contour line graph. However, the existing technology for generating three-dimensional contour line graphs often ignores such tangent lines. The applicant has noticed the inconvenience caused by such tangent lines when people observe the three-dimensional contour line graph, and based on the characteristics of such tangent lines and adjacent contour surfaces, a solution for automatically filtering out such contour line graphs is designed. This improves the display effect of the three-dimensional contour line graph.

[0074] 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.

[0075] refer to Figure 7 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 shown in . Among the two contour surfaces 701 and 704 adjacent to the tangent line 702, one is a rotational curved surface 701, and the other contour surface 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.

[0076] 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.

[0077] 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.

[0078] Therefore, according to the second aspect of this embodiment, the three-dimensional contour line graphics of the parts after tangent filtering processing are displayed, so that the display effect of the three-dimensional contour line graphics of the parts is better, and the three-dimensional graphic structure is clearer and more accurate, avoiding the interference of tangents on the display of 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.

[0079] In addition, reference Figure 1 As shown, according to the third aspect of this embodiment, a memory 104 is provided. The memory 104 includes a stored program, wherein when the program is running, the processor executes any one of the above methods.

[0080] 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.

[0081] 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.

[0082] 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.

[0083] Example 2

[0084] Fig. 9 A three-dimensional contour line graphic display device 900 based on tangent filtering according to the first aspect of this embodiment is shown, and the device 900 corresponds to the method according to the first aspect of embodiment 1. Fig. 9 As shown, the device 900 includes: a first display module 910, which is used to display a three-dimensional contour line graphic of an object, wherein the three-dimensional contour line graphic is a three-dimensional contour line graphic that has been processed by tangent filtering, and the tangent filtering processing is used to filter out tangents in the three-dimensional contour line graphic.

[0085] Optionally, the first display module 910 includes: a first determining submodule, configured to determine whether the edge line is a tangent line; and a first filtering submodule, configured to filter out the edge line determined to be a tangent line when the edge line is determined to be a tangent line.

[0086] Optionally, the first determination submodule includes: a first determination unit, used to determine whether two contour surfaces adjacent to each other by an edge line in a three-dimensional contour line graphic are rotation surfaces; and a first execution unit, used to perform the following operations when both contour surfaces are rotation surfaces: determine whether the rotation center lines of the two contour surfaces coincide; and determine that the edge line is a tangent when the rotation center lines of the two contour surfaces coincide, or determine that the edge line is not a tangent when the rotation center lines of the two contour surfaces do not coincide.

[0087] Optionally, the first determination submodule also includes: a second execution unit, which is used to perform the following operations when one of the two contour surfaces adjacent to the edge is a rotation surface: determine whether the normals of the two contour surfaces at the edge coincide; and determine that the edge is a tangent when the normals of the two contour surfaces coincide, or determine that the edge is not a tangent when the normals of the two contour surfaces do not coincide.

[0088] Optionally, the display device 900 also includes: a first receiving module for receiving a user's trigger operation; a determination module for determining the edge line selected by the user in the three-dimensional contour line graph in response to the user's trigger operation; and a filtering module for determining the edge line selected by the user as a tangent line and filtering out the edge line selected by the user.

[0089] Optionally, the display device 900 further includes: a second receiving module for receiving a trigger operation of a user; and a second display module for displaying a three-dimensional contour line graphic of the object that has not been subjected to tangent filtering processing in response to the trigger operation of the user.

[0090] Optionally, the first display module includes a first display submodule, which is used to display a three-dimensional outline of the component.

[0091] also, Fig.10 The device 1000 for generating a three-dimensional contour line graphic based on tangent filtering according to the second aspect of this embodiment is shown. The device 1000 corresponds to the method according to the second aspect of embodiment 1. Fig.10 As shown, the device 1000 includes: an acquisition module 1010, used to acquire a three-dimensional contour line graphic of an object; and a generation module 1020, used to perform tangent filtering processing on the three-dimensional contour line graphic to generate a three-dimensional contour line graphic with the tangent filtered out.

[0092] Optionally, the generating module 1020 includes: a second determining submodule, configured to determine whether the edge line is a tangent line; and a second filtering submodule, configured to filter out the edge line determined to be a tangent line when the edge line is determined to be a tangent line.

[0093] Optionally, the second determination submodule includes: a second determination unit, used to determine whether two contour surfaces adjacent to each other by an edge line are rotation surfaces; and a third execution unit, used to perform the following operations when both contour surfaces are rotation surfaces: determine whether the rotation center lines of the two contour surfaces coincide; and determine that the edge line is a tangent when the rotation center lines of the two contour surfaces coincide, or determine that the edge line is not a tangent when the rotation center lines of the two contour surfaces do not coincide.

[0094] Optionally, the second determination submodule also includes: a fourth execution unit, which is used to perform the following operations when one of the two contour surfaces adjacent to the edge is a rotation surface: 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.

[0095] Therefore, according to this embodiment, through tangent filtering processing, a three-dimensional contour line graphic with tangents filtered out is generated, so that the display effect of the three-dimensional contour line graphic of the parts is better, and the three-dimensional graphic structure is clearer and more accurate, avoiding the interference of the tangent on the display of the three-dimensional contour line graphic, so that users can view the three-dimensional contour line graphic of the parts more quickly, intuitively, accurately and efficiently, saving time and effort.

[0096] Example 3

[0097] Fig.11The 3D contour line graphic display device 1100 based on tangent filtering according to the first aspect of this embodiment is shown. The device 1100 corresponds to the method according to the first aspect of embodiment 1. Fig.11 As shown, the device 1100 includes: a first processor 1110; and a first memory 1120, which is connected to the first processor 1110 and is used to provide the first processor 1110 with instructions for processing the following processing steps: displaying a three-dimensional contour line graphic of an object, wherein the three-dimensional contour line graphic is a three-dimensional contour line graphic that has been processed by tangent filtering, and the tangent filtering processing is used to filter out tangents in the three-dimensional contour line graphic.

[0098] 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.

[0099] 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 figure are rotation surfaces; and when both contour surfaces are rotation surfaces, performing the following operations: determining whether the rotation center lines of the two contour surfaces coincide; and determining that the edge line is a tangent line when the rotation center lines of the two contour surfaces coincide, or determining that the edge line is not a tangent line when the rotation center lines of the two contour surfaces do not coincide.

[0100] 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.

[0101] Optionally, the first memory 1120 is also used to provide the first processor 1110 with instructions for processing the following processing steps: receiving a user's trigger operation; determining, in response to the user's trigger operation, an edge line selected by the user in the three-dimensional contour line graph; and determining the edge line selected by the user as a tangent line, and filtering out the edge line selected by the user.

[0102] Optionally, the first memory 1120 is further used to provide the first processor 1110 with instructions for processing the following processing steps: receiving a trigger operation from a user; and displaying a three-dimensional contour line graphic of the object that has not been subjected to tangent filtering processing in response to the trigger operation from the user.

[0103] Optionally, the object is a component, and the operation of displaying a three-dimensional contour line graphic of the object includes: displaying a three-dimensional contour line of the component.

[0104] also, Fig.12The device 1200 for generating a three-dimensional contour line graphic based on tangent filtering according to the second aspect of this embodiment is shown. The device 1200 corresponds to the method according to the second aspect of embodiment 1. Fig.12 As shown, the device 1200 includes: a second processor 1210; and a second memory 1220, which is connected to the second processor 1210 and is used to provide the second processor 1210 with instructions for processing the following processing steps: obtaining a three-dimensional contour line graphic of the object; and performing tangent filtering on the three-dimensional contour line graphic to generate a three-dimensional contour line graphic with the tangent filtered out.

[0105] Optionally, the tangent filtering process includes performing the following operations on the edge lines in the three-dimensional contour line graphics: determining whether the edge lines are tangent lines; and filtering out the edge lines determined to be tangent lines when the edge lines are determined to be tangent lines.

[0106] Optionally, the operation of determining whether an edge line is a tangent line includes: determining whether two contour surfaces adjacent to the edge line are rotation surfaces; and when both contour surfaces are rotation surfaces, performing the following operations: determining whether the rotation center lines of the two contour surfaces coincide; and determining that the edge line is a tangent line when the rotation center lines of the two contour surfaces coincide, or determining that the edge line is not a tangent line when the rotation center lines of the two contour surfaces do not coincide.

[0107] 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.

[0108] Therefore, according to this embodiment, through tangent filtering processing, a three-dimensional contour line graphic with tangents filtered out is generated, so that the display effect of the three-dimensional contour line graphic of the parts is better, and the three-dimensional graphic structure is clearer and more accurate, avoiding the interference of the tangent on the display of the three-dimensional contour line graphic, so that users can view the three-dimensional contour line graphic of the parts more quickly, intuitively, accurately and efficiently, saving time and effort.

[0109] 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.

[0110] 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.

[0111] 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.

[0112] 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.

[0113] 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.

[0114] 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, RandomAccess Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

[0115] 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 three-dimensional contour line graphics based on tangent filtering, characterized in that: include: Displaying a three-dimensional contour line graph of an object, wherein the three-dimensional contour line graph is a three-dimensional contour line graph that has been processed by tangent filtering, and the tangent filtering is used to filter out tangents in the three-dimensional contour line graph; 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 is a tangent line; as well as In the case where the edge line is determined to be a tangent line, filtering out the edge line determined to be a tangent line; The operation of determining whether the edge is a tangent line includes: Determine whether two contour surfaces adjacent to each other by the edge line in the three-dimensional contour line graph are rotational surfaces; as well as When both profile surfaces are surfaces of revolution, perform the following operations: Determining whether the rotation center lines of the two contour surfaces coincide with each other; and When the rotation center lines of the two contour surfaces coincide with each other, the edge line is determined to be a tangent line, or when the rotation center lines of the two contour surfaces do not coincide with each other, the edge line is determined to be not a tangent line.

2. The method according to claim 1, characterized in that The operation of determining whether the edge line is a tangent line further includes, when one of the two contour surfaces adjacent to the edge line is a rotation surface, performing the following operations: Determining whether the normals of the two contour surfaces at the edge line coincide with each other; and When the normal lines of the two contour surfaces coincide with each other, the edge line is determined to be a tangent line, or when the normal lines of the two contour surfaces do not coincide with each other, the edge line is determined not to be a tangent line.

3. The method according to claim 1, characterized in that Also includes: Receive triggering actions from users; In response to a trigger operation of the user, determining a sideline selected by the user in the three-dimensional contour line graph; as well as The edge line selected by the user is determined as a tangent line, and the edge line selected by the user is filtered out.

4. The method according to claim 1, characterized in that: Also includes: Receive triggering actions from users; as well as In response to the triggering operation of the user, a three-dimensional contour line graphic of the object that has not been subjected to the tangent filtering process is displayed.

5. The method according to any one of claims 1 to 4, characterized in that: The object is a component, and the operation of displaying a three-dimensional contour line graphic of the object includes: displaying the three-dimensional contour line of the component.

6. A method for generating three-dimensional contour line graphics based on tangent filtering, characterized in that: include: Get the three-dimensional contour line graphics of the object; as well as Performing tangent filtering processing on the three-dimensional contour line graph to generate a three-dimensional contour line graph with tangents filtered out; The tangent filtering process includes performing the following operations on the edge lines in the three-dimensional contour line graph: determining whether the edge is a tangent line; as well as In the case where the edge line is determined to be a tangent line, filtering out the edge line determined to be a tangent line; The operation of determining whether the edge is a tangent line includes: Determine whether two contour surfaces adjacent to each other by the edge line in the three-dimensional contour line graph are rotational surfaces; as well as When both profile surfaces are surfaces of revolution, perform the following operations: Determining whether the rotation center lines of the two contour surfaces coincide with each other; and When the rotation center lines of the two contour surfaces coincide with each other, the edge line is determined to be a tangent line, or when the rotation center lines of the two contour surfaces do not coincide with each other, the edge line is determined to be not a tangent line.

7. A storage medium comprising a stored program, wherein: When the program is running, the method according to any one of claims 1 to 6 is executed by a processor.

Citation Information

Patent Citations

  • Method and device for displaying three-dimensional graph and providing graph and graph data

    CN111862334A

  • Three-dimensional display object, three-dimensional image forming apparatus, method and program for forming three-dimensional image

    JP2010128450A

  • Graphical management of building devices

    US20090307255A1