Method and device for obtaining two-dimensional drawing corresponding to three-dimensional structure, equipment and medium
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-06
- Publication Date
- 2026-08-11
AI Technical Summary
[0004]本发明提供一种三维结构对应的二维图纸获取方法、装置、设备及介质,用以解决现有的二维工程图获取过程主要依据国家/企业规范并结合个人经验且需要耗费大量的人力资源和财力,不够智能的缺陷,实现自动获取较为准确的待识别三维结构对应的二维图纸,不仅可以将设计人员从繁琐且技术含量低的制图工作中解脱出来,还可以缩短企业产品的研制周期,降低研发环节成本
[0022]This invention provides a method, apparatus, device, and medium for acquiring two-dimensional drawings corresponding to three-dimensional structures. The method involves: determining a set of two-dimensional views corresponding to a three-dimensional structure to be identified; parsing the three-dimensional structure to be identified to determine multiple substructures corresponding to it; and annotating the multiple substructures based on the set of two-dimensional views to determine the two-dimensional drawing corresponding to the three-dimensional structure to be identified. This method addresses the shortcomings of existing two-dimensional engineering drawing acquisition processes, which mainly rely on national/enterprise standards and personal experience, requiring significant human and financial resources and lacking intelligence. It achieves automatic acquisition of relatively accurate two-dimensional drawings corresponding to the three-dimensional structure to be identified, freeing designers from tedious and low-tech drafting work, shortening product development cycles, and reducing R&D costs.
Smart Images

Figure CN115409947B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of image processing technology, and in particular to a method, apparatus, device, and medium for acquiring two-dimensional drawings corresponding to three-dimensional structures. Background Technology
[0002] In the machinery manufacturing industry, two-dimensional engineering drawings are important technical documents in industrial production, an important tool for designers to conduct technical exchanges, and a major basis for processing and manufacturing.
[0003] The existing method for obtaining 2D engineering drawings is as follows: Using existing 3D software, a 3D model corresponding to the 3D structure to be identified is created; then, in the drafting module of the 3D software, the 3D model is associated and its views are projected; next, annotations are added to each view, and various processing information is added to obtain the 2D engineering drawing corresponding to the 3D structure to be identified. The entire process of obtaining 2D engineering drawings mainly relies on national / enterprise standards and personal experience, and requires a significant amount of human and financial resources, making it not very intelligent. Summary of the Invention
[0004] This invention provides a method, apparatus, device, and medium for acquiring two-dimensional drawings corresponding to three-dimensional structures. It addresses the shortcomings of existing two-dimensional engineering drawing acquisition processes, which mainly rely on national / enterprise standards and personal experience, requiring significant human and financial resources and lacking intelligence. The invention enables the automatic acquisition of more accurate two-dimensional drawings corresponding to the three-dimensional structures to be identified. This not only frees designers from tedious and low-tech drafting work but also shortens the product development cycle and reduces R&D costs.
[0005] This invention provides a method for obtaining two-dimensional drawings corresponding to a three-dimensional structure, including:
[0006] Determine the set of two-dimensional views corresponding to the three-dimensional structure to be identified;
[0007] The three-dimensional structure to be identified is analyzed to determine the multiple substructures corresponding to the three-dimensional structure to be identified.
[0008] Based on this set of two-dimensional views, the multiple substructures are labeled to determine the two-dimensional drawing corresponding to the three-dimensional structure to be identified.
[0009] According to the present invention, a method for obtaining a two-dimensional drawing corresponding to a three-dimensional structure includes, based on a set of two-dimensional views, labeling multiple substructures to determine the two-dimensional drawing corresponding to the three-dimensional structure to be identified, comprising: determining a front view based on the set of two-dimensional views; determining a first view and a second view corresponding to the front view in the set of two-dimensional views, wherein the first view includes a left view or a right view, and the second view includes a top view or a bottom view; and labeling the multiple substructures according to the front view, the first view, and the second view to determine the two-dimensional drawing corresponding to the three-dimensional structure to be identified.
[0010] According to the present invention, a method for obtaining two-dimensional drawings corresponding to a three-dimensional structure is provided. The two-dimensional view set includes at least one two-dimensional view. The method for determining the main view based on the two-dimensional view set includes: determining the function value corresponding to each two-dimensional view in the at least one two-dimensional view; and determining the two-dimensional view corresponding to the largest function value among the function values as the main view.
[0011] According to the present invention, a method for obtaining two-dimensional drawings corresponding to a three-dimensional structure includes determining the function value corresponding to each of the at least one two-dimensional views, comprising: determining a target view, wherein the target view is any two-dimensional view among the at least one two-dimensional views; determining the target plane corresponding to the three-dimensional structure to be identified and the number of planes parallel to the target plane in the target view, and determining the number of features corresponding to the three-dimensional structure to be identified; determining the number of dashed lines corresponding to the three-dimensional structure to be identified in the other two-dimensional views besides the target view among the at least one two-dimensional views; and determining the function value corresponding to the target view based on the number of planes, the number of features, and the number of dashed lines.
[0012] According to the present invention, a method for obtaining a two-dimensional drawing corresponding to a three-dimensional structure includes annotating the multiple substructures to determine the two-dimensional drawing corresponding to the three-dimensional structure to be identified, comprising: annotating the multiple substructures to obtain multiple annotated drawings; determining other identical annotations corresponding to the target annotation from the multiple annotated drawings; and deleting the other identical annotations to obtain the two-dimensional drawing corresponding to the three-dimensional structure to be identified.
[0013] According to the present invention, a method for obtaining a two-dimensional drawing corresponding to a three-dimensional structure includes annotating multiple substructures to determine the two-dimensional drawing corresponding to the three-dimensional structure to be identified, comprising: annotating the multiple substructures to obtain a first drawing corresponding to the three-dimensional structure to be identified; responding to a user-inputted modification operation and modifying the first drawing according to the modification operation to obtain a second drawing; and using a rule checking tool to check the qualification of the second drawing to determine the two-dimensional drawing corresponding to the three-dimensional structure to be identified.
[0014] According to the present invention, a method for obtaining a two-dimensional drawing corresponding to a three-dimensional structure includes annotating multiple substructures to obtain a first drawing corresponding to the three-dimensional structure to be identified, comprising: obtaining a historical structure set; determining the historical substructures corresponding to each historical structure in the historical structure set and the historical features corresponding to each historical substructure; annotating the historical features to obtain an annotation rule library; and annotating the multiple substructures based on the annotation rule library to obtain the first drawing corresponding to the three-dimensional structure to be identified.
[0015] The present invention also provides a device for acquiring two-dimensional drawings corresponding to three-dimensional structures, comprising:
[0016] The view determination module is used to determine the set of two-dimensional views corresponding to the three-dimensional structure to be identified.
[0017] The structure determination module is used to analyze the three-dimensional structure to be identified and determine the multiple substructures corresponding to the three-dimensional structure to be identified.
[0018] The drawing determination module is used to annotate the multiple substructures based on the set of two-dimensional views, and determine the two-dimensional drawing corresponding to the three-dimensional structure to be identified.
[0019] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement a method for obtaining two-dimensional drawings corresponding to any of the three-dimensional structures described above.
[0020] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a two-dimensional drawing acquisition method corresponding to any of the three-dimensional structures described above.
[0021] The present invention also provides a computer program product, including a computer program, which, when executed by a processor, implements a two-dimensional drawing acquisition method corresponding to any of the three-dimensional structures described above.
[0022] This invention provides a method, apparatus, device, and medium for acquiring two-dimensional drawings corresponding to three-dimensional structures. The method involves: determining a set of two-dimensional views corresponding to a three-dimensional structure to be identified; parsing the three-dimensional structure to be identified to determine multiple substructures corresponding to it; and annotating the multiple substructures based on the set of two-dimensional views to determine the two-dimensional drawing corresponding to the three-dimensional structure to be identified. This method addresses the shortcomings of existing two-dimensional engineering drawing acquisition processes, which mainly rely on national / enterprise standards and personal experience, requiring significant human and financial resources and lacking intelligence. It achieves automatic acquisition of relatively accurate two-dimensional drawings corresponding to the three-dimensional structure to be identified, freeing designers from tedious and low-tech drafting work, shortening product development cycles, and reducing R&D costs. Attached Figure Description
[0023] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0024] Figure 1 This is a flowchart illustrating the method for obtaining two-dimensional drawings corresponding to three-dimensional structures provided by the present invention.
[0025] Figure 2a This is a schematic diagram of the projection of the three-dimensional structure to be identified from different angles, provided by the present invention;
[0026] Figure 2b This is a schematic diagram of the two-dimensional drawing corresponding to the three-dimensional structure to be identified provided by the present invention;
[0027] Figure 2c This is a schematic diagram of a scenario for the method of obtaining two-dimensional drawings corresponding to three-dimensional structures provided by the present invention;
[0028] Figure 3 This is a schematic diagram of the structure of the two-dimensional drawing acquisition device corresponding to the three-dimensional structure provided by the present invention;
[0029] Figure 4 This is a schematic diagram of the structure of the electronic device provided by the present invention. Detailed Implementation
[0030] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.
[0031] It should be noted that the execution subject involved in the embodiments of the present invention can be a two-dimensional drawing acquisition device corresponding to a three-dimensional structure, or an electronic device. The embodiments of the present invention will be further described below using an electronic device as an example.
[0032] like Figure 1 The diagram shown is a flowchart illustrating the method for obtaining two-dimensional drawings corresponding to a three-dimensional structure provided by the present invention, which may include:
[0033] 101. Determine the set of two-dimensional views corresponding to the three-dimensional structure to be identified.
[0034] The three-dimensional structure to be identified refers to the three-dimensional part structure to be identified, which may include multiple substructures.
[0035] Optionally, the three-dimensional structure to be identified may include the three-dimensional vehicle part structure to be identified, the three-dimensional piston structure to be identified, etc.
[0036] Optionally, the set of two-dimensional views may include at least one two-dimensional view, in which each two-dimensional view has a different projection angle.
[0037] After acquiring the three-dimensional structure to be identified, the electronic device can determine the two-dimensional views corresponding to the three-dimensional structure at different angles, and determine the set of two-dimensional views corresponding to the three-dimensional structure to be identified based on these two-dimensional views.
[0038] 102. Analyze the three-dimensional structure to be identified and determine the multiple substructures corresponding to the three-dimensional structure to be identified.
[0039] Since the three-dimensional structure to be identified can include multiple substructures, the electronic device can analyze and identify the three-dimensional structure to be identified, and thus accurately determine the multiple substructures corresponding to the three-dimensional structure to be identified.
[0040] 103. Based on the set of two-dimensional views, annotate multiple substructures to determine the two-dimensional drawing corresponding to the three-dimensional structure to be identified.
[0041] Two-dimensional drawings are a type of two-dimensional engineering structural diagrams.
[0042] After acquiring multiple substructures corresponding to the three-dimensional structure to be identified, the electronic device can annotate these substructures according to the acquired set of two-dimensional views to obtain a two-dimensional drawing corresponding to the three-dimensional structure to be identified.
[0043] In some embodiments, the electronic device analyzes the three-dimensional structure to be identified based on a set of two-dimensional views to determine multiple substructures corresponding to the three-dimensional structure to be identified. This may include: the electronic device determining a front view based on the set of two-dimensional views; the electronic device determining a first view and a second view corresponding to the front view in the set of two-dimensional views, wherein the first view includes a left view or a right view, and the second view includes a top view or a bottom view; the electronic device analyzing the three-dimensional structure to be identified based on the front view, the first view, and the second view to determine multiple substructures corresponding to the three-dimensional structure to be identified.
[0044] The main view refers to the two-dimensional view obtained by projecting the three-dimensional structure to be identified from front to back. The main view can clearly reflect the shape of each substructure in the three-dimensional structure to be identified and the positional relationship between each substructure. In addition, the main surface in the main view should be parallel to the projection surface so that the projection result can obtain the true shape.
[0045] The left view refers to the two-dimensional view obtained by projecting the three-dimensional structure to be identified from left to right.
[0046] The right view refers to the two-dimensional view obtained by projecting the three-dimensional structure to be identified from the right to the left.
[0047] A top view is a two-dimensional view obtained by projecting the three-dimensional structure to be identified from top to bottom.
[0048] A bottom view is a two-dimensional view obtained by projecting the three-dimensional structure to be identified from below onto the top.
[0049] When an electronic device has a large number of two-dimensional views in its set, analyzing the three-dimensional structure to be identified based on all of them would easily increase power consumption and reduce the device's lifespan. Therefore, instead of acquiring all the two-dimensional views in the set, the device can first determine the main view corresponding to the three-dimensional structure. Then, using the main view as a reference, the device can determine the first and second views corresponding to the three-dimensional structure. Finally, based on the main view, the first view, and the second view, the device can more comprehensively and accurately determine the multiple substructures corresponding to the three-dimensional structure. In addition, this can effectively save power consumption and thus improve the device's lifespan to some extent.
[0050] Optionally, the timing of the electronic device determining the first view and determining the second view is not limited.
[0051] For example, such as Figure 2a The diagram shown is a schematic representation of the projection of the three-dimensional structure to be identified from different angles, as provided by this invention. Figure 2b In the diagram, the projection angles corresponding to the three-dimensional structure to be identified are angles A, B, C, D, E, and F. If the electronic device determines the two-dimensional view corresponding to angle A as the front view of the three-dimensional structure to be identified, then the two-dimensional view corresponding to angle B can be determined as the top view of the three-dimensional structure to be identified, the two-dimensional view corresponding to angle C as the left view, the two-dimensional view corresponding to angle D as the right view, the two-dimensional view corresponding to angle E as the bottom view, and the two-dimensional view corresponding to angle F as the rear view.
[0052] The rear view refers to the two-dimensional view obtained by projecting the three-dimensional structure to be identified from the back to the front.
[0053] Optionally, the electronic device determines the main view based on the set of two-dimensional views, which may include: the electronic device obtaining the number of two-dimensional views in the set of two-dimensional views; and the electronic device determining the main view corresponding to the three-dimensional structure to be identified when it is determined that the number of two-dimensional views is greater than a preset number threshold.
[0054] The preset quantity threshold can be set before the electronic device leaves the factory or it can be user-defined; no specific limitation is made here.
[0055] After obtaining the number of two-dimensional views in the set of two-dimensional views, the electronic device can determine the number of two-dimensional views: if the electronic device determines that the number of two-dimensional views is greater than a preset threshold, it means that there are many two-dimensional views. In this case, only the main view corresponding to the three-dimensional structure to be identified needs to be obtained, and then the three-dimensional structure to be identified can be analyzed; if the electronic device determines that the number of two-dimensional views is less than or equal to the preset threshold, it means that there are few two-dimensional views. In this case, the three-dimensional structure to be identified can be analyzed directly based on these few two-dimensional views.
[0056] In some embodiments, the set of two-dimensional views may include at least one two-dimensional view. The electronic device determines the main view based on the set of two-dimensional views, which may include: the electronic device determining the function value corresponding to each of the at least one two-dimensional view; the electronic device determining the two-dimensional view corresponding to the largest function value among the function values as the main view.
[0057] Among them, the function value is an indicator that can directly and effectively reflect whether the main surface of the three-dimensional structure to be identified in the corresponding two-dimensional view is parallel to the projection plane, the main features of the three-dimensional structure to be identified, and the number of dashed lines of the three-dimensional structure to be identified, thereby accurately determining the main view corresponding to the three-dimensional structure to be identified.
[0058] Optionally, the function values corresponding to different two-dimensional views can be the same or different; no specific limitation is made here.
[0059] In the process of determining the main view corresponding to the three-dimensional structure to be identified, the electronic device can first determine the function value corresponding to each two-dimensional view in the set of two-dimensional views; then, the electronic device determines the maximum function value from these function values, and determines the two-dimensional view corresponding to the maximum function value as the main view corresponding to the three-dimensional structure to be identified.
[0060] Optionally, the electronic device may determine the two-dimensional view corresponding to the largest function value among the function values as the main view, which may include, but is not limited to, one of the following implementation methods:
[0061] Implementation method 1: The electronic device sorts the acquired function values from largest to smallest to obtain the first sequence; the electronic device determines the two-dimensional view corresponding to the first function value in the first sequence as the main view.
[0062] The electronic device can obtain the two-dimensional view corresponding to the first function value in the first sequence, that is, it can obtain the two-dimensional view corresponding to the largest function value in the first sequence, and determine the two-dimensional view as the main view.
[0063] Implementation method 2: The electronic device sorts the acquired function values from smallest to largest to obtain a second sequence; the electronic device determines the two-dimensional view corresponding to the first function value in reverse order in the second sequence as the main view.
[0064] The electronic device can obtain the two-dimensional view corresponding to the first function value in reverse order from the second sequence, that is, it can obtain the two-dimensional view corresponding to the maximum function value from the second sequence, and determine the two-dimensional view as the main view.
[0065] Whether using implementation method 1 or implementation method 2, the electronic device can accurately determine the maximum function value and the main view corresponding to the three-dimensional structure to be identified.
[0066] Implementation Method 3: The electronic device determines the maximum function value from the function values; if the number of maximum function values is one, the electronic device directly determines the two-dimensional view corresponding to the maximum function value as the main view; if the number of maximum function values is more than one, the electronic device determines the two-dimensional view corresponding to any maximum function value as the main view.
[0067] After determining the maximum function value, the electronic device can first determine the number of such maximum function values. Then, if the electronic device determines that there is only one maximum function value based on the number, it can directly determine the two-dimensional view corresponding to the maximum function value as the main view. If the electronic device determines that there are multiple maximum function values based on the number, it can randomly select a two-dimensional view corresponding to a maximum function value as the main view.
[0068] In some embodiments, the electronic device determines the function value corresponding to each of the at least one two-dimensional views, which may include: the electronic device determining a target view, wherein the target view is any two-dimensional view among the at least one two-dimensional views; the electronic device determining, in the target view, the target plane corresponding to the three-dimensional structure to be identified and the number of planes parallel to the target plane, and determining the number of features corresponding to the three-dimensional structure to be identified; the electronic device determining, in the other two-dimensional views besides the target view among the at least one two-dimensional views, the number of dashed lines corresponding to the three-dimensional structure to be identified; and the electronic device determining the function value corresponding to the target view based on the number of planes, the number of features, and the number of dashed lines.
[0069] In the target view, the three-dimensional structure to be identified may correspond to multiple planes, and the electronic device can determine any one of these multiple planes as the target plane.
[0070] The features corresponding to the three-dimensional structure to be identified may include: positional features between substructures, angular features between substructures, etc.
[0071] In the process of acquiring the function value corresponding to any two-dimensional view among the above-mentioned at least one two-dimensional view, that is, in the process of acquiring the function value corresponding to the target view, the electronic device can identify the target view and determine the target plane corresponding to the three-dimensional structure to be identified; then, the electronic device further determines the planes parallel to the target plane and the number of such planes in the target view, and determines the features corresponding to the three-dimensional structure to be identified and the number of such features in the target view; next, the electronic device determines the dashed lines corresponding to the three-dimensional structure to be identified and the number of such dashed lines in the other two-dimensional views besides the target view among the at least one two-dimensional view; finally, the electronic device can accurately determine the function value corresponding to the target view based on the number of such planes, the number of such features, and the number of such dashed lines.
[0072] Optionally, the timing of the electronic device determining the number of planes, the number of features, and the number of dashed lines is not limited.
[0073] In this way, the electronic device can accurately determine the function value corresponding to each two-dimensional view in the above set of two-dimensional views by obtaining the function value corresponding to any two-dimensional view.
[0074] In some embodiments, the electronic device determines the function value corresponding to the target view based on the number of planes, the number of features, and the number of dashed lines. This may include: the electronic device determining the function value corresponding to the target view based on a function value formula.
[0075] The function value formula is F = f(n1, n2, 1 / n3);
[0076] F represents the function value corresponding to the target view; n1 represents the number of planes; n2 represents the number of features; n3 represents the number of dashed lines.
[0077] It should be noted that the function value corresponding to the target view can be obtained by summing the number of planes n1, the number of features n2, and the number of dashed lines n3 according to different weights.
[0078] Optionally, different weights can be determined by the user based on actual experience.
[0079] Electronic devices can accurately determine the function value corresponding to each two-dimensional view in a set of two-dimensional views based on the function value formula.
[0080] In some embodiments, the electronic device annotates multiple substructures to determine the two-dimensional drawing corresponding to the three-dimensional structure to be identified. This may include: the electronic device annotating multiple substructures to obtain multiple annotated drawings; the electronic device determining other identical annotations corresponding to the target annotation from the multiple annotated drawings; and the electronic device deleting the other identical annotations to obtain the two-dimensional drawing corresponding to the three-dimensional structure to be identified.
[0081] After identifying multiple substructures, the electronic device can annotate each of these substructures to obtain corresponding annotated drawings. The number of annotated drawings corresponds to the number of substructures. However, since a certain location point of a substructure may have the same annotation in different annotated drawings, the annotation corresponding to that location point is taken as the target annotation, and other annotations identical to the target annotation are taken as other identical annotations corresponding to the target annotation. Then, the electronic device can delete these other identical annotations, retaining only the target annotation—that is, only the annotation corresponding to that location point—thus accurately obtaining the two-dimensional drawing corresponding to the three-dimensional structure to be identified.
[0082] In some embodiments, the electronic device annotates multiple substructures to determine the two-dimensional drawing corresponding to the three-dimensional structure to be identified. This may include: the electronic device annotating multiple substructures to obtain a first drawing corresponding to the three-dimensional structure to be identified; the electronic device responding to a user-inputted modification operation and modifying the first drawing according to the modification operation to obtain a second drawing; and the electronic device using a rule checking tool to check the qualification of the second drawing to determine the two-dimensional drawing corresponding to the three-dimensional structure to be identified.
[0083] The core of the rule-based inspection tool is a series of inspection items based on national and corporate standards. By checking the corresponding items, it can be determined whether the second drawing is qualified.
[0084] After annotating multiple substructures, the electronic device can obtain a first drawing corresponding to the three-dimensional structure to be identified. However, since the accuracy of this first drawing is poor, the user can also make auxiliary modifications to it. Specifically, the user can input a modification operation into the electronic device, and then the electronic device can respond to the modification operation and modify the drawing based on the modification operation to obtain a second drawing. However, the second drawing may be unqualified. Therefore, the electronic device can use a rule checking tool to check the qualification of the second drawing, that is, to check the standardization and correctness of the second drawing. Finally, based on the qualification, the electronic device determines the two-dimensional drawing corresponding to the three-dimensional structure to be identified.
[0085] For example, such as Figure 2b The image shown is a schematic diagram of the two-dimensional drawing corresponding to the three-dimensional structure to be identified provided by this invention. Figure 2b In the two-dimensional drawing, the three-dimensional structure to be identified can be resolved into a rectangular plate, a cylinder, and four arrayed cylinders. That is to say, Figure 2b The multiple substructures corresponding to the three-dimensional structure to be identified are distributed as a rectangular plate, a cylinder, and four arrayed cylinders.
[0086] Optionally, the electronic device determines the two-dimensional drawing corresponding to the three-dimensional structure to be identified based on its eligibility, which may be achieved in at least one of the following ways:
[0087] Implementation Method 1: When the electronic device determines that the corresponding value of the qualification is greater than the preset threshold, it will identify the second drawing as the two-dimensional drawing corresponding to the three-dimensional structure to be identified.
[0088] The preset threshold can be set before the electronic device leaves the factory or it can be user-defined; no specific limitation is made here.
[0089] If the electronic device determines that the corresponding value of the qualification is greater than the preset threshold, it indicates that the second drawing is highly standardized and correct. At this time, the electronic device can directly identify the second drawing as the two-dimensional drawing corresponding to the three-dimensional structure to be identified.
[0090] Implementation Method 2: When the electronic device determines that the corresponding value of the qualification is less than or equal to the preset threshold, it repeatedly executes the new modification operation in response to the user input; based on the new modification operation, the electronic device modifies the first drawing to obtain a new second drawing, etc., until the qualification value of the latest second drawing is greater than the preset threshold. At this time, the electronic device determines the latest second drawing as the two-dimensional drawing corresponding to the three-dimensional structure to be identified.
[0091] If the electronic device determines that the pass / fail value is less than or equal to a preset threshold, it indicates that the standardization and correctness of the second drawing are low. Therefore, the electronic device needs to respond to the user's input modification operation multiple times and modify the second drawing multiple times based on these modification operations. After that, the pass / fail value of the latest second drawing is greater than the preset threshold. At this time, it indicates that the standardization and correctness of the latest second drawing are high. Then, the stator device can determine the latest second drawing as the two-dimensional drawing corresponding to the three-dimensional structure to be identified.
[0092] In some embodiments, the electronic device annotates multiple substructures to obtain a first drawing corresponding to the three-dimensional structure to be identified, which may include: the electronic device acquiring a set of historical structures; the electronic device determining the historical substructures and historical features corresponding to each historical structure in the set of historical structures; the electronic device annotating the historical features to obtain an annotation rule base; and the electronic device annotating multiple substructures based on the annotation rule base to obtain a first drawing corresponding to the three-dimensional structure to be identified.
[0093] In the process of annotating multiple substructures corresponding to the 3D structure to be identified, the electronic device can first acquire a set of historical structures, which includes at least one historical structure. Then, the electronic device can sort out each of these at least one historical structure and determine the historical substructures corresponding to each historical structure based on the model structure tree corresponding to each historical structure. Next, the electronic device determines the historical features corresponding to the historical substructure and annotates these historical features to obtain an annotation rule library. Then, the electronic device stores the annotation rule library. After determining the multiple substructures corresponding to the 3D structure to be identified, it can annotate the multiple substructures based on the annotation rule library to obtain the first drawing corresponding to the 3D structure to be identified.
[0094] Optionally, after step 103, the method may further include: the electronic device outputting a two-dimensional drawing.
[0095] Optionally, the electronic device outputting the structural image may include at least one of the following implementations:
[0096] Implementation method 1: The electronic device displays a two-dimensional drawing on the screen.
[0097] Implementation Method 2: The electronic device sends the structural image to the associated device so that the associated device can display the two-dimensional drawing on its display screen.
[0098] Optionally, electronic devices and associated devices can be connected via wireless communication technology, which may include, but is not limited to, one of the following: fourth-generation mobile communication technology (4G), fifth-generation mobile communication technology (5G), and Wireless Fidelity (WiFi).
[0099] Whether using implementation method 1 or implementation method 2, electronic devices can facilitate users to intuitively obtain the annotation data corresponding to each substructure in the three-dimensional structure to be identified.
[0100] In this embodiment of the invention, a set of two-dimensional views corresponding to the three-dimensional structure to be identified is determined; the three-dimensional structure to be identified is analyzed to determine multiple substructures corresponding to the three-dimensional structure to be identified; based on the set of two-dimensional views, the multiple substructures are labeled to determine the two-dimensional drawing corresponding to the three-dimensional structure to be identified. This method addresses the shortcomings of existing two-dimensional engineering drawing acquisition processes, which mainly rely on national / enterprise standards and personal experience, requiring significant human and financial resources and lacking intelligence. It enables the automatic acquisition of more accurate two-dimensional drawings corresponding to the three-dimensional structure to be identified, which not only frees designers from tedious and low-tech drafting work but also shortens the product development cycle and reduces R&D costs.
[0101] It should be noted that, Figure 1 Steps 101-103 shown can be viewed as a graph conversion strategy.
[0102] For example, such as Figure 2c The image shown is a schematic diagram illustrating a scenario of the method for obtaining two-dimensional drawings corresponding to a three-dimensional structure provided by this invention. Figure 2c In this document, the image conversion strategy described above can be stored on a cloud server or a local server; no specific limitation is made here. The image conversion strategy on the cloud server can be called a general strategy, while the image conversion strategy on the local server can be called a private strategy, which is enterprise-specific. Electronic devices can include computers, mobile terminals, and wearable devices, etc.
[0103] The electronic device includes an intelligent drawing conversion tool developed based on a Computer-Aided Design (CAD) system. This tool generates a annotation rule base and receives drawing conversion strategies from a cloud server and / or a local server. The tool then transmits these strategies to the CAD system to execute corresponding conversion operations and outputs a first drawing. Based on user-inputted modifications, the electronic device performs auxiliary modifications to the first drawing and uses a rule checking tool to check the compliance of the second drawing, thus determining the two-dimensional drawing corresponding to the three-dimensional structure to be identified.
[0104] In addition, during the process of assisting in modifying the first drawing based on user input, the electronic device will also use artificial intelligence technology to analyze the modification results and use the intelligent drawing conversion tool to upload the first drawing, the second drawing, and the two-dimensional drawing to the cloud server and / or the local server, so as to realize the continuous learning and evolution of the drawing conversion strategy.
[0105] The following describes the device for acquiring two-dimensional drawings corresponding to three-dimensional structures provided by the present invention. The device for acquiring two-dimensional drawings corresponding to three-dimensional structures described below and the method for acquiring two-dimensional drawings corresponding to three-dimensional structures described above can be referred to in correspondence with each other.
[0106] like Figure 3 The diagram shown is a structural schematic of the two-dimensional drawing acquisition device corresponding to a three-dimensional structure provided by the present invention, which may include:
[0107] The view determination module 301 is used to determine the set of two-dimensional views corresponding to the three-dimensional structure to be identified.
[0108] The structure determination module 302 is used to analyze the three-dimensional structure to be identified and determine the multiple substructures corresponding to the three-dimensional structure to be identified.
[0109] The drawing determination module 303 is used to annotate the multiple substructures based on the set of two-dimensional views and determine the two-dimensional drawing corresponding to the three-dimensional structure to be identified.
[0110] Optionally, the drawing determination module 303 based on the two-dimensional view set is specifically used to determine the main view based on the two-dimensional view set; determine the first view and the second view corresponding to the main view in the two-dimensional view set, wherein the first view includes a left view or a right view, and the second view includes a top view or a bottom view; and annotate the multiple substructures according to the main view, the first view, and the second view to determine the two-dimensional drawing corresponding to the three-dimensional structure to be identified.
[0111] Optionally, the drawing determination module 303 is specifically used to determine the function value corresponding to each of the at least one two-dimensional view; and to determine the two-dimensional view corresponding to the largest function value among the function values as the main view.
[0112] Optionally, the drawing determination module 303 is specifically used to determine a target view, which is any two-dimensional view among the at least one two-dimensional view; in the target view, determine the target plane corresponding to the three-dimensional structure to be identified and the number of planes parallel to the target plane, and determine the number of features corresponding to the three-dimensional structure to be identified; in the other two-dimensional views among the at least one two-dimensional view besides the target view, determine the number of dashed lines corresponding to the three-dimensional structure to be identified; and determine the function value corresponding to the target view based on the number of planes, the number of features and the number of dashed lines.
[0113] Optionally, the drawing determination module 303 is specifically used to annotate the multiple substructures to obtain multiple annotated drawings; determine other identical annotations corresponding to the target annotation from the multiple annotated drawings; delete the other identical annotations to obtain the two-dimensional drawing corresponding to the three-dimensional structure to be identified.
[0114] Optionally, the drawing determination module 303 is specifically used to annotate the multiple substructures to obtain the first drawing corresponding to the three-dimensional structure to be identified; respond to the user's input modification operation and modify the first drawing according to the modification operation to obtain the second drawing; use a rule checking tool to check the qualification of the second drawing to determine the two-dimensional drawing corresponding to the three-dimensional structure to be identified.
[0115] Optionally, the drawing determination module 303 is specifically used to obtain a set of historical structures; determine the historical substructures corresponding to each historical structure in the set of historical structures and the historical features corresponding to each historical substructure; annotate the historical features to obtain an annotation rule library; and annotate the multiple substructures based on the annotation rule library to obtain the first drawing corresponding to the three-dimensional structure to be identified.
[0116] like Figure 4The diagram shows the structure of an electronic device provided by the present invention. This electronic device may include a processor 410, a communication interface 420, a memory 430, and a communication bus 440. The processor 410, communication interface 420, and memory 430 communicate with each other via the communication bus 440. The processor 410 can call logical instructions in the memory 430 to execute a method for acquiring a two-dimensional drawing corresponding to a three-dimensional structure. This method includes: determining a set of two-dimensional views corresponding to the three-dimensional structure to be identified; parsing the three-dimensional structure to be identified to determine multiple substructures corresponding to the three-dimensional structure; and annotating the multiple substructures based on the set of two-dimensional views to determine the two-dimensional drawing corresponding to the three-dimensional structure to be identified.
[0117] Furthermore, the logical instructions in the aforementioned memory 430 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, essentially, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0118] On the other hand, the present invention also provides a computer program product, which includes a computer program that can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the two-dimensional drawing acquisition method corresponding to the three-dimensional structure provided by the above methods. The method includes: determining a set of two-dimensional views corresponding to the three-dimensional structure to be identified; parsing the three-dimensional structure to be identified to determine multiple substructures corresponding to the three-dimensional structure to be identified; and annotating the multiple substructures based on the set of two-dimensional views to determine the two-dimensional drawing corresponding to the three-dimensional structure to be identified.
[0119] In another aspect, the present invention also provides a non-transitory computer-readable storage medium storing a computer program thereon. When executed by a processor, the computer program implements a method for obtaining two-dimensional drawings corresponding to three-dimensional structures provided by the above methods. The method includes: determining a set of two-dimensional views corresponding to a three-dimensional structure to be identified; parsing the three-dimensional structure to be identified to determine multiple substructures corresponding to the three-dimensional structure to be identified; and annotating the multiple substructures based on the set of two-dimensional views to determine the two-dimensional drawing corresponding to the three-dimensional structure to be identified.
[0120] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0121] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0122] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for obtaining two-dimensional drawings corresponding to a three-dimensional structure, characterized in that, include: Determine the set of two-dimensional views corresponding to the three-dimensional structure to be identified, wherein the set of two-dimensional views includes at least one two-dimensional view; The three-dimensional structure to be identified is analyzed to determine multiple substructures corresponding to the three-dimensional structure to be identified. Determine the target view, which is any two-dimensional view among the at least one two-dimensional view; In the target view, the number of target planes corresponding to the three-dimensional structure to be identified and the number of planes parallel to the target plane are determined, and the number of features corresponding to the three-dimensional structure to be identified is determined; In the at least one two-dimensional view other than the target view, determine the number of dashed lines corresponding to the three-dimensional structure to be identified; The function value corresponding to the target view is determined based on the number of planes, the number of features, and the number of dashed lines. The two-dimensional view corresponding to the largest function value among the function values is determined as the main view; In the set of two-dimensional views, a first view and a second view corresponding to the main view are determined. The first view includes a left view or a right view, and the second view includes a top view or a bottom view. Based on the main view, the first view, and the second view, the multiple substructures are labeled to determine the two-dimensional drawing corresponding to the three-dimensional structure to be identified.
2. The method according to claim 1, characterized in that, The step of annotating the plurality of substructures to determine the two-dimensional drawing corresponding to the three-dimensional structure to be identified includes: The multiple substructures are labeled to obtain multiple labeled drawings; From the multiple annotated drawings, identify other identical annotations corresponding to the target annotation; The other identical annotations are deleted to obtain the two-dimensional drawing corresponding to the three-dimensional structure to be identified.
3. The method according to claim 1, characterized in that, The step of annotating the plurality of substructures to determine the two-dimensional drawing corresponding to the three-dimensional structure to be identified includes: The multiple substructures are labeled to obtain the first drawing corresponding to the three-dimensional structure to be identified; In response to user input of modification operations, and based on the modification operations, the first drawing is modified to obtain the second drawing; The second drawing is checked for compliance using a rule-based inspection tool to determine the two-dimensional drawing corresponding to the three-dimensional structure to be identified.
4. The method according to claim 3, characterized in that, The step of annotating the plurality of substructures to obtain the first drawing corresponding to the three-dimensional structure to be identified includes: Retrieve the historical structure set; Determine the historical substructure corresponding to each historical structure in the historical structure set and the historical features corresponding to each historical substructure; The historical features are labeled to obtain a labeling rule base; Based on the annotation rule library, the multiple substructures are annotated to obtain the first drawing corresponding to the three-dimensional structure to be identified.
5. A device for acquiring two-dimensional drawings corresponding to three-dimensional structures, characterized in that, include: A view determination module is used to determine a set of two-dimensional views corresponding to the three-dimensional structure to be identified, wherein the set of two-dimensional views includes at least one two-dimensional view. The structure determination module is used to analyze the three-dimensional structure to be identified and determine multiple substructures corresponding to the three-dimensional structure to be identified. A drawing determination module is used to determine a target view, wherein the target view is any two-dimensional view among the at least one two-dimensional view; In the target view, the number of target planes corresponding to the three-dimensional structure to be identified and the number of planes parallel to the target plane are determined, and the number of features corresponding to the three-dimensional structure to be identified is determined; in the at least one two-dimensional view other than the target view, the number of dashed lines corresponding to the three-dimensional structure to be identified is determined; based on the number of planes, the number of features and the number of dashed lines, the function value corresponding to the target view is determined; The two-dimensional view corresponding to the largest function value among the function values is determined as the main view; in the set of two-dimensional views, the first view and the second view corresponding to the main view are determined, the first view includes a left view or a right view, and the second view includes a top view or a bottom view; according to the main view, the first view and the second view, the multiple substructures are labeled to determine the two-dimensional drawing corresponding to the three-dimensional structure to be identified.
6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the method for obtaining two-dimensional drawings corresponding to the three-dimensional structure as described in any one of claims 1 to 4.
7. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the method for obtaining two-dimensional drawings corresponding to the three-dimensional structure as described in any one of claims 1 to 4.
Citation Information
Patent Citations
Method for automatically marking engineering drawings based on three-dimensional geometric features
CN108121862A
Method and device for automatically generating two-dimensional part view based on three-dimensional model
CN110750840A