Method, equipment, medium and product for converting reference replication model into entity model

By obtaining and updating the element index information and parameters of the reference replication model, the entity model is solved, and the reference replication model cannot be directly converted into a entity model and cannot realize the linkage modification of multiple models is improved, and the model processing efficiency and data integrity are improved. Provides a data basis for co-production of ships.

CN119248862APending Publication Date: 2025-01-03SHANGHAI MERCHANT SHIP DESIGN & RES INST
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411333218.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-24
Publication Date
2025-01-03

AI Technical Summary

Technical Problem

In ship modeling software, the reference replication model cannot be directly converted into a solid model, and the linkage modification of multiple reference replication models cannot be achieved, affecting the model processing efficiency.

Method used

By obtaining the element index information of the reference copy object in the geometric object collection of the initial model, calling the source object collection and reference copy parameters, updating the temporary storage object collection, generating a solid model corresponding to the reference copy object, and realizing multiple references Linked modification of the replication model.

Benefits of technology

The accurate conversion of reference replication model to solid model is realized, the model processing efficiency is improved, the data foundation is provided for the coordinated production of ships, and the quality of model transmission between heterogeneous platforms is ensured.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119248862A_ABST
    Figure CN119248862A_ABST
Patent Text Reader

Abstract

The invention discloses a method and equipment for converting a reference copy model into an entity model, a medium and a product. According to the specific scheme, if it is determined that an object element corresponding to a reference copy object exists based on a geometric object set of an initial model, element index information of the object element is obtained; according to the element index information, calling the source object set and a reference copy parameter of the reference copy object, determining target copy data corresponding to the reference copy object, and updating the target copy data to a pre-created temporary storage object set; and updating the geometric object set based on the temporary storage object set to generate an entity model corresponding to the reference replicated object based on the updated geometric object set. According to the method, accurate conversion from the reference replication model to the entity model is realized, linkage modification processing on the plurality of reference replication models is realized, the model processing efficiency is improved, and a data basis is provided for collaborative production of ships.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a method, device, medium and product for converting a reference copy model into a physical model. Background Art

[0002] In the process of modeling ship data using ship modeling software, in order to improve efficiency, the data of the source model is usually processed by reference replication to obtain multiple reference replication models.

[0003] However, the above method has the following two problems. First, when the reference copy model is converted and output based on general formats such as IFC and STP, since the reference copy model only contains the entity data of the source model and the parameters of the reference copy model, the corresponding entity model cannot be directly generated. Second, in the case where a reference copy model needs to be modified, since multiple reference copy models are copied based on the principle of reference replication, the reference copy models can only be modified one by one, and the linkage modification of multiple reference copy models cannot be achieved. Furthermore, the above-mentioned modification of the reference copy models one by one affects the efficiency of model processing. Summary of the invention

[0004] The present invention provides a method, device, medium and product for converting a reference copy model into a physical model, which realizes the accurate conversion of the reference copy model into the physical model, realizes the linkage modification processing of multiple reference copy models, improves the efficiency of model processing, and provides a data basis for the collaborative production of ships.

[0005] According to one aspect of the present invention, a method for converting a reference replica model into a solid model is provided, the method comprising:

[0006] If it is determined based on the geometric object set of the initial model that an object element corresponding to the reference copy object exists, then element index information of the object element is obtained;

[0007] Retrieving the source object set and the reference replication parameters of the reference replication object according to the element index information, determining the target replication data corresponding to the reference replication object, and updating the target replication data to the pre-created temporary storage object set;

[0008] The geometric object set is updated based on the temporary storage object set to generate a solid model corresponding to the reference copy object based on the updated geometric object set.

[0009] According to another aspect of the present invention, there is provided a device for converting a reference replica model into a physical model, the device comprising:

[0010] An index information acquisition module, used for acquiring element index information of an object element if it is determined that an object element corresponding to a reference copy object exists based on the geometric object set of the initial model;

[0011] A replication data determination module, used to retrieve a source object set and reference replication parameters of a reference replication object according to element index information, determine target replication data corresponding to the reference replication object, and update the target replication data to a pre-created temporary storage object set;

[0012] The entity model generation module is used to update the geometric object set based on the temporary storage object set, so as to generate a entity model corresponding to the reference copy object based on the updated geometric object set.

[0013] According to another aspect of the present invention, there is provided an electronic device, the electronic device comprising:

[0014] at least one processor; and

[0015] a memory communicatively connected to at least one processor; wherein,

[0016] The memory stores a computer program executable by at least one processor, and the computer program is executed by at least one processor so that the at least one processor can execute the method for converting a reference copy model into a physical model according to any embodiment of the present invention.

[0017] According to another aspect of the present invention, a computer-readable storage medium is provided, which stores computer instructions for implementing the method of converting a reference copy model of any embodiment of the present invention into a solid model when executed by a processor.

[0018] According to another aspect of the present invention, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the method for converting a reference replica model into a solid model as in any embodiment of the present invention.

[0019] The technical solution of the embodiment of the present invention is to obtain the element index information of the object element when it is determined that there is an object element corresponding to the reference copy in the geometric object set of the initial model. The reference copy parameters of the source object set and the reference copy object are retrieved according to the element index information, the target copy data corresponding to the reference copy object is determined, and the target copy data is updated to the pre-created temporary storage object set. The geometric object set is updated based on the temporary storage object set to generate a solid model corresponding to the reference copy object based on the updated geometric object set, thereby realizing accurate conversion from the reference copy model to the solid model, solving the problem in the prior art that the solid model cannot be directly generated and the problem that multiple reference copy models cannot be modified in a linked manner. By determining the solid model in the above manner, the quality of model transmission between heterogeneous platforms is guaranteed, providing a data basis for collaborative ship production.

[0020] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0022] Figure 1 is a flow chart of a method for converting a reference replica model into a solid model provided by an embodiment of the present invention;

[0023] Figure 2 is an example diagram of a physical model provided by an embodiment of the present invention;

[0024] Figure 3 is a flow chart of a method for converting a reference replica model into a solid model provided by an embodiment of the present invention;

[0025] Figure 4 is an example diagram of a method for converting a reference replica model into a solid model provided by an embodiment of the present invention;

[0026] Figure 5 It is a structural schematic diagram of a device for converting a reference replica model into a physical model provided by an embodiment of the present invention;

[0027] Figure 6 The invention is a schematic structural diagram of an electronic device for implementing the method of converting a reference replica model into a physical model according to an embodiment of the present invention. DETAILED DESCRIPTION

[0028] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0030] Embodiment 1

[0031] Figure 1 This is a flowchart of a method for converting a reference replica model into a physical model provided by the first embodiment of the present invention. This embodiment can be applied to converting a reference replica model in ship design to ensure complete data expression. The method can be executed by a device for converting a reference replica model into a physical model. The device for converting a reference replica model into a physical model can be implemented in the form of hardware and / or software. The device for converting a reference replica model into a physical model can be configured in electronic devices such as mobile phones, computers or servers. Figure 1 As shown, the method includes:

[0032] S110. If it is determined based on the geometric object set of the initial model that an object element corresponding to the reference copy object exists, then element index information of the object element is obtained.

[0033] The reference copy object is an object obtained by copying the source object in the target ship. The target ship may be the currently selected ship that needs to be converted into a model. The initial model may be understood as the original model corresponding to the target ship. The geometric object set may be a set of geometric objects corresponding to the components constituting the target ship. For example, taking the bolts on the hull as an example, the geometric object set may include different types of geometric bodies such as cylinders, prisms, and hemispheres. The source object is the original object in the geometric object set. The reference copy object is an object obtained by copying the source object by reference. For the geometric object set, different categories of geometric objects have different category labels. According to the category labels corresponding to the reference copy objects, which ones are reference copy objects are determined from the geometric object set. The object element of the reference copy object is used to characterize the reference copy object in the geometric object set. The element index information is used to locate the object element corresponding to the reference copy object from the geometric object set. Optionally, the element index information may be an integer, a string, etc. For example, the element index information may be k, k=300, that is, the object element of the reference copy object is the 300th object element in the geometric object set.

[0034] Specifically, since the category labels corresponding to geometric objects of different categories in the geometric object set are different, when the geometric object set corresponding to the initial model is received, the geometric object set is traversed according to the category label corresponding to the reference copy object, and the object element corresponding to the reference copy object in the geometric object set is determined, and the element index information of the object element is obtained.

[0035] Exemplarily, when the geometric object set entities of the initial model is obtained, the geometric object set is traversed, and according to the category label corresponding to the reference copy object, it is determined whether there is a reference copy object in the geometric object set. If there is a reference copy object, the object element entities[k] corresponding to the reference copy object and the element index information k of the object element are determined.

[0036] S120 , retrieving a source object set and reference replication parameters of a reference replication object according to the element index information, determining target replication data corresponding to the reference replication object, and updating the target replication data to a pre-created temporary storage object set.

[0037] Among them, the source object set can be understood as a set of source objects corresponding to the reference copy object. The reference copy parameters can be understood as various parameters corresponding to the reference copy object. Optionally, the reference copy parameters may include information such as the number of copies of the reference copy object, the offset distance, and the offset angle. The target copy data may be a geometric instance object obtained by recursively transforming the reference copy object. The temporary storage object set may be a pre-created geometric object set for storing the target copy data.

[0038] Specifically, the source object set corresponding to the reference copy object and the reference copy object's reference copy parameters such as offset distance, offset angle and copy quantity are retrieved according to the reference copy object. According to the source object set and the reference copy parameters, the source objects in the source object set are recursively transformed to obtain the target copy data corresponding to the reference copy object. The target copy data is temporarily stored in a pre-created temporary storage object set.

[0039] Exemplarily, in combination with the above example, in order to prevent data loss or tampering, the reference copy object can be deep copied to perform subsequent processing based on the deep copied reference copy object. According to the element index information k of the reference copy object, the source object set is retrieved and the reference copy parameters such as the number of copies, direction vector, offset distance and offset angle of the reference copy object are obtained. According to the reference copy parameters, the points and vectors of each source object in the source object set are recursively transformed to obtain the target copy data. The target copy data is stored in the pre-established temporary storage object set NewEntities.

[0040] S130. Update the geometric object set based on the temporary storage object set, so as to generate a solid model corresponding to the reference copy object based on the updated geometric object set.

[0041] The entity model can be a entity model obtained after all reference copy objects are solidified. For example, the entity model can be found in Figure 2 The dark blue part of the model.

[0042] Specifically, according to the element index information of the reference copy object corresponding to the target copy data in the temporary storage object set, the target copy data is updated to the object element position corresponding to the geometric object set to obtain an updated geometric object set. All the target copy data in the updated geometric object set are solidified to generate a solid model corresponding to the reference copy object.

[0043] Optionally, the method of updating the geometric object set may be: based on the element index information corresponding to the target copy data, the target copy data in the temporary storage object set is updated to the object element corresponding to the element index information in the geometric object set.

[0044] Specifically, according to the element index information corresponding to the target copy data, the object element corresponding to the element index information in the geometric object set is removed, and the target copy data in the temporary storage object set is inserted into the object element corresponding to the element index information.

[0045] Exemplarily, in combination with the above example, according to the element index information k of the reference copy object, the object element corresponding to the element index information k in the geometric object set is removed, and the target copy data in the temporary storage object set NewEntities is inserted into the element index information k to obtain an updated geometric object set. All reference copy objects in the updated geometric object set are solidified to obtain a solid model corresponding to the reference copy object.

[0046] The technical solution of this embodiment is to obtain the element index information of the object element when it is determined that there is an object element corresponding to the reference copy in the geometric object set of the initial model. The source object set and the reference copy parameters of the reference copy object are retrieved according to the element index information, the target copy data corresponding to the reference copy object is determined, and the target copy data is updated to the pre-created temporary storage object set. The geometric object set is updated based on the temporary storage object set to generate a solid model corresponding to the reference copy object based on the updated geometric object set, thereby achieving accurate conversion from the reference copy model to the solid model, solving the problem in the prior art that the solid model cannot be directly generated and the problem that multiple reference copy models cannot be modified in a linked manner. The above-mentioned method of determining the solid model ensures the quality of model transmission between heterogeneous platforms, providing a data basis for collaborative ship production.

[0047] Embodiment 2

[0048] Figure 3 This is a flowchart of a method for converting a reference copy model into a physical model provided by the second embodiment of the present invention. This embodiment is based on the above embodiment and refines the step of "calling the source object set and the reference copy parameters of the reference copy object according to the element index information to determine the target copy data corresponding to the reference copy object". The specific implementation method can be found in the technical solution of this embodiment. Among them, the technical terms that are the same or corresponding to the above embodiment are not repeated here. Figure 3 As shown, the method includes:

[0049] S210. If it is determined based on the geometric object set of the initial model that an object element corresponding to the reference copy object exists, then element index information of the object element is obtained.

[0050] S220. Retrieve a source object set based on the element index information, wherein the source object set is used to store object composition parameters of a source object to which the reference copy object belongs.

[0051] The object composition parameters may include coordinate data and vectors of points constituting the source object. For example, taking the source object as a cylinder, the object composition parameters may include the coordinates of the bottom point of the cylinder and the vector corresponding to the cylinder itself.

[0052] Specifically, the object composition parameters of the source object to which the reference copy object belongs are retrieved according to the element index set, so as to perform subsequent coordinate system transformation processing based on the object composition parameters in the source object set.

[0053] S230. For the object composition parameters, based on the offset vector, offset distance and offset angle in the reference replication parameters, determine the coordinate information and coordinate system transformation rotation quaternion corresponding to the object composition parameters.

[0054] Among them, the offset vector can be understood as the moving direction vector corresponding to the coordinate system transformation. For example, the offset vector can be used to indicate in which direction the coordinates are moved. The offset distance can be understood as the moving distance corresponding to the coordinate system transformation. The offset angle can be the moving angle corresponding to the coordinate system transformation. The coordinate information can be the coordinate data corresponding to the object composition parameters. For example, the coordinate information can be the entity coordinate origin of the coordinate system where the object composition parameters are located. The coordinate system transformation rotation quaternion can be a quaternion used to perform a three-dimensional coordinate system transformation on the object composition parameters.

[0055] Specifically, by referring to the offset vector, offset distance and offset angle in the replication parameters, the corresponding coordinate information and coordinate system transformation rotation quaternion are determined during the coordinate system transformation, so as to perform coordinate system transformation processing on the object composition parameters based on the coordinate information and the coordinate system transformation rotation quaternion.

[0056] S240 . Determine reference copy data corresponding to the object composition parameters and the reference copy object based on the coordinate information corresponding to the object composition parameters and the coordinate system transformation rotation quaternion.

[0057] The reference replication data may be data obtained after coordinate system transformation of the object composition parameters. For example, the reference replication data may include points and vectors after coordinate system transformation.

[0058] Specifically, according to the coordinate information of the object composition parameters and the coordinate system transformation rotation quaternion, recursive coordinate system transformation processing is performed on each object composition parameter of the source object to determine the transformed reference replication data. Based on this, the coordinate system transformation processing of each source object to which the reference replication object belongs is realized.

[0059] It should be noted that, since object constituent parameters may be recursively nested when coordinate system transformation is performed, the object constituent parameters may be recursively transformed.

[0060] Exemplarily, the source object set is traversed, and the coordinates and vectors of the points in each source object corresponding to the reference copy object are recursively transformed to obtain the coordinate data of the transformed points and the transformed vectors, ie, the reference copy data.

[0061] In an embodiment of the present invention, the method for determining the reference replication data can be: based on the initial coordinate system of the object composition parameters and the coordinate system transformation rotation quaternion, determining the target coordinate system of the object composition parameters under the replication reference object; determining the target coordinates of the initial coordinates of the object composition parameters in the initial coordinate system in the target coordinate system; based on the object composition parameters and the target coordinates, determining the reference replication data of the object composition parameters under the reference replication object.

[0062] The initial coordinate system can be understood as the coordinate system corresponding to the source object. The target coordinate system is the coordinate system corresponding to the reference copy object. The initial coordinates are the coordinate data of the object composition parameters in the initial coordinate system. The target coordinates are the coordinates of the points in the object composition parameters in the target coordinate system.

[0063] Specifically, according to the initial coordinate system of the object composition parameters under the source object and the coordinate system transformation rotation quaternion, the target coordinate system of the object composition parameters under the copy reference object is determined. According to the initial coordinates of the object composition parameters under the initial coordinates, the coordinate system transformation rotation quaternion is used to determine the target coordinates of the object composition parameters in the target coordinate system. According to the object composition parameters and the target coordinates, the reference copy data is obtained.

[0064] S250 . Determine target replication data of the reference replication object based on the reference replication data of each object constituent parameter, and update the target replication data into a pre-created temporary storage object set.

[0065] Specifically, since each source object can contain one or more object composition parameters, the target copy data of the reference copy object corresponding to the source object can be determined based on the reference copy data of each object composition parameter corresponding to the source object, and the target copy data can be stored in a temporary storage object set to entity the target copy data in the temporary storage object set to obtain an entity model.

[0066] Optionally, based on the reference replication quantity in the reference replication parameter, the object composition parameter is processed to obtain target replication data corresponding to each reference replication object.

[0067] The reference replication number can be understood as the number of the same reference replication objects. For example, if the reference replication object is a cylinder and the reference replication number of the cylinder is five, it means that the source object corresponding to the reference replication object needs to be transformed into the coordinate system five times to obtain five target replication data.

[0068] Specifically, according to the reference replication number in the reference replication parameter, the coordinate system transformation processing is performed on the object composition parameter to obtain the target replication data of the current reference replication object. Based on this, the target replication data corresponding to the parameter replication number is obtained, and the linkage modification of multiple reference replication models is realized, which improves the efficiency of model processing.

[0069] S260: Update the geometric object set based on the temporary storage object set, so as to generate a solid model corresponding to the reference copy object based on the updated geometric object set.

[0070] The technical solution of this embodiment is to obtain the element index information of the object element when it is determined that there is an object element corresponding to the reference copy in the geometric object set of the initial model. The source object set is retrieved based on the element index information, wherein the source object set is used to store the object composition parameters of the source object to which the reference copy object belongs, and provide a transformation object for the subsequent coordinate system transformation. For the object composition parameters, the coordinate information corresponding to the object composition parameters and the coordinate system transformation rotation quaternion are determined based on the offset vector, offset distance and offset angle in the reference copy parameters, and a transformation method is provided for the subsequent coordinate system change. Based on the coordinate information corresponding to the object composition parameters and the coordinate system transformation rotation quaternion, the reference copy data corresponding to the object composition parameters and the reference copy object are determined. Based on the reference copy data of each object composition parameter, the target copy data of the reference copy object is determined, and the target copy data is updated to the pre-created temporary storage object set. Based on the temporary storage object set, the geometric object set is updated to generate a solid model corresponding to the reference copy object based on the updated geometric object set, so as to realize the accurate conversion of the reference copy model to the solid model, and solve the problem that the solid model cannot be directly generated in the prior art and the problem that multiple reference copy models cannot be modified in a linked manner. By determining the entity model in the above manner, the quality of model transfer between heterogeneous platforms is ensured, providing a data basis for collaborative ship production.

[0071] Embodiment 3

[0072] Figure 4This is an example diagram of a method for converting a reference replica model into a physical model provided by the third embodiment of the present invention. This embodiment is an optional embodiment of the above embodiment. The specific implementation method can refer to the technical solution of this embodiment. Among them, the technical terms that are the same or corresponding to the above embodiment are not repeated here. Next, combined with Figure 4 To illustrate the technical solution provided by the embodiment of the present invention:

[0073] First, the geometric object set of the initial model is traversed to determine the reference copy object and the object index information corresponding to the reference copy object.

[0074] The object index information is the element index information mentioned in the above embodiment.

[0075] Specifically, when the parser receives the geometric object set entities of the initial model, it determines whether there is a reference copy object in the geometric object set. If there is no reference copy object, the geometric object set entities is returned. If there is a reference copy object, the geometric object set is traversed to determine the current geometric object entities[k] and object index information. The object type of the current geometric object is determined to determine whether the current geometric object is a reference copy object. If the current geometric object is a reference copy object, the object index information k of the current geometric object is used as the object index information k of the reference copy object, so as to perform sub-loop processing based on the reference copy object entities[k] and the object index information k. Among them, the object type corresponds to the category label mentioned in the above embodiment.

[0076] Secondly, a deep copy process is performed on the reference copy object to obtain a deep copy object, and the deep copy object is parsed to obtain reference copy parameters corresponding to the reference copy object.

[0077] The deep copy object is an object obtained by copying the reference copy object. The content of the deep copy object is consistent with the content of the reference copy object.

[0078] Specifically, a deep copy process is performed on the reference copy object to obtain a duplicate object. The duplicate object is parsed to obtain reference copy parameters such as the origin of the coordinate system, direction vector, spacing, angle, and number of copies corresponding to the reference copy object. Among them, the direction vector is the offset vector mentioned in the above embodiment. The spacing is the offset distance mentioned in the above embodiment. The angle is the offset angle mentioned in the above embodiment. The number of copies is the reference copy number mentioned in the above embodiment.

[0079] Next, a loop is performed based on the reference copy parameters to determine the offset coordinate origin and the coordinate system transformation rotation quaternion.

[0080] The offset coordinate origin corresponds to the coordinate information of the object constituent parameters mentioned in the above embodiment.

[0081] Specifically, the offset coordinate origin and coordinate system transformation quaternion are calculated according to the direction vector, spacing, angle, etc. in the reference replication parameters. According to the number of replications in the reference replication parameters, the offset coordinate origin and coordinate system transformation quaternion corresponding to each reference replication object are determined.

[0082] After that, the source object set corresponding to the reference copy object is traversed, and the points and vectors in each source object are recursively transformed to obtain the transformed points and vectors. The deep copy object is updated based on the transformed points and vectors, and the transformed points and vectors are updated to the pre-created new geometric object set.

[0083] The points and vectors in the source object correspond to the object composition parameters mentioned in the above embodiment. The transformed points and vectors correspond to the reference replication data mentioned in the above embodiment. The pre-created new geometric object set corresponds to the temporary storage object set mentioned in the above embodiment.

[0084] Specifically, traverse the reference copy object set corresponding to the duplicate object, and perform deep copy processing on the reference copy object set to obtain the entity object. According to the offset coordinate origin and coordinate system rotation quaternion, recursively transform the points and vectors in each entity object to obtain the transformed points and vectors. Add the transformed points and vectors to the pre-created new geometric object set NewEntities. In addition, modify the references of the points and vectors in the entity object to the transformed points and vectors. Add the entity object to the new geometric object set NewEntities.

[0085] Next, the reference copy object corresponding to the object index information in the geometric object set of the initial model is removed, and the geometric object set of the initial model is updated according to the new geometric object set.

[0086] Specifically, the reference copy object at the object index information k in the geometric object set entities of the initial model is removed, and the new geometric object set NewEntities after the data is added is inserted into the object index information k.

[0087] Finally, a mirrored solid model is generated according to the updated geometric object set of the initial model.

[0088] The mirror image entity model is the entity model mentioned in the above embodiment.

[0089] Specifically, a mirror entity model is generated according to the updated geometric object set entities.

[0090] The technical solution of this embodiment is to determine the reference copy object and the object index information corresponding to the reference copy object by traversing the geometric object set of the initial model in the parent loop after the initial model geometric object set and enter the sub-loop. In the sub-loop, the reference copy object is deep copied to obtain the deep copy object and determine the reference copy parameters corresponding to the deep copy object. Based on the reference copy parameters, the points and vectors in each source object are recursively transformed to obtain the transformed points and vectors and add them to the new geometric object set in sequence. Based on this, the complete data expression of the reference copy object is realized. Then the sub-loop is jumped out. In the parent loop, the new geometric object set generated by the sub-loop is inserted into the corresponding position of the object index information of the geometric object of the initial model, and the original reference copy object is deleted synchronously. According to the updated geometric object set of the initial model, a mirrored entity model is generated, and the accurate conversion from the reference copy model to the entity model is realized, which solves the problem that the entity model cannot be directly generated in the prior art and the problem that multiple reference copy models cannot be modified in a linked manner. Through the above-mentioned method of determining the entity model, the quality of model transmission between heterogeneous platforms is guaranteed, and a data basis is provided for collaborative production of ships.

[0091] Embodiment 4

[0092] Figure 5 Schematic diagram of a device for converting a reference replica model into a physical model provided by the fourth embodiment of the present invention. Figure 5 As shown, the device includes: an index information acquisition module 310 , a copy data determination module 320 and a solid model generation module 330 .

[0093] The index information acquisition module 310 is used to obtain the element index information of the object element if it is determined that the object element corresponding to the reference copy object exists based on the geometric object set of the initial model; the copy data determination module 320 is used to call the source object set and the reference copy parameters of the reference copy object according to the element index information, determine the target copy data corresponding to the reference copy object, and update the target copy data to a pre-created temporary storage object set; the entity model generation module 330 is used to update the geometric object set based on the temporary storage object set, so as to generate a entity model corresponding to the reference copy object based on the updated geometric object set.

[0094] The technical solution of this embodiment is to obtain the element index information of the object element when it is determined that there is an object element corresponding to the reference copy in the geometric object set of the initial model. The source object set and the reference copy parameters of the reference copy object are retrieved according to the element index information, the target copy data corresponding to the reference copy object is determined, and the target copy data is updated to the pre-created temporary storage object set. The geometric object set is updated based on the temporary storage object set to generate a solid model corresponding to the reference copy object based on the updated geometric object set, thereby achieving accurate conversion from the reference copy model to the solid model, solving the problem in the prior art that the solid model cannot be directly generated and the problem that multiple reference copy models cannot be modified in a linked manner. The above-mentioned method of determining the solid model ensures the quality of model transmission between heterogeneous platforms, providing a data basis for collaborative ship production.

[0095] On the basis of the above embodiment, optionally, the replication data determination module includes: a collection calling unit, which is used to call the source object collection based on element index information, wherein the source object collection is used to store object composition parameters of the source object to which the reference replication object belongs; a quaternion determination unit, which is used to determine, for the object composition parameters, the coordinate information corresponding to the object composition parameters and the coordinate system transformation rotation quaternion based on the offset vector, offset distance and offset angle in the reference replication parameters; a reference replication data determination unit, which is used to determine the reference replication data corresponding to the object composition parameters and the reference replication object based on the coordinate information corresponding to the object composition parameters and the coordinate system transformation rotation quaternion; and a target replication data determination unit, which is used to determine the target replication data of the reference replication object based on the reference replication data of each object composition parameter.

[0096] Optionally, the device further includes: a parameter processing module, configured to process the object composition parameters based on the reference replication quantity in the reference replication parameters to obtain target replication data corresponding to each reference replication object.

[0097] Optionally, a reference replication data determination unit is used to determine the target coordinate system of the object composition parameters under the replication reference object based on the initial coordinate system of the object composition parameters and the coordinate system transformation rotation quaternion; determine the target coordinates of the initial coordinates of the object composition parameters in the initial coordinate system in the target coordinate system; and determine the reference replication data of the object composition parameters under the reference replication object based on the object composition parameters and the target coordinates.

[0098] Optionally, the entity model generation module is used to update the target copy data in the temporary storage object set to the object element corresponding to the element index information in the geometric object set according to the element index information corresponding to the target copy data.

[0099] Optionally, the reference copy object is an object obtained by copying the source object in the target ship.

[0100] The device for converting a reference copy model into a physical model provided in an embodiment of the present invention can execute the method for converting a reference copy model into a physical model provided in any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method.

[0101] Embodiment 5

[0102] Figure 6 1 is a schematic diagram of the structure of an electronic device provided in Embodiment 5 of the present invention. The electronic device 10 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0103] like Figure 6 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0104] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0105] The processor 11 may be a variety of general and / or dedicated processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The processor 11 performs the various methods and processes described above, such as a method for converting a reference replica model into a physical model.

[0106] In some embodiments, the method of converting a reference replica model into a physical model may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the method of converting a reference replica model into a physical model described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the method of converting a reference replica model into a physical model in any other appropriate manner (e.g., by means of firmware).

[0107] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0108] The computer program for implementing the method of converting the reference replica model to the entity model of the present invention can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general-purpose computer, a special-purpose computer or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program can be executed completely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or completely on a remote machine or server.

[0109] Embodiment 6

[0110] Embodiment 6 of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to cause a processor to execute a method for converting a reference copy model into a physical model, the method comprising:

[0111] If it is determined based on the geometric object set of the initial model that there is an object element corresponding to the reference copy object, the element index information of the object element is obtained; the source object set and the reference copy parameters of the reference copy object are retrieved according to the element index information, the target copy data corresponding to the reference copy object is determined, and the target copy data is updated to a pre-created temporary storage object set; the geometric object set is updated based on the temporary storage object set to generate a solid model corresponding to the reference copy object based on the updated geometric object set.

[0112] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0113] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0114] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0115] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0116] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0117] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for converting a reference replica model into a solid model, characterized in that: include: If it is determined based on the geometric object set of the initial model that an object element corresponding to the reference copy object exists, then obtaining element index information of the object element; Retrieving the source object set and the reference replication parameters of the reference replication object according to the element index information, determining the target replication data corresponding to the reference replication object, and updating the target replication data to the pre-created temporary storage object set; The geometric object set is updated based on the temporary storage object set to generate a solid model corresponding to the reference copy object based on the updated geometric object set.

2. The method according to claim 1, characterized in that The step of retrieving the source object set and the reference replication parameter of the reference replication object according to the element index information and determining the target replication data corresponding to the reference replication object includes: Retrieving a source object set based on the element index information, wherein the source object set is used to store object composition parameters of the source object to which the reference copy object belongs; For the object composition parameters, based on the offset vector, offset distance and offset angle in the reference replication parameters, determine the coordinate information and coordinate system transformation rotation quaternion corresponding to the object composition parameters; Determining reference replication data corresponding to the object composition parameters and the reference replication object based on the coordinate information corresponding to the object composition parameters and the coordinate system transformation rotation quaternion; Based on the reference replication data of each object constituting parameter, target replication data of the reference replication object is determined.

3. The method according to claim 2, characterized in that The method further comprises: Based on the reference replication quantity in the reference replication parameter, the object composition parameter is processed to obtain target replication data corresponding to each reference replication object.

4. The method according to claim 2, characterized in that: The step of determining the reference copy data corresponding to the object composition parameters and the reference copy object based on the coordinate information corresponding to the object composition parameters and the coordinate system transformation rotation quaternion includes: Determine the target coordinate system of the object composition parameters under the copy reference object based on the initial coordinate system of the object composition parameters and the coordinate system transformation rotation quaternion; Determine the target coordinates of the initial coordinates of the object constituent parameters in the initial coordinate system in the target coordinate system; Based on the object composition parameters and the target coordinates, reference replication data of the object composition parameters under the reference replication object is determined.

5. The method according to claim 1, characterized in that The updating of the geometric object set based on the temporary storage object set includes: According to the element index information corresponding to the target copy data, the target copy data in the temporary storage object set is updated to the object element corresponding to the element index information in the geometric object set.

6. The method according to claim 1, characterized in that The reference copy object is an object obtained by copying the source object in the target ship.

7. A device for converting a reference replica model into a physical model, characterized in that: include: An index information acquisition module, configured to acquire element index information of an object element if it is determined that an object element corresponding to a reference copy object exists based on the geometric object set of the initial model; A replication data determination module, configured to retrieve a source object set and reference replication parameters of the reference replication object according to the element index information, determine target replication data corresponding to the reference replication object, and update the target replication data to a pre-created temporary storage object set; The entity model generation module is used to update the geometric object set based on the temporary storage object set, so as to generate a entity model corresponding to the reference copy object based on the updated geometric object set.

8. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so as to enable the at least one processor to perform the method for converting a reference replica model into a solid model according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for converting a reference replica model into a physical model according to any one of claims 1 to 6 when executed.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the computer program implements the method for converting a reference replica model into a solid model according to any one of claims 1 to 6.