Large assembly model visualization processing method and device

By integrating the assembly tree structure and sub-model association relationship of the CAD large assembly model, the problem of failed visual transformation of complex models is solved, and efficient visual rendering and digital prototype simulation capabilities are improved.

CN119089530APending Publication Date: 2024-12-06BEIJING AERONAUTIC SCI & TECH RES INST OF COMAC +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411232436.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-04
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

The prior art is difficult to effectively handle the visual transformation of complex CAD large assembly models, resulting in failure or inefficient model visualization, affecting digital prototype simulation and upstream and downstream collaborative design.

Method used

By obtaining the correlation between the initial assembly tree structure of the model and the sub-model, integrating it to reduce the complexity of the assembly level, forming an optimized model, and visual rendering, ensuring successful conversion and improved efficiency.

Benefits of technology

It effectively improves the visual conversion and rendering efficiency of large assembly models, enhances the simulation capabilities of digital prototypes, and is suitable for complex product fields such as civil aircraft design.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119089530A_ABST
    Figure CN119089530A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a large assembly body model visualization processing method. The method comprises the steps that model key information corresponding to a large assembly body model is acquired; wherein the model key information comprises an initial assembly tree structure of the large assembly body model, sub-models contained in the large assembly body model and an initial association relationship between the sub-models contained in the large assembly body model and the initial assembly tree structure; respectively integrating the initial assembly tree structure and the sub-model to determine an integrated assembly tree structure, determining an association relationship between the integrated assembly tree structure and the sub-model according to the initial association relationship, and obtaining a large assembly optimization model; and performing visual rendering on the large assembly optimization model to obtain a large assembly rendering result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of model visualization, and in particular to a method and device for processing visualization of a large assembly model. Background Art

[0002] In the prior art, CAD software can be used to design two-dimensional and three-dimensional models. CAD (Computer Aided Design) is a technology that uses computer technology for design. It uses professional software to perform design work in mechanics, architecture, electronics, etc. In CAD software, designers can model, analyze and optimize products on computers to obtain more accurate and reliable design solutions. CAD design includes two-dimensional CAD design and three-dimensional CAD design. Two-dimensional CAD design mainly refers to two-dimensional engineering drawing, and commonly used software includes AutoCAD, CAXA CAD electronic drawing board, etc.; three-dimensional CAD design mainly refers to three-dimensional solid modeling, which is also the current mainstream model design method. Common software includes CATIA, SolidWorks, UG / NX, Pro / E, CAXA 3D solid design, CrownCAD, etc.

[0003] Building a digital prototype based on the designed model is an important and widespread demand. A digital prototype refers to a digital model of a complete machine or subsystem of a mechanical product expressed on a computer. It has a 1:1 ratio and precise dimensional expression with the real physical product. Its function is to verify the function and performance of the physical prototype with a digital prototype. For example, in the conceptual design, preliminary design, and detailed design stages of civil aircraft, the construction of a digital prototype of the entire aircraft can provide designers with a design comparison and evaluation environment for schemes, enabling rapid scheme iteration; and digital prototypes that include structural design and system design can also present the complete status of the current design to designers, facilitating collaboration among designers of different disciplines.

[0004] The data input for building a digital prototype is CAD modeling data. Usually, after completing the product assembly in the 3D CAD design software, it can be used as a digital prototype for subsequent simulation evaluation. However, for product models in many fields (such as civil aircraft), the digital prototype assembly level is complex and the number of models is large. Due to software performance limitations, the whole machine assembly cannot be completed in the 3D CAD design software, or even if the assembly can be completed, the smoothness of the visual rendering will be greatly reduced. At the same time, product design in many fields is also an upstream and downstream collaborative multi-disciplinary design process. Digital prototypes built based on 3D CAD software also have great limitations on upstream and downstream collaboration.

[0005] Visualization is the theory, method and technology of using computer graphics and image processing technology to convert data into graphics or images and display them on the screen for interactive processing. It involves many fields such as computer graphics, image processing, computer vision, computer-aided design, etc., and has become a comprehensive technology for studying a series of problems such as data representation, data processing, and decision analysis. Among them, CAD model visualization processing refers to the conversion of CAD solid modeling data into visual triangular patch data. Visual triangular patch data contains the geometric vertex information, texture information, normal information, material properties, etc. required for visual rendering. The visualization engine can complete the visual rendering of the CAD solid model by reading this information. At the same time, based on the simulation requirements of civil aircraft CAD digital prototypes, it is also necessary to retain CAD design assembly information.

[0006] Currently, digital prototypes can be constructed based on visualization engines. The advantage of this method is that it can ensure the accuracy of geometric design and achieve good digital prototype rendering effects. At the same time, it can also achieve more flexible and diverse simulation effects, such as explosion diagrams, mechanism motion diagrams, multi-disciplinary visualization overlays, etc. However, this method inputs CAD modeling data. During the visualization process, when the model assembly level is complex and the number of models is large, the model visualization conversion fails or the efficiency is extremely low.

[0007] From the above, we can see that there are still many problems in the current model visualization processing, which also directly affects other needs, such as the realization of digital prototype construction.

[0008] Prior art document DE102013106280A1 discloses a CAD model visualization method, which focuses on converting CAD design data into visualization data containing triangular facet attribute information through a CAD plug-in, clarifies the conversion process from a CAD solid model to a CAD visualization model, and is a conventional CAD model visualization conversion method. However, for the visualization of complex CAD large assemblies, this method still has the problem of being unable to successfully convert due to the large size of the model.

[0009] Prior art document CN111783186A discloses a lightweight visualization viewing method for general CAD model results. This method adds a lightweight processing method to the CAD model visualization conversion process, and improves the visualization fluency by reducing the number of CAD model triangles and deleting unnecessary models. The lightweight processing does not change the assembly hierarchy of the model. When encountering a large CAD assembly with a relatively complex hierarchy, the problem of unsuccessful model conversion will still occur. In addition, the method also proposes a method to improve the visualization rendering fluency by reducing the visualization rendering range based on the pre-selected target visualization area, but this method is aimed at the visualization rendering stage, and still cannot solve the problem of unsuccessful conversion caused by the large model volume in the CAD model visualization conversion stage.

[0010] The prior art document US2022229944A1 discloses a method for selectively loading interactive data of CAD model visualization. This method improves the browsing fluency of large CAD models by pre-selecting a target visualization area, but cannot solve the problem of unsuccessful conversion caused by the large model volume in the CAD model visualization conversion stage. Summary of the invention

[0011] The embodiments of this specification provide a large assembly model visualization processing method and device to solve the technical problem of how to improve the visualization processing effect and efficiency of the large assembly model.

[0012] To solve the above technical problems, the embodiments of this specification provide the following technical solutions:

[0013] The present invention provides a method for visualizing a large assembly model, the method comprising:

[0014] Acquire model key information corresponding to the large assembly model; wherein the model key information includes an initial assembly tree structure of the large assembly model, sub-models contained in the large assembly model, and an initial association relationship between the sub-models contained in the large assembly model and the initial assembly tree structure;

[0015] The initial assembly tree structure and the sub-model are respectively integrated to determine the integrated assembly tree structure, and the association relationship between the integrated assembly tree structure and the sub-model is determined according to the initial association relationship, and a large assembly optimization model is obtained;

[0016] The large assembly optimization model is visually rendered to obtain a large assembly rendering result.

[0017] Optionally, integrating the initial assembly tree structure includes:

[0018] The child nodes in the initial assembly tree structure are deleted, and all the leaf nodes in the initial assembly tree structure are connected to the root node of the initial assembly tree structure.

[0019] Optionally, the sub-models can be integrated including:

[0020] Index all sub-models to the final assembly node of the integrated assembly tree structure.

[0021] Optionally, determining the association relationship between the integrated assembly tree structure and the sub-model includes:

[0022] Determine the association relationship between each sub-model and the leaf node of the integrated assembly tree structure.

[0023] Optionally, after determining the association relationship between the integrated assembly tree structure and the sub-model, the method further includes:

[0024] Determine whether the relationship between the integrated assembly tree structure and the sub-model is correct.

[0025] Optionally, key model information corresponding to the large assembly model is obtained, including:

[0026] The key model information corresponding to the large assembly model is obtained by parsing the large assembly model; wherein the parsing method used for parsing the large assembly model is determined according to the format of the large assembly model.

[0027] Optionally, after visually rendering the large assembly optimization model, the method further includes:

[0028] Information representing the initial assembly tree structure and / or functions corresponding to the initial assembly tree structure are displayed.

[0029] Optional,

[0030] After visually rendering the large assembly optimization model, the method further includes:

[0031] After the target operation is triggered, the large assembly rendering result is processed according to the initial assembly tree structure and / or the initial association relationship.

[0032] Optional processing of large assembly rendering results includes:

[0033] In the large assembly rendering result, a target model and a processing rule corresponding to the target operation are determined, and the processing rule is executed on the target model.

[0034] The embodiment of this specification provides a large assembly model visualization processing device, the device comprising:

[0035] A parsing module is used to obtain model key information corresponding to the large assembly model; wherein the model key information includes an initial assembly tree structure of the large assembly model, sub-models contained in the large assembly model, and an initial association relationship between the sub-models contained in the large assembly model and the initial assembly tree structure;

[0036] An integration module is used to integrate the initial assembly tree structure and the sub-model respectively to determine the integrated assembly tree structure, and to determine the association relationship between the integrated assembly tree structure and the sub-model according to the initial association relationship, and to obtain a large assembly optimization model;

[0037] The rendering module is used to perform visual rendering on the large assembly optimization model to obtain a large assembly rendering result.

[0038] At least one of the above technical solutions adopted in the embodiments of this specification can achieve the following beneficial effects:

[0039] Before visual rendering of a large assembly model, the key model information required for visualization rendering is obtained first, and the assembly hierarchy and sub-models of the large assembly model are integrated. This can effectively reduce the complexity of the assembly hierarchy and the complexity of the combined structure of each model, and improve the visualization conversion and rendering effect and efficiency of the large assembly model. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the technical solutions in the embodiments of this specification or the prior art, the drawings required for use in the embodiments of this specification or the prior art description are briefly described below. Obviously, the following only describes the drawings required for use in some embodiments of this application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor.

[0041] Figure 1 It is a flowchart of the large assembly model visualization processing method in the first embodiment of this specification.

[0042] Figure 2 It is a schematic diagram of the visualization process of a large assembly model in the first embodiment of this specification.

[0043] Figure 3 It is another schematic diagram of the visualization process of a large assembly model in the first embodiment of this specification.

[0044] Figure 4 It is a schematic diagram of the large assembly model analysis process in the first embodiment of this specification.

[0045] Figure 5 It is a schematic diagram of the integrated operation flow in the first embodiment of this specification.

[0046] Figure 6 It is a schematic diagram of the assembly tree structure integration in the first embodiment of this specification.

[0047] Figure 7 It is a flowchart of interactive operations and visual rendering in the first embodiment of this specification.

[0048] Figure 8 It is a structural schematic diagram of a large assembly model visualization processing device in the second embodiment of this specification. DETAILED DESCRIPTION

[0049] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the embodiments involved in the specific implementation methods are only part of the embodiments of this application, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the specific implementation methods without making creative work should belong to the scope of protection of this application.

[0050] Taking CAD models as an example, the existing CAD model visualization processing method is: first, lightweight the CAD model, mainly completing model segmentation, model face reduction, and deleting unnecessary models; then, based on the lightweight model, visualization is performed to obtain the model triangle face information, and then imported into the visualization engine for rendering. This method can be used for conventional CAD model processing, but for large CAD assemblies (such as large CAD assemblies in the civil aircraft design process), it is often impossible to import large CAD assemblies into lightweight processing software and perform lightweight processing, or even if the lightweight processing is completed, crashes and errors will occur during the visualization processing stage, and visualization rendering cannot be successfully performed.

[0051] Excluding reasons such as computing performance limitations and software performance limitations, analyzing from the source and CAD model perspective, the main reasons for the above problems are concentrated on the huge number of large CAD assembly models and the complexity of the assembly hierarchy. For example, the number of parts in a large assembly of civil aircraft can reach thousands or even tens of thousands, and the part design involves many curves, surfaces and other elements, which greatly increases the difficulty of lightweight processing and visualization processing. In addition, large assemblies of civil aircraft usually have more complex assembly structures, not just single-layer nesting, but often multi-layer nesting, which also increases the difficulty of model traversal for lightweight processing and visualization processing, and puts higher requirements on the performance of computer hardware and software.

[0052] Moreover, the number of large CAD assembly models is huge. Although the purpose of reducing the number of models can be achieved by merging models or deleting unnecessary models, it will cause changes in the CAD model assembly tree information. The assembly tree is very important for visualization and digital prototype simulation. Therefore, after processing the number of models according to the above-mentioned visualization processing method, it will undoubtedly reduce the accuracy and authenticity of visualization and digital prototype simulation, resulting in the visualization and digital prototype simulation effects failing to meet the requirements.

[0053] The first embodiment of this specification (hereinafter referred to as "embodiment one") provides a large assembly model visualization processing method. The execution subject of embodiment one can be a terminal (including but not limited to mobile phones, computers, pads, wearable devices, televisions) or a server or an operating system or an application, etc., that is, the execution subject can be various and can be set, used or transformed as needed. In addition, a third-party application can also assist the execution subject in executing embodiment one. For example, the large assembly model visualization processing method in embodiment one can be executed by a server, and an application corresponding to the server (corresponding to the server) can be installed on the terminal, and data can be transmitted between the terminal or application and the server, and data can be collected or input or output or processed through the terminal or application, thereby assisting the server in executing the method in embodiment one.

[0054] like Figures 1 to 3 As shown, the large assembly model visualization processing method provided in the first embodiment includes:

[0055] S101: Acquire model key information corresponding to a large assembly model; wherein the model key information includes an initial assembly tree structure of the large assembly model, sub-models included in the large assembly model, and an initial association relationship between the sub-models included in the large assembly model and the initial assembly tree structure;

[0056] In the first embodiment, an assembly generally refers to a structure or combination composed of multiple or multiple parts. Among them, an assembly that meets certain conditions can be called a large assembly, and a large assembly is usually a three-dimensional structure. For example, an assembly whose component parts reach a certain number or whose structural complexity meets certain standards can be called a large assembly. The first embodiment does not specifically limit the judgment conditions of a large assembly.

[0057] The components contained in a large assembly, that is, the components used to form the large assembly, can have multiple levels. For example, a large assembly can be divided into several components and / or parts (that is, the large assembly is composed of several components and / or parts divided from it). Among them, components are still regarded as combinations, and components can also be divided into several components and / or parts (that is, components are composed of several components and / or parts divided from it). Parts refer to structures that do not need to be divided or cannot be divided further. In this way, the large assembly itself can be regarded as the first level, and the components or parts divided from it can be regarded as components or parts of the second level, and the components or parts divided from the components of the second level can be regarded as components or parts of the third level. And so on, the components or parts divided from the components of the previous level are the components or parts of the next level, until no more components can be divided and only parts can be divided.

[0058] In the first embodiment, the key model information corresponding to the large assembly model can be obtained. The large assembly model (i.e., the model of the large assembly) can be pre-designed by suitable software such as CAD, in which case the large assembly model can also be called a CAD large assembly model or a CAD model.

[0059] The model key information may include an assembly tree structure of a large assembly model. In the process of designing a large assembly model using software such as CAD, an assembly tree structure (also referred to as "assembly tree information") may be set and generated. The assembly tree structure may include a general assembly node (referred to as a "general assembly node"), and the general assembly node may be divided into nodes of the next level, and the next level node may continue to be divided into nodes of the next level, thereby forming a tree-like structure.

[0060] The model key information may also include sub-models contained in the large assembly model, that is, the large assembly model also includes several sub-models.

[0061] As mentioned above, a large assembly can contain components or parts at various levels. The part level cannot be divided any further, and the component level can still contain components or parts at the level below it.

[0062] For parts, each level of parts has its corresponding part model, and the level of the parts also corresponds to the level of the corresponding part model.

[0063] For components, each level of components has its corresponding component model, and the level of the component corresponds to the level of the component model. As mentioned above, for any component at any level, the component will eventually be divided into several parts, and the component model corresponding to the component is the set of "part models corresponding to the parts eventually separated from the component". In other words, the component model corresponding to the component also corresponds to the complete body of "part models corresponding to the parts eventually separated from the component".

[0064] It can be seen that even a component model is a collection of part models. Therefore, in Example 1, the part model is called a sub-model, and the large assembly model is actually a collection of sub-models. The sub-models contained in the large assembly model refer to the part models corresponding to the parts of each level under the large assembly.

[0065] The model key information may also include the association relationship between the sub-models contained in the large assembly model and the initial assembly tree structure (referred to as "initial association relationship"). Specifically, the initial association relationship includes the relationship between each sub-model and each node (including the final assembly node) of the initial assembly tree structure.

[0066] In the first embodiment, after obtaining the large assembly model, the large assembly model can be parsed, and the key model information corresponding to the large assembly model can be obtained by parsing the large assembly model (including the data package or information related to the large assembly model). The format of the large assembly model is not limited. Taking the large assembly model related to civil aircraft as an example, it can be a CATIA model, and the format can be *.CatPart, *.CatProduct, *.cgr, *.3dxml, etc., or it can be a general CAD design model conversion format *.s tep, *.iges, etc.

[0067] In the process of parsing the large assembly model, the parsing method to be used can be determined according to the format of the large assembly model. The parsing methods can be generally divided into two categories (but not limited to these two categories): for CAD software encrypted file formats, such as CATIA software formats *.CatPart and *.CatProduct, the secondary development interface provided by the software can be used to parse and obtain relevant information; for CAD software ASCII plain text file formats and general CAD design model conversion formats, the model file can be directly parsed to obtain relevant information.

[0068] The following takes a large CAD assembly model (referring to a model drawn in 3D CAD design software) as an example to explain the analytical methods that can be used:

[0069] CAD large assembly models are not limited to application industries, software used, or file formats. For example, it can be CATIA for civil aircraft design. Depending on the format of the CAD large assembly model, the parsing method used can be different. CAD large assembly model formats are mainly divided into two categories: encrypted file format and ASCII plain text file format. The encrypted file format refers to the custom file format of the CAD software, which is encrypted for copyright reasons and cannot be parsed without the CAD software. Therefore, it can be parsed through the secondary development interface provided by the CAD software; the ASCII plain text file format refers to the file format provided by the CAD software to improve the openness of the software, or it is a common data conversion format in the industry. This type of format can usually be directly read and parsed as a text file. The following is a detailed explanation.

[0070] like Figure 4 As shown, for the encrypted file format of a large CAD assembly, the specific parsing steps can be as follows:

[0071] Build a secondary development environment for CAD software: Build a development environment that can call the secondary development interface of CAD software. For the construction method, refer to the secondary development instructions of each CAD software;

[0072] Call the secondary development interface to obtain model assembly tree information and store it: call the model assembly tree information acquisition interface in the CAD software secondary development environment, and store the acquired information to a hard disk file or memory cache (storage location and storage form are not limited);

[0073] Call the secondary development interface to obtain model geometry information and store it: Call the model geometry information (including the geometry information of each sub-model) acquisition interface in the secondary development environment of the CAD software, and store the acquired information to a hard disk file or memory cache (storage location and storage form are not limited);

[0074] Call the secondary development interface to obtain and store the association information between the assembly tree and the model: obtain the association information between the assembly tree and each sub-model in the secondary development environment of the CAD software (the association information includes the association or matching relationship between the ID of each node of the assembly tree and the model ID of each sub-model), and store the obtained information to a hard disk file or memory cache (the storage location and storage format are not limited).

[0075] like Figure 4 As shown in the figure, for the CAD large assembly ASCII plain text file format, the specific parsing steps can be as follows:

[0076] Build a model file reading environment: Build a development environment for reading ASCII plain text file format. The development language includes but is not limited to C++, Python, C#, etc., which can realize ASCII plain text file format reading;

[0077] Traverse the file to obtain the assembly tree identifier, model identifier, and association relationship identifier: traverse the ASCII plain text file format to obtain the assembly tree identifier, model (including each sub-model) identifier, and association relationship (the association information includes the association or matching relationship between the ID of each node of the assembly tree and the model ID of each sub-model) identifier; taking the CATIA 3DXML file format as an example, the assembly tree identifier is located in the Product.3dxml file, with the label "Reference3DType", the model identifier is located in the Product.3dxml file, with the label "Instance3DType", and the geometric information of each part is stored in the Part.3DRep file; the association relationship identifier is also located in the Product.3dxml file, with the label "IsAggregatedBy";

[0078] Traverse the file to obtain and store the assembly tree information according to the assembly tree identifier: traverse the model file according to the assembly tree identifier obtained above, obtain all assembly tree node IDs and corresponding parent-child relationships, and store the obtained information to the hard disk file or memory cache (storage location and storage form are not limited);

[0079] Traverse the file to obtain model information and store it according to the model identifier: According to the model identifier obtained above, traverse the model file, obtain all model (including each sub-model) IDs and corresponding model geometry information (taking CATIA 3DXML file format as an example, it is necessary to obtain the model ID in the Product.3dxml file and the model geometry information in the Part.3DRep file), and store the obtained information to the hard disk file or memory cache (storage location and storage form are not limited);

[0080] Traverse the file to obtain and store the assembly tree and model association information based on the association relationship identifier: According to the association relationship identifier obtained above, traverse the model file, obtain all assembly tree node IDs and corresponding model IDs (referring to all sub-models mounted under a certain assembly tree node), and store the obtained information to the hard disk file or memory cache (storage location and storage format are not limited).

[0081] The above parsing process is only an example, and the first embodiment does not limit the specific file format of the large assembly model.

[0082] As can be seen from the above, through the parsing operation, the assembly tree structure of the large assembly model, the model information (including geometric information) of each sub-model contained in the large assembly model (hereinafter, each sub-model contained in the large assembly model is referred to as "each sub-model", which also represents a sub-model set), the initial association relationship between the assembly tree structure and each sub-model and other information can be obtained, all of which can be included in the model key information. The assembly tree structure parsed from the large assembly model will be referred to as the "initial assembly tree structure" or "original assembly tree" ("initial assembly tree structure" or "original assembly tree" is only used for naming and distinguishing purposes, and does not necessarily refer to the most original assembly tree structure. The initial assembly tree structure or the original assembly tree can be designed or modified once or multiple times before being parsed, and is not limited to this in Example 1).

[0083] S103: integrating the initial assembly tree structure and the sub-model respectively to determine an integrated assembly tree structure, and determining an association relationship between the integrated assembly tree structure and the sub-model according to the initial association relationship, and obtaining a large assembly optimization model;

[0084] like Figure 5 As shown, the acquired initial assembly tree structure and sub-model may be integrated to determine the integrated assembly tree structure and the association relationship between the integrated assembly tree structure and the sub-model.

[0085] In the first embodiment, the integration of the assembly tree structure refers to the integration of the multi-layer nested initial assembly tree structure into a single-layer or double-layer form (single-layer means that in addition to the root node (or the total node, the same below), it only contains one layer of nodes, that is, there is only one layer of nodes under the root node. Double-layer means including the root node, a total of two layers of nodes. The structures actually represented by the two are the same). Among them, the integration of the initial assembly tree structure may include: traversing the initial assembly tree structure, deleting the child nodes in the initial assembly tree structure, and connecting all the leaf nodes in the initial assembly tree structure to the root node of the initial assembly tree structure. Specifically, the child node refers to a node that is connected to other nodes in addition to the root node. The leaf node refers to a node that is no longer connected to other nodes below, that is, a node without child nodes. Specifically to the assembly tree structure, the root node is also the general assembly node (representing the large assembly itself); the child node is also the assembly tree child node (or "sub-assembly tree node"), and the assembly tree child node is also connected to a sub-assembly tree node or a leaf node; the leaf node is also the assembly tree leaf node.

[0086] by Figure 6 For example, Figure 6The left side of the arrow is the initial assembly tree structure, including the assembly node A, assembly tree subnodes A1 and A2, A1 is connected to the assembly tree leaf nodes a1 and a2, and A2 is connected to the assembly tree leaf nodes a3 and a4. Through integration, all assembly tree subnodes except the assembly node are deleted, that is, the assembly tree subnodes (A1, A2, etc.) except the assembly node (A) are deleted, so that all assembly tree leaf nodes are connected to the assembly node, and the integrated assembly tree structure is obtained, as shown in the figure. Figure 6 Arrow to the right.

[0087] By integrating the obtained initial assembly tree structure, the structure of the initial assembly tree structure is optimized, forming a general assembly node + several leaf nodes (i.e., nodes corresponding to part models). The integrated assembly tree structure is referred to as the "assembly tree integration structure" hereinafter.

[0088] In the first embodiment, integrating the sub-models may include: indexing all the sub-models to the final assembly node of the assembly tree integration structure.

[0089] The assembly tree structure is associated with each model (including the large assembly model and the component or part models at each level) (which can also be proved by the above-mentioned analysis process). More specifically, each node of the assembly tree structure (including the initial assembly tree structure) corresponds to or is associated with each model (including the model information of the model), the final assembly node corresponds to the large assembly model (also corresponds to the information of the large assembly model), each assembly tree child node corresponds to a component model (also corresponds to the model information of the component model), each assembly tree leaf node corresponds to a part model (also corresponds to the model information of the part model), and the assembly tree child node can be divided into assembly tree child nodes or assembly tree leaf nodes, corresponding to "components can also be divided into components or parts".

[0090] Each node of the assembly tree structure has a node ID, and each model has a model ID. The correspondence or association between the assembly tree node and each model is manifested as the correspondence or association between the node ID and the model ID and the model information. This also shows that there is an index relationship between the assembly tree node and the model, and the model (or assembly tree node) corresponding to or associated with it can be indexed through the assembly tree node (or model).

[0091] And, can realize the upper and lower indexes between models through assembly tree node.Specifically, for any model, suppose that the assembly tree node corresponding to this model is node B, then the model corresponding to the upper node or parent node (if any) of node B is exactly the model of the upper level component to which this model belongs, and the model corresponding to the lower node or descendant node (if any) of node B is exactly the model of the component or part divided out by this model, thereby can determine or index to the upper level model to which this model belongs through the upper node of node B, or can determine or index to the lower level model divided out by this model through the lower node of node B.Wherein, the upper level assembly tree child node that the upper level node or parent node (also can be called "upper level index node" or "parent index node") is connected to the assembly tree node corresponding to the model, and the parent node may be a general assembly node.The lower level assembly tree node that the lower level node or descendant node (also can be called "lower level index node" or "descendant index node") is connected to the assembly tree node corresponding to the model, and the descendant node may be an assembly tree child node or an assembly tree leaf node.

[0092] In particular, the ID of the model, the assembly tree node ID corresponding to the model, the parent node ID of the model (if any), and the descendant node ID of the model (if any) may be recorded in the model information of each model.

[0093] The relationship between the above assembly tree nodes and the model can also be proved by the information parsed by the aforementioned parsing process.

[0094] In the first embodiment, each node (including the final assembly node and the leaf node) of the assembly tree integration structure will be reassigned its ID, so the integration of the sub-models can include: indexing all the IDs of each sub-model (i.e., the part model) to the final assembly node ID of the assembly tree integration structure. Specifically, the parent node ID recorded in the model information of each sub-model can be completely modified to the new final assembly node ID of the assembly tree integration structure. In this way, all the part models are hung on the final assembly node, and the hierarchical or combined structure of each sub-model is integrated.

[0095] In the embodiment one, the associating relationship between the assembly tree integrated structure and the submodel can also be determined according to the initial associating relationship. Wherein, determining the associating relationship between the assembly tree integrated structure and the submodel may include: determining the associating relationship between each submodel (comprising the model information of the model) and the leaf node of the assembly tree integrated structure. It has been explained above that there originally existed an initial associating relationship between each submodel and the assembly tree node, and there originally also existed a correspondence or associating relationship between each submodel and each leaf node of the initial assembly tree structure. Because each node can be assigned ID again after the assembly tree is integrated, it is necessary to rebuild the correspondence or associating relationship between each submodel ID and each leaf node ID of the assembly tree integrated structure, namely to re-determine the associating relationship between each submodel and the leaf node of the assembly tree integrated structure, and realize the re-linking of the submodel and the assembly tree integrated structure. Specifically, for any submodel, the corresponding assembly tree node ID recorded in the model information of the submodel needs to be updated to the latest ID of that assembly tree leaf node corresponding to it, and realize the re-linking of the submodel and the assembly tree integrated structure.

[0096] It is explained above that there is an initial association relationship between each sub-model and the assembly tree node, which is also included in the model key information. The above process of rebuilding the correspondence or association relationship does not change the actual correspondence or association relationship between each sub-model and the leaf node of the assembly tree. It is explained that according to the initial association relationship, it is possible to determine which leaf node of the assembly tree integrated structure each sub-model should correspond to or be associated with, thereby realizing "determining the association relationship between the integrated assembly tree structure and the sub-model according to the initial association relationship".

[0097] In the first embodiment, after determining the association relationship between the assembly tree integration structure and the sub-model, it is also possible to determine whether the information related to the large assembly obtained after the integration is correct, including whether the association relationship between the assembly tree integration structure and the sub-model is correct. Specifically, it is to determine for any sub-model, if the sub-model is originally associated with the leaf node C in the initial assembly tree structure, after determining the association relationship between each sub-model at the minimum level and the leaf node of the assembly tree integration structure, whether the sub-model is still associated with the leaf node C in the assembly tree integration structure, which is equivalent to determining whether there is an error in the above-mentioned process of reconstructing the correspondence or association relationship.

[0098] In addition, it is also possible to determine whether the assembly integration structure and model information of each sub-model are correct.

[0099] In the first embodiment, the above-mentioned determination work can be performed by a suitable method, such as CAD software or visualization software, which is not limited in the first embodiment.

[0100] In the embodiment one, by respectively integrating the described initial assembly tree structure and the submodel, to determine the assembly tree structure after integration, and the correlation relationship between the assembly tree structure after integration and the submodel, a new large assembly model (called "large assembly optimization model") can be obtained. Specifically, according to the assembly integration structure, the model information of each submodel and the correlation relationship between the assembly tree structure after integration and the submodel, etc., a large assembly optimization model can be formed and output in a suitable manner including CAD software. The large assembly optimization model after output can be stored as needed, for example, stored to a hard disk file or a memory cache, and the embodiment one does not limit the storage location or storage form. In addition, it is possible to perform the above-mentioned correct judgment and obtain the correct result, and then obtain a new large assembly optimization model.

[0101] S105: Visually render the large assembly optimization model to obtain a large assembly rendering result.

[0102] In the first embodiment, the large assembly optimization model can be visualized including parsing to obtain model related information required for visualization, including but not limited to vertex information, texture information, normal information, material information, etc. of the discretized model. Such model related information can be stored as needed, such as in a hard disk file or memory cache, and the first embodiment does not limit the storage location or storage form.

[0103] The large assembly optimization model can be imported into the visualization rendering engine (the existing import function of the visualization engine can be used or the import can be realized by reading information, the same below), and visualization rendering can be performed according to the relevant information of the model, and a visualization rendering result (including a visualization model, which can also be called an "integrated assembly tree visualization model") can be obtained, that is, a rendering result of the large assembly. Specifically, the above-mentioned large assembly optimization model can be imported by reading the above-mentioned model information in the visualization rendering engine, and then visualization rendering can be performed to obtain a visualization result.

[0104] like Figure 7 As shown, not only can large assemblies be rendered visually, but also interactions after visual rendering can be realized. For example, various operations can be performed on the initial assembly tree structure, and various processing can be performed on the visual rendering results of large assemblies, including continuing visual rendering according to the operation or processing to form various colorful visualization effects, which can also fall into the category of visualization processing.

[0105] In the first embodiment, after the large assembly optimization model is visualized and rendered, the information for characterizing the initial assembly tree structure and / or the functions corresponding to the initial assembly tree structure can also be displayed. Wherein, the initial assembly tree structure representing the original multi-layer nested structure can be imported into the visualization rendering engine, the aforementioned initial association relationship can be imported into the visualization engine, an assembly tree information frame is created in the visualization engine, and the information for characterizing the initial assembly tree structure is displayed in the assembly tree information frame, for example, the initial assembly tree structure can be displayed in a tree structure. In addition, the functions corresponding to the initial assembly tree structure can be displayed in the assembly tree information frame, including but not limited to the expansion, folding, and point-and-click functions of the initial assembly tree.

[0106] After importing the initial assembly tree structure, the user can select various operations to be performed on the initial assembly tree structure. These operations can correspond to the functions corresponding to the initial assembly tree structure, including but not limited to operations such as expansion, folding, and selection, and various operations can be selected in the assembly tree information box. For example, if the user selects the expansion (or folding or selecting) operation for a node of the initial assembly tree structure, all nodes under the node will be expanded (or folded or selected).

[0107] In addition, data or information related to the initial assembly tree structure can be stored in a suitable location, and then the initial assembly tree structure can be imported by reading the data or information related to the initial assembly tree structure in a visualization rendering engine, and can be stored in a data structure such as a quadtree or octree (the specific data structure used is not limited, as long as it can store information and facilitate subsequent processing).

[0108] In addition, data or information related to the initial association relationship can be stored in a suitable location, and then the initial association relationship can be imported and stored by reading the data or information related to the initial association relationship in the visualization rendering engine (the specific data structure used is not limited, as long as it can store information and facilitate subsequent processing). Based on the imported initial association relationship, each sub-model after visualization rendering can be re-associated and linked with the initial assembly structure, and the correspondence between the model and the assembly tree can be achieved.

[0109] In the first embodiment, after the large assembly optimization model is visually rendered, the large assembly rendering result can be processed according to the (imported) initial assembly tree structure and / or initial association relationship when the target operation is triggered (the target operation can be a user operation or a preset operation). Among them, processing the large assembly rendering result can include: determining the target model and processing rules corresponding to the target operation in the large assembly rendering result, and executing the processing rules on the target model. That is to say, the target operation here can be for each model after visual rendering (including the large assembly model and components or part models at each level).

[0110] For example, if a node of the initial assembly tree structure is selected in the assembly tree information box (i.e., the processing rule is the selected rule), the initial assembly tree and / or the initial association relationship are traversed to find all models corresponding to all nodes under the node (i.e., the target model, which exists in the large assembly rendering result), and the found model is selected (i.e., the processing rule is executed on the target model), so that the selected model can be highlighted in the large assembly rendering result.

[0111] For another example, based on selecting all models corresponding to all nodes under the node, more or further model operations (also belonging to processing rules) can be supported, including but not limited to display / hide, transform, and delete operations. If one or several model operations are selected, the one or several model operations are executed on the selected model (i.e., the processing rules are executed on the target model), such as display / hide, transform, and delete the selected model. Specifically, the one or several model operations can be implemented through visual rendering.

[0112] In the first embodiment, in order to realize the display or realization of information and / or functions, the interface controls used are not limited, for example, controls that can support functions such as expansion, folding, and clicking of tree structures, as well as controls that support target selection operations can be selected. In addition, the visualization engine can include an assembly tree hierarchical display interface and a model rendering interface.

[0113] The feasibility of the first embodiment is verified as follows:

[0114] Using Unreal software as a visualization experiment platform, we compared three CAD models of different sizes (all in CATProduct format, all containing multi-layer nested assembly tree levels, i.e., the initial assembly tree structure), and used two visualization schemes to visualize each CAD model, finally displaying the CAD model in Unreal software, and recorded the visualization processing time corresponding to the two visualization schemes. The two visualization schemes are:

[0115] Solution 1: the aforementioned “existing CAD model visualization processing method”;

[0116] Solution 2: The large assembly model visualization processing method described in Example 1.

[0117] The experimental results are shown in Table 1:

[0118]

[0119] Table 1

[0120] The experimental results show that compared with the existing CAD model visualization method, the large assembly model visualization processing method provided in Example 1 can effectively reduce the visualization time of CAD models (especially larger models, which belong to or are close to large assembly models), improve the success rate of CAD model visualization conversion, and improve the efficiency of CAD model visualization iteration, and is more suitable for simulation evaluation of digital prototypes of complex products in the industrial field.

[0121] Embodiment 1 can achieve the following beneficial effects:

[0122] By integrating the more complex, multi-layer nested initial assembly tree structure and each sub-model, a simpler assembly tree integration structure is generated, and each sub-model is indexed to the final assembly node according to the assembly tree integration structure, and the association relationship between the assembly tree integration structure and the sub-model is rebuilt, the processing of the model assembly hierarchy is realized, which can effectively reduce the complexity of the combination or assembly hierarchy relationship between the assembly tree structure and each sub-model, and obtain the optimized model of the large assembly after assembly hierarchy integration and optimization, and then perform visual rendering, effectively improving the visualization conversion and rendering efficiency of the large assembly model.

[0123] For different large assembly models, corresponding analysis methods can be used to obtain richer model key information, which is conducive to improving the effect and efficiency of integration operations as well as visual conversion and rendering.

[0124] Embodiment 1 can not only improve the effect and efficiency of visualization processing, but also, after the visualization rendering of the large assembly model, the initial assembly tree structure and the initial association relationship can still be imported, and various operations can be performed on the initial assembly tree structure, and various processing can be performed on the rendering result of the large assembly. Since these operations or processing are based on the initial assembly tree structure and / or the initial association relationship, and the initial assembly tree structure and / or the initial association relationship retain and guarantee the original, complete, correct, and detailed assembly relationship and association link relationship between each node and each sub-model, it is possible to accurately locate the objects (including nodes and models) that need to be operated or processed, ensure the accuracy, richness and comprehensiveness of these operations or processing and the visualization rendering performed to achieve these operations or processing, and improve the information display and interaction effect and efficiency.

[0125] As can be seen from the above, Example 1 can not only improve the visualization processing effect and efficiency, but also improve the interactive effect and efficiency after visualization rendering. Compared with the existing conventional lightweight processing method, Example 1 focuses on the analysis and integration of assembly levels (including assembly tree structure, information of each sub-model, hierarchical or combined structure, association between model and assembly tree, etc.), which can not only realize the information analysis and integration of assembly tree and each sub-model, but also improve the visualization processing effect and efficiency; and can use the initial assembly tree structure and initial association relationship to ensure the complete correctness and accuracy of assembly information and associated information of nodes and models in the visualization environment, and improve the interactive effect and efficiency. Example 1 can greatly increase the volume of model simulation, further broaden the scope of digital prototype simulation, provide support for the improvement of digital prototype simulation capabilities, and can be applied to a wide range of fields including civil aircraft digital prototype simulation. For example, it can be applied to the field of civil aircraft CAD digital prototype simulation, including CAD data conversion, CAD data visualization, digital prototype construction, etc., which can effectively improve the visualization efficiency of large civil aircraft assemblies and enhance the digital prototype simulation capabilities of civil aircraft.

[0126] According to the above feasibility verification, the first embodiment is particularly suitable for large-scale models, especially the visualization processing of three-dimensional CAD models, and has particular application value for complex product fields, such as civil aircraft design.

[0127] like Figure 8 As shown, the second embodiment of this specification provides a large assembly model visualization processing device corresponding to the large assembly model visualization processing method described in the first embodiment, including:

[0128] The parsing module 202 is used to obtain model key information corresponding to the large assembly model; wherein the model key information includes the initial assembly tree structure of the large assembly model, the sub-models included in the large assembly model, and the initial association relationship between the sub-models included in the large assembly model and the initial assembly tree structure;

[0129] An integration module 204 is used to integrate the initial assembly tree structure and the sub-models respectively to determine an integrated assembly tree structure, and to determine the association relationship between the integrated assembly tree structure and the sub-models according to the initial association relationship, and to obtain a large assembly optimization model;

[0130] The rendering module 206 is used to perform visual rendering on the large assembly optimization model to obtain a large assembly rendering result.

[0131] Optionally, integrating the initial assembly tree structure includes:

[0132] The child nodes in the initial assembly tree structure are deleted, and all the leaf nodes in the initial assembly tree structure are connected to the root node of the initial assembly tree structure.

[0133] Optionally, the sub-models can be integrated including:

[0134] Index all sub-models to the final assembly node of the integrated assembly tree structure.

[0135] Optionally, determining the association relationship between the integrated assembly tree structure and the sub-model includes:

[0136] Determine the association relationship between each sub-model and the leaf node of the integrated assembly tree structure.

[0137] Optionally, the integration module 204 is further configured to determine whether the association relationship between the integrated assembly tree structure and the sub-model is correct after determining the association relationship between the integrated assembly tree structure and the sub-model.

[0138] Optionally, key model information corresponding to the large assembly model is obtained, including:

[0139] The key model information corresponding to the large assembly model is obtained by parsing the large assembly model; wherein the parsing method used for parsing the large assembly model is determined according to the format of the large assembly model.

[0140] Optionally, the rendering module 206 is further configured to display information characterizing the initial assembly tree structure and / or functions corresponding to the initial assembly tree structure after visually rendering the large assembly optimization model.

[0141] Optionally, the rendering module 206 is further configured to process the rendering result of the large assembly according to the initial assembly tree structure and / or the initial association relationship after visually rendering the large assembly optimization model and triggering a target operation.

[0142] Optional processing of large assembly rendering results includes:

[0143] In the large assembly rendering result, a target model and a processing rule corresponding to the target operation are determined, and the processing rule is executed on the target model.

[0144] The above embodiments can be used in combination.

[0145] The above is only an embodiment of this specification and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims

1. A large assembly model visualization processing method, characterized in that: The method comprises: Acquire model key information corresponding to the large assembly model; wherein the model key information includes an initial assembly tree structure of the large assembly model, sub-models contained in the large assembly model, and an initial association relationship between the sub-models contained in the large assembly model and the initial assembly tree structure; The initial assembly tree structure and the sub-model are respectively integrated to determine the integrated assembly tree structure, and the association relationship between the integrated assembly tree structure and the sub-model is determined according to the initial association relationship, and a large assembly optimization model is obtained; The large assembly optimization model is visually rendered to obtain a large assembly rendering result.

2. The method according to claim 1, characterized in that Integrating the initial assembly tree structure includes: The child nodes in the initial assembly tree structure are deleted, and all the leaf nodes in the initial assembly tree structure are connected to the root node of the initial assembly tree structure.

3. The method according to claim 1, characterized in that The integration of sub-models includes: Index all sub-models to the final assembly node of the integrated assembly tree structure.

4. The method according to claim 1, characterized in that Determine the relationship between the integrated assembly tree structure and the sub-models including: Determine the association relationship between each sub-model and the leaf node of the integrated assembly tree structure.

5. The method according to any one of claims 1 to 4, characterized in that After determining the association relationship between the integrated assembly tree structure and the sub-model, the method further includes: Determine whether the relationship between the integrated assembly tree structure and the sub-model is correct.

6. The method according to claim 1, characterized in that The key model information corresponding to the large assembly model includes: The key model information corresponding to the large assembly model is obtained by parsing the large assembly model; wherein the parsing method used for parsing the large assembly model is determined according to the format of the large assembly model.

7. The method according to claim 1, characterized in that After visually rendering the large assembly optimization model, the method further includes: Information representing the initial assembly tree structure and / or functions corresponding to the initial assembly tree structure are displayed.

8. The method according to claim 1 or 7, characterized in that After visually rendering the large assembly optimization model, the method further includes: After the target operation is triggered, the large assembly rendering result is processed according to the initial assembly tree structure and / or the initial association relationship.

9. The method according to claim 8, characterized in that Processing of large assembly rendering results includes: In the large assembly rendering result, a target model and a processing rule corresponding to the target operation are determined, and the processing rule is executed on the target model.

10. A large assembly model visualization processing device, characterized in that: The device comprises: A parsing module is used to obtain model key information corresponding to the large assembly model; wherein the model key information includes an initial assembly tree structure of the large assembly model, sub-models contained in the large assembly model, and an initial association relationship between the sub-models contained in the large assembly model and the initial assembly tree structure; An integration module is used to integrate the initial assembly tree structure and the sub-model respectively to determine the integrated assembly tree structure, and to determine the association relationship between the integrated assembly tree structure and the sub-model according to the initial association relationship, and to obtain a large assembly optimization model; The rendering module is used to perform visual rendering on the large assembly optimization model to obtain a large assembly rendering result.