Three-dimensional design delivery model conversion method and device, equipment and storage medium
Through the three-dimensional design delivery model conversion method, the problem of data format mismatch in ship design is solved, efficient conversion and quality improvement of model data is achieved, and cross-platform display and data exchange are supported.
Patent Information
- Application Number
- CN202411199563.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-29
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2044-08-29
AI Technical Summary
During the ship design process, the three-dimensional design software used by each collaborator is diverse, resulting in mismatch of the data format of the three-dimensional design delivery model, resulting in low efficiency in model data utilization, inconsistent model modeling information, and a large number of repeated modeling work, resulting in data conversion. High error rate.
Provide a three-dimensional design delivery model conversion method. By analyzing the initial format, it determines whether it is the target format. If otherwise, it is determined to be heterogeneous data, and constructs a format conversion method to convert heterogeneous data into the target format, including file layout conversion and texture coordinates Integrate processing and index values, adjust scaling, rotation and position to form a file format suitable for target software to identify and read.
It improves model design and modeling efficiency, reduces data conversion errors, improves design quality, and realizes cross-platform display and data exchange of three-dimensional design and delivery models.
Smart Images

Figure CN119089583A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of model data conversion, and in particular to a three-dimensional design delivery model conversion method, device, computer equipment and storage medium. Background Art
[0002] During the ship design process, collaborators such as shipyards, classification societies, design institutes, subcontractors, and suppliers need to frequently exchange design information. The 3D design delivery model of ships has become the main carrier for expressing ship design information. However, due to the large number of 3D design software used by various collaborators during the ship design stage, the existing 3D design delivery model data formats are diverse, and the interfaces required for the exchange of 3D design delivery models between software are numerous or even impossible to exchange. This is not only very unfavorable for the exchange of 3D design delivery models between various collaborators, but also hinders the realization of collaborative ship design.
[0003] There are many traditional data exchange channels and methods, which are generally disordered and chaotic. The interface technologies and tools explored by various departments are also diverse and different, and are not suitable for promotion and reuse. With the increase of CAD / CAE / CAM and other tools used in the shipbuilding field, the traditional data exchange architecture in the shipbuilding field will become more complex. Usually, there will be problems such as mismatch in the delivery model data format, resulting in low efficiency of model data utilization, inconsistent model modeling information, and a large amount of repeated modeling work after the model is delivered. If the same tools or model data formats are required, the labor costs will increase due to different talent qualities. Summary of the invention
[0004] The present application provides a three-dimensional design delivery model conversion method, which is used to solve the technical problems faced in the field of shipbuilding, such as the mismatch of delivery model data formats, resulting in low model data utilization efficiency, inconsistent model modeling information, and a large amount of repeated modeling work after the model is delivered, resulting in low model design modeling efficiency and high data conversion error rate.
[0005] The present application provides the following plan: The present application provides a three-dimensional design delivery model conversion method, the method comprising the steps of:
[0006] Setting a method for parsing the format of the 3D design delivery model, obtaining an initial format of the 3D design delivery model, determining whether the initial format is a target format, and if not, determining that the 3D design delivery model is heterogeneous data;
[0007] Constructing a three-dimensional design delivery model format conversion method for converting the initial format into the target format;
[0008] Importing the heterogeneous data into a three-dimensional design delivery model conversion system;
[0009] The three-dimensional design delivery model format conversion method is used to perform format conversion processing on the heterogeneous data, and the heterogeneous data is converted into a target model, and the format of the target model is the target format;
[0010] Define the save file name of the target model, select the save location of the target model, and output the target model.
[0011] Furthermore, the initial format includes one of glTF, JT, 3DXML, DXF, IVE, OSG, NVM, FLT, IV, 3DS, FBX, OBJ, WRL, STL, and NVZ; the target format is set by inputting a file format suffix or by selecting it in a browsing dialog box; the target format includes one of osg, ive, nvm, nvz, flt, iv, dxf, 3ds, 3dxml, step, iges, dae, and xml.
[0012] Furthermore, the method for constructing a 3D design delivery model format conversion includes:
[0013] Identify the data layout and index value positive and negative of the heterogeneous data, and identify the data layout and index value positive and negative of the three-dimensional design delivery model in the target format;
[0014] Compare the differences between the data layout and the positive and negative index values of the heterogeneous data and the data layout and the positive and negative index values of the three-dimensional design delivery model in the target format;
[0015] Performing file layout conversion processing on the heterogeneous data according to the difference content, and extracting, integrating and optimizing the converted model data;
[0016] According to the difference content, performing texture coordinate conversion processing on the heterogeneous data;
[0017] By judging whether the index value is positive or negative, the panel index is integrated according to the positive or negative index value, and the three-dimensional design delivery model in the target format is converted.
[0018] Further, the performing texture coordinate conversion processing on the heterogeneous data according to the difference content includes:
[0019] Determine whether the heterogeneous data has texture coordinates;
[0020] If the texture coordinate data does not exist in the heterogeneous data, adding the texture coordinate data to the heterogeneous data;
[0021] If there is texture coordinate data in the heterogeneous data, determine whether the texture coordinate data in the heterogeneous data is in a three-dimensional coordinate form or a two-dimensional coordinate form, and for texture coordinate data with three values, process it using homogeneous coordinates, and obtain a temporary file by dividing the first two values by the third value respectively;
[0022] The temporary file appears in the order of vertex index, texture index, and normal index, and the temporary file is continuously converted to integer the model data. At the end of the conversion, the index value is processed to re-encode all index values to keep each index value unique.
[0023] Furthermore, the step of integrating the face indexes according to the positive and negative index values by judging whether the index values are positive or negative includes:
[0024] If the index value is negative, find the minimum value in the upper data, and add it based on the minimum value so that all index values of the 3D design delivery model are encoded once;
[0025] If the index value is positive, the data in the lower segment is accumulated based on the maximum value of the data in the upper segment.
[0026] Furthermore, the process of converting the heterogeneous data into a target model includes adjusting the scaling, rotation and position of the target model.
[0027] On the other hand, a three-dimensional design delivery model conversion device is provided, the device comprising:
[0028] A file loading module, used for setting a method for parsing the format of the 3D design delivery model, obtaining an initial format of the 3D design delivery model, and determining whether the initial format is a target format. If not, the 3D design delivery model is determined to be heterogeneous data;
[0029] A format conversion module, used to construct a three-dimensional design delivery model format conversion method, used to convert the initial format into the target format;
[0030] A heterogeneous data import interface module, used for importing the heterogeneous data into a 3D design delivery model conversion system;
[0031] A format conversion processing module, used to perform format conversion processing on the heterogeneous data using the three-dimensional design delivery model format conversion method, and convert the heterogeneous data into a target model, the format of the target model being the target format;
[0032] The conversion output module is used to define the save file name of the target model, select the save location of the target model, and output the target model.
[0033] Furthermore, the three-dimensional design delivery model conversion device also includes:
[0034] A format output interface module, used for outputting the target model in the target format;
[0035] A conversion attribute setting module, used to set attribute parameters of the target model;
[0036] The system setting module is used to set the general conversion attribute parameters of the target model.
[0037] In another aspect, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the following steps are implemented:
[0038] Setting a method for parsing the format of the 3D design delivery model, obtaining an initial format of the 3D design delivery model, determining whether the initial format is a target format, and if not, determining that the 3D design delivery model is heterogeneous data;
[0039] Constructing a three-dimensional design delivery model format conversion method for converting the initial format into the target format;
[0040] Importing the heterogeneous data into a three-dimensional design delivery model conversion system;
[0041] The three-dimensional design delivery model format conversion method is used to perform format conversion processing on the heterogeneous data, and the heterogeneous data is converted into a target model, and the format of the target model is the target format;
[0042] Define the save file name of the target model, select the save location of the target model, and output the target model.
[0043] In another aspect, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0044] Setting a method for parsing the format of the 3D design delivery model, obtaining an initial format of the 3D design delivery model, determining whether the initial format is a target format, and if not, determining that the 3D design delivery model is heterogeneous data;
[0045] Constructing a three-dimensional design delivery model format conversion method for converting the initial format into the target format;
[0046] Importing the heterogeneous data into a three-dimensional design delivery model conversion system;
[0047] The three-dimensional design delivery model format conversion method is used to perform format conversion processing on the heterogeneous data, and the heterogeneous data is converted into a target model, and the format of the target model is the target format;
[0048] Define the save file name of the target model, select the save location of the target model, and output the target model.
[0049] Compared with the existing technology, it has the following beneficial effects: based on the universal standard format, according to the requirements of the 3D design delivery model for different data information definitions, from the aspects of 3D design delivery model conversion demand analysis, different professional model information definition characteristics, conversion rule formulation, etc., through the development of 3D design delivery model data, complete model data files of different professional delivery models at different stages are formed, and 3D design delivery model conversion software is developed to achieve the goal that the 3D design delivery model can convert the source model into the target model according to the model conversion rules, thereby improving the model design modeling efficiency, reducing data conversion errors, and improving design quality. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] The drawings are used to provide further understanding of the present application and constitute a part of the specification. Together with the implementation examples of the present application, they are used to explain the present application and do not constitute a limitation on the present application.
[0051] In the attached picture:
[0052] Figure 1 is a flow chart of a three-dimensional design delivery model conversion method provided in an embodiment of the present application;
[0053] Figure 2 It is a structural block diagram of a 3D design delivery model conversion software provided in an embodiment of the present application;
[0054] Figure 3 is a flowchart of another three-dimensional design delivery model conversion method provided in an embodiment of the present application;
[0055] Figure 4 It is a structural block diagram of a three-dimensional design delivery model conversion device provided in an embodiment of the present application;
[0056] Figure 5 It is an internal structure diagram of the computer device provided in the embodiment of the present application. DETAILED DESCRIPTION
[0057] The preferred embodiments of the present application are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present application and are not used to limit the present application.
[0058] Example 1
[0059] In the process of collaborative ship design, the 3D design delivery model includes the model delivered to the classification society for review, the product model delivered by the supplier and the shipyard, the design model delivered by the subcontractor, and the model delivered between the detailed design and the production design. The traditional design mode has the characteristics of heterogeneity of model data at different stages, and usually faces the mismatch of the delivery model data format, which will lead to low utilization of model data, inconsistent model modeling information, and a large number of repeated modeling work after the model is delivered. In response to the above problems, a conversion method and software for ship 3D models are invented. Based on the universal standard format, according to the definition requirements of different data information of the 3D design delivery model, the source model is converted to the target model from the conversion requirements analysis of the 3D design delivery model, the definition characteristics of different professional model information, and the conversion rules, so as to improve the model design modeling efficiency, reduce data conversion errors, and improve the design quality.
[0060] In order to improve the data utilization rate of ship 3D design delivery models and reduce repeated modeling work, the 3D design delivery model conversion method is studied based on the general standard format and the requirements of the 3D design delivery model for different data information definitions. (1) In combination with the current status of the 3D design delivery model conversion method in the ship industry, an in-depth analysis is conducted on the demand for the 3D design delivery model conversion method; (2) Based on the mainstream model file standard format as the conversion format basis, the 3D design delivery model format is analyzed for the conversion requirements and different professional model information definition characteristics of the 3D design delivery model, and corresponding conversion rules are formulated; (3) Starting from the information definition characteristics of different 3D design delivery models and the formulation of conversion rules, the 3D design delivery model format conversion optimization algorithm is used to realize the conversion data file of the 3D delivery model, improve the model design modeling efficiency, reduce data conversion errors, and improve the design quality, such as Figure 1 shown.
[0061] like Figure 1 As shown, the 3D design delivery model conversion method includes the following steps: a. 3D design delivery model format parsing; b. 3D design delivery model format conversion method; c. heterogeneous data import; d. format conversion processing; e. format output.
[0062] In one implementation: In step a, the 3D design delivery model can generally be summarized as: solid geometry representation, boundary representation, scanning representation and unit decomposition representation. The models constructed by the three methods of solid geometry representation, boundary representation and scanning representation are in solid model format. None of the solid model formats contain triangular face information, and a large amount of calculation is required to network the model before the model is displayed. The data structure of the solid model format is complex, and there is redundant and repeated information, resulting in a large amount of model file data. To realize the browsing and display of the solid model format, the 3D design software used when constructing the model or the design software compatible with the format must be used. The security performance of the solid model format is poor, and it contains important design information such as the modeling process and feature parameters of the product model. The model constructed by the unit decomposition representation method is a mesh model, which uses a large number of polygonal faces to approximate the geometric shape of the object. The 3D design delivery model format mainly involves glTF, JT, 3DXML, DXF, IVE, OSG, NVM, FLT, IV, 3DS, FBX, OBJ, WRL, STL, and NVZ formats. The standard formats of the 3D design delivery model are glTF, JT, 3DXML, and NVZ formats. glTF is a 3D model file format designed to facilitate the network transmission of 3D models. JT format is a high-performance, neutral, lightweight container for permanent storage of visualization data. 3DXML format is a file format based on the extensible markup language XML in CATIA. It is a universal and lightweight 3D file format. NVZ format allows for fast model import and faster display.
[0063] Furthermore, in step b, due to the characteristics of 3D software, the output files exported by different software clients have differences in data layout and index value positive and negative. Therefore, in order to realize the cross-platform display of heterogeneous 3D design delivery model formats, the model file format must be converted. Through the analysis of the output file content exported by heterogeneous 3D software, the model file is processed in two parts: file layout conversion processing and model file optimization processing, aiming at the differences in data content layout and index encoding of the output files. After the model conversion processing, the model data is extracted, integrated and optimized to obtain a file format suitable for recognition, reading and efficient transmission of the target software. The conversion of the content layout of the 3D design delivery model is divided into two types of processing: texture coordinate processing of the model file and data zero-to-integration. The output files exported by different 3D software have differences in model texture coordinates. For example, some output files do not contain texture coordinates, and some output files contain texture coordinates but in the form of 3D coordinates. Therefore, according to the differences between different output files, the model file is subjected to texture coordinate conversion processing. In this conversion, first determine whether the model file has texture coordinates. If there is no texture information in the original file data of the model, since the texture coordinate data is indispensable for the model display, in order to ensure the complete display of the model, texture data should be added to the model file. For model files with texture data, it is necessary to determine whether the texture data is in the form of three-dimensional coordinates or two-dimensional coordinates. For texture coordinates with three values, homogeneous coordinates can be used to process them. A temporary file is obtained by dividing the first two values by the third value for subsequent conversion processing. The three-dimensional design delivery model file processed in this way appears in the order of vertex index, texture index, and normal index, but not all of them appear only once. Therefore, continue to convert the model file and round the model data to zero. At the end of this conversion, the index value should be processed so that all index values are re-encoded, that is, each index value is unique. By judging the positive and negative of the index value, the patch index is integrated according to the situation. If the index value is negative, the minimum value in the upper segment data should be found and accumulated on the basis of the minimum value so that all index values of the model are encoded only once. If the index value is positive, the lower segment data is accumulated on the basis of the maximum value of the upper segment data. The standard model format obtained through this conversion is applicable to all current mainstream 3D formats. By converting the original model format, the format problem of cross-platform display of heterogeneous 3D design delivery model formats is solved. It has a certain degree of simplification effect on the model display format obtained by subsequent conversion, and also prepares for cross-platform web display of heterogeneous 3D design delivery model files.
[0064] Furthermore, in step c, the 3D design delivery model conversion software is developed, which mainly includes heterogeneous data import interface module, format conversion processing module, format output interface module, and conversion tool interface module, such as Figure 2 As shown. Heterogeneous data import can load the most recently opened file or directory, initialize software variables, and wait for user input. Open the browsing interface through the main interface, and the user can load the conversion model file by selecting a specific file or directory. Select the "Open File" button to filter the input according to the file format (suffix name) supported by the software, and only filter and display (input) 3D model data files such as Tribon, SPD, Catia, AvevaMarine, Smart 3D, Foran, CADDS5, Compass, etc. The software supports the input of multiple model format files, and the input has covered the vast majority of 3D models on the market, which increases the scope of use of the software. The specific implementation method is as follows:
[0065]
[0066] NVZ|*.nvz|OpenSceneGraph NVM|*.nvm|Dassault 3DXML|*.3dxml|AutodexkFBX|*.fbx|All Files|*.*";
[0067] ofd->Multiselect = true;
[0068] ofd->RestoreDirectory=false;
[0069] String^tmp=ZCommon::ini_sys->IniReadValue("Sys","LastFileDirectory","");
[0070] if(!String::IsNullOrEmpty(tmp)){
[0071] ofd->InitialDirectory=tmp;
[0072] }
[0073] if(ofd->ShowDialog().
[0074] Select the file to be opened through the file browsing dialog box. Supports two ways to load folders, open through the dialog box or drag and drop files to the specified area. After the file is loaded, the model files in the folder can be automatically retrieved and loaded into the software list in batches. Considering the performance of the software, only the model files in the folder are retrieved, and the subfolders in the retrieved files are not retrieved. At the same time, when heterogeneous data is imported, the user's last operation file path will be automatically loaded.
[0075] Furthermore, in step d, the format conversion process is the core part. The format conversion can convert Tribon, SPD, Catia, Aveva Marine, Smart 3D, Foran, CADDS5, and Compass 3D model data into commonly used *.osg, *.ive, *.nvm, *.nvz, *.flt, *.iv, *.dxf, *.3ds, *.3dxml, *.JT, *.stl, *.fbx, *.wrl, *.jt, *.obj, *.step, *.iges, *.xml and other formats. The user selects the 3D model format to be output in the "Output Format" drop-down box. After clicking the "Start Conversion" button, the software will detect the suffix name and finally convert it. When the list box progress shows "Complete", it means the conversion is successful, otherwise the conversion fails. The specific function is as follows:
[0076] bool ExportOSG(CTransItem item);
[0077] bool ExportNVM(CTransItem item);
[0078] bool ExportIVE(CTransItem item);
[0079] bool ExportNVZ(CTransItem item);
[0080] bool ExportFLT(CTransItem item);
[0081] bool ExportIV(CTransItem item);
[0082] bool ExportDXF(CTransItem item);
[0083] bool Export3DS(CTransItem item);
[0084] bool Export3DXML(CTransItem item);
[0085] bool ExportSTEP(CTransItem item);
[0086] bool ExportIGES(CTransItem item);
[0087] bool ExportXML(CTransItem item);
[0088] bool ExportSTL(CTransItem item);
[0089] bool ExportFBX(CTransItem item);
[0090] bool ExportWRL(CTransItem item);
[0091] bool ExportOBJ(CTransItem item);
[0092] bool ExportJT(CTransItem item).
[0093] Select the 3D model format to be output in the output format option. The software will detect the suffix name and convert it. After the user selects the format conversion model export format, the export parameters of the format model can be set specifically. If the user does not set it, the default parameters will be used for export. The conversion properties of the model export mainly include multi-threaded parameter settings, whether to export texture maps, texture map format conversion, and geometric structure transformation of the target model. The conversion property settings vary depending on the target format, and are customized based on the target format read and write code to help users control model properties.
[0094] Furthermore, in step e, the user is assisted in completing the conversion output function settings. The user can complete the model conversion format selection, target model conversion parameter settings, target model save path settings and other functions through the software interface. After the conversion work starts, the interface displays the model conversion status and prompts the user to open the save directory after the model conversion is successful. In order to manage the target file, a special class is defined inside the software for attribute settings. The specific class definition is as follows:
[0095] public class CtrlModelOpt
[0096] {
[0097] private string modelfName; / / Model format name
[0098] public string ModelfName
[0099] {
[0100] get{return modelfName;}
[0101] set{modelfName=value;}
[0102] }
[0103] private string modelfDesc; / / Model format description
[0104] public string ModelfDesc
[0105] {
[0106] get{return modelfDesc;}
[0107] set{modelfDesc=value;}
[0108] }
[0109] private string modelfExt; / / Model extension name
[0110] public string ModelfExt
[0111] {
[0112] get{return modelfExt;}
[0113] set{modelfExt=value;}
[0114]
[0115] The software manages the output format through json string, which is convenient for later software function expansion. The json string example used is as follows:
[0116]
[0117] "ModelfDefaultParm":"TriStrip",
[0118] "ModelfDiyParm":"",
[0119] "ModelfTmp":""
[0120] }.
[0121] Furthermore, in step e, the format output mainly assists the user to complete the model format conversion. The user can select the target file format of the model to be converted, customize the model save file name, set the conversion properties of the target model, select the save location of the target model, and display the model conversion status.
[0122] In the process of collaborative ship design, the three-dimensional design delivery model includes the model submitted by the classification society, the product model of the supplier and the shipyard, the design model of the subcontractor, and the model between the detailed design and the production design. The traditional design mode has the characteristics of heterogeneous model data at different stages, and usually faces the mismatch of the delivery model data format, which will lead to low model data utilization, inconsistent model modeling information, and a large amount of repeated modeling work after the model is delivered. This application is based on the universal standard format, according to the requirements of the three-dimensional design delivery model for different data information definitions, from the analysis of the conversion requirements of the three-dimensional design delivery model, the definition characteristics of different professional model information, and the formulation of conversion rules. Through the development of the three-dimensional design delivery model data, a complete data file of different professional delivery models at different stages is formed, and a three-dimensional design delivery model conversion software is developed to achieve the goal that the three-dimensional design delivery model can convert the source model into the target model according to the model conversion rules, improve the model design modeling efficiency, reduce data conversion errors, and improve the design quality.
[0123] Example 2
[0124] Embodiment 2 includes all the technical features of Embodiment 1.
[0125] Specifically, Figure 3 As shown, in embodiment 2, a three-dimensional design delivery model conversion method is provided, and the method comprises the steps of:
[0126] S1. Setting a method for parsing the format of the 3D design delivery model, obtaining an initial format of the 3D design delivery model, and determining whether the initial format is a target format. If not, determining that the 3D design delivery model is heterogeneous data;
[0127] S2. Constructing a 3D design delivery model format conversion method for converting the initial format into the target format;
[0128] S3, importing the heterogeneous data into a 3D design delivery model conversion system;
[0129] S4, performing format conversion processing on the heterogeneous data using the three-dimensional design delivery model format conversion method, converting the heterogeneous data into a target model, wherein the format of the target model is the target format;
[0130] S5. Define a save file name for the target model, select a save location for the target model, and output the target model.
[0131] Furthermore, the initial format includes one of glTF, JT, 3DXML, DXF, IVE, OSG, NVM, FLT, IV, 3DS, FBX, OBJ, WRL, STL, and NVZ; the target format is set by inputting a file format suffix or by selecting it in a browsing dialog box; the target format includes one of osg, ive, nvm, nvz, flt, iv, dxf, 3ds, 3dxml, step, iges, dae, and xml.
[0132] Furthermore, the method for constructing a 3D design delivery model format conversion includes:
[0133] Identify the data layout and index value positive and negative of the heterogeneous data, and identify the data layout and index value positive and negative of the three-dimensional design delivery model in the target format;
[0134] Compare the differences between the data layout and the positive and negative index values of the heterogeneous data and the data layout and the positive and negative index values of the three-dimensional design delivery model in the target format;
[0135] Performing file layout conversion processing on the heterogeneous data according to the difference content, and extracting, integrating and optimizing the converted model data;
[0136] According to the difference content, performing texture coordinate conversion processing on the heterogeneous data;
[0137] By judging whether the index value is positive or negative, the panel index is integrated according to the positive or negative index value, and the three-dimensional design delivery model in the target format is converted.
[0138] Further, the performing texture coordinate conversion processing on the heterogeneous data according to the difference content includes:
[0139] Determine whether the heterogeneous data has texture coordinates;
[0140] If the texture coordinate data does not exist in the heterogeneous data, adding the texture coordinate data to the heterogeneous data;
[0141] If there is texture coordinate data in the heterogeneous data, determine whether the texture coordinate data in the heterogeneous data is in a three-dimensional coordinate form or a two-dimensional coordinate form, and for texture coordinate data with three values, process it using homogeneous coordinates, and obtain a temporary file by dividing the first two values by the third value respectively;
[0142] The temporary file appears in the order of vertex index, texture index, and normal index, and the temporary file is continuously converted to integer the model data. At the end of the conversion, the index value is processed to re-encode all index values to keep each index value unique.
[0143] Furthermore, the step of integrating the face indexes according to the positive and negative index values by judging whether the index values are positive or negative includes:
[0144] If the index value is negative, find the minimum value in the upper data, and add it based on the minimum value so that all index values of the 3D design delivery model are encoded once;
[0145] If the index value is positive, the data in the lower segment is accumulated based on the maximum value of the data in the upper segment.
[0146] Furthermore, the process of converting the heterogeneous data into a target model includes adjusting the scaling, rotation and position of the target model.
[0147] Compared with the existing technology, it has the following beneficial effects: based on the universal standard format, according to the requirements of the 3D design delivery model for different data information definitions, from the aspects of 3D design delivery model conversion demand analysis, different professional model information definition characteristics, conversion rule formulation, etc., through the development of 3D design delivery model data, complete model data files of different professional delivery models at different stages are formed, and 3D design delivery model conversion software is developed to achieve the goal that the 3D design delivery model can convert the source model into the target model according to the model conversion rules, thereby improving the model design modeling efficiency, reducing data conversion errors, and improving design quality.
[0148] First, the three-dimensional design delivery model conversion method described in the present application can achieve the goal that the three-dimensional design delivery model can convert the source model into the target model according to the model conversion rule;
[0149] Secondly, the three-dimensional design delivery model conversion method described in this application can improve the model design modeling efficiency, reduce data conversion errors, and improve design quality;
[0150] Finally, the method of the present application realizes data exchange and data sharing among enterprises, thereby increasing the production cost of enterprise products.
[0151] Example 3
[0152] In Example 3, Figure 4 As shown, a three-dimensional design delivery model conversion device 10 is provided, including: a file loading module 1, a format conversion module 2, a heterogeneous data import interface module 3, a format conversion processing module 4 and a conversion output module 5.
[0153] The file loading module 1 is used to set a method for parsing the 3D design delivery model format, obtain the initial format of the 3D design delivery model, determine whether the initial format is the target format, and if not, determine that the 3D design delivery model is heterogeneous data.
[0154] The format conversion module 2 is used to construct a three-dimensional design delivery model format conversion method, which is used to convert the initial format into the target format.
[0155] The heterogeneous data import interface module 3 is used to import the heterogeneous data into the three-dimensional design delivery model conversion system.
[0156] The format conversion processing module 4 is used to perform format conversion processing on the heterogeneous data using the three-dimensional design delivery model format conversion method, and convert the heterogeneous data into a target model, the format of the target model is the target format.
[0157] The conversion and output module 5 is used to define the name of the file where the target model is saved, select the saving location of the target model, and output the target model.
[0158] like Figure 4 As shown, the three-dimensional design delivery model conversion device 10 also includes: a format output interface module 6, a conversion property setting module 7 and a system setting module 8.
[0159] The format output interface module 6 is used to output the target model in the target format; the conversion attribute setting module 7 is used to set the attribute parameters of the target model; and the system setting module 8 is used to set the general conversion attribute parameters of the target model.
[0160] In this embodiment, the initial format includes one of glTF, JT, 3DXML, DXF, IVE, OSG, NVM, FLT, IV, 3DS, FBX, OBJ, WRL, STL, and NVZ; the target format is set by inputting a file format suffix or by selecting it in a browsing dialog box; the target format includes one of osg, ive, nvm, nvz, flt, iv, dxf, 3ds, 3dxml, step, iges, dae, and xml.
[0161] In this embodiment, the method for constructing a 3D design delivery model format conversion includes:
[0162] Identify the data layout and index value positive and negative of the heterogeneous data, and identify the data layout and index value positive and negative of the three-dimensional design delivery model in the target format;
[0163] Compare the differences between the data layout and the positive and negative index values of the heterogeneous data and the data layout and the positive and negative index values of the three-dimensional design delivery model in the target format;
[0164] Performing file layout conversion processing on the heterogeneous data according to the difference content, and extracting, integrating and optimizing the converted model data;
[0165] According to the difference content, performing texture coordinate conversion processing on the heterogeneous data;
[0166] By judging whether the index value is positive or negative, the panel index is integrated according to the positive or negative index value, and the three-dimensional design delivery model in the target format is converted.
[0167] In this embodiment, the performing texture coordinate conversion processing on the heterogeneous data according to the difference content includes:
[0168] Determine whether the heterogeneous data has texture coordinates;
[0169] If the texture coordinate data does not exist in the heterogeneous data, adding the texture coordinate data to the heterogeneous data;
[0170] If there is texture coordinate data in the heterogeneous data, determine whether the texture coordinate data in the heterogeneous data is in a three-dimensional coordinate form or a two-dimensional coordinate form, and for texture coordinate data with three values, process it using homogeneous coordinates, and obtain a temporary file by dividing the first two values by the third value respectively;
[0171] The temporary file appears in the order of vertex index, texture index, and normal index, and the temporary file is continuously converted to integer the model data. At the end of the conversion, the index value is processed to re-encode all index values to keep each index value unique.
[0172] In this embodiment, the step of integrating the patch indexes according to the positive and negative index values by judging the positive and negative index values includes:
[0173] If the index value is negative, find the minimum value in the upper data, and add it based on the minimum value so that all index values of the 3D design delivery model are encoded once;
[0174] If the index value is positive, the data in the lower segment is accumulated based on the maximum value of the data in the upper segment.
[0175] In this embodiment, the process of converting the heterogeneous data into a target model includes adjusting the scale, rotation and position of the target model.
[0176] In the above-mentioned 3D design delivery model conversion device, based on the universal standard format, according to the 3D design delivery model's requirements for different data information definitions, from the aspects of 3D design delivery model conversion demand analysis, different professional model information definition characteristics, conversion rule formulation, etc., through the development of 3D design delivery model data, complete model data files of different professional delivery models at different stages are formed, and 3D design delivery model conversion software is developed to achieve the goal that the 3D design delivery model can convert the source model into the target model according to the model conversion rules, thereby improving the model design modeling efficiency, reducing data conversion errors, and improving design quality.
[0177] For the specific definition of the three-dimensional design delivery model conversion device, please refer to the definition of the three-dimensional design delivery model conversion method above, which will not be repeated here. Each module in the above-mentioned three-dimensional design delivery model conversion device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0178] Example 4
[0179] In embodiment 4, a computer program product is provided, including a computer program, which, when executed by a processor, implements the following steps:
[0180] Setting a method for parsing the format of the 3D design delivery model, obtaining an initial format of the 3D design delivery model, determining whether the initial format is a target format, and if not, determining that the 3D design delivery model is heterogeneous data;
[0181] Constructing a three-dimensional design delivery model format conversion method for converting the initial format into the target format;
[0182] Importing the heterogeneous data into a three-dimensional design delivery model conversion system;
[0183] The three-dimensional design delivery model format conversion method is used to perform format conversion processing on the heterogeneous data, and the heterogeneous data is converted into a target model, and the format of the target model is the target format;
[0184] Define the save file name of the target model, select the save location of the target model, and output the target model.
[0185] In one embodiment, the computer program further implements the following steps when executed by a processor:
[0186] The initial format includes one of glTF, JT, 3DXML, DXF, IVE, OSG, NVM, FLT, IV, 3DS, FBX, OBJ, WRL, STL, and NVZ; the target format is set by inputting a file format suffix or by selecting it in a browsing dialog box; the target format includes one of osg, ive, nvm, nvz, flt, iv, dxf, 3ds, 3dxml, step, iges, dae, and xml.
[0187] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0188] The method for constructing a 3D design delivery model format conversion comprises:
[0189] Identify the data layout and index value positive and negative of the heterogeneous data, and identify the data layout and index value positive and negative of the three-dimensional design delivery model in the target format;
[0190] Compare the differences between the data layout and the positive and negative index values of the heterogeneous data and the data layout and the positive and negative index values of the three-dimensional design delivery model in the target format;
[0191] Performing file layout conversion processing on the heterogeneous data according to the difference content, and extracting, integrating and optimizing the converted model data;
[0192] According to the difference content, performing texture coordinate conversion processing on the heterogeneous data;
[0193] By judging whether the index value is positive or negative, the panel index is integrated according to the positive or negative index value, and the three-dimensional design delivery model in the target format is converted.
[0194] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0195] The performing texture coordinate conversion processing on the heterogeneous data according to the difference content includes:
[0196] Determine whether the heterogeneous data has texture coordinates;
[0197] If the texture coordinate data does not exist in the heterogeneous data, adding the texture coordinate data to the heterogeneous data;
[0198] If there is texture coordinate data in the heterogeneous data, determine whether the texture coordinate data in the heterogeneous data is in a three-dimensional coordinate form or a two-dimensional coordinate form, and for texture coordinate data with three values, process it using homogeneous coordinates, and obtain a temporary file by dividing the first two values by the third value respectively;
[0199] The temporary file appears in the order of vertex index, texture index, and normal index, and the temporary file is continuously converted to integer the model data. At the end of the conversion, the index value is processed to re-encode all index values to keep each index value unique.
[0200] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0201] The step of integrating the face indexes according to the positive and negative index values by judging the positive and negative index values includes:
[0202] If the index value is negative, find the minimum value in the upper data, and add it based on the minimum value so that all index values of the 3D design delivery model are encoded once;
[0203] If the index value is positive, the data in the lower segment is accumulated based on the maximum value of the data in the upper segment.
[0204] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0205] The process of converting the heterogeneous data into the target model includes adjusting the scaling, rotation and position of the target model.
[0206] For the specific limitations on the steps implemented when the computer program is executed by the processor, please refer to the limitations on the method for converting the three-dimensional design delivery model above, which will not be repeated here.
[0207] Example 5
[0208] In embodiment 5, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Figure 5 As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store three-dimensional design delivery model conversion data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a three-dimensional design delivery model conversion method is implemented.
[0209] Those skilled in the art will understand that Figure 5The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0210] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:
[0211] Setting a method for parsing the format of the 3D design delivery model, obtaining an initial format of the 3D design delivery model, determining whether the initial format is a target format, and if not, determining that the 3D design delivery model is heterogeneous data;
[0212] Constructing a three-dimensional design delivery model format conversion method for converting the initial format into the target format;
[0213] Importing the heterogeneous data into a three-dimensional design delivery model conversion system;
[0214] The three-dimensional design delivery model format conversion method is used to perform format conversion processing on the heterogeneous data, and the heterogeneous data is converted into a target model, and the format of the target model is the target format;
[0215] Define the save file name of the target model, select the save location of the target model, and output the target model.
[0216] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0217] The initial format includes one of glTF, JT, 3DXML, DXF, IVE, OSG, NVM, FLT, IV, 3DS, FBX, OBJ, WRL, STL, and NVZ; the target format is set by inputting a file format suffix or by selecting it in a browsing dialog box; the target format includes one of osg, ive, nvm, nvz, flt, iv, dxf, 3ds, 3dxml, step, iges, dae, and xml.
[0218] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0219] The method for constructing a 3D design delivery model format conversion comprises:
[0220] Identify the data layout and index value positive and negative of the heterogeneous data, and identify the data layout and index value positive and negative of the three-dimensional design delivery model in the target format;
[0221] Compare the differences between the data layout and the positive and negative index values of the heterogeneous data and the data layout and the positive and negative index values of the three-dimensional design delivery model in the target format;
[0222] Performing file layout conversion processing on the heterogeneous data according to the difference content, and extracting, integrating and optimizing the converted model data;
[0223] According to the difference content, performing texture coordinate conversion processing on the heterogeneous data;
[0224] By judging whether the index value is positive or negative, the panel index is integrated according to the positive or negative index value, and the three-dimensional design delivery model in the target format is converted.
[0225] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0226] The performing texture coordinate conversion processing on the heterogeneous data according to the difference content includes:
[0227] Determine whether the heterogeneous data has texture coordinates;
[0228] If the texture coordinate data does not exist in the heterogeneous data, adding the texture coordinate data to the heterogeneous data;
[0229] If there is texture coordinate data in the heterogeneous data, determine whether the texture coordinate data in the heterogeneous data is in a three-dimensional coordinate form or a two-dimensional coordinate form, and for texture coordinate data with three values, process it using homogeneous coordinates, and obtain a temporary file by dividing the first two values by the third value respectively;
[0230] The temporary file appears in the order of vertex index, texture index, and normal index, and the temporary file is continuously converted to integer the model data. At the end of the conversion, the index value is processed to re-encode all index values to keep each index value unique.
[0231] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0232] The step of integrating the face indexes according to the positive and negative index values by judging the positive and negative index values includes:
[0233] If the index value is negative, find the minimum value in the upper data, and add it based on the minimum value so that all index values of the 3D design delivery model are encoded once;
[0234] If the index value is positive, the data in the lower segment is accumulated based on the maximum value of the data in the upper segment.
[0235] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0236] The process of converting the heterogeneous data into the target model includes adjusting the scaling, rotation and position of the target model.
[0237] For the specific limitations on the steps implemented when the processor executes the computer program, please refer to the limitations on the method of converting the three-dimensional design delivery model mentioned above, which will not be repeated here.
[0238] Example 6
[0239] In embodiment 6, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:
[0240] Setting a method for parsing the format of the 3D design delivery model, obtaining an initial format of the 3D design delivery model, determining whether the initial format is a target format, and if not, determining that the 3D design delivery model is heterogeneous data;
[0241] Constructing a three-dimensional design delivery model format conversion method for converting the initial format into the target format;
[0242] Importing the heterogeneous data into a three-dimensional design delivery model conversion system;
[0243] The three-dimensional design delivery model format conversion method is used to perform format conversion processing on the heterogeneous data, and the heterogeneous data is converted into a target model, and the format of the target model is the target format;
[0244] Define the save file name of the target model, select the save location of the target model, and output the target model.
[0245] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0246] The initial format includes one of glTF, JT, 3DXML, DXF, IVE, OSG, NVM, FLT, IV, 3DS, FBX, OBJ, WRL, STL, and NVZ; the target format is set by inputting a file format suffix or by selecting it in a browsing dialog box; the target format includes one of osg, ive, nvm, nvz, flt, iv, dxf, 3ds, 3dxml, step, iges, dae, and xml.
[0247] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0248] The method for constructing a 3D design delivery model format conversion comprises:
[0249] Identify the data layout and index value positive and negative of the heterogeneous data, and identify the data layout and index value positive and negative of the three-dimensional design delivery model in the target format;
[0250] Compare the differences between the data layout and the positive and negative index values of the heterogeneous data and the data layout and the positive and negative index values of the three-dimensional design delivery model in the target format;
[0251] Performing file layout conversion processing on the heterogeneous data according to the difference content, and extracting, integrating and optimizing the converted model data;
[0252] According to the difference content, performing texture coordinate conversion processing on the heterogeneous data;
[0253] By judging whether the index value is positive or negative, the panel index is integrated according to the positive or negative index value, and the three-dimensional design delivery model in the target format is converted.
[0254] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0255] The performing texture coordinate conversion processing on the heterogeneous data according to the difference content includes:
[0256] Determine whether the heterogeneous data has texture coordinates;
[0257] If the texture coordinate data does not exist in the heterogeneous data, adding the texture coordinate data to the heterogeneous data;
[0258] If there is texture coordinate data in the heterogeneous data, determine whether the texture coordinate data in the heterogeneous data is in a three-dimensional coordinate form or a two-dimensional coordinate form, and for texture coordinate data with three values, process it using homogeneous coordinates, and obtain a temporary file by dividing the first two values by the third value respectively;
[0259] The temporary file appears in the order of vertex index, texture index, and normal index, and the temporary file is continuously converted to integer the model data. At the end of the conversion, the index value is processed to re-encode all index values to keep each index value unique.
[0260] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0261] The step of integrating the face indexes according to the positive and negative index values by judging the positive and negative index values includes:
[0262] If the index value is negative, find the minimum value in the upper data, and add it based on the minimum value so that all index values of the 3D design delivery model are encoded once;
[0263] If the index value is positive, the data in the lower segment is accumulated based on the maximum value of the data in the upper segment.
[0264] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0265] The process of converting the heterogeneous data into the target model includes adjusting the scaling, rotation and position of the target model.
[0266] For the specific limitations on the steps implemented when the computer program is executed by the processor, please refer to the limitations on the method for converting the three-dimensional design delivery model above, which will not be repeated here.
[0267] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0268] Finally, it should be noted that the above are only preferred embodiments of the present application and are not intended to limit the present application. Although the present application is described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions described in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A three-dimensional design delivery model conversion method, characterized in that: The method comprises the steps of: Setting a method for parsing the format of the 3D design delivery model, obtaining an initial format of the 3D design delivery model, determining whether the initial format is a target format, and if not, determining that the 3D design delivery model is heterogeneous data; Constructing a three-dimensional design delivery model format conversion method for converting the initial format into the target format; Importing the heterogeneous data into a three-dimensional design delivery model conversion system; The three-dimensional design delivery model format conversion method is used to perform format conversion processing on the heterogeneous data, and the heterogeneous data is converted into a target model, and the format of the target model is the target format; Define the save file name of the target model, select the save location of the target model, and output the target model.
2. A 3D design delivery model conversion method according to claim 1, characterized in that: The initial format includes one of glTF, JT, 3DXML, DXF, IVE, OSG, NVM, FLT, IV, 3DS, FBX, OBJ, WRL, STL, and NVZ; the target format is set by inputting a file format suffix or by selecting it in a browsing dialog box; the target format includes one of osg, ive, nvm, nvz, flt, iv, dxf, 3ds, 3dxml, step, iges, dae, and xml.
3. A 3D design delivery model conversion method according to claim 1, characterized in that: The method for constructing a 3D design delivery model format conversion comprises: Identify the data layout and index value positive and negative of the heterogeneous data, and identify the data layout and index value positive and negative of the three-dimensional design delivery model in the target format; Compare the differences between the data layout and the positive and negative index values of the heterogeneous data and the data layout and the positive and negative index values of the three-dimensional design delivery model in the target format; Performing file layout conversion processing on the heterogeneous data according to the difference content, and extracting, integrating and optimizing the converted model data; According to the difference content, performing texture coordinate conversion processing on the heterogeneous data; By judging whether the index value is positive or negative, the panel index is integrated according to the positive or negative index value, and the three-dimensional design delivery model in the target format is converted.
4. A 3D design delivery model conversion method according to claim 3, characterized in that: The performing texture coordinate conversion processing on the heterogeneous data according to the difference content includes: Determine whether the heterogeneous data has texture coordinates; If the texture coordinate data does not exist in the heterogeneous data, adding the texture coordinate data to the heterogeneous data; If there is texture coordinate data in the heterogeneous data, determine whether the texture coordinate data in the heterogeneous data is in a three-dimensional coordinate form or a two-dimensional coordinate form, and for texture coordinate data with three values, process it using homogeneous coordinates, and obtain a temporary file by dividing the first two values by the third value respectively; The temporary file appears in the order of vertex index, texture index, and normal index, and the temporary file is continuously converted to integer the model data. At the end of the conversion, the index value is processed to re-encode all index values to keep each index value unique.
5. A 3D design delivery model conversion method according to claim 3, characterized in that: The step of integrating the face indexes according to the positive and negative index values by judging the positive and negative index values includes: If the index value is negative, find the minimum value in the upper data, and add it based on the minimum value so that all index values of the 3D design delivery model are encoded once; If the index value is positive, the data in the lower segment is accumulated based on the maximum value of the data in the upper segment.
6. A 3D design delivery model conversion method according to claim 1, characterized in that: The process of converting the heterogeneous data into the target model includes adjusting the scaling, rotation and position of the target model.
7. A 3D design delivery model conversion device, characterized in that: The device comprises: A file loading module is used to set a method for parsing the format of the 3D design delivery model, obtain the initial format of the 3D design delivery model, determine whether the initial format is a target format, and if not, determine that the 3D design delivery model is heterogeneous data; A format conversion module, used to construct a three-dimensional design delivery model format conversion method, used to convert the initial format into the target format; A heterogeneous data import interface module, used for importing the heterogeneous data into a 3D design delivery model conversion system; A format conversion processing module, used to perform format conversion processing on the heterogeneous data using the three-dimensional design delivery model format conversion method, and convert the heterogeneous data into a target model, the format of the target model being the target format; The conversion output module is used to define the save file name of the target model, select the save location of the target model, and output the target model.
8. A 3D design delivery model conversion device according to claim 7, characterized in that: Also includes: A format output interface module, used for outputting the target model in the target format; A conversion attribute setting module, used to set attribute parameters of the target model; The system setting module is used to set the general conversion attribute parameters of the target model.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Fusion method of building BIM model and live-action three-dimensional model
CN110807835A
File format conversion method and device and computer storage medium
CN114359461A
Method for making OSGB index file
CN116578532A
Metro communication equipment model format conversion method and equipment for operation and maintenance, and medium
CN117852503A
Plant deliverable management system
US20130191302A1
