CN111862335A - Three-dimensional contour line graph display and generation method and device based on tangent filtering - Google Patents

Three-dimensional contour line graph display and generation method and device based on tangent filtering Download PDF

Info

Publication number
CN111862335A
CN111862335A CN201910356706.4A CN201910356706A CN111862335A CN 111862335 A CN111862335 A CN 111862335A CN 201910356706 A CN201910356706 A CN 201910356706A CN 111862335 A CN111862335 A CN 111862335A
Authority
CN
China
Prior art keywords
tangent
line
dimensional contour
filtering
contour line
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910356706.4A
Other languages
Chinese (zh)
Inventor
林振峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Yougongpin Technology Co ltd
Original Assignee
Hangzhou Yougongpin Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Yougongpin Technology Co ltd filed Critical Hangzhou Yougongpin Technology Co ltd
Priority to CN201910356706.4A priority Critical patent/CN111862335A/en
Publication of CN111862335A publication Critical patent/CN111862335A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics

Abstract

The application discloses a three-dimensional contour line graph displaying and generating method and device based on tangent filtering. The display method of the three-dimensional contour line graph based on tangent line filtering comprises the following steps: and displaying a three-dimensional contour line graph of the object, wherein the three-dimensional contour line graph is subjected to tangent filtering treatment, and the tangent filtering treatment is used for filtering out tangents in the three-dimensional contour line graph. Therefore, the three-dimensional contour line graph display based on tangent line filtering is realized, and the display effect of the three-dimensional contour line graph of the part is better.

Description

Three-dimensional contour line graph display and generation method and device based on tangent filtering
Technical Field
The present application relates to the field of processing of three-dimensional graphics, and in particular, to a method and an apparatus for displaying and generating a three-dimensional contour graph based on tangential filtering.
Background
With the rapid development of computer technology and network technology, the application research of three-dimensional stereo is receiving more and more attention. Three-dimensional stereograms are a class of planar images from which a person can feel a stereoscopic effect, and the application field thereof is also becoming wider and wider.
In the prior art, when a three-dimensional graph of an industrial part is displayed, a tangent of the three-dimensional graph is displayed in the three-dimensional graph, and the tangent is a basic line which is required to be created when three-dimensional modeling is carried out. The display of the tangent line can affect the display effect of the three-dimensional view of the part, cause interference to a user when viewing the three-dimensional graph of the part, and affect the accurate embodiment of the three-dimensional structure of the part.
In view of the above technical problems in the prior art, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the disclosure provides a method and a device for displaying and generating a three-dimensional contour line graph based on tangent line filtering, so as to solve the technical problems that in the prior art, when the three-dimensional graph of a part is viewed, the display effect is poor, the display of the tangent line is easy to cause interference, and even the wrong understanding of a user on the structure of the part can be caused.
According to an aspect of the embodiments of the present disclosure, there is provided a method for displaying a three-dimensional contour line graph based on tangent filtering, including: and displaying a three-dimensional contour line graph of the object, wherein the three-dimensional contour line graph is subjected to tangent filtering treatment, and the tangent filtering treatment is used for filtering out tangents in the three-dimensional contour line graph.
According to another aspect of the embodiments of the present disclosure, there is provided a method for generating a three-dimensional contour line graph based on tangent filtering, including: acquiring a three-dimensional contour line graph of an object; and carrying out tangent filtering treatment on the three-dimensional contour line graph to generate a three-dimensional contour line graph with a tangent filtered out.
According to another aspect of the embodiments of the present disclosure, there is also provided a storage medium including a stored program, wherein the method of any one of the above is performed by a processor when the program is run.
There is also provided, in accordance with another aspect of the disclosed embodiments, apparatus for three-dimensional contour line graphical presentation based on tangential filtering, the apparatus including: the first display module is used for displaying a three-dimensional contour line graph of an object, wherein the three-dimensional contour line graph is subjected to tangent filtering processing, and the tangent filtering processing is used for filtering out tangents in the three-dimensional contour line graph.
There is further provided, in accordance with another aspect of the disclosed embodiments, an apparatus for generating a three-dimensional contour line graph based on tangential filtering, the apparatus including: the acquisition module is used for acquiring a three-dimensional contour line graph of an object; and the generating module is used for carrying out tangent filtering processing on the three-dimensional contour line graph to generate the three-dimensional contour line graph with the tangent filtered.
There is also provided, in accordance with another aspect of the disclosed embodiments, apparatus for three-dimensional contour line graphical presentation based on tangential filtering, the apparatus including: a first processor; and a first memory coupled to the first processor for providing instructions to the first processor to process the following processing steps: and displaying a three-dimensional contour line graph of the object, wherein the three-dimensional contour line graph is subjected to tangent filtering treatment, and the tangent filtering treatment is used for filtering out tangents in the three-dimensional contour line graph.
There is further provided, in accordance with another aspect of the disclosed embodiments, apparatus for generating a three-dimensional contour line graph based on tangent filtering, the apparatus including: a second processor; and a second memory coupled to the second processor for providing instructions to the second processor to process the following processing steps: acquiring a three-dimensional contour line graph of an object; and carrying out tangent filtering treatment on the three-dimensional contour line graph to generate a three-dimensional contour line graph with a tangent filtered out.
In the embodiment of the disclosure, the three-dimensional contour line graph display based on tangent line filtering is realized, so that the display effect of the three-dimensional contour line graph of the part is better, the three-dimensional graph structure is clearer and more accurate, the interference of the tangent line to the three-dimensional contour line graph of the part is avoided, and a user can look over the three-dimensional contour line graph of the part more quickly and intuitively, accurately and efficiently, and saves time and labor.
Drawings
The accompanying drawings, which are included to provide a further understanding of the disclosure and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the disclosure and together with the description serve to explain the disclosure and not to limit the disclosure. In the drawings:
fig. 1 is a block diagram of a hardware structure for implementing the method according to embodiment 1 of the present disclosure;
FIG. 2 is a schematic diagram of a three-dimensional contour line graphic display system based on tangent filtering according to embodiment 1 of the present disclosure;
fig. 3 is a schematic flow chart of a three-dimensional contour line graph display method based on tangential filtering according to a first aspect of embodiment 1 of the present disclosure;
FIG. 4 is a three-dimensional contour plot of a component part according to the first aspect of embodiment 1 of the present disclosure;
FIG. 5 is a three-dimensional contour line drawing of a component part according to the prior art as described in the background;
FIG. 6 is a three-dimensional contour line drawing of a component part according to the prior art as described in the background;
FIG. 7 is a three-dimensional contour line drawing of a component part according to the prior art as described in the background;
fig. 8 is a schematic flow chart of a method for generating a three-dimensional contour line graph based on tangential filtering according to a second aspect of embodiment 1 of the present disclosure;
FIG. 9 is a schematic view of a three-dimensional contour line graphic display device based on tangential filtering according to the first aspect of embodiment 2 of the present disclosure;
fig. 10 is a schematic diagram of a three-dimensional outline pattern generating apparatus according to a second aspect of embodiment 2 of the present disclosure;
FIG. 11 is a schematic view of a three-dimensional contour line graphic display device based on tangential filtering according to the first aspect of embodiment 3 of the present disclosure; and
fig. 12 is a schematic diagram of a three-dimensional outline pattern generating apparatus according to a second aspect of embodiment 3 of the present disclosure.
Detailed Description
In order to make those skilled in the art 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 with reference to the drawings in the embodiments of the present disclosure. It is to be understood that the described embodiments are merely exemplary of some, and not all, of the present disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
According to the present embodiment, there is provided an embodiment of a three-dimensional outline graphic presentation method or generation method based on tangent filtering, it is noted that the steps illustrated in the flowchart of the drawings may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowchart, in some cases, the steps illustrated or described may be performed in an order different than here.
The method provided by the embodiment can be executed in a mobile terminal, a computer terminal or a similar operation device. Fig. 1 shows a hardware configuration block diagram of a computer terminal (or mobile device) for implementing a three-dimensional contour line graph presentation method or generation method based on tangent filtering. As shown in fig. 1, the computer terminal 10 (or mobile device 10) may include one or more (shown as 102a, 102b, … …, 102 n) processors 102 (the processors 102 may include, but are not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA, etc.), a memory 104 for storing data, and a transmission module 106 for communication functions. Besides, the method can also comprise the following steps: 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 source, and/or a camera. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration and is not intended to limit the structure of the electronic device. For example, the computer terminal 10 may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
It should be noted that the one or more processors 102 and/or other data processing circuitry described above may be referred to generally herein as "data processing circuitry". The data processing circuitry may be embodied in whole or in part in software, hardware, firmware, or any combination thereof. Further, the data processing circuit may be a single stand-alone processing module, or incorporated in whole or in part into any of the other elements in the computer terminal 10 (or mobile device). As referred to in the disclosed embodiments, the data processing circuit acts as a processor control (e.g., selection of a variable resistance termination path connected to the interface).
The memory 104 may be used to store software programs and modules of application software, such as program instructions/data storage devices corresponding to the tangential filtering-based three-dimensional contour line graphic display method or the generating method in the embodiments of the present disclosure, and the processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, so as to implement the aforementioned tangential filtering-based three-dimensional contour line graphic display method of the application software. The memory 104 may include high speed random access memory, and may also include 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 memory located remotely from the processor 102, which may be connected to the computer terminal 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above 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 (NIC) that can be connected to other Network devices through a base station 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 in a wireless manner.
The display may be, for example, a touch screen type Liquid Crystal Display (LCD) that may enable a user to interact with a user interface of the computer terminal 10 (or mobile device).
It should be noted here that in some alternative embodiments, the computer device (or mobile device) shown in fig. 1 described above may include hardware elements (including circuitry), software elements (including computer code stored on a computer-readable medium), or a combination of both hardware and software elements. It should be noted that fig. 1 is only one example of a particular specific example and is intended to illustrate the types of components that may be present in the computer device (or mobile device) described above.
FIG. 2 is a schematic diagram of a system for three-dimensional contour line graphic presentation based on tangent filtering according to the present embodiment. The system can be used to view three-dimensional contours of industrial parts (i.e., objects) on the terminal device 100. Referring to fig. 2, the system includes: a terminal device 100 and a server 200. The server 200 is a server of the system, the terminal device 100 may interact with the server 200, and the terminal device 100 is configured to display a three-dimensional contour line graph of a component. It should be noted that the terminal device 100 and the server 200 in the system can be adapted to the above-described hardware structure.
Under the operating environment described above, according to the first aspect of the present embodiment, a three-dimensional contour line graph presentation method based on tangent filtering is provided, which may be implemented by the terminal device 100 shown in fig. 2, for example. Fig. 3 shows a flow diagram of the method, which, with reference to fig. 3, comprises:
s302: and displaying a three-dimensional contour line graph of the object, wherein the three-dimensional contour line graph is subjected to tangent filtering treatment, and the tangent filtering treatment is used for filtering out tangents in the three-dimensional contour line graph.
Specifically, referring to fig. 2 and 4, after the terminal device 100 responds to a trigger operation of the user (where the trigger operation may be, for example, clicking an editable interface of a selected part), a three-dimensional contour graph of the part (i.e., an object) is displayed on the terminal device 100. The three-dimensional contour line graph is subjected to tangent filtering processing, and the tangent filtering processing is used for filtering out tangents in the three-dimensional contour line graph. The user can view the three-dimensional outline pattern of the part on the terminal device 100. For example, fig. 4 exemplarily shows that the three-dimensional contour line graph after the part filters the cut line, and the three-dimensional contour line graph after the cut line is filtered has no interfering side line, so that the three-dimensional graph of the part has a better display effect, and the wrong interpretation of the part structure possibly generated when the user views the three-dimensional contour line graph is avoided.
Referring again to fig. 5 and 6, as described in the background, the existing component part has a tangent line, also called a phase tangent line, which is a basic line that must be created when performing 3D modeling, when performing three-dimensional graphic display. The existing three-dimensional figures of the parts will display the above-mentioned tangent lines together when displaying, and the reference numerals 501 and 601 in fig. 5 and fig. 6 correspond to the tangent lines of the parts in the prior art. Therefore, when the three-dimensional graph of the part is viewed, the display effect is poor, the display of the tangent line is easy to cause interference, and even the wrong understanding of the structure of the part by a user can be caused.
Therefore, compared with the existing three-dimensional contour line graph display method for the parts, the technical scheme of the embodiment is used for filtering out the tangent line in the three-dimensional contour line graph through tangent line filtering processing when the three-dimensional contour line graph is displayed. The three-dimensional contour line graph of the part has a better display effect, the structure of the three-dimensional graph is clearer and more accurate, the interference of a tangent line on the correct display of the three-dimensional contour line graph is avoided, and a user can look over the three-dimensional contour line graph of the part more quickly and visually, accurately and efficiently, and saves time and labor.
In addition, although the present embodiment has been described with specific examples in which parts are "objects". It will be clear to those skilled in the art that the particular form of "object" is not so limited. For example, an "object" may be a cartoon character, a building, a model, or the like.
Optionally, the tangent filtering process includes performing the following operations on an edge line in the three-dimensional contour line graph of the object: determining whether the sideline is a tangent line; and in the case that the sidelines are determined to be tangent lines, filtering the sidelines determined to be tangent lines.
Specifically, in response to the user's trigger operation, the terminal device 100 traverses all edges in the three-dimensional contour line graph, determines whether the edges of the three-dimensional contour line graph are tangents, and filters the edges determined to be tangents when determining that the determined edges are tangents. And displaying the three-dimensional contour line graph after the tangent line is filtered. Therefore, in the technical scheme of the embodiment, the tangents which may cause interference are filtered out in a mode of traversing all edge lines, so that any tangent is not missed by the method of the embodiment, and the process of filtering the tangents is more comprehensive and effective.
In fig. 4, reference numerals 401, 402, 405, 406, and 407 denote edges. In addition, reference numerals 501, 502, and 503 in fig. 5 and reference numeral 601 in fig. 6 are also denoted by borderlines.
Optionally, the operation of determining whether the edge line is a tangent line comprises: determining whether two adjacent contour surfaces of the three-dimensional contour line graph are rotating curved surfaces or not; and in the case that both profile surfaces are surfaces of revolution, performing the following operations: determining whether the rotation center lines of the two contour surfaces are overlapped; and determining the borderline as a tangent line if the rotation center lines of the two profile surfaces coincide, or determining the borderline not as a tangent line if the rotation center lines of the two profile surfaces do not coincide.
Specifically, when determining whether an edge is a tangent, the terminal device 100 first determines two contour surfaces adjacent to the edge in the three-dimensional contour pattern, and determines the type of the contour surface. For example, in fig. 4, the contour surfaces 403 and 404 are two contour surfaces adjacent to each other by the edge 401. In fig. 5, the contour surfaces 504 and 505 are two contour surfaces adjacent to the edge 501. If it is determined that the two profile surfaces adjacent to the borderline are both the rotating curved surfaces (such as the cylindrical surface, the conical surface, etc.), the borderline is further determined as the candidate line that may be the tangent line, and at this time, the following operations are performed: determining whether the rotation center lines of the two contour surfaces are overlapped; and determining the borderline as a tangent line if the rotation center lines of the two profile surfaces coincide, or determining the borderline not as a tangent line if the rotation center lines of the two profile surfaces do not coincide.
For example, although the contour surfaces 403 and 404 in fig. 4 are surfaces of revolution, the centerlines of revolution of the contour surfaces 403 and 404 do not coincide, and thus the edge 401 is not a tangent. In fig. 5, two contour surfaces 504 and 505 adjacent to each other on the edge 501 are rotational curved surfaces, and their rotational center lines overlap each other, and therefore the edge 501 is determined as a tangent. Similarly, the edge 601 is also determined as a tangent.
In the prior art, when generating a three-dimensional contour graph of an object, a tangent is generally formed on a cylindrical surface. Which would interfere with the human view of the three-dimensional contour pattern. However, the existing technology for generating the three-dimensional contour line graph is often neglected for the tangent lines. The applicant notices the inconvenience brought by the tangent lines for people to observe the three-dimensional contour line graph, and designs a scheme for automatically filtering the contour line graph according to the characteristics of the tangent lines and the adjacent contour surfaces. Thereby improving the display effect of the three-dimensional contour line graph.
Optionally, the operation of determining whether the edge line is a tangent line further comprises: in the case where one of the two contour surfaces adjacent to the borderline is a surface of revolution, the following operations are performed: determining whether the normals of the two contour surfaces at the side line are coincident; and determining the borderline as a tangent line if the normals of the two profile surfaces coincide, or determining the borderline not as a tangent line if the normals of the two profile surfaces do not coincide.
Referring to fig. 7, for example, in some cases, the tangent line also appears in the case where only one of the profile surfaces is a surface of revolution (where the other profile surface is a flat surface, or other surface of non-revolution), such as the chamfer 701 shown in fig. 7. Two profile surfaces 701 and 704, where the tangent line 702 is adjacent, are a surface 701 of revolution and a flat surface 704. Although both the two profile surfaces 701 and 705 adjacent to the tangent line 703 are surfaces of revolution, it is difficult to define the center lines of revolution of the two profile surfaces 701 and 705. Therefore, in this case, it is not possible to apply the method of determining whether the rotation center lines of the two contour surfaces adjacent to the edge line overlap with each other to determine whether the edge line is a tangent line.
Therefore, in the present embodiment, another method for determining whether the edge line is a tangent line is proposed. That is, when at least one of the two adjacent contour surfaces of the edge is a surface of revolution, it is determined whether the normals of the two contour surfaces at the edge are overlapped, and when the normals of the two contour surfaces at the edge are overlapped, it is determined that the edge is a tangent.
In this way, it is thus possible to determine whether a borderline is a tangent line in the case of more complex figures. Thereby increasing the accuracy of the tangential filtering process.
Further, optionally, the method further comprises: receiving a trigger operation of a user; responding to the trigger operation of a user, and determining the side line selected by the user in the three-dimensional contour line graph; and determining the sidelines selected by the user as the tangent lines, and filtering the sidelines selected by the user.
In particular, in some cases, it may be necessary to filter out the cut lines manually by the user himself. In this case, the terminal device 100 may receive a trigger operation by the user. The trigger operation may be, for example: and the user double clicks the sideline in the three-dimensional contour line graph by using the mouse, or clicks a confirmation button after selecting the sideline in the three-dimensional contour line graph by using the user, and the like.
After receiving the trigger operation of the user, the terminal device 100 determines the edge line selected by the user in the three-dimensional contour line graph in response to the trigger operation of the user. The user-selected edges are then determined to be tangent lines and the user-selected edges are filtered out.
Therefore, the user can filter out the tangent lines in a manual mode through the mode, and the user can conveniently read and process the three-dimensional contour line graph.
Optionally, the method further comprises: receiving a trigger operation of a user; and responding to the trigger operation of the user, and displaying the three-dimensional contour line graph of the object which is not subjected to the cutting line filtering processing.
Specifically, in some cases, the user may not need to display a three-dimensional graphic of the part after the cut line is filtered out. In this case, the terminal device 100 receives a trigger operation by the user. The trigger operation may be, for example: the user double-clicks or single-clicks a confirmation button or the like for displaying a three-dimensional figure with a tangent line with a mouse. Therefore, by the mode, the user can select the three-dimensional contour line graph which is not subjected to the tangent filtering treatment, so that the requirement that the user needs to read the three-dimensional graph with the tangent is met, and the method is fast and convenient.
Therefore, according to the first aspect of the embodiment, the three-dimensional contour line graph of the part subjected to the tangent filtering processing is displayed, the display effect of the three-dimensional contour line graph of the part is better, the three-dimensional graph structure is clearer and more accurate, the interference of the tangent to the three-dimensional contour line graph display is avoided, and a user can look over the three-dimensional contour line graph of the part more quickly and visually, accurately and efficiently, and time and labor are saved.
Further, referring to fig. 8, according to a second aspect of the present embodiment, there is provided a method for generating a three-dimensional outline pattern, the method being executable on both the terminal device 100 and the server 200 shown in fig. 2, the method comprising:
s802: acquiring a three-dimensional contour line graph of an object; and
s804: and carrying out tangent filtering treatment on the three-dimensional contour line graph to generate a three-dimensional contour line graph with a tangent filtered.
Specifically, as described with reference to the first aspect of the present embodiment, the method generates the three-dimensional contour line pattern with the cut lines filtered out by the cut line filtering process. The three-dimensional contour line graph of the part (namely the object) is better in display effect, the three-dimensional graph structure is clearer and more accurate, interference of a tangent line on the three-dimensional contour line graph display is avoided, and a user can look over the three-dimensional contour line graph of the part more quickly and visually, accurately and efficiently, and saves time and labor.
In addition, although the present embodiment has been described with specific examples in which parts are "objects". It will be clear to those skilled in the art that the particular form of "object" is not so limited. For example, an "object" may be a cartoon character, a building, a model, or the like.
Optionally, the tangent filtering process includes performing the following operations on an edge line in the three-dimensional contour line graph of the object: determining whether the sideline is a tangent line; and in the case that the sidelines are determined to be tangent lines, filtering the sidelines determined to be tangent lines.
Specifically, the terminal device 100 traverses all edges in the three-dimensional contour line graph in response to the trigger operation of the user, determines whether the edges of the three-dimensional contour line graph are tangent lines, and filters the edges determined as tangent lines when determining that the determined edges are tangent lines. And displaying the three-dimensional contour line graph after the tangent line is filtered. Therefore, in the technical scheme of the embodiment, the tangents which may cause interference are filtered out in a mode of traversing all edge lines, so that any tangent is not missed by the method of the embodiment, and the process of filtering the tangents is more comprehensive and effective.
In fig. 4, reference numerals 401, 402, 405, 406, and 407, and reference numerals 502 and 503 in fig. 5 each denote an edge line. In addition, reference numeral 501 in fig. 5 and reference numeral 601 in fig. 6 are each a tangent line.
Optionally, the operation of determining whether the edge line is a tangent line comprises: determining whether two adjacent contour surfaces of the three-dimensional contour line graph are rotating curved surfaces or not; and in the case that both profile surfaces are surfaces of revolution, performing the following operations: determining whether the rotation center lines of the two contour surfaces are overlapped; and determining the borderline as a tangent line if the rotation center lines of the two profile surfaces coincide, or determining the borderline not as a tangent line if the rotation center lines of the two profile surfaces do not coincide.
Specifically, when determining whether an edge is a tangent, two contour surfaces adjacent to the edge in the three-dimensional contour pattern are first determined, and the type of the contour surface is determined. For example, in fig. 4, the contour surfaces 403 and 404 are two contour surfaces adjacent to each other by the edge 401. In fig. 5, the contour surfaces 504 and 505 are two contour surfaces adjacent to the edge 501. If it is determined that the two profile surfaces adjacent to the borderline are both the rotating curved surfaces (such as the cylindrical surface, the conical surface, etc.), the borderline is further determined as the candidate line that may be the tangent line, and at this time, the following operations are performed: determining whether the rotation center lines of the two contour surfaces are overlapped; and determining the borderline as a tangent line if the rotation center lines of the two profile surfaces coincide, or determining the borderline not as a tangent line if the rotation center lines of the two profile surfaces do not coincide.
For example, although the contour surfaces 403 and 404 in fig. 4 are surfaces of revolution, the centerlines of revolution of the contour surfaces 403 and 404 do not coincide, and thus the edge 401 is not a tangent. In fig. 5, two contour surfaces 504 and 505 adjacent to each other on the edge 501 are rotational curved surfaces, and their rotational center lines overlap each other, and therefore the edge 501 is determined as a tangent. Similarly, the edge 601 is also determined as a tangent.
In the prior art, when generating a three-dimensional contour graph of an object, a tangent is generally formed on a cylindrical surface. Which would interfere with the human view of the three-dimensional contour pattern. However, the existing technology for generating the three-dimensional contour line graph is often neglected for the tangent lines. The applicant notices the inconvenience brought by the tangent lines for people to observe the three-dimensional contour line graph, and designs a scheme for automatically filtering the contour line graph according to the characteristics of the tangent lines and the adjacent contour surfaces. Thereby improving the display effect of the three-dimensional contour line graph.
Optionally, the operation of determining whether the edge line is a tangent line further comprises: in the case where one of the two contour surfaces adjacent to the borderline is a surface of revolution, the following operations are performed: determining whether the normals of the two contour surfaces at the side line are coincident; and determining the borderline as a tangent line if the normals of the two profile surfaces coincide, or determining the borderline not as a tangent line if the normals of the two profile surfaces do not coincide.
Referring to fig. 7, for example, in some cases, the tangent line also appears in the case where only one of the profile surfaces is a surface of revolution (where the other profile surface is a flat surface, or other surface of non-revolution), such as the chamfer 701 shown in fig. 7. Two profile surfaces 701 and 704, where the tangent line 702 is adjacent, are a surface 701 of revolution and a flat surface 704. Although both the two profile surfaces 701 and 705 adjacent to the tangent line 703 are surfaces of revolution, it is difficult to define the center lines of revolution of the two profile surfaces 701 and 705. Therefore, in this case, it is not possible to apply the method of determining whether the rotation center lines of the two contour surfaces adjacent to the edge line overlap with each other to determine whether the edge line is a tangent line.
Therefore, in the present embodiment, another method for determining whether the edge line is a tangent line is proposed. That is, when at least one of the two adjacent contour surfaces of the edge is a surface of revolution, it is determined whether the normals of the two contour surfaces at the edge are overlapped, and when the normals of the two contour surfaces at the edge are overlapped, it is determined that the edge is a tangent.
In this way, it is thus possible to determine whether a borderline is a tangent line in the case of more complex figures. Thereby increasing the accuracy of the tangential filtering process.
Therefore, according to the second aspect of the embodiment, the three-dimensional contour line graph of the part subjected to the tangent filtering processing is displayed, the display effect of the three-dimensional contour line graph of the part is better, the three-dimensional graph structure is clearer and more accurate, the interference of the tangent to the three-dimensional contour line graph display is avoided, and a user can look over the three-dimensional contour line graph of the part more quickly and visually, accurately and efficiently, and time and labor are saved.
Further, referring to fig. 1, according to a third aspect of the present embodiment, there is provided a storage medium 104. The storage medium 104 comprises a stored program, wherein the method of any of the above is performed by a processor when the program is run.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.
Example 2
Fig. 9 shows a three-dimensional contour line graphic presentation device 900 based on tangential filtering according to the first aspect of the present embodiment, the device 900 corresponding to the method according to the first aspect of embodiment 1. Referring to fig. 9, the apparatus 900 includes: the first display module 910 is configured to display a three-dimensional contour line graph of an object, where the three-dimensional contour line graph is processed by a tangent filtering process, and the tangent filtering process is used to filter out a tangent in the three-dimensional contour line graph.
Optionally, the first display module 910 includes: a first determining submodule for determining whether the edge line is a tangent line; and the first filtering submodule is used for filtering the sidelines determined as the tangents under the condition that the sidelines are determined as the tangents.
Optionally, the first determining sub-module includes: the first determining unit is used for determining whether two adjacent contour surfaces adjacent to each other by a side line in the three-dimensional contour line graph are rotating curved surfaces or not; and a first execution unit, configured to, in a case where both the two contour surfaces are the rotating curved surfaces, execute the following operations: determining whether the rotation center lines of the two contour surfaces are overlapped; and determining the borderline as a tangent line if the rotation center lines of the two profile surfaces coincide, or determining the borderline not as a tangent line if the rotation center lines of the two profile surfaces do not coincide.
Optionally, the first determining sub-module further includes: a second executing unit, configured to, when one of two contour surfaces adjacent to each other along the edge is a surface of revolution, execute the following operations: determining whether the normals of the two contour surfaces at the side line are coincident; and determining the borderline as a tangent line if the normals of the two profile surfaces coincide, or determining the borderline not as a tangent line if the normals of the two profile surfaces do not coincide.
Optionally, the apparatus 900 further comprises: the first receiving module is used for receiving the triggering operation of a user; the determining module is used for responding to the triggering operation of the user and determining the side line selected by the user in the three-dimensional contour line graph; and the filtering module is used for determining the sidelines selected by the user as the tangent lines and filtering the sidelines selected by the user.
Optionally, the apparatus 900 further comprises: the second receiving module is used for receiving the triggering operation of the user; and the second display module is used for responding to the trigger operation of the user and displaying the three-dimensional contour line graph of the object which is not subjected to the line cutting filtering processing.
Optionally, the first display module includes a first display sub-module for displaying the three-dimensional contour line of the part.
Furthermore, fig. 10 shows an apparatus 1000 for generating a three-dimensional contour graph based on tangential filtering according to the second aspect of the present embodiment, the apparatus 1000 corresponding to the method according to the second aspect of the embodiment 1. Referring to fig. 10, the apparatus 1000 includes: an obtaining module 1010, configured to obtain a three-dimensional contour line graph of an object; and a generating module 1020, configured to perform tangent filtering processing on the three-dimensional contour line graph, and generate a three-dimensional contour line graph with a tangent filtered out.
Optionally, the generating module 1020 includes: a second determining submodule for determining whether the edge line is a tangent line; and the second filtering submodule is used for filtering the sidelines determined as the tangents under the condition that the sidelines are determined as the tangents.
Optionally, the second determining sub-module includes: a second determination unit configured to determine whether or not two profile surfaces adjacent to each other by an edge are a surface of revolution; and a third execution unit, configured to, in a case where both the two contour surfaces are the rotating curved surfaces, execute the following operations: determining whether the rotation center lines of the two contour surfaces are overlapped; and determining the borderline as a tangent line if the rotation center lines of the two profile surfaces coincide, or determining the borderline not as a tangent line if the rotation center lines of the two profile surfaces do not coincide.
Optionally, the second determining sub-module further includes: a fourth executing unit, configured to, when one of the two adjacent contour surfaces is a surface of revolution, execute the following operations: determining whether the normals of the two contour surfaces at the side line are coincident; and determining the borderline as a tangent line if the normals of the two profile surfaces coincide, or determining the borderline not as a tangent line if the normals of the two profile surfaces do not coincide.
Thus, according to the present embodiment, the three-dimensional contour line pattern with the cut lines filtered out is generated by the cut line filtering process. The display effect of the three-dimensional contour line graph of the part is better, the three-dimensional graph structure is clearer and more accurate, the interference of the tangent line on the display of the three-dimensional contour line graph is avoided, and a user can look over the three-dimensional contour line graph of the part more quickly and visually, accurately and efficiently, and saves time and labor.
Example 3
Fig. 11 shows a three-dimensional contour line graphical presentation device 1100 based on tangential filtering according to the first aspect of the present embodiment, the device 1100 corresponding to the method according to the first aspect of embodiment 1. Referring to fig. 11, the apparatus 1100 includes: a first processor 1110; and a first memory 1120, coupled to the first processor 1110, for providing instructions to the first processor 1110 to process the following processing steps: and displaying a three-dimensional contour line graph of the object, wherein the three-dimensional contour line graph is subjected to tangent filtering treatment, and the tangent filtering treatment is used for filtering out tangents in the three-dimensional contour line graph.
Optionally, the tangent filtering process includes performing the following operations on an edge line in the three-dimensional contour line graph of the object: determining whether the sideline is a tangent line; and in the case that the sidelines are determined to be tangent lines, filtering the sidelines determined to be tangent lines.
Optionally, the operation of determining whether the edge line is a tangent line comprises: determining whether two adjacent contour surfaces of the three-dimensional contour line graph are rotating curved surfaces or not; and in the case that both profile surfaces are surfaces of revolution, performing the following operations: determining whether the rotation center lines of the two contour surfaces are overlapped; and determining the borderline as a tangent line if the rotation center lines of the two profile surfaces coincide, or determining the borderline not as a tangent line if the rotation center lines of the two profile surfaces do not coincide.
Optionally, the operation of determining whether the edge is a tangent line further comprises, in a case where one of two adjacent contour surfaces of the edge is a surface of revolution, performing the following operations: determining whether the normals of the two contour surfaces at the side line are coincident; and determining the borderline as a tangent line if the normals of the two profile surfaces coincide, or determining the borderline not as a tangent line if the normals of the two profile surfaces do not coincide.
Optionally, the first memory 1120 is further configured to provide the first processor 1110 with instructions to process the following processing steps: receiving a trigger operation of a user; responding to the trigger operation of a user, and determining the side line selected by the user in the three-dimensional contour line graph; and determining the sidelines selected by the user as the tangent lines, and filtering the sidelines selected by the user.
Optionally, the first memory 1120 is further configured to provide the first processor 1110 with instructions to process the following processing steps: receiving a trigger operation of a user; and responding to the trigger operation of the user, and displaying the three-dimensional contour line graph of the object which is not subjected to the cutting line filtering processing.
Optionally, the object is a part, and the operation of displaying the three-dimensional contour graph of the object includes: and displaying the three-dimensional contour lines of the parts.
Furthermore, fig. 12 shows an apparatus 1200 for generating a three-dimensional contour graph based on tangential filtering according to the second aspect of the present embodiment, the apparatus 1200 corresponding to the method according to the second aspect of the embodiment 1. Referring to fig. 12, the apparatus 1200 includes: a second processor 1210; and a second memory 1220, connected to the second processor 1210, for providing the second processor 1210 with instructions to process the following steps: acquiring a three-dimensional contour line graph of an object; and carrying out tangent filtering treatment on the three-dimensional contour line graph to generate a three-dimensional contour line graph with a tangent filtered out.
Optionally, the tangent filtering process includes performing the following operations on the edge line in the three-dimensional contour line graph: determining whether the sideline is a tangent line; and in the case that the sidelines are determined to be tangent lines, filtering the sidelines determined to be tangent lines.
Optionally, the operation of determining whether the edge line is a tangent line comprises: determining whether two profile surfaces adjacent to each other by the borderlines are the rotating curved surfaces; and in the case that both profile surfaces are surfaces of revolution, performing the following operations: determining whether the rotation center lines of the two contour surfaces are overlapped; and determining the borderline as a tangent line if the rotation center lines of the two profile surfaces coincide, or determining the borderline not as a tangent line if the rotation center lines of the two profile surfaces do not coincide.
Optionally, the operation of determining whether the edge line is a tangent line further comprises: in the case where one of the two contour surfaces adjacent to the borderline is a surface of revolution, the following operations are performed: determining whether the normals of the two contour surfaces at the side line are coincident; and determining the borderline as a tangent line if the normals of the two profile surfaces coincide, or determining the borderline not as a tangent line if the normals of the two profile surfaces do not coincide.
Thus, according to the present embodiment, the three-dimensional contour line pattern with the cut lines filtered out is generated by the cut line filtering process. The display effect of the three-dimensional contour line graph of the part is better, the three-dimensional graph structure is clearer and more accurate, the interference of the tangent line on the display of the three-dimensional contour line graph is avoided, and a user can look over the three-dimensional contour line graph of the part more quickly and visually, accurately and efficiently, and saves time and labor.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (10)

1. A three-dimensional contour line graph display method based on tangent line filtering is characterized by comprising the following steps:
displaying a three-dimensional contour line graph of an object, wherein the three-dimensional contour line graph is subjected to tangent filtering processing, and the tangent filtering processing is used for filtering out tangents in the three-dimensional contour line graph.
2. The method of claim 1, wherein the tangent filtering process comprises performing the following operations on an edge line in a three-dimensional contour line graph of the object:
determining whether the sideline is a tangent line; and
in the case that the side line is determined to be a tangent line, filtering out the side line determined to be a tangent line.
3. The method of claim 2, wherein the act of determining whether the edge is a tangent line comprises:
determining whether two contour surfaces adjacent to the borderline in the three-dimensional contour line graph are rotating curved surfaces; and
In the case where both of the two profile surfaces are surfaces of revolution, performing the following operations:
determining whether the rotation center lines of the two contour surfaces are coincident; and
and determining the borderline as a tangent line when the rotation center lines of the two contour surfaces are overlapped, or determining the borderline not as a tangent line when the rotation center lines of the two contour surfaces are not overlapped.
4. The method of claim 2, wherein the operation of determining whether the edge is a tangent line further comprises, if one of two adjacent surfaces of the edge is a surface of revolution, performing the following operations:
determining whether normals of the two contour surfaces at the edge line are coincident; and
and determining the borderline as a tangent line when the normals of the two contour surfaces are coincident, or determining the borderline not as a tangent line when the normals of the two contour surfaces are not coincident.
5. The method of claim 1, further comprising:
receiving a trigger operation of a user;
responding to the trigger operation of the user, and determining the side line selected by the user in the three-dimensional contour line graph; and
And determining the sidelines selected by the user as tangents, and filtering the sidelines selected by the user.
6. The method of claim 1, further comprising:
receiving a trigger operation of a user; and
and responding to the triggering operation of the user, and displaying the three-dimensional contour line graph of the object which is not processed by the tangent line filtering.
7. The method of any one of claims 1 to 6, wherein the object is a part, and wherein the operation of displaying the three-dimensional outline graphic of the object comprises: and displaying the three-dimensional contour line of the part.
8. A three-dimensional contour line graph generation method based on tangent line filtering is characterized by comprising the following steps:
acquiring a three-dimensional contour line graph of an object; and
and carrying out tangent filtering treatment on the three-dimensional contour line graph to generate a three-dimensional contour line graph with a tangent filtered out.
9. The method of claim 8, wherein the tangent filtering process comprises performing the following operations on an edge line in the three-dimensional contour line graph:
determining whether the sideline is a tangent line; and
in the case that the side line is determined to be a tangent line, filtering out the side line determined to be a tangent line.
10. A storage medium comprising a stored program, wherein the method of any one of claims 1-9 is performed by a processor when the program is run.
CN201910356706.4A 2019-04-29 2019-04-29 Three-dimensional contour line graph display and generation method and device based on tangent filtering Pending CN111862335A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910356706.4A CN111862335A (en) 2019-04-29 2019-04-29 Three-dimensional contour line graph display and generation method and device based on tangent filtering

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910356706.4A CN111862335A (en) 2019-04-29 2019-04-29 Three-dimensional contour line graph display and generation method and device based on tangent filtering

Publications (1)

Publication Number Publication Date
CN111862335A true CN111862335A (en) 2020-10-30

Family

ID=72965452

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910356706.4A Pending CN111862335A (en) 2019-04-29 2019-04-29 Three-dimensional contour line graph display and generation method and device based on tangent filtering

Country Status (1)

Country Link
CN (1) CN111862335A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111861608A (en) * 2019-04-29 2020-10-30 杭州优工品科技有限公司 Product customization method and device based on three-dimensional online visualization and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111861608A (en) * 2019-04-29 2020-10-30 杭州优工品科技有限公司 Product customization method and device based on three-dimensional online visualization and storage medium
CN111861608B (en) * 2019-04-29 2024-04-30 杭州优工品科技有限公司 Product customization method and device based on three-dimensional online visualization and storage medium

Similar Documents

Publication Publication Date Title
CN109840376B (en) Method and device for reading house-type graph and storage medium
CN109783757B (en) Method, device and system for rendering webpage, storage medium and electronic device
CN105843477A (en) Event display method and device
CN111862335A (en) Three-dimensional contour line graph display and generation method and device based on tangent filtering
CN111861608B (en) Product customization method and device based on three-dimensional online visualization and storage medium
CN111859012A (en) Method and device for modifying marked size and updating part information
CN111862283A (en) Method and device for displaying three-dimensional graph of part and providing graph data
CN111367402A (en) Task triggering method, interaction equipment and computer equipment
CN111862334A (en) Method and device for displaying three-dimensional graph and providing graph and graph data
CN111340911A (en) Method and device for determining connecting line in k-line graph and storage medium
CN112698772A (en) Document template processing method and device and document creating method and device
CN105988674B (en) Message display method and related device
CN115857863A (en) Machine room configuration split-screen rendering method and device based on monitoring software and terminal
CN113094773B (en) Method, apparatus and storage medium for recommending application program for design object
CN105468325B (en) Information processing method and electronic equipment
CN115239844A (en) Image generation method, image generation device and storage medium
CN109215095B (en) Data display method, device, storage medium and processor
CN110969701B (en) Method, device and storage medium for modeling house
CN109559802B (en) Data display method and device
CN112866445A (en) Display interface switching method and device and mobile terminal
CN114880332B (en) Point cloud data storage method and device, electronic equipment and storage medium
CN112150492A (en) Method and device for reading house-type graph and storage medium
CN114003670A (en) Image generation method and device and image display method
CN111061878A (en) Page clustering method, device, medium and equipment
CN111736748A (en) Data processing method and device based on map information and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination