A three-dimensional software reverse planning scheme design method, device and storage medium
By establishing a 3D model library and automatically generating 2D drawings, the problems of manpower waste and low efficiency in logistics and warehousing planning and design are solved. The synchronous updating and automatic annotation of 3D models and 2D drawings are realized, improving design efficiency.
Patent Information
- Application Number
- CN202510912532.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-03
- Publication Date
- 2025-12-05
- Estimated Expiration
- 2045-07-03
AI Technical Summary
In the current logistics and warehousing planning and design process, different designers are required to create two-dimensional drawings and three-dimensional models, which leads to a waste of manpower and low efficiency.
A 3D model library is established. The target 3D model is obtained from the 3D model library, its individual elements are decomposed, the outer contour lines and internal structural lines are identified, and they are integrated into a 2D graphic. This graphic is then bound to the 3D model to automatically generate a 2D drawing.
It simplifies the logistics and warehousing planning and design process, reduces the workload of relevant personnel, improves enterprise efficiency, and enables the synchronous updating and automatic annotation of 3D models and 2D drawings.
Smart Images

Figure CN120411388B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of digital twin technology, specifically to a method, device, and storage medium for designing a three-dimensional software reverse engineering scheme. Background Technology
[0002] In the current logistics and warehousing planning and design process, the planning designer first needs to use their experience in 2D drawing design software to design a preliminary layout plan for the logistics and warehousing equipment based on the client's existing or planned factory buildings and specific design requirements. Then, flow calculations are performed, followed by detailed adjustments. After the plan design is completed, 3D animations and digital twins are created based on the actual project needs. This process requires at least one set of 2D drawings and one set of 3D models from different designers, and necessitates personnel with different skills using their respective specialized software to carry out the production work.
[0003] In smart logistics warehousing projects, from the initial planning and design to the 3D animation presentation during bidding and the subsequent digital twin simulation, a set of 2D drawings, a set of 3D models for 3D animation, and a set of 3D models for digital twins are often required. These need to be constantly modified, resulting in wasted manpower and low efficiency. Summary of the Invention
[0004] In view of this, the purpose of the present invention is to provide a method, device and storage medium for designing a three-dimensional software reverse engineering scheme, so as to solve the problem that the process of manually creating two-dimensional drawings and three-dimensional models in the prior art is wasteful of human resources and has low efficiency.
[0005] According to a first aspect of the present invention, a method for designing a three-dimensional software reverse engineering scheme is provided, comprising:
[0006] Establish a 3D model library, which contains 3D models that conform to industry standards and are constructed according to user instructions.
[0007] Obtain the target 3D model from the 3D model library into the 3D modeling software, and decompose the individual volume elements in the target 3D model;
[0008] The outer contour line and internal structure line of each volume element in each view are identified respectively. Based on the outer contour line and the internal structure line, the two-dimensional graphics of the corresponding volume element in each view are integrated to obtain the two-dimensional graphics of the corresponding volume element in each view.
[0009] Integrate all volume elements of a 2D graphic in the same view into a single 2D graphic;
[0010] The overall two-dimensional graphics in each view are bound to the target three-dimensional model. When the target three-dimensional model is updated, the overall two-dimensional graphics are updated synchronously.
[0011] Based on the distance between two measurement points in the overall two-dimensional graphic in three-dimensional space, dimension annotations corresponding to the two measurement points are generated in the overall two-dimensional graphic.
[0012] Export the overall two-dimensional graphic as a two-dimensional drawing.
[0013] Preferably, the volume elements in the target 3D model are decomposed, including:
[0014] The target 3D model is copied to generate a 3D model copy;
[0015] If the type of the 3D model copy is not an editable polygon, then the type of the 3D model copy is converted to an editable polygon;
[0016] Iterate through the number of volume elements in the 3D model copy, and separate and rename each volume element;
[0017] After generating the two-dimensional graphic corresponding to the volume element, delete the copy of the three-dimensional model.
[0018] Preferably, the outer contour lines and internal structural lines of each volume element in each view are identified, including:
[0019] For each volume element, based on the xyz axis coordinates of the points that constitute the volume element, find all edge contour points of the volume element in each view;
[0020] Connect all the edge contour points of the solid element in each view with line segments to obtain the outer contour line of the solid element in each view;
[0021] Iterate through all faces of the element. For each face, calculate the dihedral angle between the face and its adjacent face. If the angle of the dihedral angle is within a preset range, extract the boundary line between the face and its adjacent face.
[0022] All extracted boundary lines are integrated into internal structure lines, and these internal structure lines are mapped to various views.
[0023] Preferably, when generating the overall two-dimensional graphic, the method further includes:
[0024] The overall two-dimensional graphic is generated on a layer different from the three-dimensional model.
[0025] Preferably, the method further includes:
[0026] The user-written scripts for 3D modeling software are obtained from the 3D model library, and the functions of the 3D modeling software are controlled according to the scripts.
[0027] Preferably, the UI of the 3D model library includes a search area, a model list area, and a function area;
[0028] The method further includes:
[0029] Upon receiving a refresh command input by the user, the 3D model library executes a refresh function to synchronize the model list displayed in the model list area with the 3D models stored in the 3D model library.
[0030] The user-inputted keywords are obtained using the 3D model library. The keywords are compared with the model list area. If a corresponding 3D model exists, the 3D model is loaded according to the model storage path.
[0031] Preferably, the 3D model library includes: a local model library and a cloud-based model library.
[0032] Preferably, the method further includes:
[0033] The annotation instructions input by the user are obtained, and the annotation instructions are processed using 3D modeling software to generate text annotations in the overall 2D graphic.
[0034] According to a second aspect of the present invention, a three-dimensional software reverse engineering scheme design device is provided, comprising:
[0035] The main controller and the memory connected to the main controller;
[0036] The memory stores program instructions;
[0037] The main controller is used to execute program instructions stored in the memory and perform any of the methods described above.
[0038] According to a third aspect of the present invention, a computer-readable storage medium stores a computer program that, when executed by a processor, implements the method described in any of the preceding embodiments.
[0039] The technical solutions provided by the embodiments of the present invention may include the following beneficial effects:
[0040] It is understood that the technical solution presented in this invention can establish a 3D model library; acquire the target 3D model from the 3D model library into 3D modeling software, and decompose each volume element; obtain 2D graphics based on the outer contour lines and internal structural lines of each volume element in each view; integrate all 2D graphics in the same view into a whole 2D graphic and bind it to the target 3D model; generate dimension annotations based on the distance between two measurement points in the whole 2D graphic in 3D space; and export the whole 2D graphic as a 2D drawing. It is understood that the technical solution presented in this invention can simplify the production process, automatically generate 2D drawings while creating the 3D model, reduce the workload of relevant personnel, reduce the burden on enterprises, and improve enterprise efficiency.
[0041] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit the invention. Attached Figure Description
[0042] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0043] Figure 1 This is a schematic diagram illustrating the steps of a three-dimensional software reverse programming scheme design method according to an exemplary embodiment;
[0044] Figure 2 This is a schematic diagram illustrating the number of facets of a model according to an exemplary embodiment;
[0045] Figure 3 This is a schematic diagram illustrating the identification of a peripheral contour line according to an exemplary embodiment;
[0046] Figure 4 This is a schematic diagram illustrating the identification of internal structural lines according to an exemplary embodiment;
[0047] Figure 5 This is a logical relationship diagram of a three-dimensional model library illustrated according to an exemplary embodiment. Detailed Implementation
[0048] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatuses and methods consistent with some aspects of the invention as detailed in the appended claims.
[0049] In one embodiment, Figure 1This is a schematic diagram illustrating the steps of a three-dimensional software reverse programming scheme design method according to an exemplary embodiment. See also... Figure 1 This paper provides a method for designing a 3D software reverse programming scheme, including:
[0050] Step S11: Establish a 3D model library, which contains 3D models that conform to industry standards and are constructed according to user instructions.
[0051] Step S12: Obtain the target 3D model from the 3D model library into the 3D modeling software, and decompose the volume elements in the target 3D model.
[0052] Step S13: Identify the outer contour line and internal structure line of each volume element in each view, and integrate them to obtain the two-dimensional graphics of the corresponding volume element in each view based on the outer contour line and the internal structure line.
[0053] Step S14: Integrate all volume elements into a single 2D graphic in the same view.
[0054] Step S15: Bind the overall two-dimensional graphics under each view to the target three-dimensional model. When the target three-dimensional model is updated, the overall two-dimensional graphics are updated synchronously.
[0055] Step S16: Based on the distance between the two measurement points in the overall two-dimensional graphic in three-dimensional space, generate the corresponding dimension annotations for the two measurement points in the overall two-dimensional graphic.
[0056] Step S17: Export the overall two-dimensional graphic as a two-dimensional drawing.
[0057] It is understood that the technical solution shown in this embodiment can establish a 3D model library; obtain the target 3D model from the 3D model library into 3D modeling software, and decompose each volume element; obtain 2D graphics based on the outer contour lines and internal structural lines of each volume element in each view; integrate all 2D graphics in the same view into a whole 2D graphic and bind it to the target 3D model; generate dimension annotations based on the distance between two measurement points in the whole 2D graphic in 3D space; and export the whole 2D graphic as a 2D drawing. It is understood that the technical solution shown in this embodiment can simplify the production process, automatically generate 2D drawings while creating the 3D model, reduce the workload of relevant personnel, reduce the burden on enterprises, and improve enterprise efficiency.
[0058] In practice, the three-dimensional software reverse programming scheme design method provided in this embodiment can be used to construct a three-dimensional software reverse programming scheme design system. The system mainly includes two modules: a three-dimensional model library and two-dimensional drawing generation.
[0059] First, execute step S11 to establish a 3D model library. The creation of the 3D model library must adhere to a unified standard; all models must be made to a 1:1 scale to ensure accurate dimensional reproduction. Taking a roller conveyor line as an example, if the actual dimensions are 800mm long, 1320mm wide, and 1500mm high, these values must be strictly followed when modeling in 3ds Max. Simultaneously, while ensuring the integrity of the model's external structure and its functionality, the principle of minimum polygon count optimization should be followed. A reasonable topology design should be used to reduce redundant polygons, improving model rendering efficiency and runtime performance.
[0060] The minimum face count optimization principle aims to fit a shape using the fewest possible faces while preserving the model's key features. For example, to represent a cube, see [link to relevant documentation]. Figure 2 This illustrates the difference in the number of faces between high and low angles, and also represents a cube. Figure 2 The left cube uses 24 faces, and the right cube uses 6 faces. The right cube meets the minimum number of faces requirement.
[0061] Regarding the 3D models stored in the 3D model library, since the methods for creating 3D models in the industry are already very mature, we will not go into details.
[0062] It should be noted that, during step S12, the individual volume elements in the target 3D model are decomposed, including:
[0063] The target 3D model is copied to generate a 3D model copy.
[0064] If the type of the 3D model copy is not an editable polygon, then the type of the 3D model copy is converted to an editable polygon.
[0065] Iterate through the number of volume elements in the 3D model copy, and separate and rename each volume element.
[0066] In practice, the above functions can be achieved by creating scripts using MaxScript. MaxScript scripts can distinguish how many volume elements are inside a model. In 3ds Max, the elements of a model are divided into points, lines, boundaries, faces, and volumes. Only volumes can be broken down into real-world objects or parts; for example, a teapot can be broken down into the teapot and its lid.
[0067] Execute step S13 to identify the outer contour line and internal structure line of each volume element in each view, and integrate them to obtain the two-dimensional graphics of the corresponding volume element in each view based on the outer contour line and the internal structure line.
[0068] It should be noted that the outer contour line is obtained as follows: For each volume element, based on the xyz axis coordinates of the points constituting the volume element, find all the edge contour points of the volume element in each view; connect all the edge contour points of the volume element in each view into a line segment to obtain the outer contour line of the volume element in each view.
[0069] In practice, this embodiment utilizes the view projection matrix method. The principle is as follows: if a front view outline of an object is needed, the front view can be treated as a camera. All points constituting the object in the camera have x, y, and z axes (here, the x, y, and z axes are values based on the view projection matrix, which are different from the x, y, and z axes in three-dimensional space). See [link to documentation]. Figure 3 The x and y axes represent the horizontal and vertical coordinates within screen space, while the z-axis represents the depth coordinates of these points when mapped onto the screen, indicating whether they are occluded or visible. Points with positive z-axis values are visible in the camera, while points with negative z-axis values are occluded and not visible in the camera or view. Therefore, if a point 'a' has a positive value and its adjacent point 'b' has a negative value, then 'a' is an edge contour point in the view. After finding all the edge contour points of the elements, we only need to connect them to obtain the outer contour lines of the elements.
[0070] exist Figure 3 In the example, points a, b, and c have z-axis values of +0.004, +1.012, and -0.997, respectively. Point a has a positive z-axis value, while the adjacent point b has a negative z-axis value. Therefore, point a is an edge contour point. Based on this method, points n1, n2, a, x, n3, and n4 are obtained. Connecting these points yields the outer contour line.
[0071] The method for obtaining the internal contour line is as follows: traverse all faces of the body element, calculate the dihedral angle between the face and the adjacent face for each face, and extract the boundary line between the face and the adjacent face if the angle of the dihedral angle is within a preset range; integrate all the extracted boundary lines into internal structure lines, and map the internal structure lines to each view.
[0072] In practice, the formula for calculating the dihedral angle is:
[0073] Calculate the normal vectors of the two faces. and :
[0074]
[0075] Calculate the dihedral angle:
[0076]
[0077] If the preset range is less than 135 degrees or greater than 225 degrees, and the dihedral angle between two faces is less than 135 degrees or greater than 225 degrees, then the boundary line between the two faces is extracted as part of the internal structural lines of the 2D graphic. That is, the boundary lines of all adjacent faces with significant turns are extracted as internal structural lines.
[0078] See Figure 4 The value of angle β is 135 to 225 degrees, which is the angle between the normal directions of two adjacent faces. The arrow in the upper right image is the normal direction, that is, the angle between ab and bc is 135 degrees, and the angle between ab and bd is 225 degrees. Example 1 and Example 2 are the minimum and maximum ranges for not extracting the boundary line as a two-dimensional graphic.
[0079] Each volume element is processed sequentially using the method described above to obtain a 2D graphic of each volume element in each view. After generating the 2D graphics corresponding to all volume elements, the copy of the 3D model is deleted.
[0080] Execute step S14 to integrate all volume elements in the same view into a single 2D graphic.
[0081] After the overall 2D graphic is created, in 3D modeling software (such as 3ds Max), taking the top view as an example, the overall 2D graphic is located at the bottom of the 3D model. Correspondingly, the overall 2D graphic in the front view is located at the rear of the 3D model, and the overall 2D graphic in the side view is located at the right side of the 3D model.
[0082] Preferably, the overall 2D graphic is generated on a different layer than the 3D model. Furthermore, the layer name can be automatically changed as required; for example, the layer name has a specific prefix: 2D_Shape, and the content after the layer name prefix can be written by the user. The name of the overall 2D graphic itself is 2D_Shape plus the name of the 3D model.
[0083] After generating the overall 2D graphic, step S15 is executed to bind the overall 2D graphic in each view to the target 3D model. When the target 3D model is updated, the overall 2D graphic is updated synchronously.
[0084] Understandably, with this setup, when the 3D model needs modification, staff can directly modify the 3D model, and the overall 2D graphics will update accordingly, eliminating the need for staff to spend extra effort drawing 2D graphics.
[0085] For the generation of two-dimensional drawings, since each three-dimensional model has a bound two-dimensional graphic, the planning designer has basically completed the planning and design of the two-dimensional drawings after placing the three-dimensional model according to the site design.
[0086] Then, step S16 is executed to perform dimension annotation. Based on the distance between two measurement points in the overall two-dimensional graphic in three-dimensional space, dimension annotations corresponding to the two measurement points are generated in the overall two-dimensional graphic.
[0087] Preferably, the annotation instructions input by the user are obtained, and the annotation instructions are processed using 3D modeling software to generate text annotations in the overall 2D graphic.
[0088] In practice, CAD drawings are usually labeled with dimensions and model characteristics for ease of reading.
[0089] This system has built-in dimensioning and feature text annotation scripts, which can directly achieve automated annotation based on distance measurements in 3ds Max virtual space.
[0090] The dimensioning script supports one-click operation: after clicking the dimensioning button, select two points in sequence to automatically measure and generate distance values, and the dimensioning style is compatible with engineering specifications.
[0091] Feature text annotations rely on 3ds Max's native text and graphics tools, supporting custom fonts, colors, and positions. They can directly annotate model attributes (such as device names and material types) without requiring additional script development, and the operation process is simple and intuitive.
[0092] Understandably, this mechanism, through an integrated toolchain, migrates the annotation process in traditional CAD drawings to the 3D design environment, enabling synchronized "modeling as annotation" operations and significantly improving drawing generation efficiency and information consistency.
[0093] After the annotations are completed, proceed to step S17 to export the two-dimensional drawing.
[0094] In practice, exporting 2D drawings can be done directly using the built-in DWG export tool in 3ds Max. If exporting by layer is required, simply select the different layer objects before exporting, and the system will automatically generate the corresponding DWG files for each selected layer, ensuring a clear drawing structure and compliance with project archiving standards. This export mechanism supports parametric configuration, flexibly adapting to the layering requirements of different projects while balancing ease of operation with drawing standardization.
[0095] In a preferred embodiment, the 3D model library is divided into a local model library and a cloud-based model library. It is created using MaxScript, 3ds Max's built-in scripting language. MaxScript allows users to control almost all functions of 3ds Max by writing scripts, including creation, modification, animation, and rendering.
[0096] Therefore, the above-mentioned 3D software reverse engineering scheme design method further includes: using the 3D model library to obtain user-written 3D modeling software usage scripts, and controlling the functions of the 3D modeling software according to the 3D modeling software usage scripts.
[0097] Preferably, the model library has the following functions: refresh the model library, add models to the model library, load models into 3ds Max, delete models from the model library, update existing models, and search for models.
[0098] See the logical relationship diagram of the model library. Figure 5 .exist Figure 5 In the code, the model library is displayed as a dictionary, i.e., "#(key, value)", with the corresponding MaxScript code: `modeldict=Dictionary`. Here, the key is the model name, and the value is the model path. The key also corresponds to the name in the model list within the model library UI; that is, during operations, the specific model file can be found through the model list.
[0099] It should be noted that the UI of the 3D model library includes a search area, a model list area, and a function area. The search area allows staff to search by name. The model list area is a drop-down list of existing models. The function area mainly includes buttons for refreshing, adding, and loading models.
[0100] Model Library Folder (Local / Cloud): Sets a global path variable to store the model library path.
[0101] Refresh Model Library: This function keeps the model list area synchronized with the existing model library. It mainly consists of two functions: UpdateLib and UpdateLibListView. UpdateLib updates the array of material library mappings, while UpdateLibListView updates the model list in the UI.
[0102] Adding a model: This is the fixed-path version of the 3ds Max tool menu command (File > Save Selected Objects), where the path is the model library path. It requires the code `selection.count` and `saveMaxFile savePath #noPrompt`.
[0103] Loading models: There are two ways to load models: opening and merging. Opening means selecting a model from the model library and opening it in the 3D modeling software. For merging, you need to use the command `mergeMAXFile + model file path`.
[0104] Deleting a model: Deleting a model from the model library requires two steps internally. First, the model in the folder is deleted. Second, a refresh function is executed to ensure the UI is synchronized with the actual model library content. The functions used are: deleteFile and refresh UpdateLib and UpdateLibListView.
[0105] Updating a model: You need to select a model in the UI and then click the "Update Model" button. The code used includes: `selection.count` and `saveMaxFile<path to selected model>#noPrompt`.
[0106] Search Model: You need to declare your own search function, which is named searchForModel here. After filling in the model keywords to be searched, use a for loop to compare the keywords with the model list array in the UI. If the corresponding model is found in the model list, then load the model according to the path shown in the dictionary.
[0107] Therefore, through the above functions, the 3D software reverse engineering scheme design method further includes: obtaining a refresh command input by the user; the 3D model library executes a refresh function to synchronize the model list displayed in the model list area with the 3D models stored in the 3D model library; obtaining keywords input by the user using the 3D model library; comparing the keywords with the model list area; and if a corresponding 3D model exists, loading the 3D model according to the model storage path.
[0108] Traditional workflows require the separate creation of 2D drawings, 3D animation models, and digital twin models. This solution directly generates 2D drawings from 3D models, eliminating repetitive modeling steps. One-click automation: Built-in scripts support "modeling and drawing generation," freeing designers from manually creating CAD drawings and allowing them to focus on solution planning, making it particularly suitable for rapid response during the bidding stage. The scripts offer a high degree of automation; designers do not need complex programming skills and can generate drawings with simple clicks, seamlessly integrating with existing workflows.
[0109] In another embodiment, a three-dimensional software reverse engineering scheme design device is provided, comprising:
[0110] The main controller and the memory connected to the main controller;
[0111] The memory stores program instructions;
[0112] The main controller is used to execute program instructions stored in the memory and perform any of the methods described above.
[0113] In another embodiment, a computer-readable storage medium is provided storing a computer program that, when executed by a processor, implements the method described in any of the preceding embodiments.
[0114] It is understood that the same or similar parts in the above embodiments can be referred to each other, and the contents not described in detail in some embodiments can be referred to the same or similar contents in other embodiments.
[0115] It should be noted that in the description of this invention, the terms "first," "second," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance. Furthermore, in the description of this invention, unless otherwise stated, "a plurality of" means at least two.
[0116] Any process or method description in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more executable instructions for implementing a particular logical function or process, and the scope of the preferred embodiments of the invention includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as will be understood by those skilled in the art to which embodiments of the invention pertain.
[0117] It should be understood that various parts of the present invention can be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.
[0118] Those skilled in the art will understand that all or part of the steps of the methods in the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, the program includes one or a combination of the steps of the method embodiments.
[0119] Furthermore, the functional units in the various embodiments of the present invention can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.
[0120] The storage media mentioned above can be read-only memory, disk, or optical disk, etc.
[0121] In the description of this specification, references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0122] Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of the present invention.
Claims
1. A three-dimensional software reverse planning protocol design method, characterized in that, The method comprises the following steps: a three-dimensional model library is established, in which three-dimensional models conforming to industry standards are pre-stored according to user instructions; a target three-dimensional model is obtained from the three-dimensional model library to a three-dimensional modeling software, and each body element in the target three-dimensional model is decomposed, including: copying the target three-dimensional model to generate a three-dimensional model copy; if the type of the three-dimensional model copy is not an editable polygon, the type of the three-dimensional model copy is converted into an editable polygon; the number of body elements in the three-dimensional model copy is traversed, and each body element is separated and renamed respectively; after generating a two-dimensional graph corresponding to the body element, the three-dimensional model copy is deleted; the peripheral contour line and the internal structure line of each body element under each view are identified respectively, and the two-dimensional graph of the corresponding body element under each view is integrated according to the peripheral contour line and the internal structure line; the two-dimensional graphs of all body elements under the same view are integrated into an overall two-dimensional graph; the overall two-dimensional graph under each view is bound with the target three-dimensional model, and when the target three-dimensional model is updated, the overall two-dimensional graph is updated synchronously; a size mark corresponding to two measuring points in the overall two-dimensional graph is generated according to the distance between the two measuring points in the three-dimensional space; the overall two-dimensional graph is exported as a two-dimensional drawing; the peripheral contour line and the internal structure line of each body element under each view are identified respectively, including: for each body element, all edge contour points of the body element under each view are found according to the xyz axis coordinates of the points constituting the body element; all edge contour points of the body element under each view are connected into a line segment to obtain the peripheral contour line of the body element under each view; all faces of the body element are traversed, and for each face, the dihedral angle of the face and the adjacent face is calculated, and if the angle of the dihedral angle is within a preset range, the intersection line of the face and the adjacent face is extracted; all extracted intersection lines are integrated into internal structure lines, and the internal structure lines are mapped to each view.
2. The method of claim 1, wherein, When the overall two-dimensional graph is generated, the following steps are further included: the overall two-dimensional graph is generated on a layer different from the three-dimensional model.
3. The method of claim 1, wherein, Further comprising: a three-dimensional modeling software use script written by the user is obtained by using the three-dimensional model library, and the function of the three-dimensional modeling software is controlled according to the three-dimensional modeling software use script.
4. The method of claim 3, wherein: the UI interface of the three-dimensional model library includes a search area, a model list area and a function area; the method further comprises: a refresh instruction input by the user is obtained, and the three-dimensional model library executes a refresh function to synchronize the model list displayed in the model list area with the three-dimensional models stored in the three-dimensional model library; a keyword input by the user is obtained by using the three-dimensional model library, and the keyword is compared with the model list area, and if there is a corresponding three-dimensional model, the three-dimensional model is loaded according to the model storage path.
5. The method of claim 3, wherein: the three-dimensional model library includes a local model library and a cloud model library.
6. The method of claim 1, wherein, Further comprising: The label instruction input by the user is acquired, and the label instruction is processed by using a three-dimensional modeling software to generate a text label in the overall two-dimensional graph.
7. A three-dimensional software reverse planning protocol design device characterized by, The application relates to a method and a device for generating a text label in an overall two-dimensional graph. A master controller and a memory connected to the master controller are provided. The memory stores program instructions. The master controller executes the program instructions stored in the memory to execute the method according to any one of claims 1-6.
8. A computer readable storage medium storing a computer program, characterized in that, The computer program is executed by a processor to implement the method according to any one of claims 1-6.
Citation Information
Patent Citations
Method and device for generating facade construction drawing by building model
CN111859511A
Two-dimensional and three-dimensional linkage bridge parametric modeling and drawing method, device, equipment and medium
CN115017569A