Visual processing method, system and equipment for ship structure three-dimensional model and medium

By converting the three-dimensional model of the ship structure into a GLTF format file and displaying it in the browser, the problem that on-site construction personnel cannot intuitively view the three-dimensional model is solved, and fast and accurate model viewing is achieved, which improves work efficiency.

CN119475597APending Publication Date: 2025-02-18SHANGHAI WAIGAOQIAO SHIP BUILDING CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411634680.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-15
Publication Date
2025-02-18

AI Technical Summary

Technical Problem

On-site construction personnel cannot view the three-dimensional model of the hull structure intuitively and quickly, resulting in misunderstandings and errors, affecting work efficiency.

Method used

By converting the three-dimensional model of the ship structure into an RVM format file, parsing it into a GLTF format file, and when receiving a viewing instruction, the GLTF format file is loaded into the browser to display the GLTF format file through the browser.

Benefits of technology

It realizes that users can view the three-dimensional model of the hull structure intuitively and quickly, avoid misunderstandings and errors, and improve work efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119475597A_ABST
    Figure CN119475597A_ABST
Patent Text Reader

Abstract

The invention provides a visualization processing method, system and device for a three-dimensional model of a ship structure and a medium. The method comprises the steps that the three-dimensional model of the ship structure is converted into an RVM format file; analyzing the RVM format file to obtain a GLTF format file; and loading the GLTF format file into a browser according to a received viewing instruction so as to display the GLTF format file through the browser. According to the method, the ship structure three-dimensional model of the RVM format file is analyzed into the GLTF format file, and when the viewing instruction of the user is received, the GLTF format file is loaded into the browser, so that the GLTF format file is displayed through the browser; the three-dimensional model of the ship structure can display the layout and details of the ship body structure in a visual and vivid mode, a user can more easily understand the complex structure of the ship body, the user can visually and rapidly check the three-dimensional model of the ship body structure, and misunderstanding and mistakes are avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of ship structure visualization, and in particular to a visualization processing method, system, equipment and medium for a three-dimensional model of a ship structure. Background Art

[0002] In the field of large-scale shipbuilding, the use of computer-aided design software (such as Tribon M3 (a professional ship design and modeling software), AVEVA Marine (a comprehensive ship design and production software, including hull design, structural design, material management, production planning and other functions)) for 3D modeling can improve design accuracy, enhance visualization, simplify the design process, promote collaboration and communication, reduce costs and risks, and support simulation and testing. Although computer-aided design software provides these great advantages, its high cost and high requirements for equipment make it impractical to install and use it on a large scale at the production site. And because of the high professionalism and complexity of the 3D auxiliary software itself, it requires site management and construction personnel to have certain professional knowledge and technical background, and it is a huge challenge for them to reach the level of proficient use and operation.

[0003] Based on the above problems, how to enable on-site construction personnel to enjoy the huge advantages brought by 3D models has become an urgent problem to be solved. Obviously, it is far from enough to limit the 3D model to the design end. It is necessary to explore effective methods to provide these valuable 3D model resources to on-site personnel. At present, on-site personnel cannot intuitively and quickly view the 3D model of the hull structure, and cannot make full use of these 3D models during the construction process. Misunderstandings and errors occur, affecting work efficiency. Summary of the invention

[0004] The technical problem to be solved by the present invention is to overcome the defect in the prior art that on-site staff cannot intuitively and quickly view the three-dimensional model of the hull structure, which leads to misunderstandings and errors, thus affecting work efficiency, and to provide a visualization processing method, system, equipment and medium for the three-dimensional model of the ship structure.

[0005] The present invention solves the above technical problems through the following technical solutions:

[0006] A first aspect of the present disclosure provides a visualization processing method for a three-dimensional model of a ship structure, the visualization processing method comprising:

[0007] Convert the ship structure 3D model into RVM format file;

[0008] Parsing the RVM format file to obtain a GLTF format file;

[0009] The GLTF format file is loaded into the browser according to the received viewing instruction, so as to display the GLTF format file through the browser.

[0010] Preferably, before the step of converting the three-dimensional model of the ship structure into an RVM format file, the visualization processing method further comprises:

[0011] Obtain the 3D model of the ship structure.

[0012] Preferably, after the step of parsing the RVM format file to obtain the GLTF format file, the visualization processing method further comprises:

[0013] Storing the GLTF format file in a file server;

[0014] The step of loading the GLTF format file into the browser according to the received viewing instruction so as to display the GLTF format file through the browser comprises:

[0015] The GLTF format file is loaded from the file server to the browser according to the received viewing instruction, so as to display the GLTF format file through the browser.

[0016] Preferably, the step of converting the three-dimensional model of the ship structure into an RVM format file comprises:

[0017] Converting the three-dimensional model of the ship structure into a corresponding drawing;

[0018] The target interface is called to convert the corresponding drawing into an RVM format file.

[0019] Preferably, the step of parsing the RVM format file to obtain a GLTF format file comprises:

[0020] Obtaining geometric information and structural information of the RVM format file;

[0021] The geometric information and the structural information are converted and coordinate mapped to obtain processed geometric information and processed structural information;

[0022] The processed geometric information and the processed structural information are compressed into the GLTF format file according to a preset compression rate.

[0023] Preferably, the visualization processing method further includes:

[0024] Configure the perspective camera in the target scene;

[0025] Rendering the GLTF format file by combining the perspective camera with a rendering engine;

[0026] Displaying the rendered GLTF format file on the browser;

[0027] and / or,

[0028] The visualization processing method further includes:

[0029] Obtain relevant information related to the GLTF format file;

[0030] The related information is stored in a database.

[0031] A second aspect of the present disclosure provides a visualization processing system for a three-dimensional model of a ship structure, the visualization processing system comprising:

[0032] A conversion module, used to convert the three-dimensional model of the ship structure into an RVM format file;

[0033] A parsing module, used for parsing the RVM format file to obtain a GLTF format file;

[0034] The loading module is used to load the GLTF format file into the browser according to the received viewing instruction, so as to display the GLTF format file through the browser.

[0035] Preferably, the visualization processing system further includes:

[0036] The first acquisition module is used to acquire the three-dimensional model of the ship structure.

[0037] Preferably, the visualization processing system further includes:

[0038] A first storage module, used for storing the GLTF format file in a file server;

[0039] The loading module is used to load the GLTF format file from the file server to the browser according to the received viewing instruction, so as to display the GLTF format file through the browser.

[0040] Preferably, the conversion module comprises:

[0041] A first conversion unit, used to convert the three-dimensional model of the ship structure into a corresponding drawing;

[0042] The second conversion unit is used to call the target interface to convert the corresponding drawing into an RVM format file.

[0043] Preferably, the parsing module comprises:

[0044] An acquisition unit, used for acquiring geometric information and structural information of the RVM format file;

[0045] A processing unit, used for performing conversion and coordinate mapping processing on the geometric information and the structural information to obtain processed geometric information and processed structural information;

[0046] A generating unit is used to generate the GLTF format file according to a preset compression rate using the processed geometric information and the processed structural information.

[0047] Preferably, the visualization processing system further includes:

[0048] A configuration module, used to configure the perspective camera in the target scene;

[0049] A rendering processing module, used for rendering the GLTF format file by combining the perspective camera with a rendering engine;

[0050] A display module, used for displaying the rendered GLTF format file on the browser;

[0051] and / or,

[0052] The visualization processing system further includes:

[0053] A second acquisition module is used to acquire relevant information related to the GLTF format file;

[0054] The second storage module is used to store the relevant information in a database.

[0055] A third aspect of the present disclosure provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and used to run on the processor, wherein when the processor executes the computer program, the visualization processing method of the three-dimensional model of the ship structure described in the first aspect is implemented.

[0056] A fourth aspect of the present disclosure provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method for visualizing a three-dimensional model of a ship structure described in the first aspect is implemented.

[0057] A fifth aspect of the present disclosure provides a computer program product, comprising a computer program, which, when executed by a processor, implements the method for visualizing a three-dimensional model of a ship structure as described in the first aspect.

[0058] On the basis of being in accordance with the common sense in the art, the above-mentioned preferred conditions can be arbitrarily combined to obtain the preferred embodiments of the present disclosure.

[0059] The positive and progressive effects of this disclosure are:

[0060] The present invention parses the three-dimensional model of the ship structure in the RVM format file into a GLTF format file, and when receiving the user's viewing instruction, loads the GLTF format file into the browser to display the GLTF format file through the browser; the three-dimensional model of the ship structure can display the layout and details of the hull structure in an intuitive and vivid manner, so that the user can more easily understand the complex structure of the hull, and realizes the user's intuitive and rapid viewing of the three-dimensional model of the hull structure, avoiding misunderstandings and errors. BRIEF DESCRIPTION OF THE DRAWINGS

[0061] Figure 1 This is a flowchart of the visualization processing method of the three-dimensional model of the ship structure provided in Example 1 of the present disclosure.

[0062] Figure 2 A schematic diagram of the modules of the visualization processing system for the three-dimensional model of the ship structure provided in Example 2 of the present disclosure.

[0063] Figure 3 A schematic diagram of the structure of an electronic device for realizing a method for visualizing a three-dimensional model of a ship structure according to Embodiment 3 of the present disclosure DETAILED DESCRIPTION

[0064] The present disclosure is further described below by way of examples, but the present disclosure is not limited to the scope of the examples.

[0065] Prefixes such as "first" and "second" are used in the embodiments of the present disclosure only to distinguish different description objects, and have no limiting effect on the position, order, priority, quantity or content of the described objects. The use of prefixes such as ordinal numbers to distinguish description objects in the embodiments of the present disclosure does not constitute a limitation on the described objects. For the statement of the described objects, please refer to the description in the context of the claims or embodiments, and no unnecessary limitation should be constituted due to the use of such prefixes. In addition, in the description of the present embodiment, unless otherwise specified, the meaning of "plurality" is two or more.

[0066] In the embodiments of the present disclosure, the collection, storage, use, processing, transmission, provision and disclosure of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0067] Example 1

[0068] Figure 1 A flowchart of a method for visualizing a three-dimensional model of a ship structure provided in Example 1 of the present disclosure, such as Figure 1 As shown, the visualization processing method includes:

[0069] S1. Convert the three-dimensional model of the ship structure into an RVM format file;

[0070] S2, parsing the RVM format file to obtain a GLTF format file;

[0071] S3. Load the GLTF format file into the browser according to the received viewing instruction, so as to display the GLTF format file through the browser.

[0072] In this embodiment, Tribon M3 and AVEVA Marine have their own 3D model expression algorithms and rendering engines. The standard RVM (Relevance Vector Machine, RVM for short) 3D model format provided by Tribon M3 and AVEVA Marine cannot be recognized and loaded in other 3D model engines. The present invention has developed a set of functions for parsing the 3D model of the ship structure in RVM format file into a lightweight 3D model in GLTF (Graphics Language Transmission Format, GLTF, Graphics Language Transmission Format) format file, integrating the Google Draco data compression algorithm, and further lightweighting the 3D model of the ship structure. Under the premise of ensuring the accuracy of the key features of the 3D model of the ship structure, the volume and complexity of the 3D model file of the ship structure are greatly reduced, so as to improve the loading speed and interactive performance of the 3D model of the ship structure on the Web (network) platform.

[0073] This embodiment parses the three-dimensional model of the ship structure in the RVM format file into a GLTF format file, and when receiving the user's viewing instruction, loads the GLTF format file into the browser to display the GLTF format file through the browser; the three-dimensional model of the ship structure can display the layout and details of the hull structure in an intuitive and vivid manner, so that the user can more easily understand the complex structure of the hull, and enables the user to intuitively and quickly view the three-dimensional model of the hull structure, avoiding misunderstandings and errors.

[0074] In an optional embodiment, before step S1, the visualization processing method further includes:

[0075] Obtain the 3D model of the ship structure.

[0076] In this embodiment, a set of model export functions are developed for Tribon M3 and AVEVA Marine respectively, which automatically call the model export API (application programming interface) provided by the software to realize the batch complete export function of the three-dimensional model of the ship structure. That is, the three-dimensional model of the ship structure is exported from Tribon M3 and AVEVA Marine.

[0077] In an optional embodiment, after step S2, the visualization processing method further includes:

[0078] S21, storing the GLTF format file in a file server;

[0079] Step S3 includes:

[0080] The GLTF format file is loaded from the file server to the browser according to the received viewing instruction, so as to display the GLTF format file through the browser.

[0081] In this embodiment, the rendering efficiency of the three-dimensional model of the ship structure is improved by setting a variety of optimization strategies, such as: optimizing materials, removing all material textures in the three-dimensional model of the ship structure, and only retaining the material color; single-sided rendering, only rendering the model surface facing the user; dynamic detail rendering, dynamically switching the detail level of the three-dimensional model of the ship structure according to the distance from the camera; caching, caching the three-dimensional model of the ship structure that has been loaded to avoid repeated loading; intelligent loading, only loading the three-dimensional model of the ship structure that can be photographed by the camera viewport, and automatically removing the three-dimensional model of the ship structure that cannot be illuminated; cone clipping, only rendering the three-dimensional model of the ship structure within the camera's field of view; delayed loading, only loading the three-dimensional model of the ship structure with an accuracy of 3% when initializing the page, and gradually switching to the three-dimensional model of the ship structure with an accuracy of 50% according to display requirements. Through these optimization algorithms, it is guaranteed that the display of high frame rate can be maintained even in complex scenes, so that the display effect of GLTF format files is better.

[0082] Furthermore, by adding rich interactive functions of the 3D model of the ship structure, the interactive mode is set at the component level and the component level, including model selection according to the area range, model system directory tree, assembly directory tree, model grouping, model rotation, zooming in and out, hidden, displayed, hidden switching of the selected model, model sectioning, model color switching, etc. Develop model size information auxiliary tools, provide model size measurement, coordinate annotation, relative coordinate absolute coordinate conversion tools, so as to improve the user experience.

[0083] Furthermore, the user experience is further improved by adding multiple model viewing methods, such as global view, part focus view, front view, side view, top view, positive and negative angle axonometric view, etc.

[0084] In this embodiment, the user can freely view different parts and details of the hull structure through operations such as rotation, scaling, and movement, which helps the user to have a deeper understanding of the design of the hull structure and improves the flexibility of operation.

[0085] In an optional embodiment, step S1 includes:

[0086] S11, converting the three-dimensional model of the ship structure into a corresponding drawing;

[0087] S12. Call the target interface to convert the corresponding drawing into an RVM format file.

[0088] In this embodiment, model export functions are developed for Tribon M3 and AVEVA Marine respectively. Tribon M3 uses Python language, and AVEVA Marine uses C# language. First, the three-dimensional model of the ship structure is automatically collected and retrieved in units of the ship block or section, and saved as a special drawing of the three-dimensional model of the ship structure to be exported. Then, the sz030 interface of Tribon M3 and the modelExport interface of AVEVA Marine are called to export the three-dimensional model of the ship structure into an RVM format file.

[0089] In an optional embodiment, step S2 includes:

[0090] Get the geometric and structural information of RVM format files;

[0091] The geometric information and the structural information are converted and coordinate mapped to obtain processed geometric information and processed structural information;

[0092] The processed geometric information and the processed structural information are converted into a GLTF format file according to a preset compression rate.

[0093] In this embodiment, the geometric information and structural information of the native RVM format file are parsed. The RVM format file includes a file header, vertex data and patch data, and reorganized vertex coordinates, normals, texture coordinates and other information. Then, the material and texture information in the RVM format file are converted into color values ​​and mapped into texture coordinates to adapt to the material expression specification of the GLTF format file. Finally, all the data are organized into a format file that conforms to the GLTF specification, and necessary optimization and compression are performed. At the same time, a preset compression rate (for example, a compression rate of 5%, 30%, and 50%) is selected to generate three sets of GLTF format files, so that GLTF format files of different precisions can be selected later according to the requirements of the rendering effect of the three-dimensional model of the ship structure, thereby improving the loading speed and interactive performance of the three-dimensional model of the ship structure on the Web platform and optimizing the user experience.

[0094] It should be noted that the preset compression rate is set according to actual conditions. For example, the preset compression rate can be set to a compression rate of 5%, 30%, or 50%, or can be set to other values, which are not specifically limited here.

[0095] In an optional embodiment, the visualization processing method further includes:

[0096] Configure the perspective camera in the target scene;

[0097] Render the GLTF format file through the perspective camera combined with the rendering engine;

[0098] Display the rendered GLTF format file on the browser;

[0099] In this embodiment, the GLTFLoader method of the Three.js library is used to load the converted GLTF format file into the browser, configure the PerspectiveCamera in the scene, add natural light, parallel light on both sides of the model and point light source on the camera side, and use the renderer to continuously render the view of the three-dimensional model of the ship structure and display it on the browser page.

[0100] In this embodiment, in terms of loading and rendering GLTF format files, the present disclosure uses the Three.Js library to provide a model rendering engine to develop a set of lightweight model rendering and display functions based on the browser. Based on the Three.Js library, it is deeply customized to realize dynamic model loading and intelligent rendering functions, solve the performance bottleneck caused by large quantities of model data, improve the model rendering efficiency, and maintain a high frame rate even in complex scenes.

[0101] In addition, the present invention has developed a variety of model interaction functions, such as smooth rotation, hidden effects, display switching, hidden switching and precise sectioning, so that users can observe the details of the three-dimensional model of the ship structure from multiple angles, ensuring that all interactive operations can respond quickly and without delay.

[0102] The visualization method of the three-dimensional model of the ship structure in this embodiment not only provides a more intuitive and vivid visual presentation, reduces communication costs, but also improves the overall efficiency and level of project management. This method will promote the shipbuilding industry to move towards intelligence and refinement, and bring significant benefits to on-site construction.

[0103] In an optional embodiment, the visualization processing method further includes:

[0104] Get relevant information about GLTF format files;

[0105] Store relevant information in a database.

[0106] In this embodiment, a Sqlserver (a relational database system) database and a file server are self-built, with the ship number, the total section number, the segment number and the version number as the primary keys, and the file name of the GLTF format file, the file path of the GLTF format and other relevant information related to the GLTF format file are stored in the Sqlserver database, and the GLTF format file itself is stored in the file server.

[0107] This embodiment provides a method for realizing the visualization of a three-dimensional model of a ship structure in a modern browser, which mainly includes key technologies such as format conversion of the three-dimensional model of the ship structure, loading and rendering of the three-dimensional model of the ship structure, and realizes the conversion and visualization from the three-dimensional model of the ship structure of the computer-aided design software to the three-dimensional model of the ship structure based on the Web, Tribon M3 and AVEVA Marine; provides a more intuitive and vivid visual presentation, can display the layout and details of the hull structure in an intuitive and vivid way, so that users can more easily understand the complex structure of the hull and enhance visual understanding; through the visualization of the three-dimensional model of the ship structure, the high requirements for technical types of work are reduced, so that non-professionals can also easily understand and view the hull structure, enhance the ability of prediction and planning before construction, and reduce technical requirements; further, the three-dimensional model of the ship structure, as a universal engineering language, makes it easier for teams with different backgrounds and professions to communicate and exchange, reducing the cost of communication; through the visualization of the three-dimensional model of the ship structure, non-professionals can understand the hull structure more clearly, which helps to reduce misunderstandings and errors caused by poor communication and improve work efficiency. By improving communication efficiency and reducing technical requirements, the visualization method of the three-dimensional model of the ship structure improves the overall effectiveness and level of project management.

[0108] Example 2

[0109] Corresponding to the aforementioned embodiment of a method for visualizing a three-dimensional ship structure model, the present disclosure also provides an embodiment of a system for visualizing a three-dimensional ship structure model.

[0110] Figure 2 A schematic diagram of a module of a visualization processing system for a three-dimensional model of a ship structure provided in Embodiment 2 of the present disclosure, such as Figure 2 As shown, the visualization processing system includes: a conversion module 21, a parsing module 22, and a loading module 23;

[0111] A conversion module 21, used for converting the three-dimensional model of the ship structure into an RVM format file;

[0112] The parsing module 22 is used to parse the RVM format file to obtain a GLTF format file;

[0113] The loading module 23 is used to load the GLTF format file into the browser according to the received viewing instruction, so as to display the GLTF format file through the browser.

[0114] In this embodiment, Tribon M3 and AVEVA Marine have their own 3D model expression algorithms and rendering engines. The standard RVM 3D model format provided by Tribon M3 and AVEVA Marine cannot be recognized and loaded in other 3D model engines. The present invention has developed a set of functions that parse the 3D model of the ship structure in RVM format file into a lightweight 3D model in GLTF format file, integrates the Google Draco data compression algorithm, and further lightweights the 3D model of the ship structure. Under the premise of ensuring the accuracy of the key features of the 3D model of the ship structure, the volume and complexity of the 3D model file of the ship structure are greatly reduced, so as to improve the loading speed and interactive performance of the 3D model of the ship structure on the Web platform.

[0115] This embodiment parses the three-dimensional model of the ship structure in the RVM format file into a GLTF format file, and when receiving the user's viewing instruction, loads the GLTF format file into the browser to display the GLTF format file through the browser; the three-dimensional model of the ship structure can display the layout and details of the hull structure in an intuitive and vivid manner, so that the user can more easily understand the complex structure of the hull, and enables the user to intuitively and quickly view the three-dimensional model of the hull structure, avoiding misunderstandings and errors.

[0116] In an optional embodiment, the visualization processing system further includes:

[0117] The first acquisition module is used to acquire the three-dimensional model of the ship structure.

[0118] In this embodiment, a set of model export functions are developed for Tribon M3 and AVEVA Marine respectively, which automatically call the model export API (application programming interface) provided by the software to realize the batch complete export function of the three-dimensional model of the ship structure. That is, the three-dimensional model of the ship structure is exported from Tribon M3 and AVEVA Marine.

[0119] In an optional embodiment, the visualization processing system further includes:

[0120] A first storage module is used to store GLTF format files in a file server;

[0121] The loading module is used to load the GLTF format file from the file server to the browser according to the received viewing instruction, so as to display the GLTF format file through the browser.

[0122] In this embodiment, the rendering efficiency of the three-dimensional model of the ship structure is improved by setting a variety of optimization strategies, such as: optimizing materials, removing all material textures in the three-dimensional model of the ship structure, and only retaining the material color; single-sided rendering, only rendering the model surface facing the user; dynamic detail rendering, dynamically switching the detail level of the three-dimensional model of the ship structure according to the distance from the camera; caching, caching the three-dimensional model of the ship structure that has been loaded to avoid repeated loading; intelligent loading, only loading the three-dimensional model of the ship structure that can be photographed by the camera viewport, and automatically removing the three-dimensional model of the ship structure that cannot be illuminated; cone clipping, only rendering the three-dimensional model of the ship structure within the camera's field of view; delayed loading, only loading the three-dimensional model of the ship structure with an accuracy of 3% when initializing the page, and gradually switching to the three-dimensional model of the ship structure with an accuracy of 50% according to display requirements. Through these optimization algorithms, it is guaranteed that the display of high frame rate can be maintained even in complex scenes, so that the display effect of GLTF format files is better.

[0123] Furthermore, by adding rich interactive functions of the 3D model of the ship structure, the interactive mode is set at the component level and the component level, including model selection according to the area range, model system directory tree, assembly directory tree, model grouping, model rotation, zooming in and out, hidden, displayed, hidden switching of the selected model, model sectioning, model color switching, etc. Develop model size information auxiliary tools, provide model size measurement, coordinate annotation, relative coordinate absolute coordinate conversion tools, so as to improve the user experience.

[0124] Furthermore, the user experience is further improved by adding multiple model viewing methods, such as global view, part focus view, front view, side view, top view, positive and negative angle axonometric view, etc.

[0125] In this embodiment, the user can freely view different parts and details of the hull structure through operations such as rotation, scaling, and movement, which helps the user to have a deeper understanding of the design of the hull structure and improves the flexibility of operation.

[0126] In an optional embodiment, the conversion module includes:

[0127] A first conversion unit, used to convert the three-dimensional model of the ship structure into a corresponding drawing;

[0128] The second conversion unit is used to call the target interface to convert the corresponding drawing into an RVM format file.

[0129] In this embodiment, model export functions are developed for Tribon M3 and AVEVA Marine respectively. Tribon M3 uses Python language, and AVEVA Marine uses C# language. First, the three-dimensional model of the ship structure is automatically collected and retrieved in units of the ship block or section, and saved as a special drawing of the three-dimensional model of the ship structure to be exported. Then, the sz030 interface of Tribon M3 and the modelExport interface of AVEVA Marine are called to export the three-dimensional model of the ship structure into an RVM format file.

[0130] In an optional embodiment, the parsing module includes:

[0131] An acquisition unit is used to acquire geometric information and structural information of a file in RVM format;

[0132] A processing unit, used for converting and coordinate mapping the geometric information and the structural information to obtain processed geometric information and processed structural information;

[0133] The generating unit is used to generate a GLTF format file according to a preset compression rate using the processed geometric information and the processed structural information.

[0134] In this embodiment, the geometric information and structural information of the native RVM format file are parsed. The RVM format file includes a file header, vertex data and patch data, and reorganized vertex coordinates, normals, texture coordinates and other information. Then, the material and texture information in the RVM format file are converted into color values ​​and mapped into texture coordinates to adapt to the material expression specification of the GLTF format file. Finally, all the data are organized into a format file that conforms to the GLTF specification, and necessary optimization and compression are performed. At the same time, a preset compression rate (for example, a compression rate of 5%, 30%, and 50%) is selected to generate three sets of GLTF format files, so that GLTF format files of different precisions can be selected later according to the requirements of the rendering effect of the three-dimensional model of the ship structure, thereby improving the loading speed and interactive performance of the three-dimensional model of the ship structure on the Web platform and optimizing the user experience.

[0135] It should be noted that the preset compression rate is set according to actual conditions. For example, the preset compression rate can be set to a compression rate of 5%, 30%, or 50%, or can be set to other values, which are not specifically limited here.

[0136] In an optional embodiment, the visualization processing system further includes:

[0137] A configuration module, used to configure the perspective camera in the target scene;

[0138] A rendering processing module is used to render GLTF format files by combining a perspective camera with a rendering engine;

[0139] Display module, used to display the rendered GLTF format file on the browser;

[0140] In this embodiment, the GLTFLoader method of the Three.js library is used to load the converted GLTF format file into the browser, and the PerspectiveCamera is configured in the scene. Natural light, parallel light on both sides of the model and point light source on the camera side are added. The view of the three-dimensional model of the ship structure is continuously rendered through the renderer and displayed on the browser page.

[0141] In this embodiment, in terms of loading and rendering GLTF format files, the present disclosure uses the Three.Js library to provide a model rendering engine to develop a set of lightweight model rendering and display functions based on the browser. Based on the Three.Js library, it is deeply customized to realize dynamic model loading and intelligent rendering functions, solve the performance bottleneck caused by large quantities of model data, improve the model rendering efficiency, and maintain a high frame rate even in complex scenes.

[0142] In addition, the present invention has developed a variety of model interaction functions, such as smooth rotation, hidden effects, display switching, hidden switching and precise sectioning, so that users can observe the details of the three-dimensional model of the ship structure from multiple angles, ensuring that all interactive operations can respond quickly and without delay.

[0143] The visualization method of the three-dimensional model of the ship structure in this embodiment not only provides a more intuitive and vivid visual presentation, reduces communication costs, but also improves the overall efficiency and level of project management. This method will promote the shipbuilding industry to move towards intelligence and refinement, and bring significant benefits to on-site construction.

[0144] In an optional embodiment, the visualization processing system further includes:

[0145] The second acquisition module is used to acquire relevant information related to the GLTF format file;

[0146] The second storage module is used to store the relevant information in a database.

[0147] In this embodiment, a Sqlserver database and a file server are self-built, and the ship number, the total section number, the segment number, and the version number are used as the primary keys. The file name of the GLTF format file, the file path of the GLTF format, and other relevant information related to the GLTF format file are stored in the Sqlserver database, and the GLTF format file itself is stored in the file server.

[0148] This embodiment provides a method for realizing the visualization of a three-dimensional model of a ship structure in a modern browser, which mainly includes key technologies such as format conversion of the three-dimensional model of the ship structure, loading and rendering of the three-dimensional model of the ship structure, and realizes the conversion and visualization from the three-dimensional model of the ship structure of the computer-aided design software to the three-dimensional model of the ship structure based on the Web, Tribon M3 and AVEVA Marine; provides a more intuitive and vivid visual presentation, can display the layout and details of the hull structure in an intuitive and vivid way, so that users can more easily understand the complex structure of the hull and enhance visual understanding; through the visualization of the three-dimensional model of the ship structure, the high requirements for technical types of work are reduced, so that non-professionals can also easily understand and view the hull structure, enhance the ability of prediction and planning before construction, and reduce technical requirements; further, the three-dimensional model of the ship structure, as a universal engineering language, makes it easier for teams with different backgrounds and professions to communicate and exchange, reducing the cost of communication; through the visualization of the three-dimensional model of the ship structure, non-professionals can understand the hull structure more clearly, which helps to reduce misunderstandings and errors caused by poor communication and improve work efficiency. By improving communication efficiency and reducing technical requirements, the visualization method of the three-dimensional model of the ship structure improves the overall effectiveness and level of project management.

[0149] As for the system embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment. The system embodiment described above is only illustrative, wherein the units described as separate components may or may not be physically separated, and the components as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the disclosed solution.

[0150] Example 3

[0151] Figure 3 This is a schematic diagram of the structure of an electronic device shown in Example 3 of the present disclosure, wherein the electronic device includes a memory, a processor, and a computer program stored in the memory and used to run on the processor, and when the processor executes the computer program, the visualization processing method of the three-dimensional model of the ship structure described in any of the above embodiments is implemented. Figure 3 The electronic device 90 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0152] like Figure 3As shown, the electronic device 90 may be in the form of a general-purpose computing device, for example, it may be a server device. The components of the electronic device 90 may include, but are not limited to: at least one processor 91, at least one memory 92, and a bus 93 connecting different system components (including the memory 92 and the processor 91).

[0153] The bus 93 includes a data bus, an address bus, and a control bus.

[0154] The memory 92 may include a volatile memory, such as a random access memory (RAM) 921 and / or a cache memory 922 , and may further include a read only memory (ROM) 923 .

[0155] The memory 92 may also include a program tool 925 (or utility) having a set (at least one) of program modules 924, such program modules 924 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0156] The processor 91 executes various functional applications and data processing by running the computer program stored in the memory 92, such as the visualization processing method of the three-dimensional model of the ship structure provided in any of the above embodiments.

[0157] The electronic device 90 may also communicate with one or more external devices 94 (e.g., keyboards, pointing devices, etc.). Such communication may be performed via an input / output (I / O) interface 95. Furthermore, the electronic device 90 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 96. Figure 3 As shown, the network adapter 96 communicates with other modules of the electronic device 90 via the bus 93. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with the electronic device 90, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID (disk array) systems, tape drives, and data backup storage systems, etc.

[0158] It should be noted that although several units / modules or sub-units / modules of the electronic device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more units / modules described above can be embodied in one unit / module. Conversely, the features and functions of one unit / module described above can be further divided into multiple units / modules to be embodied.

[0159] Example 4

[0160] Embodiment 4 of the present disclosure further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the visualization processing method for the three-dimensional model of the ship structure provided in any of the above embodiments.

[0161] The readable storage medium may include but is not limited to: a portable disk, a hard disk, a random access memory, a read-only memory, an erasable programmable read-only memory, an optical storage device, a magnetic storage device or any suitable combination of the above.

[0162] Example 5

[0163] Embodiment 5 of the present disclosure also provides a computer program product, including a computer program, which, when executed by a processor, implements any of the above-mentioned methods for visualizing a three-dimensional model of a ship structure.

[0164] Among them, the program code for executing the computer program product of the present disclosure can be written in any combination of one or more programming languages, and the program code can be executed completely on the user device, partially on the user device, as an independent software package, partially on the user device and partially on a remote device, or completely on the remote device.

[0165] Although the specific embodiments of the present disclosure are described above, those skilled in the art should understand that this is only an example, and the protection scope of the present disclosure is defined by the appended claims. Those skilled in the art may make various changes or modifications to these embodiments without departing from the principles and essence of the present disclosure, but these changes and modifications all fall within the protection scope of the present disclosure.

Claims

1. A method for visualizing a three-dimensional model of a ship structure, characterized in that: The visualization processing method comprises: Convert the ship structure 3D model into RVM format file; Parsing the RVM format file to obtain a GLTF format file; The GLTF format file is loaded into the browser according to the received viewing instruction, so as to display the GLTF format file through the browser.

2. The method for visualizing a three-dimensional model of a ship structure according to claim 1, characterized in that: Before the step of converting the three-dimensional model of the ship structure into an RVM format file, the visualization processing method further comprises: Obtain the 3D model of the ship structure.

3. The method for visualizing a three-dimensional model of a ship structure according to claim 1, characterized in that: After the step of parsing the RVM format file to obtain the GLTF format file, the visualization processing method further includes: Storing the GLTF format file in a file server; The step of loading the GLTF format file into the browser according to the received viewing instruction so as to display the GLTF format file through the browser comprises: The GLTF format file is loaded from the file server to the browser according to the received viewing instruction, so as to display the GLTF format file through the browser.

4. The method for visualizing a three-dimensional model of a ship structure according to claim 1, characterized in that: The step of converting the three-dimensional model of the ship structure into an RVM format file comprises: Converting the three-dimensional model of the ship structure into a corresponding drawing; The target interface is called to convert the corresponding drawing into an RVM format file.

5. The method for visualizing a three-dimensional model of a ship structure according to claim 1, characterized in that: The step of parsing the RVM format file to obtain the GLTF format file includes: Obtaining geometric information and structural information of the RVM format file; The geometric information and the structural information are converted and coordinate mapped to obtain processed geometric information and processed structural information; The processed geometric information and the processed structural information are compressed into the GLTF format file according to a preset compression rate.

6. The method for visualizing a three-dimensional model of a ship structure according to claim 1, characterized in that: The visualization processing method further includes: Configure the perspective camera in the target scene; Rendering the GLTF format file by combining the perspective camera with a rendering engine; Displaying the rendered GLTF format file on the browser; and / or, The visualization processing method further includes: Obtain relevant information related to the GLTF format file; The relevant information is stored in a database.

7. A visualization processing system for a three-dimensional model of a ship structure, characterized in that: The visualization processing system comprises: A conversion module, used to convert the three-dimensional model of the ship structure into an RVM format file; A parsing module, used for parsing the RVM format file to obtain a GLTF format file; The loading module is used to load the GLTF format file into the browser according to the received viewing instruction, so as to display the GLTF format file through the browser.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and used to run on the processor, characterized in that: When the processor executes the computer program, the method for visualizing a three-dimensional model of a ship structure according to any one of claims 1 to 6 is implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for visualizing a three-dimensional model of a ship structure according to any one of claims 1 to 6 is implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method for visualizing a three-dimensional model of a ship structure according to any one of claims 1 to 6 is implemented.