Three-dimensional design delivery model conversion method, device, equipment and storage medium

By converting the format of the 3D design delivery model, the problem of mismatched model data formats in ship design was solved, enabling cross-platform display of the model and ensuring the integrity of data files, thereby improving design efficiency and quality.

CN119089583BActive Publication Date: 2026-03-20SHIPBUILDING TECHNOLOGY RESEARCH INSITITUTE (NO 11 INSTITUTE OF CSSC)
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-29
Publication Date
2026-03-20

AI Technical Summary

Technical Problem

During the ship design process, the use of different 3D design software by various collaborating parties leads to mismatched data formats in the delivered 3D design models. This results in low efficiency of model data utilization, inconsistencies in modeling information, a large amount of repetitive modeling work, and a high error rate in data conversion.

Method used

This paper provides a method for converting 3D design delivery models. By parsing the initial format, identifying heterogeneous data, and constructing a format conversion method, the heterogeneous data is converted into the target format. This includes the integration of data layout and positive and negative index values, as well as texture coordinate conversion, to form a suitable target model.

Benefits of technology

It enables cross-platform display of 3D design delivery models and ensures the integrity of data files, improving model design and modeling efficiency, reducing data conversion errors, and enhancing design quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119089583B_ABST
    Figure CN119089583B_ABST
Patent Text Reader

Abstract

The application discloses a three-dimensional design delivery model conversion method and device, equipment and a storage medium, and relates to the technical field of model data conversion. The application is based on a general standard format, and starts from the aspects of three-dimensional design delivery model conversion mold conversion requirement analysis, different professional model information definition features and mold conversion rule formulation. Through development of three-dimensional design delivery model data, complete data files of different professional delivery models at different stages are formed, three-dimensional design delivery model conversion mold software is developed, the three-dimensional design delivery model can be converted into a target model according to model conversion rules, the modeling efficiency of model design is improved, data conversion errors are reduced, and the design quality is improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of model data conversion, in particular to a three-dimensional design delivery model conversion method and device, computer equipment and a storage medium. BACKGROUND

[0002] During the ship design process, shipyards, classification societies, design institutes, subcontractors, suppliers and other collaboration parties need to frequently interact with design information. The three-dimensional design delivery model of the ship has become the main carrier for expressing the ship design information. However, due to the use of a large number of three-dimensional design software by various collaboration parties during the ship design stage, there are various three-dimensional design delivery model data formats, and a large number of interfaces are required for the exchange of three-dimensional design delivery models between different software, or even the exchange is not possible. This not only hinders the exchange of three-dimensional design delivery models between various collaboration parties, but also hinders the realization of ship collaborative design.

[0003] There are many traditional data exchange approaches and methods, which are generally disordered and chaotic. The interface technologies and tools developed by various departments are also diverse and different, which are not suitable for promotion and reuse. With the increase of CAD / CAE / CAM tools used in the ship field, the traditional data exchange architecture in the ship field will become more complex. Usually, the delivery model data format does not match, resulting in low utilization efficiency of model data, inconsistency of model modeling information, and a large amount of repeated modeling work after the delivery model, etc. If the same tool or model data format is forced to be used, the human cost will increase due to the different quality of talents. SUMMARY

[0004] The present application provides a three-dimensional design delivery model conversion method, which is used to solve the technical problems of low utilization efficiency of model data, inconsistency of model modeling information, and a large amount of repeated modeling work after the delivery model, resulting in low modeling efficiency and high data conversion error rate in the ship field.

[0005] The present application provides the following plan scheme: the present application provides a three-dimensional design delivery model conversion method, which comprises the following steps:

[0006] A mode for analyzing the three-dimensional design delivery model format is set, the initial format of the three-dimensional design delivery model is obtained, it is judged whether the initial format is the target format, if not, it is determined that the three-dimensional design delivery model is heterogeneous data;

[0007] A three-dimensional design delivery model format conversion method is constructed, which is used to convert the initial format into the target format;

[0008] The heterogeneous data is imported into a three-dimensional design delivery model conversion system;

[0009] The heterogeneous data is converted into a target model by using the three-dimensional design delivery model format conversion method, and a format of the target model is the target format.

[0010] A save file name of the target model is defined, a save location of the target model is selected, and the target model is output.

[0011] Further, 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 an input file format suffix name mode or a browsing dialog box selection mode; and the target format includes one of osg, ive, nvm, nvz, flt, iv, dxf, 3ds, 3dxml, step, iges,dae, xml.

[0012] Further, the three-dimensional design delivery model format conversion method includes:

[0013] Data layout and index value positive and negative of the heterogeneous data are identified, and data layout and index value positive and negative of the three-dimensional design delivery model in the target format are identified.

[0014] Differences between the data layout and the index value positive and negative of the heterogeneous data and the data layout and the index value positive and negative of the three-dimensional design delivery model in the target format are compared.

[0015] File layout conversion processing is performed on the heterogeneous data according to the differences, and model data after the conversion processing is extracted, integrated, and optimized.

[0016] The heterogeneous data is subjected to texture coordinate conversion processing according to the differences.

[0017] According to the index value positive and negative judgment, the patch index is integrated according to the index value positive and negative, and the three-dimensional design delivery model in the target format is converted.

[0018] Further, the texture coordinate conversion processing of the heterogeneous data according to the differences includes:

[0019] It is judged whether the heterogeneous data has texture coordinates.

[0020] If the heterogeneous data does not have texture coordinate data, texture coordinate data is added to the heterogeneous data.

[0021] If the heterogeneous data contains texture coordinate data, it is determined whether the texture coordinate data in the heterogeneous data is in three-dimensional coordinate form or two-dimensional coordinate form, for texture coordinate data containing three values, the homogeneous coordinates are used to process the texture coordinate data, and a temporary file is obtained by dividing the first two values by the third value;

[0022] The temporary file is converted in the order of vertex index, texture index, and normal vector index, and the model data is set to zero. Finally, the index values are processed to re-encode all index values and keep each index value unique.

[0023] Further, the integration of the face index according to the positive and negative of the index value includes:

[0024] If the index value is negative, the minimum value in the upper end data is found, and the minimum value is accumulated to make all index values of the three-dimensional design delivery model one-time encoded;

[0025] If the index value is positive, the lower end data is accumulated based on the maximum value of the upper end data.

[0026] Further, in the process of converting the heterogeneous data into a target model, the scaling, rotation, and position of the target model are adjusted.

[0027] On the other hand, a three-dimensional design delivery model conversion device is provided, which includes:

[0028] A file loading module is configured to set a way to parse the three-dimensional design delivery model format, obtain the initial format of the three-dimensional design delivery model, determine whether the initial format is the target format, and if not, determine that the three-dimensional design delivery model is heterogeneous data;

[0029] A format conversion module is configured to construct a three-dimensional design delivery model format conversion method for converting the initial format into the target format;

[0030] A heterogeneous data import interface module is configured to import the heterogeneous data into a three-dimensional design delivery model conversion system;

[0031] A format conversion processing module is configured to use the three-dimensional design delivery model format conversion method to perform format conversion processing on the heterogeneous data, and convert the heterogeneous data into a target model, wherein the format of the target model is the target format;

[0032] A conversion output module is configured to define the save file name of the target model, select the save location of the target model, and output the target model.

[0033] Further, the three-dimensional design delivery model conversion device further comprises:

[0034] a format output interface module, configured to output the target model in the target format;

[0035] a conversion attribute setting module, configured to set an attribute parameter of the target model;

[0036] a system setting module, configured to set a general conversion attribute parameter 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 the processor implements the following steps when executing the computer program:

[0038] setting a manner of analyzing a three-dimensional design delivery model format, obtaining an initial format of the three-dimensional design delivery model, judging whether the initial format is a target format, and determining that the three-dimensional design delivery model is heterogeneous data if the initial format is not the target format;

[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] performing format conversion processing on the heterogeneous data by using the three-dimensional design delivery model format conversion method, and converting the heterogeneous data into a target model, wherein the format of the target model is the target format;

[0042] defining a save file name of the target model, selecting a save location of the target model, and outputting the target model.

[0043] In yet another aspect, a computer readable storage medium is provided, having a computer program stored thereon, wherein the computer program is executable by a processor to implement the following steps:

[0044] setting a manner of analyzing a three-dimensional design delivery model format, obtaining an initial format of the three-dimensional design delivery model, judging whether the initial format is a target format, and determining that the three-dimensional design delivery model is heterogeneous data if the initial format is not the target format;

[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 for 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] The saving file name of the target model is defined, the saving position of the target model is selected, and the target model is outputted.

[0049] Compared with the prior art, the following beneficial effects are achieved: based on a universal standard format, according to the definition requirements of different data information of a three-dimensional design delivery model, from the aspects of three-dimensional design delivery model conversion requirement analysis, different professional model information definition characteristics, and conversion rule formulation, through development of three-dimensional design delivery model data, complete model data files of different stages and different professional delivery models are formed, three-dimensional design delivery model conversion software is developed, and the target that the three-dimensional design delivery model can be converted into a target model according to a model conversion rule is realized, the modeling efficiency of model design is improved, data conversion errors are reduced, and the design quality is improved. BRIEF DESCRIPTION OF DRAWINGS

[0050] The accompanying drawings are included to provide a further understanding of the present application, and constitute a part of the specification, illustrate the present application together with the embodiments of the present application, and are used to explain the present application, and do not constitute a limitation on the present application.

[0051] In the drawings:

[0052] Figure 1 is a flowchart of a three-dimensional design delivery model conversion method provided in an embodiment of the present application;

[0053] Figure 2 is a structural block diagram of a three-dimensional 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 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 is an internal structure diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0057] The preferred embodiments of the present application are described below in combination with the drawings, and it should be understood that the preferred embodiments described herein are only used to illustrate and explain the present application, and do not limit the present application.

[0058] Embodiment 1

[0059] In the process of ship collaborative design, three-dimensional design delivery model includes delivery model for classification society, supplier and shipyard, subcontractor delivery design model, and detailed design and production design delivery model. The traditional design mode has the characteristics of different stage model data heterogeneity, and usually faces the problems of model data format mismatch, low utilization rate of model data, inconsistency of model information, and a large amount of repeated modeling work after delivery model. In view of the above problems, a kind of conversion method and software for ship three-dimensional model is invented, which is based on the general standard format, and according to the definition requirements of different data information of three-dimensional design delivery model, the source model is converted into the target model from the analysis of three-dimensional design delivery model conversion requirements, different professional model information definition characteristics and conversion rules, so as to improve the modeling efficiency, reduce data conversion errors and improve the design quality.

[0060] In order to improve the utilization rate of ship three-dimensional design delivery model data and reduce the repeated modeling work, the three-dimensional design delivery model conversion method is studied based on the general standard format and according to the definition requirements of different data information of three-dimensional design delivery model. (1) Combined with the present situation of three-dimensional design delivery model conversion method in ship industry, the requirements of three-dimensional design delivery model conversion method are deeply analyzed; (2) taking the mainstream model file standard format as the basis of conversion format, the conversion requirements of three-dimensional design delivery model and the information definition characteristics of different professional models are analyzed and the corresponding conversion rules are formulated; (3) starting from the information definition characteristics of different three-dimensional design delivery models and the formulation of conversion rules, the three-dimensional design delivery model format conversion optimization algorithm is used to realize the conversion data file of three-dimensional delivery model, improve the modeling efficiency, reduce the data conversion errors and improve the design quality, as shown in Figure 1 .

[0061] As shown in Figure 1 , the three-dimensional design delivery model conversion method includes the following steps: a, three-dimensional design delivery model format analysis; b, three-dimensional design delivery model format conversion method; c, heterogeneous data import; d, format conversion processing; e, format output.

[0062] In one implementation: in the a step, the three-dimensional design delivery model can be generally 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 solid model formats. The solid model formats do not contain triangle facet information, and a large amount of calculation is required to network the model before the model is displayed. The solid model format has a complex data structure and redundant repeated information, resulting in a large amount of model file data. To realize the browsing and display of the solid model format, the three-dimensional design software used to construct the model or the design software compatible with the format must be used. The security performance of the solid model format is poor, and important design information such as the modeling process and feature parameters of the product model is contained. The model constructed by the unit decomposition representation method is a mesh model, which uses a large number of polygon facets to approximate the geometric shape of the object. The three-dimensional design delivery model formats mainly involve glTF, JT, 3DXML, DXF, IVE, OSG, NVM, FLT, IV, 3DS, FBX, OBJ, WRL, STL and NVZ formats. The standard format of the three-dimensional design delivery model is glTF, JT, 3DXML and NVZ format. glTF is a three-dimensional model file format designed to facilitate the network transmission of three-dimensional models. JT format is a high-performance, neutral, lightweight visual data permanent storage container. The 3DXML format is a file format based on the extensible markup language XML in CATIA, which is a general and lightweight three-dimensional file format. The NVZ format can quickly import the model and improve the display speed.

[0063] Further, in step b, due to the characteristics of three-dimensional software, the output files exported by different software clients differ in data layout and index value. Therefore, in order to realize cross-platform display of heterogeneous three-dimensional design delivery model format, the model file format must be converted. Through analysis of the content of the output files exported by heterogeneous three-dimensional 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 coding of the output files. After model conversion processing, the model data is extracted, integrated and optimized, and a file format suitable for the target software is obtained, which can be recognized, read and efficiently transmitted. The content layout conversion of three-dimensional design delivery model includes texture coordinate processing and data zero integration of the model file. The output files exported by different three-dimensional software differ in model texture coordinates. For example, some output files do not contain texture coordinates, and some output files contain texture coordinates in the form of three-dimensional coordinates. Therefore, according to the differences between different output files, the model file is processed in texture coordinate conversion. In this conversion, first, it is determined whether the model file contains texture coordinates. If the model file does not contain texture information, since texture coordinate data is indispensable for model display, in order to ensure complete model display, texture data should be added to the model file. For model files containing 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 for processing, and a temporary file can be 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 vector index, but not all of them appear only once. Therefore, the model file is further converted, and the model data is integrated into zero. In the last conversion, the index values are processed, and all index values are re-encoded, i.e. each index value is unique. By judging the positive and negative of the index value, the face index is integrated. If the index value is negative, the minimum value in the upper data should be found, and the minimum value should be added on the basis of the minimum value to make all index values of the model only one encoding. If the index value is positive, the lower data should be added on the basis of the maximum value of the upper data. The standard model format obtained through this conversion is suitable for the current mainstream three-dimensional format. Through conversion processing of the original model format, the format problem of cross-platform display of heterogeneous three-dimensional design delivery model format is solved, which to some extent simplifies the display format of the model obtained through subsequent conversion, and prepares for cross-platform web display of heterogeneous three-dimensional design delivery model file.

[0064] Further, in step c, the three-dimensional design delivery model conversion software is developed, mainly including heterogeneous data import interface module, format conversion processing module, format output interface module and conversion tool interface module, such asFigure 2 The isomer data import can load the recently opened file or directory, initialize software variables, and wait for user input. The user can load the conversion model file by selecting the file or directory through the main interface. Select the "Open File" button, and input filtering according to the file format (suffix) supported by the software, and only filter and display (input) Tribon, SPD, Catia, Aveva Marine, Smart 3D, Foran, CADDS5, Compass, and other three-dimensional model data files. The software supports input of multiple model format files, and the input has covered most three-dimensional models on the market, improving the use range of the software. The specific implementation is as follows:

[0065]

[0066] NVZ|*.nvz|OpenSceneGraph NVM|*.nvm|Dassault 3DXML|*.3dxml|Autodesk FBX|*.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] The file to be opened is selected through the file browsing dialog box. Two ways of loading the folder are supported, that is, opening through the dialog box or dragging the file to the specified area. After the file is loaded, the model file in the folder can be automatically searched, and the software list can be loaded in batches. Considering the software performance, only the model files in the folder are searched, and the subfolders in the searched file are not searched. At the same time, the isomer data import will automatically load the last operation file path of the user.

[0075] Further, in the d step, the format conversion processing is the core part. The format conversion can convert Tribon, SPD, Catia, Aveva Marine, Smart 3D, Foran, CADDS5, Compass three-dimensional model data into common formats such as *.osg, *.ive, *.nvm, *.nvz, *.flt, *.iv, *.dxf, *.3ds, *.3dxml, *.JT, *.stl, *.fbx, *.wrl, *.jt, *.obj, *.step, *.iges, *.xml, etc. The user selects the three-dimensional model format to be output in the "output format" drop-down box, clicks the "start conversion" button, and the software will detect the suffix name, and finally perform the conversion. When the list box progress shows "complete", it indicates that the conversion is successful, otherwise the conversion fails. The specific function functions are 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] In the output format options to select the need to output the three-dimensional model format, the software will be detected suffix, and finally converted. The user selects the format conversion model export format, can be targeted for the format model export parameter settings, if the user does not set, use the default parameters for export. Model export conversion properties include multi-threaded parameter settings, whether to export the texture map, texture map format conversion and target model geometry transformation. Conversion attribute settings vary according to the different target format, based on the target format read-write code customization, to help users control the model properties.

[0094] Further, e step, auxiliary user complete conversion output function settings, users can complete the model conversion format selection, target model conversion parameter settings, target model save path settings and other functions through the software interface, conversion work begins, the interface displays the model conversion state and in the model conversion success prompt user to open the save directory, in order to manage the target file, the software is defined internally special class for attribute settings, the specific class definition 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

[0110] public string ModelfExt

[0111] {

[0112] get { return modelfExt;}

[0113] set { modelfExt = value;}

[0114]

[0115] The software manages the output format through a json string, which is convenient for later functional expansion of the software. An example of the used json string is as follows:

[0116]

[0117] "ModelfDefaultParm":"TriStrip",

[0118] "ModelfDiyParm":"",

[0119] "ModelfTmp":""

[0120] }.

[0121] Further, in the e step, the format output mainly assists the user to complete the model format conversion, can select the target file format of the model to be converted, customize the save file name of the model, set the conversion properties of the target model, select the save location of the target model, and display the model conversion state.

[0122] In the ship collaborative design process, the three-dimensional design delivery model includes a ship classification society submission model, a supplier and shipyard product model, a subcontractor design model, and a detailed design and production design model. The traditional design mode has the characteristics of heterogeneous data in different stages, and usually faces the problem of mismatching of delivery model data format, which may cause low utilization of model data, inconsistency of model information, and a large amount of repeated modeling work after delivery model, etc. Based on the general standard format, according to the definition requirements of different data information of the three-dimensional design delivery model, starting from the analysis of the requirements of the three-dimensional design delivery model conversion, the definition characteristics of different professional model information, and the formulation of the conversion rule, the complete data file of the delivery model of different stages and different professions is formed through the development of the three-dimensional design delivery model data, and the three-dimensional design delivery model conversion software is developed, so that the three-dimensional design delivery model can be converted into the target model according to the model conversion rule, the modeling efficiency of the model design is improved, the data conversion error is reduced, and the design quality is improved.

[0123] Embodiment 2

[0124] In embodiment 2, all the technical features of embodiment 1 are included.

[0125] Specifically, as shown in Figure 3 In embodiment 2, a three-dimensional design delivery model conversion method is provided, and the method comprises the following steps:

[0126] S1, setting a way to analyze the format of the three-dimensional design delivery model, obtaining the initial format of the three-dimensional design delivery model, judging whether the initial format is the target format, if not, determining that the three-dimensional design delivery model is heterogeneous data;

[0127] S2, constructing a three-dimensional design delivery model format conversion method for converting the initial format into the target format;

[0128] S3, importing the heterogeneous data into a three-dimensional design delivery model conversion system;

[0129] S4, using the three-dimensional design delivery model format conversion method to perform format conversion processing on the heterogeneous data, converting the heterogeneous data into a target model, and the format of the target model is the target format;

[0130] S5, defining the save file name of the target model, selecting the save location of the target model, and outputting the target model.

[0131] Further, the initial format includes one of glTF, JT, 3DXML, DXF, IVE, OSG, NVM, FLT, IV, 3DS, FBX, OBJ, WRL, STL, NVZ; the target format is set by input file format suffix name or by browsing dialog box selection; the target format includes one of osg, ive, nvm, nvz, flt, iv, dxf, 3ds, 3dxml, step, iges,dae, xml.

[0132] Further, the method for converting the three-dimensional design delivery model format 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 difference content of the data layout and index value positive and negative of the heterogeneous data and the data layout and index value positive and negative of the three-dimensional design delivery model in the target format;

[0135] According to the difference content, the heterogeneous data is processed for file layout conversion, and the model data after conversion processing is extracted, integrated and optimized;

[0136] According to the difference content, the heterogeneous data is processed for texture coordinate conversion;

[0137] According to the index value positive and negative judgment, the face index is integrated according to the index value positive and negative, and the three-dimensional design delivery model in the target format is converted.

[0138] Further, the method for converting the three-dimensional design delivery model format includes:

[0139] Determine whether the heterogeneous data has texture coordinates;

[0140] If the heterogeneous data does not have texture coordinate data, add texture coordinate data to the heterogeneous data;

[0141] If the heterogeneous data has texture coordinate data, determine whether the texture coordinate data in the heterogeneous data is in three-dimensional coordinate form or two-dimensional coordinate form, and for the texture coordinate data with three values, use homogeneous coordinates to process it, 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 vector index, and the temporary file is further converted, the model data is set to zero, and at the end of the conversion, the index value is processed to make all index values re-encode and keep each index value unique.

[0143] Furthermore, the step of integrating the face index according to the positive or negative index value by judging the sign of the index value includes:

[0144] If the index value is negative, find the minimum value in the upper data and accumulate 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, then the value of the next segment is accumulated based on the maximum value of the previous 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 to existing technologies, it has the following beneficial effects: Based on a common standard format, and according to the different data information definition requirements of the 3D design delivery model, from the aspects of 3D design delivery model conversion requirement analysis, definition characteristics of different professional model information, and formulation of conversion rules, through the development of 3D design delivery model data, complete model data files of delivery models of different stages and different professions are formed. 3D design delivery model conversion software is developed, realizing the goal of converting the source model into the target model according to the model conversion rules, thereby improving model design and modeling efficiency, reducing data conversion errors, and improving design quality.

[0148] First, the 3D design delivery model conversion method described in this application can achieve the goal of converting the source model into the target model according to the model conversion rules;

[0149] Secondly, the three-dimensional design delivery model conversion method described in this application can improve the efficiency of model design and modeling, reduce data conversion errors, and improve design quality;

[0150] Finally, the method of this application enables data exchange and sharing between enterprises, thereby increasing the production costs of enterprise products.

[0151] Example 3

[0152] In Example 3, as 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 the 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 configured to construct a three-dimensional design delivery model format conversion method for converting the initial format into the target format.

[0155] The heterogeneous data import interface module 3 is configured to import the heterogeneous data into the three-dimensional design delivery model conversion system.

[0156] The format conversion processing module 4 is configured to perform format conversion processing on the heterogeneous data by using the three-dimensional design delivery model format conversion method, and convert the heterogeneous data into a target model, wherein the format of the target model is the target format.

[0157] The conversion output module 5 is configured to define a file name of the target model, select a storage location of the target model, and output the target model.

[0158] As shown in Figure 4 The three-dimensional design delivery model conversion device 10 further includes a format output interface module 6, a conversion attribute setting module 7, and a system setting module 8.

[0159] The format output interface module 6 is configured to output the target model in the target format; the conversion attribute setting module 7 is configured to set attribute parameters of the target model; and the system setting module 8 is configured to set 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 name or by selecting through a browse dialog box; and 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 three-dimensional design delivery model format conversion method includes:

[0162] identifying data layout and index value positive and negative of the heterogeneous data, and identifying data layout and index value positive and negative of a three-dimensional design delivery model in the target format;

[0163] comparing differences between the data layout and the index value positive and negative of the heterogeneous data and the data layout and the index value positive and negative of the three-dimensional design delivery model in the target format;

[0164] performing file layout conversion processing on the heterogeneous data according to the differences, and extracting and integrating model data after the conversion processing and performing data optimization.

[0165] According to the difference content, the heterogeneous data is subjected to a texture coordinate conversion process;

[0166] By judging the positive and negative of the index value, the patch index is integrated according to the positive and negative of the index value, and the three-dimensional design delivery model in the target format is converted.

[0167] In the embodiment, the texture coordinate conversion process of the heterogeneous data according to the difference content comprises:

[0168] It is judged whether the heterogeneous data has texture coordinates;

[0169] If the heterogeneous data does not have texture coordinate data, texture coordinate data is added to the heterogeneous data;

[0170] If the heterogeneous data has texture coordinate data, it is judged whether the texture coordinate data in the heterogeneous data is in three-dimensional coordinate form or two-dimensional coordinate form, for the texture coordinate data having three values, homogeneous coordinates are used to process the texture coordinate data, and a temporary file is obtained by dividing the first two values by the third value;

[0171] The temporary file appears in the order of vertex index, texture index, and normal vector index, the conversion of the temporary file is continued, the model data is set to zero, and at the end of the conversion, the index value is processed to make all the index values re-encode and keep each index value unique.

[0172] In the embodiment, the integration of the patch index according to the positive and negative of the index value comprises:

[0173] If the index value is negative, the minimum value in the upper end data is found, and the minimum value is accumulated on the basis of the minimum value, so that all the index values of the three-dimensional design delivery model are one-time encoded;

[0174] If the index value is positive, the lower end data is accumulated on the basis of the maximum value of the upper end data.

[0175] In the embodiment, during the conversion of the heterogeneous data into the target model, the scaling, rotation, and position of the target model are adjusted.

[0176] The three-dimensional design delivery model conversion device is based on a general standard format, and according to requirements of different data information definition of the three-dimensional design delivery model, from aspects of model conversion requirement analysis of the three-dimensional design delivery model, model information definition characteristics of different professions, model conversion rule formulation, and the like, complete model data files of different stages and different professions are formed through development of three-dimensional design delivery model data, three-dimensional design delivery model conversion software is developed, and the target that the three-dimensional design delivery model can be converted into a target model according to a model conversion rule is realized, and the modeling efficiency of model design is improved, data conversion errors are reduced, and design quality is improved.

[0177] The specific limitations of the three-dimensional design delivery model conversion device can be referred to the limitations of the three-dimensional design delivery model conversion method in the foregoing, and will not be described herein. Each module in the three-dimensional design delivery model conversion device can be realized by software, hardware, and a combination thereof, in whole or in part. Each module can be embedded in or independent of a processor in a computer device in a hardware form, or can be stored in a memory in a computer device in a software form, so as to be called and executed by a processor to perform operations corresponding to each module.

[0178] Embodiment 4

[0179] In embodiment 4, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the following steps:

[0180] A manner of analyzing a three-dimensional design delivery model format is set, an initial format of the three-dimensional design delivery model is obtained, it is judged whether the initial format is a target format, if not, it is determined that the three-dimensional design delivery model is heterogeneous data;

[0181] A three-dimensional design delivery model format conversion method is constructed, which is used to convert the initial format into the target format;

[0182] The heterogeneous data is imported into a three-dimensional design delivery model conversion system;

[0183] The heterogeneous data is converted into a target model by using the three-dimensional design delivery model format conversion method, and a format of the target model is the target format;

[0184] A saved file name of the target model is defined, a saved position of the target model is selected, and the target model is output.

[0185] In one embodiment, the computer program, when executed by a processor, further implements the following steps:

[0186] The initial format includes one of glTF, JT, 3DXML, DXF, IVE, OSG, NVM, FLT, IV, 3DS, FBX, OBJ, WRL, STL, NVZ; the target format is set by input file format suffix name or by browsing dialog box selection; the target format includes one of osg, ive, nvm, nvz, flt, iv, dxf, 3ds, 3dxml, step, iges,dae, xml.

[0187] In one embodiment, the computer program, when executed by the processor, further implements the following steps:

[0188] The method for converting the three-dimensional design delivery model format includes:

[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 difference content of the data layout and index value positive and negative of the heterogeneous data and the data layout and index value positive and negative of the three-dimensional design delivery model in the target format;

[0191] According to the difference content, the heterogeneous data is processed for file layout conversion, and the model data after conversion processing is extracted, integrated and optimized;

[0192] According to the difference content, the heterogeneous data is processed for texture coordinate conversion;

[0193] By judging the index value positive and negative, the patch index is integrated according to the index value positive and negative, and the three-dimensional design delivery model in the target format is converted.

[0194] In one embodiment, the computer program, when executed by the processor, further implements the following steps:

[0195] The texture coordinate conversion processing of the heterogeneous data according to the difference content includes:

[0196] Determine whether the heterogeneous data has texture coordinates;

[0197] If the heterogeneous data does not have texture coordinate data, add texture coordinate data to the heterogeneous data;

[0198] If the heterogeneous data has texture coordinate data, determine whether the texture coordinate data in the heterogeneous data is in three-dimensional coordinate form or two-dimensional coordinate form, and for the texture coordinate data with three numerical values, use homogeneous coordinates to process it, and obtain a temporary file by dividing the first two numerical values by the third numerical value.

[0199] The temporary file is converted in the order of vertex index, texture index, and normal vector index. The model data is zeroed. The index values are processed at the end of the conversion, and all index values are re-encoded to maintain the uniqueness of each index value.

[0200] In one embodiment, the computer program, when executed by the processor, further implements the following steps:

[0201] The integration of the face index according to the positive and negative of the index value includes:

[0202] If the index value is negative, the minimum value in the upper end data is found, and the minimum value is accumulated to make all index values of the three-dimensional design delivery model one-time encoding;

[0203] If the index value is positive, the lower end data is accumulated on the basis of the maximum value of the upper end data.

[0204] In one embodiment, the computer program, when executed by the processor, further implements the following steps:

[0205] The conversion of the heterogeneous data into the target model includes adjusting the scaling, rotation, and position of the target model.

[0206] For specific limitations of the steps implemented by the computer program when executed by the processor, refer to the limitations of the method for converting the three-dimensional design delivery model described above, which will not be repeated here.

[0207] Embodiment 5

[0208] In embodiment 5, a computer device is provided, which can be a server, and the internal structure diagram thereof can be as shown in Figure 5 The computer device includes a processor, a memory, a network interface, and a database connected through a system bus. 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 external terminals through network connection. The computer program is executed by the processor to implement a method for converting a three-dimensional design delivery model.

[0209] Those skilled in the art can understand that, Figure 5The structure shown in the figure is only a block diagram of part of the structure related to the scheme of the present application, and does not constitute a limitation on the computer device to which the scheme of the present application is applied. The specific computer device can 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, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:

[0211] A manner of parsing a three-dimensional design delivery model format is set, an initial format of the three-dimensional design delivery model is obtained, it is judged whether the initial format is a target format, if not, it is determined that the three-dimensional design delivery model is heterogeneous data;

[0212] A three-dimensional design delivery model format conversion method is constructed, which is used to convert the initial format into the target format;

[0213] The heterogeneous data is imported 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] The saving file name of the target model is defined, the saving position of the target model is selected, and the target model is output.

[0216] In one embodiment, the processor further implements the following steps when executing the computer program:

[0217] The initial format includes one of glTF, JT, 3DXML, DXF, IVE, OSG, NVM, FLT, IV, 3DS, FBX, OBJ, WRL, STL, NVZ; the target format is set by inputting a file format suffix name or by selecting a browse dialog box; and the target format includes one of osg, ive, nvm, nvz, flt, iv, dxf, 3ds, 3dxml, step, iges, dae, xml.

[0218] In one embodiment, the processor further implements the following steps when executing the computer program:

[0219] The three-dimensional design delivery model format conversion method includes:

[0220] The data layout and index value positive and negative of the heterogeneous data are identified, and the data layout and index value positive and negative of the three-dimensional design delivery model of the target format are identified.

[0221] comparing the difference between the data layout and the index value of the heterogeneous data and the data layout and the index value of the three-dimensional design delivery model of the target format;

[0222] performing file layout conversion processing on the heterogeneous data according to the difference, and extracting and integrating the model data after the conversion processing and data optimization;

[0223] performing texture coordinate conversion processing on the heterogeneous data according to the difference;

[0224] judging the index value, integrating the patch index according to the index value, and converting to obtain the three-dimensional design delivery model of the target format.

[0225] In one embodiment, the processor, when executing the computer program, also implements the following steps:

[0226] the texture coordinate conversion processing on the heterogeneous data according to the difference includes:

[0227] judging whether the heterogeneous data has texture coordinate data;

[0228] if the heterogeneous data does not have texture coordinate data, adding texture coordinate data to the heterogeneous data;

[0229] if the heterogeneous data has texture coordinate data, judging whether the texture coordinate data in the heterogeneous data is in three-dimensional coordinate form or two-dimensional coordinate form, and for texture coordinate data having three values, using homogeneous coordinates to process the texture coordinate data, and obtaining a temporary file by dividing the first two values by the third value;

[0230] the temporary file appears in the order of vertex index, texture index, and normal vector index, and the conversion processing on the temporary file is continued, the model data is set to zero, and at the end of the conversion processing, the index value is processed to make all index values re-encoded and keep each index value unique.

[0231] In one embodiment, the processor, when executing the computer program, also implements the following steps:

[0232] the integration of the patch index according to the index value includes:

[0233] if the index value is negative, finding the minimum value in the upper data and accumulating on the basis of the minimum value to make all index values of the three-dimensional design delivery model one-time encoded;

[0234] if the index value is positive, accumulating the lower data on the basis of the maximum value of the upper data.

[0235] In one embodiment, the computer program, when executed by the processor, further implements the following steps:

[0236] The converting the heterogeneous data into a target model includes adjusting the scale, rotation, and position of the target model.

[0237] For specific limitations of the steps implemented by the processor when executing the computer program, refer to the limitations of the method for converting a three-dimensional design delivery model above, which are not repeated here.

[0238] Embodiment 6

[0239] In embodiment 6, a computer-readable storage medium is provided, which stores a computer program. The computer program, when executed by a processor, implements the following steps:

[0240] The way of parsing the three-dimensional design delivery model format is set, the initial format of the three-dimensional design delivery model is obtained, it is judged whether the initial format is the target format, if not, it is determined that the three-dimensional design delivery model is heterogeneous data;

[0241] A three-dimensional design delivery model format conversion method is constructed, which is used to convert the initial format into the target format;

[0242] The heterogeneous data is imported 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. The format of the target model is the target format;

[0244] The save file name of the target model is defined, the save location of the target model is selected, and the target model is output.

[0245] In one embodiment, the computer program, when executed by the processor, further implements the following steps:

[0246] The initial format includes one of glTF, JT, 3DXML, DXF, IVE, OSG, NVM, FLT, IV, 3DS, FBX, OBJ, WRL, STL, NVZ; the target format is set by inputting the file format suffix name or by selecting through a browse dialog box; the target format includes one of osg, ive, nvm, nvz, flt, iv, dxf, 3ds, 3dxml, step, iges, dae, xml.

[0247] In one embodiment, the computer program, when executed by the processor, further implements the following steps:

[0248] The method for converting the three-dimensional design delivery model format comprises the following steps:

[0249] identifying the data layout and index value positive and negative of the heterogeneous data and identifying the data layout and index value positive and negative of the three-dimensional design delivery model in the target format;

[0250] comparing the difference content of the data layout and index value positive and negative of the heterogeneous data and the data layout and index value positive and negative 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, extracting and integrating the model data after the conversion processing and performing data optimization;

[0252] performing texture coordinate conversion processing on the heterogeneous data according to the difference content;

[0253] judging the index value positive and negative, integrating the patch index according to the index value positive and negative and converting to obtain the three-dimensional design delivery model in the target format.

[0254] In one embodiment, the computer program is executed by the processor to further implement the following steps:

[0255] the texture coordinate conversion processing on the heterogeneous data according to the difference content comprises the following steps:

[0256] judging whether the heterogeneous data has texture coordinates;

[0257] if the heterogeneous data does not have texture coordinate data, adding texture coordinate data to the heterogeneous data;

[0258] if the heterogeneous data has texture coordinate data, judging whether the texture coordinate data in the heterogeneous data is in three-dimensional coordinate form or two-dimensional coordinate form, processing the texture coordinate data having three values by using homogeneous coordinates, obtaining 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 vector index, the conversion of the temporary file is continued, the model data is set to zero, the index value is processed at the end of the conversion, all index values are re-encoded and each index value is kept unique.

[0260] In one embodiment, the computer program is executed by the processor to further implement the following steps:

[0261] the integration of the patch index according to the index value positive and negative by judging the index value positive and negative comprises the following steps:

[0262] If the index value is negative, the minimum value in the upper end data is found and added on the basis of the minimum value so that all index values of the three-dimensional design delivery model are once encoded;

[0263] If the index value is positive, the lower end data is added on the basis of the maximum value of the upper end data.

[0264] In one embodiment, the computer program, when executed by the processor, further implements the following steps:

[0265] The converting the heterogeneous data into the target model includes adjusting the scale, rotation and position of the target model.

[0266] The specific limitations of the steps implemented by the computer program when executed by the processor can be found in the above limitations of the method of converting the three-dimensional design delivery model, 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 a computer program instructing related hardware. 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 above-mentioned embodiments of the method. Any reference to memory, storage, database or other medium used in the embodiments provided by the present 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 but not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), 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) and the like.

[0268] Finally, it should be noted that: the above is only the preferred embodiment of the present application, and is not used to limit the present application, although the present application has been described in detail with reference to the foregoing embodiments, for those skilled in the art, the technical solutions recorded in the foregoing embodiments can be modified, or some technical features can be replaced. Any modification, equivalent replacement, improvement, etc. within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A method for converting a three-dimensional design delivery model, characterized in that, The method includes the following steps: The method for parsing the 3D design delivery model format is set to obtain the initial format of the 3D design delivery model, and it is determined whether the initial format is the target format. If not, the 3D design delivery model is determined to be heterogeneous data. A method for converting the format of a 3D design delivery model is constructed to convert the initial format into the target format; Import the heterogeneous data into the 3D design delivery model conversion system; The heterogeneous data is converted into a target model using the aforementioned 3D design delivery model format conversion method. The target model is in the target format. Define the file name for saving the target model, select the save location for the target model, and output the target model; The method for converting the format of the 3D design delivery model includes: Identify the data layout and index value sign of the heterogeneous data, and identify the data layout and index value sign of the 3D design delivery model in the target format; Compare the data layout and index values ​​of the heterogeneous data with the data layout and index values ​​of the target format 3D design delivery model to identify the differences. Based on the differences, the heterogeneous data is transformed into a file layout, and the transformed model data is extracted, integrated, and optimized. Based on the differences, the heterogeneous data is subjected to texture coordinate transformation. By judging the positive or negative of the index value, the face index is integrated according to the positive or negative index value, and the target format three-dimensional design delivery model is obtained.

2. The method for converting a three-dimensional design delivery model 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 the file format extension or by selecting it through a browse dialog box; the target format includes one of osg, ive, nvm, nvz, flt, iv, dxf, 3ds, 3dxml, step, iges, dae, and xml.

3. The method for converting a three-dimensional design delivery model according to claim 1, characterized in that, The process of performing texture coordinate transformation on the heterogeneous data based on the differences includes: Determine whether the heterogeneous data contains texture coordinates; If texture coordinate data is not present in the heterogeneous data, add texture coordinate data to the heterogeneous data; If texture coordinate data exists in the heterogeneous data, determine whether the texture coordinate data in the heterogeneous data is in three-dimensional coordinate form or two-dimensional coordinate form. For texture coordinate data with three values, use homogeneous coordinates to process it, 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 vector index. The temporary file is then transformed to consolidate the model data. Finally, the index values ​​are processed to re-encode all index values, ensuring that each index value is unique.

4. The method for converting a three-dimensional design delivery model according to claim 1, characterized in that, The step of integrating the slice index by judging the positive or negative sign of the index value includes: If the index value is negative, find the minimum value in the upper data and accumulate 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, then the value of the next segment is accumulated based on the maximum value of the previous segment.

5. The method for converting a three-dimensional design delivery model according to claim 1, characterized in that, The process of converting the heterogeneous data into a target model includes adjusting the scaling, rotation, and position of the target model.

6. A three-dimensional design delivery model conversion device, characterized in that, For implementing the three-dimensional design delivery model conversion method according to any one of claims 1 to 5, the apparatus comprises: The file loading module is used to set the 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 the target format, and if not, determine that the 3D design delivery model is heterogeneous data. The format conversion module is used to construct a 3D design delivery model format conversion method, which is used to convert the initial format into the target format; The heterogeneous data import interface module is used to import the heterogeneous data into the 3D design delivery model conversion system; The format conversion processing module is used to perform format conversion processing on the heterogeneous data using the 3D design delivery model format conversion method, converting the heterogeneous data into a target model, wherein the target model is in the target format. The conversion output module is used to define the file name of the target model, select the save location of the target model, and output the target model.

7. A three-dimensional design delivery model conversion device according to claim 6, characterized in that, Also includes: The format output interface module is used to output the target model in the target format; The transformation attribute setting module is used to set the attribute parameters of the target model; The system settings module is used to set the general transformation attribute parameters of the target model.

8. 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, it implements the steps of the method according to any one of claims 1 to 5.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Fusion method of building BIM model and live-action three-dimensional model

    CN110807835A