Hull structure grillage efficient modeling method based on model library
By performing similarity search and script file replacement in the model library, the problem of inefficient search and multiplexing of similar frame data in hull structure frame modeling is solved, and the rapid generation of similar frame models is achieved, and the modeling efficiency is improved .
Patent Information
- Application Number
- CN202411076504.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-07
- Publication Date
- 2024-12-06
AI Technical Summary
In the process of hull structural mount modeling, there is a lack of methods to quickly find and reuse similar mount data, which consumes a lot of time to search and compare and confirm, affecting modeling efficiency.
By pre-establishing the model library, generating board rack data and saving it, using similarity search and confirming similar script files, relying on the script files to quickly model the target board rack, including generating board rack data, similarity matching, replacing object names and running The script file generates the target board rack.
It realizes rapid positioning and reuse of historical script files, reduces modeling time and improves board modeling efficiency.
Smart Images

Figure CN119089571A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of efficient three-dimensional modeling, and in particular to an efficient modeling method for a hull structure plate frame based on a model library. Background Art
[0002] The hull structure of a ship is usually composed of thousands of plates, each of which is an independent business object unit. The design data of a plate can actually be expressed by a set of scripts. Therefore, when modeling a new plate, a script can be quickly generated by running a new set of script files.
[0003] The plate rack styles in the same area of the same type of ships are very similar, so the reuse of plate rack scripts can greatly improve the modeling efficiency of the plate rack. Because the plate rack data stored in the model library is massive, it takes a lot of time to search and compare and confirm when extracting and reusing the plate rack scripts, and there is a lack of a fast method to find similar plate rack data. Summary of the invention
[0004] (I) Purpose of the invention
[0005] In order to solve the technical problems existing in the background technology, the present invention proposes an efficient modeling method for hull structure plate frames based on a model library. The model library is established in advance. When the target plate frame A needs to be established, a similarity search is performed through the model library to confirm similar script files, and the target file A is quickly modeled based on the script file.
[0006] (II) Technical solution
[0007] In order to solve the above technical problems, the present invention provides an efficient modeling method for a hull structure plate frame based on a model library, comprising the following steps:
[0008] Step 1: Generate a set of rack data for each rack and save it to the model library. The rack data includes: rack script file, two-dimensional projection map of the rack surrounding model, model serial number and name of the rack topology, and two-dimensional projection map of the rack;
[0009] Step 2: When creating the target rack A, obtain the "rack surrounding model two-dimensional projection map A" of the target rack A, and perform similarity matching between the map and all the "rack surrounding model two-dimensional projection maps" in the model library, retain the reference group of "rack surrounding model two-dimensional projection maps" within the similarity threshold range, and arrange them according to the similarity level;
[0010] Step 3: List the corresponding “plate rack two-dimensional projection diagram” reference group according to the “plate rack surrounding model two-dimensional projection diagram” reference group;
[0011] Step 4: Select the "2D projection map B" closest to the target frame A in the "2D projection map" reference group, and call the corresponding "frame script file B" and "frame topology model number and name B" at the same time;
[0012] Step 5: By analyzing the "model serial number and name B of the rack topology", the original rack topology object name is replaced with the object name of the current "two-dimensional projection diagram A of the rack surrounding model" to generate the target "rack script file A";
[0013] Step 6: Run the target "board rack script file A" to generate target board rack A.
[0014] Preferably, the two-dimensional projection diagram of the panel frame perimeter model and the two-dimensional projection diagram of the panel frame include an orthographic projection diagram, a side projection diagram and a horizontal projection diagram.
[0015] Preferably, the "two-dimensional projection diagram A of the peripheral model of the panel rack" of the target panel rack A includes at least one model located around the target panel rack A and in a matching relationship therewith.
[0016] Preferably, in step 2, similarity matching of the “two-dimensional projection image A of the surrounding model of the frame” of the target frame A with all the “two-dimensional projection images of the surrounding model of the frame” in the model library includes:
[0017] First, a first similarity detection is performed on any of the three projection images, and the "two-dimensional projection image of the plate frame surrounding model" within the similarity threshold range is retained as the first similarity group;
[0018] Perform a second similarity test on the “two-dimensional projection image of the surrounding model of the plate rack” of the first similar group with any of the remaining two projection images, and retain the “two-dimensional projection image of the surrounding model of the plate rack” within the similarity threshold range as the second similarity group;
[0019] A third similarity test is performed on the remaining projection images of the "two-dimensional projection image of the surrounding model of the plate rack" of the second similarity group, and those within the similarity threshold range are retained as the reference group of the "two-dimensional projection image of the surrounding model of the plate rack".
[0020] Preferably, in step 2, the similarity thresholds are set in a stepwise manner from low to high, with the first similarity threshold being not less than 0.7, the second similarity threshold being not less than 0.8, and the third similarity threshold being not less than 0.9.
[0021] The "Plate Rack 2D Projection Map" reference group includes several plate rack 2D projection maps. A plate rack data can be called through a plate rack 2D projection map.
[0022] Preferably, in step 4, the step of selecting the “panel two-dimensional projection image B” closest to the target panel A in the “panel two-dimensional projection image” reference group includes:
[0023] Calling preset size data of target rack A and size ratio data of target rack A and its surrounding model A;
[0024] Call each corresponding data in the "2D projection diagram of plate rack" reference group;
[0025] The "panel two-dimensional projection image B" of the target panel A that is closest to the panel A is confirmed to have similar size data and size ratio data.
[0026] Preferably, in step five, the "model serial number and name B of the plate frame topology" is used to indicate its installation position and functional role in the hull structure, and its installation position and functional role correspond to the target plate frame A.
[0027] Preferably, in step five, the rack data of the target rack A includes "rack script file A (replaced by rack script file B), two-dimensional projection map A of the rack surrounding model, model serial number and name A of the rack topology (replaced by model serial number and name B of the rack topology), and two-dimensional projection map A of the rack (replaced by two-dimensional projection map B of the rack)".
[0028] Preferably, step six also includes running the "rack script file A" based on the three-dimensional modeling software installed on the computer device to generate a rack model of the corresponding target rack A.
[0029] The above-mentioned technical scheme of the present invention has the following beneficial technical effects: the panel rack data that have been designed in the past are stored in the model library. When the target panel rack needs to be designed, it is only necessary to call the two-dimensional projection map of the surrounding model of the target panel rack to perform a similarity check in the model library, and the historical script file that can be used for reference can be quickly located. By running the historical script file, a similar target model can be quickly generated, which facilitates the reuse of the panel rack script and reduces the time spent on modeling. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 It is a schematic diagram of the method of the present invention;
[0031] Figure 2 A schematic diagram is generated for the reference group of the "two-dimensional projection diagram of the plate rack surrounding model of the present invention". DETAILED DESCRIPTION
[0032] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention is further described in detail below in conjunction with specific embodiments and with reference to the accompanying drawings. It should be understood that these descriptions are only exemplary and are not intended to limit the scope of the present invention. In addition, in the following description, the description of well-known structures and technologies is omitted to avoid unnecessary confusion of the concept of the present invention.
[0033] like Figure 1-2As shown, the present invention proposes an efficient modeling method for a hull structure frame based on a model library, step 1, taking a frame as a unit, generating a frame data and saving it to the model library, the frame data including: a frame script file, a two-dimensional projection diagram of the frame surrounding model, a model serial number and name of the frame topology, and a two-dimensional projection diagram of the frame;
[0034] It should be noted that the two-dimensional projection diagram of the panel frame surrounding model and the two-dimensional projection diagram of the panel frame include the orthographic projection diagram, the side projection diagram and the horizontal projection diagram.
[0035] Step 2: When creating the target rack A, obtain the "rack surrounding model two-dimensional projection map A" of the target rack A, and perform similarity matching between the map and all the "rack surrounding model two-dimensional projection maps" in the model library, retain the reference group of "rack surrounding model two-dimensional projection maps" within the similarity threshold range, and arrange them according to the similarity level;
[0036] The “two-dimensional projection diagram A of the peripheral model of the target frame A” includes at least one model located around the target frame A and having a matching relationship with the target frame A;
[0037] When there is only one model around the plate rack, the screening restrictions are fewer and the data processing volume is larger;
[0038] When there are two or more models around the plate rack, the screening restrictions increase and the data processing volume decreases;
[0039] When performing similarity matching, the "two-dimensional projection image A of the surrounding model of the target frame A" is directly related to the number of models that have a matching relationship with it.
[0040] The similarity matching between the “two-dimensional projection image A of the surrounding model of the frame” of the target frame A and all the “two-dimensional projection images of the surrounding model of the frame” in the model library includes:
[0041] First, a first similarity detection is performed on any of the three projection images, and the "two-dimensional projection image of the plate frame surrounding model" within the similarity threshold range is retained as the first similarity group;
[0042] Perform a second similarity test on the “two-dimensional projection image of the surrounding model of the plate rack” of the first similar group with any of the remaining two projection images, and retain the “two-dimensional projection image of the surrounding model of the plate rack” within the similarity threshold range as the second similarity group;
[0043] A third similarity test is performed on the remaining projection images of the "two-dimensional projection image of the surrounding model of the plate rack" of the second similarity group, and those within the similarity threshold range are retained as the reference group of the "two-dimensional projection image of the surrounding model of the plate rack".
[0044] Among them, the purpose of grouping detection of three projection images is that since a single "two-dimensional projection image of the surrounding model of the plate rack" has three projection images, similarity matching of all projection images will lead to a three-fold increase in the amount of data processing in the similarity matching process. When a single projection image does not meet the similarity threshold requirement, it is meaningless to perform similarity matching on the remaining two projection images, so group similarity matching is performed to reduce the amount of data processing.
[0045] It should be noted that: the similarity threshold is set in a step-by-step manner from low to high, the first similarity threshold is not less than 0.7, the second similarity threshold is not less than 0.8, and the third similarity threshold is not less than 0.9; the similarity threshold is set in a step-by-step manner, the purpose is to retain the part with the highest similarity threshold, the part with a similarity threshold of not less than 0.7, as the first similarity group of the first screening result, the part with a similarity threshold of not less than 0.8 is screened in the first similarity group, as the second similarity group of the second screening result, and the part with a similarity threshold of not less than 0.9 is screened in the second similarity group, as the reference group of the third screening result;
[0046] In the algorithm used in similarity matching, the larger the similarity threshold is set, the more the data processing time doubles. Through step-by-step distribution screening, the number of screenings to be processed when the threshold is large is effectively reduced, solving the problem of long processing time when directly matching with a large similarity threshold.
[0047] It should be added that: the "two-dimensional projection diagram of the plate frame surrounding model" is a two-dimensional structure diagram in the shape of lines, and the similarity can be detected by a variety of algorithms, including structural similarity index (SSIM), complexity measurement, time series method, and topological similarity;
[0048] Taking the structural similarity index (SSIM) as an example, the SSIM indicator extracts three key features from the image: brightness feature, contrast feature and structural feature. The similarity of two images is calculated by comparing their brightness, contrast and structural information. In the PyTorch framework, the pytorch_ss im library can be used to calculate the SSIM value of two images to measure their similarity and set the similarity threshold. The calculation can be stopped when the preset similarity threshold is reached.
[0049] Step 3: List the corresponding “2D projection map of plate rack” reference group according to the “2D projection map of plate rack surrounding model” reference group. The “2D projection map of plate rack” reference group includes several 2D projection maps of plate rack. One plate rack data can be called through one 2D projection map of plate rack.
[0050] Step 4: Select the "2D projection map B" closest to the target frame A in the "2D projection map" reference group, and call the corresponding "frame script file B" and "frame topology model number and name B" at the same time;
[0051] In step 4, the step of selecting the “plate rack two-dimensional projection image B” closest to the target plate rack A in the “plate rack two-dimensional projection image” reference group includes:
[0052] Calling preset size data of target rack A and size ratio data of target rack A and its surrounding model A;
[0053] Call each corresponding data in the "2D projection diagram of plate rack" reference group;
[0054] The "panel two-dimensional projection image B" of the target panel A that is closest to the panel A is confirmed to have similar size data and size ratio data.
[0055] It can be understood that although the target rack A has not been modeled, its target size data and the target size ratio data with its surrounding model A are known. Through secondary confirmation of the above data, the closest "rack two-dimensional projection map B" can be selected to assist in the subsequent call of the "rack script file B".
[0056] It should be added that the model serial number and name B of the plate frame topology is used to indicate its installation position and functional role in the hull structure. Its installation position and functional role correspond to the target plate frame A, and can also be used as an indication of whether the "plate frame two-dimensional projection map B" is closest to the target plate frame A.
[0057] Step 5: By analyzing the "model serial number and name B of the rack topology", the original rack topology object name is replaced with the object name of the current "two-dimensional projection diagram A of the rack surrounding model" to generate the target "rack script file A";
[0058] Among them, the rack data of the target rack A includes "rack script file A (replaced by rack script file B), rack peripheral model two-dimensional projection map A, rack topology model serial number and name A (replaced by rack topology model serial number and name B), rack two-dimensional projection map A (replaced by rack two-dimensional projection map B)".
[0059] It can be understood that, except for the two-dimensional projection map A of the surrounding model, the rest of the frame data of the target frame A are replaced by the frame data of the closest frame B, which realizes the reuse of historical data and solves the tedious steps of repeated modeling.
[0060] Step 6: Run the target "board rack script file A" to generate target board rack A.
[0061] It should be noted that: based on the three-dimensional modeling software installed on the computer device, the "frame script file A" is run to generate the frame model of the corresponding target frame A.
[0062] The generated panel model of the target panel A can be modified according to the needs of the designer.
[0063] It should be understood that the above specific embodiments of the present invention are only used to illustrate or explain the principles of the present invention, and do not constitute a limitation of the present invention. Therefore, any modifications, equivalent substitutions, improvements, etc. made without departing from the spirit and scope of the present invention should be included in the protection scope of the present invention. In addition, the appended claims of the present invention are intended to cover all changes and modifications that fall within the scope and boundaries of the appended claims, or the equivalent forms of such scope and boundaries.
Claims
1. An efficient modeling method for hull structure plate frame based on model library, characterized in that: The following steps are involved: Step 1: Generate a set of rack data for each rack and save it to the model library. The rack data includes: rack script file, two-dimensional projection map of the rack surrounding model, model serial number and name of the rack topology, and two-dimensional projection map of the rack; Step 2: When creating the target rack A, obtain the "rack surrounding model 2D projection map A" of the target rack A, and perform similarity matching between the map and all the "rack surrounding model 2D projection maps" in the model library, retain the reference group of "rack surrounding model 2D projection maps" within the similarity threshold range, and arrange them according to the similarity level; Step 3: List the corresponding "2D projection diagram of plate rack" reference group according to the "2D projection diagram of plate rack surrounding model" reference group; Step 4. Select the "Shelf 2D Projection Map B" that is closest to the target shelf A in the "Shelf 2D Projection Map" reference group, and call the corresponding "Shelf Script File B" and "Shelf Topology Model Number and Name B" at the same time; Step 5: By analyzing the "model serial number and name B of the rack topology", the original rack topology object name is replaced with the object name of the current "rack surrounding model two-dimensional projection map A" to generate the target "rack script file A"; Step 6: Run the target "board rack script file A" to generate target board rack A.
2. The efficient modeling method of hull structure plate frame based on model library according to claim 1 is characterized in that: The two-dimensional projection diagram of the plate rack surrounding model and the two-dimensional projection diagram of the plate rack include the orthographic projection diagram, the side projection diagram and the horizontal projection diagram.
3. The efficient modeling method for hull structure plate frame based on model library according to claim 1 is characterized in that: The "two-dimensional projection diagram A of the peripheral model of the target panel frame A" includes at least one model located around the target panel frame A and having a matching relationship therewith.
4. The efficient modeling method of hull structure plate frame based on model library according to claim 1 is characterized in that: In step 2, the similarity matching of the "two-dimensional projection image A of the surrounding model of the frame" of the target frame A and all the "two-dimensional projection images of the surrounding model of the frame" in the model library includes: First, a first similarity detection is performed on any of the three projection images, and the "two-dimensional projection image of the surrounding model of the frame" within the similarity threshold range is retained as the first similarity group; Perform a second similarity test on the "two-dimensional projection image of the surrounding model of the frame" of the first similar group with any of the remaining two projection images, and retain the "two-dimensional projection image of the surrounding model of the frame" within the similarity threshold range as the second similarity group; The third similarity detection is performed on the remaining projection images of the "two-dimensional projection image of the surrounding model of the plate rack" of the second similarity group, and those within the similarity threshold range are retained as the reference group of the "two-dimensional projection image of the surrounding model of the plate rack".
5. The efficient modeling method of hull structure plate frame based on model library according to claim 1 is characterized in that: In step 2, the similarity thresholds are set in a step-by-step manner from low to high, with the first similarity threshold being no less than 0.7, the second similarity threshold being no less than 0.8, and the third similarity threshold being no less than 0.
9.
6. The efficient modeling method of hull structure plate frame based on model library according to claim 1 is characterized in that: The "Plate Rack 2D Projection Map" reference group includes several plate rack 2D projection maps. A plate rack data can be called through a plate rack 2D projection map.
7. The efficient modeling method of hull structure plate frame based on model library according to claim 1 is characterized in that: In step 4, the step of selecting the "plate rack two-dimensional projection image B" closest to the target plate rack A in the "plate rack two-dimensional projection image" reference group includes: Calling preset size data of target rack A and size ratio data of target rack A and its surrounding model A; Call each corresponding data in the "2D projection diagram of plate rack" reference group; The "panel two-dimensional projection image B" of the target panel A that is closest to the panel A is confirmed to have similar size data and size ratio data.
8. The efficient modeling method of hull structure plate frame based on model library according to claim 1 is characterized in that: In step 5, "model serial number and name B of plate frame topology" is used to indicate its installation position and functional role in the hull structure, and its installation position and functional role correspond to the target plate frame A.
9. The efficient modeling method of hull structure plate frame based on model library according to claim 1 is characterized in that: In step five, the rack data of the target rack A includes "rack script file A (replaced by rack script file B), two-dimensional projection map A of the rack surrounding model, model serial number and name A of the rack topology (replaced by model serial number and name B of the rack topology), and two-dimensional projection map A of the rack (replaced by two-dimensional projection map B of the rack)".
10. The efficient modeling method of hull structure plate frame based on model library according to claim 1, characterized in that: Step six also includes running the "frame script file A" based on the three-dimensional modeling software installed on the computer device to generate a frame model of the corresponding target frame A.
Citation Information
Cited By
Rapid modeling method and device for complex ship body, terminal and storage medium
CN120086968A
Complex ship body rapid modeling method, device, terminal and storage medium
CN120086968B
