Web-oriented three-dimensional entity model reconstruction method and device, equipment and medium

By analyzing, transforming and matching the three-dimensional solid model, the problems of display limitations of the three-dimensional model in the web page environment in the prior art are solved, and the effect of fully retaining and transmitting manufacturing information in the web page environment is achieved.

CN119722956APending Publication Date: 2025-03-28ZHEJIANG GEELY HLDG GRP CO LTD +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411950890.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-27
Publication Date
2025-03-28

AI Technical Summary

Technical Problem

There are limitations in the direct rendering and display of the three-dimensional solid models created by existing three-dimensional modeling software in the web environment, and the existing format conversion tools ignore product manufacturing information during the conversion process, resulting in the converted model being unable to completely retain and transmit manufacturing information.

Method used

By analyzing and transforming the three-dimensional solid model, obtaining assembly node information and topology information, and obtaining the target model information through matching and fusion methods, and finally storing it according to the preset storage format to reconstruct the three-dimensional solid model.

Benefits of technology

It realizes the complete preservation and transmission of the manufacturing information of the three-dimensional solid model in the web environment, so that the converted model can be effectively applied in the downstream production and manufacturing links.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119722956A_ABST
    Figure CN119722956A_ABST
Patent Text Reader

Abstract

The invention discloses a web-oriented three-dimensional entity model reconstruction method and device, equipment and a medium. The method comprises the following steps: performing model analysis on the three-dimensional entity model to obtain first assembly node information and first topological information of the three-dimensional entity model; performing model conversion on the three-dimensional entity model to obtain second assembly node information and second topological information of the three-dimensional entity model; carrying out matching fusion on the first assembly node information and the second assembly node information, carrying out matching fusion on the first topological information and the second topological information according to corresponding association features, and obtaining target model information according to a matching fusion result; and storing the target model information according to a preset storage format to reconstruct the three-dimensional entity model. By implementing the method provided by the invention, the problem that the three-dimensional solid model cannot be effectively converted in the prior art due to the fact that the manufacturing information cannot be completely reserved after the three-dimensional solid model is converted can be solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of model reconstruction, and in particular to a web-oriented three-dimensional solid model reconstruction method, device, equipment and medium. Background Art

[0002] With the booming development of the industrial and intelligent manufacturing fields, many companies are actively participating in the wave of digital transformation. In this process, three-dimensional solid models have gradually replaced two-dimensional CAD drawings in traditional structural design and become the dominant way to express solid models. This transformation ensures the uniqueness of product data throughout the entire life cycle, effectively eliminates ambiguity in the data transmission process, and thus improves the efficiency and quality of product design. However, the three-dimensional solid models created by the current mainstream three-dimensional modeling software have limitations in direct rendering and display in the web environment, so it is usually necessary to convert the model into a standard file format to meet the needs of web display. However, the existing format conversion tools often only retain the geometric information of the model during the conversion process, while ignoring the critical product manufacturing information, resulting in the inability of the converted three-dimensional solid model to fully retain and transmit the product manufacturing information, and its application in the downstream production and manufacturing links is severely restricted. Summary of the invention

[0003] The embodiments of the present invention provide a web-oriented three-dimensional solid model reconstruction method, device, equipment and medium, aiming to solve the problem that the three-dimensional solid model cannot be effectively converted in the prior art.

[0004] In a first aspect, an embodiment of the present invention provides a web-oriented three-dimensional solid model reconstruction method, comprising: performing model parsing on the three-dimensional solid model to obtain first assembly node information and first topology information of the three-dimensional solid model; performing model conversion on the three-dimensional solid model to obtain second assembly node information and second topology information of the three-dimensional solid model; matching and fusing the first assembly node information with the second assembly node information, and matching and fusing the first topology information with the second topology information according to corresponding association features, and obtaining target model information according to the matching and fusion results; storing the target model information according to a preset storage format to reconstruct the three-dimensional solid model.

[0005] In a second aspect, an embodiment of the present invention further provides a web-oriented three-dimensional solid model reconstruction device, comprising: a parsing unit, used to perform model parsing on the three-dimensional solid model, and obtain first assembly node information and first topology information of the three-dimensional solid model; a conversion unit, used to perform model conversion on the three-dimensional solid model, and obtain second assembly node information and second topology information of the three-dimensional solid model; a matching unit, used to match and fuse the first assembly node information with the second assembly node information, and match and fuse the first topology information with the second topology information according to corresponding associated features, and obtain target model information according to the matching and fusion results; a reconstruction unit, used to store the target model information according to a preset storage format to reconstruct the three-dimensional solid model.

[0006] In a third aspect, an embodiment of the present invention further provides a computer device, which includes a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the above method when executing the computer program.

[0007] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the storage medium stores a computer program, wherein the computer program includes program instructions, and the program instructions can implement the above method when executed by a processor.

[0008] The embodiment of the present invention provides a web-oriented 3D solid model reconstruction method, device, equipment and medium. The method includes: parsing the 3D solid model to obtain the first assembly node information and the first topology information of the 3D solid model; converting the 3D solid model to obtain the second assembly node information and the second topology information of the 3D solid model; matching and fusing the first assembly node information with the second assembly node information, and matching and fusing the first topology information with the second topology information according to the corresponding association features, and obtaining the target model information according to the matching and fusing results; storing the target model information according to a preset storage format to reconstruct the 3D solid model. The embodiment of the present invention re-parses the three-dimensional solid model input by the user to obtain the first assembly node information and the first topology information, and while parsing, traverses the model with format conversion to obtain the second assembly node information and the second topology information, and merges the corresponding assembly node information and topology information according to the associated features, so that each assembly node or topological element has complete information, and stores the complete target model information according to a preset format, so that any web page can obtain and display all the information of the three-dimensional solid model, and the converted three-dimensional solid model can completely retain and transmit the manufacturing information of the product, thereby effectively converting the three-dimensional solid model. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0010] Figure 1 A schematic diagram of a process of a web-oriented 3D solid model reconstruction method provided by an embodiment of the present invention;

[0011] Figure 2 A schematic diagram of a sub-process of a web-oriented 3D solid model reconstruction method provided by an embodiment of the present invention;

[0012] Figure 3 A schematic diagram of a sub-process of a web-oriented 3D solid model reconstruction method provided by an embodiment of the present invention;

[0013] Figure 4 A schematic diagram of a sub-process of a web-oriented 3D solid model reconstruction method provided by an embodiment of the present invention;

[0014] Figure 5 A schematic diagram of a sub-process of a web-oriented 3D solid model reconstruction method provided by an embodiment of the present invention;

[0015] Figure 6 A schematic diagram of a sub-process of a web-oriented 3D solid model reconstruction method provided by an embodiment of the present invention;

[0016] Figure 7 A schematic diagram of a sub-process of a web-oriented 3D solid model reconstruction method provided by an embodiment of the present invention;

[0017] Figure 8 A schematic block diagram of a web-oriented 3D solid model reconstruction device provided by an embodiment of the present invention;

[0018] Fig. 9 A schematic block diagram of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0019] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are 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 are within the scope of protection of the present invention.

[0020] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

[0021] It should also be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0022] It should be further understood that the term "and / or" used in the present description and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0023] See also Figure 1 , Figure 1 A flow chart of a web-oriented 3D solid model reconstruction method provided in an embodiment of the present invention. The web-oriented 3D solid model reconstruction method in this embodiment can be applied to a 3D solid model reconstruction system to reconstruct any constructed 3D solid model, wherein the 3D solid model can be a model of any workpiece, and the 3D solid model can be parsed according to the secondary development interface provided by the 3D modeling software to obtain the assembly node information and topology information of the model, and then the neutral format file exported by the 3D modeling software is read through the open source geometry engine and the software development platform OCC (OpenCascade) to obtain another assembly node information and topology information of the model, and the information obtained twice is integrated to obtain all the data of the model, so that any web page can obtain and display all the information of the 3D solid model.

[0024] Figure 1 The figure is a flow chart of a web-oriented three-dimensional solid model reconstruction method provided by an embodiment of the present invention. As shown in the figure, the method includes the following steps S110-S140.

[0025] S110, performing model analysis on the three-dimensional solid model to obtain first assembly node information and first topology information of the three-dimensional solid model.

[0026] In this embodiment, the three-dimensional solid model is a model with three-dimensional data constructed by three-dimensional production software through a virtual three-dimensional space, wherein any complex structure can be displayed by a three-dimensional model. Specifically, it can be created by various three-dimensional modeling software (such as CATIA, CREO, NX, SolidWorks). The three-dimensional solid model input by the user is received, and the three-dimensional solid model is traversed and parsed through the secondary development interface provided by the three-dimensional modeling software. If the three-dimensional solid model input by the user cannot be parsed by the existing secondary development interface, the user is prompted to export the three-dimensional solid model input by the user as a neutral format file before operating. When exporting, please select the standard: ISO 10303AP242 (AP 242 protocol under ISO 10303 standard, that is, STEP 242, a neutral format). Among them, the neutral format file is a file format that does not depend on a specific software or platform. This file format can realize the exchange and sharing of data between different systems and platforms, thereby avoiding compatibility problems caused by software differences. The assembly node is the key to constructing a three-dimensional solid model. The assembly relationship in the model is a tree structure, in which each part or component is called an assembly node. The assembly node information describes all the manufacturing information of the assembly node. The topology information is information describing the topological elements of the parts in the assembly. Among them, the first assembly node information and the first topology information can be obtained by performing model parsing on the three-dimensional solid model through a preset secondary development interface. By performing model parsing on the three-dimensional solid model, the basic information of the components in the model can be obtained so that the information can be fused later.

[0027] In one embodiment, if Figure 2 As shown, the step S110 includes steps S111-S113.

[0028] S111, processing the three-dimensional solid model through a preset secondary development interface to obtain a first assembly structure tree;

[0029] S112, traversing the first assembly structure tree according to a preset traversal algorithm to obtain manufacturing information of each first assembly node;

[0030] S113: Associating and binding the manufacturing information with the first assembly node to obtain the first assembly node information, wherein the first assembly node information includes the ID, name, inheritance object and bound manufacturing information of the first assembly node.

[0031] In the present embodiment, the preset secondary development interface is a secondary development interface plug-in of a preset mainstream CAD modeling software (CATIA, CREO, NX, SolidWorks). Wherein, if the three-dimensional solid model imported by the user cannot be processed by the preset secondary development interface, the user is reminded to convert the format of the three-dimensional solid model into a neutral format before operating. After receiving the three-dimensional solid model, the preset secondary development interface will generate an assembly structure tree according to the model, wherein the specific generation method is not limited, and the assembly structure tree that can generate the model is sufficient, and the first assembly structure tree can clearly show the child objects and the parent object of the assembly node. Traverse the first assembly structure tree according to the preset traversal algorithm, wherein the preset traversal algorithm is a traversal algorithm pre-set in the interface, in the present embodiment, the preset traversal algorithm is a depth-first algorithm, and the depth-first algorithm is an algorithm for traversing or searching a tree or a graph, starting from the starting node, searching as deeply as possible along the depth direction of the tree, until reaching a certain end of a leaf node or a graph, then backtracking to the previous node, and continuing to search other unvisited branches. When traversing the first assembly structure tree by the depth-first algorithm, an index ID is assigned to each node, and the manufacturing information stored in each first assembly node is obtained, wherein the manufacturing information (PMI information) is the information of design, manufacturing, quality and other relevant data contained in the 3DCAD file, specifically including the name, type, material, source and other information of the assembly node. It should be noted that all nodes in the first assembly structure tree are the first assembly nodes, not a certain assembly node. The manufacturing information is associated and bound with the first assembly node, specifically, the manufacturing information is associated and bound with the ID of the assembly node, wherein the first assembly node information generated after binding can be stored in the form of an adjacency list, the first assembly node information includes the ID, name, inheritance object and the bound manufacturing information of the first assembly node, the inheritance object is the object that the current assembly node inherits or is inherited, specifically the parent object and child object of the assembly node. By obtaining the first assembly node information of each assembly node, all the manufacturing information in the three-dimensional solid model is obtained, so that the three-dimensional solid model can be reconstructed.

[0032] In one embodiment, if Figure 3 As shown, step S112 includes steps S1121-S1123.

[0033] S1121, determining whether the node type of the first assembly node is a part type;

[0034] S1122, if yes, then obtain all first topological elements of the part and their corresponding geometric information through a preset boundary representation method;

[0035] S1123. Search the manufacturing information for topological manufacturing information corresponding to the first topological element according to the geometric features, associate and bind the first topological element with its corresponding geometric information and the topological manufacturing information, and obtain the first topological information, wherein the geometric information includes the geometric features.

[0036] In this embodiment, the assembly node is a key component in the three-dimensional solid model, which is composed of parts or components, so the type of the assembly node includes component type or part type, the information of the assembly node is read, and whether the node type of the first assembly node is a part type is determined according to the read information. If the first assembly node is a part, all the first topological elements of the part and their corresponding geometric information are obtained through a preset boundary representation method, wherein the preset boundary representation method is a method for describing all the topological elements and geometric information of the part. In this embodiment, the preset boundary representation method is the B-Rep (Boundary Representation, boundary representation method) is a method for representing geometric shapes. B-Rep represents an entity through a set of connected surface elements, which define the boundaries between internal and external points, mainly including topological elements (surfaces, lines and points) and the connection relationship between them, and these topological elements (surfaces, lines and points) also have corresponding geometric definitions. According to B-Rep, the entire part entity is traversed to obtain all the first topological elements (surfaces, lines and points) of the part and their corresponding geometric information, wherein the first topological element refers to the element in the part, and an index ID is assigned to each topological element. The topological manufacturing information corresponding to the first topological element is searched in the manufacturing information according to the geometric features. Specifically, the topological manufacturing information corresponding to the first topological element is searched in the manufacturing information according to the geometric features in the geometric information, and the first topological element is associated and bound with the geometric information corresponding to it and the topological manufacturing information to obtain the first topological information. Specifically, the geometric information and the topological manufacturing information are mapped and associated, that is, the topological manufacturing information corresponding to each geometric information is determined and bound, wherein the binding can be performed according to the geometric features jointly depicted in the geometric information and the topological manufacturing, and there is no limitation on this, and it is sufficient to be able to associate the geometric information of the topological element with the topological manufacturing information of the topological element. The generated first topological information can be expressed as:

[0037]

[0038] Among them, Line represents a straight line, B_Spline represents a B-spline curve, and Edge_Loop refers to a closed loop composed of a series of connected edges. Face and Edge are the topological surface and topological line in the topological element, respectively. By associating and binding the first topological element with its corresponding geometric information and the topological manufacturing information, the first topological information is obtained to obtain the geometric information and manufacturing information of each part in the three-dimensional solid model, providing a data basis for data reconstruction of the three-dimensional solid model.

[0039] S120: Perform model conversion on the three-dimensional solid model to obtain second assembly node information and second topology information of the three-dimensional solid model.

[0040] In this embodiment, the second assembly node information and the second topology information are another assembly node information and another topology element information obtained after the three-dimensional solid model is model-converted, wherein it can be understood that the assembly node is the same as the first assembly node, and only the corresponding information is different, and the topology element is the same. The three-dimensional solid model is model-converted, specifically, the format of the three-dimensional solid model input by the user is converted to a neutral format file, wherein the definition of the neutral format file has been explained in the above content and will not be repeated here. The converted neutral format file is read and parsed by OCC, wherein OCC (Open CASCADE) is an open source geometric modeling engine, which is mainly used to develop two-dimensional and three-dimensional geometric modeling applications, provides services through object-oriented C++ class libraries, and supports cross-platform use. OCC supports model input and output and standard data exchange formats, and the three-dimensional solid model is model-converted by OCC to obtain the second assembly node information and the second topology information of the three-dimensional solid model. The three-dimensional solid model is converted to obtain basic information of the three-dimensional solid model in another expression form, so that all data in the three-dimensional solid model can be obtained, so that any web page can obtain and display all information of the three-dimensional solid model.

[0041] In one embodiment, if Figure 4 As shown, the step S120 includes steps S121-S122.

[0042] S121, reading the three-dimensional solid model by a preset reading method to obtain a second assembly structure tree;

[0043] S122: traverse the second assembly structure tree, and obtain second assembly node information of each second assembly node, wherein the second assembly node information includes the ID, name, and inheritance object of the assembly node.

[0044] In this embodiment, the preset reading method is a method for reading a three-dimensional solid model through OCC, and the three-dimensional solid model is read through OCC to generate a second assembly structure tree, wherein the second assembly structure tree is generated according to all assembly nodes, for example, the first assembly node is obtained, and then the sub-assembly node corresponding to the first assembly node is obtained to generate a tree structure diagram with all assembly nodes. The second assembly structure tree is traversed, and a corresponding index ID is assigned to each node in the tree, and the second assembly node information of each second assembly node is obtained, wherein the second assembly node refers to all nodes in the second assembly structure tree, specifically, the second assembly structure tree can be traversed through a depth-first algorithm, and the second assembly node information of each second assembly node in the tree is obtained, wherein the assembly node information is information describing the assembly node, and the inheritance object is the parent object or child object corresponding to the assembly node, and the second assembly node information includes the ID, name, ID of the parent object, and IDs of all child objects of the second assembly node, wherein each parent object or child object has an ID as identification information. It should be noted that the second assembly node information does not include the manufacturing information of the second assembly node. The second assembly structure tree is generated by reading the three-dimensional solid model according to OCC, and the second assembly structure tree is traversed to obtain the second assembly node information of the assembly node, so as to obtain the assembly information in the three-dimensional solid model in another way to ensure the comprehensiveness of the total information obtained.

[0045] In one embodiment, if Figure 5 As shown, the step S122 includes steps S1221-S1222.

[0046] S1221, determining whether the node type of the second assembly node is a part type, and if so, obtaining all second topological elements of the part and their corresponding geometric information;

[0047] S1222. Convert the format of the geometric information corresponding to the second topological element by using a preset conversion method to obtain the second topological information.

[0048] In this embodiment, the node type is information describing the type of the assembly node, wherein the node type can be a component type or a part type. When reading the second assembly node information of each second assembly node, the node type of the assembly node can be obtained, and whether the second assembly node is a part is determined according to the node type. If it is a part, all the second topological elements of the part and their corresponding geometric information are obtained. Specifically, the interconnected surface elements describing the part entity are obtained through B-Rep (Boundary Representation). These surface elements define the boundaries between internal and external points, mainly including topological elements (surfaces, lines and points) and the connection relationship between them. At the same time, these topological elements (surfaces, lines and points) also have corresponding geometric information. All the second topological elements (surfaces, lines, points) of the part and their corresponding geometric information are obtained through B-Rep, wherein the second topological element refers to the element in the part, and the geometric information is the coordinates of the topological points in the topological elements, the length of the topological lines, and the area of ​​the topological surfaces. The obtained second topological element and its corresponding geometric information are converted into a format using a preset conversion method to obtain the second topological information. Specifically, the topological line can be described by a number of coordinates, and the topological surface can be described by a triangular mesh to obtain the corresponding second topological information. The geometric information corresponding to the second topological element is converted into a format using a preset conversion method to obtain the second topological information in a preset format. The second topological information after the format conversion can improve the transmission efficiency and rendering performance of the model.

[0049] In one embodiment, if Figure 6 As shown, the step S1222 includes steps S12221-S12224.

[0050] S12221. Obtain coordinate information of the topological point;

[0051] S12222, equally divide the topological line according to a preset number of divisions to obtain multiple topological line coordinates;

[0052] S12223, dividing the topological surface into triangular meshes by a preset division algorithm to obtain a mesh topological surface;

[0053] S12224. Compress the coordinate information of the topological point, the coordinates of the multiple topological lines, and the grid topological surface using a preset compression algorithm to obtain the second topological information.

[0054] In this embodiment, the topological element includes a topological point, a topological line and a topological surface, and the coordinate information of all topological points in the topological element is obtained. The topological line is evenly divided according to a preset number of divisions to obtain multiple topological line coordinates. Specifically, the topological line can be divided according to the preset number of divisions, and the coordinates of each point after division are obtained as the topological line coordinates, wherein the preset number of divisions can be specifically set according to the length of the topological line, and this is not limited, wherein the topological line coordinates can jointly depict the topological line. The topological surface is triangulated by a preset division algorithm to obtain a mesh topological surface, wherein the preset division algorithm is an algorithm for dividing the topological surface into triangular meshes, and in this embodiment, the preset division algorithm is a mesh division algorithm based on iterative subdivision (BRepMesh_Incrementa-lMesh), and the mesh division algorithm based on iterative subdivision approximates complex geometric shapes into a series of small triangles by iteratively subdividing the topological surface, and generates the vertex coordinates and normal vectors of each triangle. That is, the mesh topological surface is a topological surface composed of multiple triangular meshes, and has the point coordinates and normal vectors of each triangle. The coordinate information of the acquired topological points and the coordinates of the multiple topological lines and the mesh topological surface are compressed by a preset compression algorithm, wherein the preset compression algorithm is the Draco algorithm, which is an open source 3D graphics compression library that supports high-performance compression of 3D meshes and point cloud data. The coordinate information of the topological points and the geometric data such as the coordinates of the multiple topological lines and the mesh topological surface are optimized and stored by the Draco algorithm to generate the second topological information. It can be understood that after the topological surface is divided into a triangular mesh by a preset partitioning algorithm, multiple repeated points and normal vectors will be generated. Therefore, data compression by the Draco algorithm can reduce redundant information. By converting the topological element information to describe the complex geometric information in a simpler way, and compressing the converted data to reduce the amount of data, the encoding, transmission and decoding process of the 3D data is accelerated, so that the reconstructed three-dimensional solid model can achieve faster and more space-saving effects in network transmission and storage.

[0055] S130: Match and fuse the first assembly node information with the second assembly node information, and match and fuse the first topology information with the second topology information according to corresponding association features, and acquire target model information according to the matching and fusion results.

[0056] In this embodiment, the target model information is composed of the fused assembly node information and topological information, and the first assembly node information is matched and fused with the second assembly node information. Specifically, the first assembly node information and the second assembly node information can be matched and fused according to the characteristics of the assembly node. For example, the corresponding second assembly node a is searched in the second assembly node information according to the name, type, parent object, child object set and other information of the first assembly node A in the first assembly node information, and the information corresponding to the second assembly node a is fused with the node information of the first assembly node A to obtain new assembly node information. The topological information can be matched and fused through geometric information to obtain new topological information, and the target model information is constructed according to the new assembly node information and the new topological information. By matching and fusing the first assembly node information with the second assembly node information, and matching and fusing the first topological information with the second topological information to obtain the target model information, the data of the complete and concise three-dimensional solid model is obtained, and the problem of data loss during the model conversion process is effectively avoided.

[0057] In one embodiment, if Figure 7 As shown, the step S130 includes steps S131-S133.

[0058] S131, matching the first assembly node with the second assembly node according to the name, type and inheritance relationship of the assembly node, fusing the node information of the matched assembly nodes, and acquiring target assembly node information;

[0059] S132: Match the first topological element with the second topological element according to the geometric information, fuse the topological information of the matched topological elements, and obtain target topological information;

[0060] S133: Determine the target model information according to the target assembly node information and the target topology information.

[0061] In this embodiment, the first assembly node and the second assembly node are respectively the information of the assembly nodes obtained by different parsing and traversal methods. Wherein, the first assembly node information includes: the ID, name, inheritance object and bound manufacturing information of the first assembly node, and the second assembly node information includes the name, type and inheritance relationship of the assembly node of the assembly node. Wherein, the IDs of the assembly nodes are different, and the names and inheritance objects are the same. Therefore, the assembly nodes can be matched according to the name, type, parent object and child object of the assembly node. Specifically, the corresponding second assembly node a is searched in the second assembly node information according to the name, type, parent object and child object of the first assembly node A, and the information corresponding to the second assembly node a is merged with the node information of the first assembly node A, and a new ID is assigned to the assembly node that is successfully matched to obtain the target assembly node information, wherein the target assembly node information includes the new ID, name, inheritance object and bound manufacturing information. The first topological element is matched with the second topological element according to the geometric information, wherein the first topological element includes the topological element ID, type, geometric information, and manufacturing information associated with the topological element, and the second topological element includes: the topological element ID, type, and geometric information after format conversion. According to the geometric information of the first topological element B, the corresponding second topological element b is searched in the second topological information, and the information corresponding to the second topological element b is merged with the information of the first topological element B, and a new ID is assigned to the successfully matched topological element to obtain the target topological information, and the target topological information includes: the new topological element ID, type, converted geometric information, and manufacturing information associated with the topological element. The geometric information in the first topological element is not merged. And the target model information is determined according to the target assembly node information and the target topological information. By matching the assembly node with the topological element, the corresponding information can be merged while monitoring whether there are missing assembly nodes and topological elements, so as to more efficiently ensure the integrity of the three-dimensional solid model data.

[0062] S140. Storing the target model information according to a preset storage format to reconstruct the three-dimensional solid model.

[0063] In this embodiment, the preset storage format is a structure and format for storing the target model information. The target model information is stored according to the preset storage format, specifically, the target model information is stored in a custom JSON structure, so as to generate a lightweight model file after the reconstruction of the three-dimensional solid model, wherein the JSON structure is a lightweight data exchange format, which uses a text format independent of the programming language to store and represent data. Among them, the specific JSON structure is not limited, and it is sufficient to be able to fully represent all the data information of the three-dimensional solid model. By storing the target model information according to the preset storage format to reconstruct the three-dimensional solid model, the network transmission efficiency of the reconstructed three-dimensional solid model is effectively improved, and the integrity of the data is ensured, so that the three-dimensional solid model can be rendered and displayed on any web page without losing data.

[0064] Figure 8 FIG. 2 is a schematic block diagram of a web-oriented 3D solid model reconstruction device 200 provided in an embodiment of the present invention. Figure 8 As shown, corresponding to the above three-dimensional solid model reconstruction method for web, the present invention also provides a three-dimensional solid model reconstruction device for web. The three-dimensional solid model reconstruction device for web includes a unit for executing the above three-dimensional solid model reconstruction method for web, and the device can be configured in a desktop computer, a tablet computer, a laptop computer, etc. Specifically, please refer to Figure 8 The web-oriented three-dimensional solid model reconstruction device includes a parsing unit 210, a conversion unit 220, a matching unit 230 and a reconstruction unit 240.

[0065] The parsing unit 210 is used to perform model parsing on the three-dimensional solid model to obtain first assembly node information and first topology information of the three-dimensional solid model.

[0066] In one embodiment, the parsing unit 210 includes a processing unit, a first acquiring unit, and an associating unit.

[0067] A processing unit, used for processing the three-dimensional solid model through a preset secondary development interface to obtain a first assembly structure tree;

[0068] A first acquisition unit, configured to traverse the first assembly structure tree according to a preset traversal algorithm to acquire manufacturing information of each first assembly node;

[0069] The association unit is used to associate and bind the manufacturing information with the first assembly node to obtain the first assembly node information, wherein the first assembly node information includes the ID, name, inheritance object and bound manufacturing information of the first assembly node.

[0070] In one embodiment, the analyzing unit 210 includes a first determining unit, a second acquiring unit, and a searching unit.

[0071] A first judging unit, used to judge whether the node type of the first assembly node is a part type;

[0072] A second acquisition unit is used to acquire all first topological elements of the part and their corresponding geometric information through a preset boundary representation method;

[0073] A search unit is used to search for topological manufacturing information corresponding to the first topological element in the manufacturing information according to geometric features, associate and bind the first topological element with its corresponding geometric information and the topological manufacturing information, and obtain the first topological information, wherein the geometric information includes the geometric features.

[0074] The conversion unit 220 is used to perform model conversion on the three-dimensional solid model to obtain second assembly node information and second topology information of the three-dimensional solid model.

[0075] In one embodiment, the conversion unit 220 includes a reading unit and a traversal unit.

[0076] A reading unit, used to read the three-dimensional solid model by a preset reading method to obtain a second assembly structure tree;

[0077] The traversal unit is used to traverse the second assembly structure tree and obtain the second assembly node information of each second assembly node, wherein the second assembly node information includes the ID, name and inheritance object of the assembly node.

[0078] In one embodiment, the conversion unit 220 includes a second determination unit and a third acquisition unit.

[0079] A second judging unit is used to judge whether the node type of the second assembly node is a part type, and if so, obtain all second topological elements of the part and their corresponding geometric information;

[0080] The third acquisition unit is used to convert the format of the geometric information corresponding to the second topological element through a preset conversion method to obtain the second topological information.

[0081] In one embodiment, the conversion unit 220 includes a fourth acquisition unit, an equal division unit, a division unit, and a compression unit.

[0082] A fourth acquisition unit, used to acquire coordinate information of the topological point;

[0083] An averaging unit, used to averagely divide the topological line according to a preset number of divisions to obtain coordinates of multiple topological lines;

[0084] A division unit, used to divide the topological surface into triangular meshes by a preset division algorithm to obtain a mesh topological surface;

[0085] A compression unit is used to compress the coordinate information of the topological point, the coordinates of the plurality of topological lines and the mesh topological surface through a preset compression algorithm to obtain the second topological information.

[0086] The matching unit 230 is used to match and fuse the first assembly node information with the second assembly node information, and match and fuse the first topology information with the second topology information according to corresponding association features, and obtain target model information according to the matching and fusion results.

[0087] In one embodiment, the matching unit 230 includes a first matching unit, a second matching unit and a determining unit.

[0088] A first matching unit is used to match the first assembly node with the second assembly node according to the name, type and inheritance relationship of the assembly node, fuse the node information of the matched assembly nodes, and obtain the target assembly node information;

[0089] A second matching unit, configured to match the first topological element with the second topological element according to geometric information, fuse topological information of the matched topological elements, and obtain target topological information;

[0090] A determination unit is used to determine the target model information according to the target assembly node information and the target topology information.

[0091] The reconstruction unit 240 is used to store the target model information according to a preset storage format to reconstruct the three-dimensional solid model.

[0092] It should be noted that technicians in the relevant field can clearly understand that the specific implementation process of the above-mentioned web-oriented three-dimensional solid model reconstruction device 200 and each unit can refer to the corresponding description in the aforementioned method embodiment, and for the convenience and brevity of description, it will not be repeated here.

[0093] The above-mentioned web-oriented three-dimensional solid model reconstruction device can be implemented in the form of a computer program, which can be used in Fig. 9 Runs on the computer device shown.

[0094] See also Fig. 9 , Fig. 95 is a schematic block diagram of a computer device provided in an embodiment of the present application. The computer device 500 may be a terminal or a server, wherein the terminal may be an electronic device with communication functions such as a smart phone, a tablet computer, a laptop computer, a desktop computer, a personal digital assistant, and a wearable device. The server may be an independent server or a server cluster composed of multiple servers.

[0095] See also Fig. 9 The computer device 500 includes a processor 502 , a memory and a network interface 505 connected via a system bus 501 , wherein the memory may include a non-volatile storage medium 503 and an internal memory 504 .

[0096] The non-volatile storage medium 503 can store an operating system 5031 and a computer program 5032. The computer program 5032 includes program instructions, and when the program instructions are executed, the processor 502 can execute a web-oriented three-dimensional solid model reconstruction method.

[0097] The processor 502 is used to provide computing and control capabilities to support the operation of the entire computer device 500 .

[0098] The internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can execute a web-oriented three-dimensional solid model reconstruction method.

[0099] The network interface 505 is used to communicate with other devices over the network. Fig. 9 The structure shown in the figure is merely a block diagram of a portion of the structure related to the solution of the present application, and does not constitute a limitation on the computer device 500 to which the solution of the present application is applied. The specific computer device 500 may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0100] The processor 502 is used to run a computer program 5032 stored in the memory to implement the steps of the above method.

[0101] It should be understood that in the embodiment of the present application, the processor 502 may be a central processing unit (CPU), and the processor 502 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0102] It can be understood by those skilled in the art that all or part of the processes in the method for implementing the above embodiment can be completed by instructing the relevant hardware through a computer program. The computer program includes program instructions, and the computer program can be stored in a storage medium, which is a computer-readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the process steps of the embodiment of the above method.

[0103] Therefore, the present invention also provides a storage medium. The storage medium may be a computer-readable storage medium. The storage medium stores a computer program, wherein the computer program includes program instructions. When the program instructions are executed by a processor, the processor executes the steps of the above method.

[0104] The storage medium may be a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk, or an optical disk, etc., which are computer-readable storage media that can store program codes.

[0105] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0106] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of each unit is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.

[0107] The steps in the method of the embodiment of the present invention can be adjusted in order, combined and deleted according to actual needs. The units in the device of the embodiment of the present invention can be combined, divided and deleted according to actual needs. In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0108] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, terminal, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention.

[0109] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. A web-oriented 3D solid model reconstruction method, characterized in that: include: Performing model analysis on the three-dimensional solid model to obtain first assembly node information and first topology information of the three-dimensional solid model; Performing model conversion on the three-dimensional solid model to obtain second assembly node information and second topology information of the three-dimensional solid model; Matching and fusing the first assembly node information with the second assembly node information, and matching and fusing the first topology information with the second topology information according to corresponding association features, and acquiring target model information according to the matching and fusing results; The target model information is stored according to a preset storage format to reconstruct the three-dimensional solid model.

2. The method according to claim 1, characterized in that The step of performing model parsing on the three-dimensional solid model to obtain the first assembly node information of the three-dimensional solid model includes: Processing the three-dimensional solid model through a preset secondary development interface to obtain a first assembly structure tree; Traversing the first assembly structure tree according to a preset traversal algorithm to obtain manufacturing information of each first assembly node; The manufacturing information is associated and bound to the first assembly node to obtain the first assembly node information, wherein the first assembly node information includes the ID, name, inheritance object and bound manufacturing information of the first assembly node.

3. The method according to claim 2, characterized in that After the step of traversing the first assembly structure tree according to a preset traversal algorithm to obtain the manufacturing information of each first assembly node, the method includes: Determining whether the node type of the first assembly node is a part type; If yes, all the first topological elements of the part and their corresponding geometric information are obtained through a preset boundary representation method; The topological manufacturing information corresponding to the first topological element is searched in the manufacturing information according to the geometric features, the first topological element is associated and bound with its corresponding geometric information and the topological manufacturing information, and the first topological information is obtained, wherein the geometric information includes the geometric features.

4. The method according to claim 3, characterized in that The step of performing model conversion on the three-dimensional solid model to obtain the second assembly node information of the three-dimensional solid model comprises: Read the three-dimensional solid model by a preset reading method to obtain a second assembly structure tree; The second assembly structure tree is traversed, and second assembly node information of each second assembly node is acquired, wherein the second assembly node information includes the ID, name, and inheritance object of the assembly node.

5. The method according to claim 4, characterized in that After the step of traversing the second assembly structure tree and acquiring the second assembly node information of each second assembly node, the method further includes: Determine whether the node type of the second assembly node is a part type, and if so, obtain all second topological elements of the part and their corresponding geometric information; The geometric information corresponding to the second topological element is converted into a format using a preset conversion method to obtain the second topological information.

6. The method according to claim 5, characterized in that The second topological element includes: a topological point, a topological line, and a topological surface. The step of converting the geometric information corresponding to the second topological element into a format by a preset conversion method to obtain the second topological information includes: Obtaining coordinate information of the topological point; Divide the topological line equally according to a preset number of divisions to obtain multiple topological line coordinates; Divide the topological surface into triangular meshes using a preset division algorithm to obtain a mesh topological surface; The coordinate information of the topological point, the coordinates of the plurality of topological lines and the mesh topological surface are compressed using a preset compression algorithm to obtain the second topological information.

7. The method according to claim 6, characterized in that The step of matching and fusing the first assembly node information with the second assembly node information, matching and fusing the first topology information with the second topology information according to corresponding association features, and acquiring target model information according to the matching and fusing results includes: Matching the first assembly node with the second assembly node according to the name, type and inheritance relationship of the assembly node, fusing the node information of the matched assembly nodes, and acquiring the target assembly node information; Matching the first topological element with the second topological element according to the geometric information, fusing the topological information of the matched topological elements, and acquiring target topological information; The target model information is determined according to the target assembly node information and the target topology information.

8. A web-oriented 3D solid model reconstruction device, characterized in that: include: A parsing unit, used for performing model parsing on the three-dimensional solid model to obtain first assembly node information and first topology information of the three-dimensional solid model; A conversion unit, used for performing model conversion on the three-dimensional solid model to obtain second assembly node information and second topology information of the three-dimensional solid model; a matching unit, configured to match and fuse the first assembly node information with the second assembly node information, and to match and fuse the first topology information with the second topology information according to corresponding association features, and to obtain target model information according to the matching and fusion results; The reconstruction unit is used to store the target model information according to a preset storage format to reconstruct the three-dimensional solid model.

9. A computer device, characterized in that: The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the method according to any one of claims 1 to 7 when executing the computer program.

10. A storage medium, characterized in that: The storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the method according to any one of claims 1 to 7 can be implemented.

Citation Information

Cited By

  • File reconstruction method and equipment between CAD (Computer Aided Design) systems

    CN120850386A