Lightweight three-dimensional model management method and device based on PIXYZ tool
By building a product database and using PIXYZ tools, the changes in three-dimensional models are automatically detected and processed, and the problem of difficulty in realizing automated and lightweight conversion in the existing technology is solved, and efficient management and conversion of complex and frequent iterative product models is achieved.
Patent Information
- Application Number
- CN202411932050.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-26
- Publication Date
- 2025-04-18
AI Technical Summary
The prior art is difficult to automatically identify changes in three-dimensional models and perform lightweight conversions, especially when facing complex and frequently iterative product models, resulting in non-updated or errors in the conversion results, which are huge workloads and difficult to achieve automation.
By building a product database, save BOM data, supporting three-dimensional models and their updates and lightweight conversion times in real time, detect and change the three-dimensional models regularly, perform assembly analysis to obtain the superior supporting three-dimensional models, and use PIXYZ tool to lightweight conversion of each product part model file to update the database records.
It realizes automatic identification and processing of changes when product models are frequently iterated, reduces manpower investment, ensures the accuracy and consistency of lightweight files, and adapts to the complexity and frequent changes of product models.
Smart Images

Figure CN119847999A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of lightweight three-dimensional models, and in particular to a lightweight three-dimensional model management method and device based on a PIXYZ tool. Background Art
[0002] As the concept of digital twins continues to penetrate into the industrial manufacturing process, companies' demand for full life cycle management of data in design and development, manufacturing, after-sales maintenance, and scrapping has gradually transformed into life cycle management needs based on digital twins. Digital twins can more intuitively reflect the life cycle status of products. Address manufacturing based on digital twins is a major manufacturing model in the future.
[0003] Digital twins are the process and method of using digital technology to describe and model the characteristics, behaviors, and performance of physical objects. Therefore, it is common that products have been manufactured and then digital models are generated through reverse modeling. The digital models generated in this way are closer to the physical entity of the product, but for batch production or large-scale products, the workload will be very large. The more complex the product structure, the greater the workload, so it is not very realistic. Therefore, at present, digital twin technology is mainly used in scenarios such as factories where changes are small.
[0004] When generating a digital twin, the 3D model of the product is generally lightweight as the prototype of the digital twin. Although the physical properties of the product may differ from the 3D design model of the product, there is not much difference in the overall performance constraints and physical properties of the product. Therefore, it can be used for product manufacturing, after-sales maintenance and scrap life cycle management. There are many tools on the market such as PIXYZ that can lightweight 3D models. These lightweight tools provide a visual interface or script to the outside world. The storage location of the 3D model is manually selected or the 3D model is directly placed in the feature directory, and then the script file is used to batch read for lightweight conversion. The converted lightweight The 3D model is stored in the background for storage, and the lightweight 3D model is viewed through a lightweight viewing tool or a packaged tool interface. However, for large and complex products with thousands of model files, to achieve lightweight viewing at the product level, whether it is manually selecting the model file or putting the model in a specific path and automatically reading it by the script file, the workload is very large, time-consuming and labor-intensive. At the same time, the lightweight of the product-level model cannot automatically identify the model changes, automatically collect the model and lightweight conversion. In the process of model collection, it is easy to miss a model file or fail to identify the latest status, resulting in the converted lightweight file not being the latest or correct status, and the accuracy of the conversion result cannot be identified. If this is the case for one product, then for multiple products, the model conversion separated from the design process data, the script reading model cannot automatically identify the conversion, and the workload of manually selecting the model to submit the conversion task will increase dramatically. For products with frequent iterations, it is an impossible task to complete.
[0005] In summary, how to automatically identify changes in three-dimensional models and collect changed product models for lightweight conversion to better adapt to the frequent iteration characteristics of product models is a problem that the existing technology urgently needs to solve. Summary of the invention
[0006] The embodiment of the present application provides a lightweight three-dimensional model management method based on the PIXYZ tool, which accurately detects changes in the three-dimensional model by automatically analyzing the data in the product database, obtains the superior supporting three-dimensional model through assembly analysis, and lightweights each product part model file of the superior supporting three-dimensional model, greatly reducing manpower investment when the product model is frequently iterated.
[0007] In a first aspect, an embodiment of the present application provides a lightweight three-dimensional model management method based on a PIXYZ tool, the method comprising:
[0008] Building a product database, in which BOM data belonging to the same product, multiple supporting three-dimensional models, the update time of each supporting three-dimensional model, and the lightweight conversion time of each supporting three-dimensional model are stored in real time;
[0009] Performing lightweight detection on each supporting three-dimensional model at regular intervals. If it is detected during the lightweight detection process that the lightweight conversion time of the supporting three-dimensional model is earlier than the corresponding update time, the corresponding supporting three-dimensional model is obtained as the changed three-dimensional model;
[0010] Performing assembly analysis on the changed three-dimensional model to obtain an upper-level supporting three-dimensional model, wherein the upper-level supporting three-dimensional model is a supporting three-dimensional model that needs to be re-lightweighted due to the changed three-dimensional model, and the upper-level supporting three-dimensional model is a minimum conversion unit, and the minimum conversion unit is a supporting three-dimensional model that independently performs a lightweight conversion operation;
[0011] The BOM structure of the superior supporting three-dimensional model is obtained in the BOM data, the model file of each product part in the BOM structure of the superior supporting three-dimensional model is traversed to obtain, the model file of each product part is lightweighted using the PIXYZ tool, and the corresponding lightweight conversion time in the product database is updated.
[0012] In a second aspect, an embodiment of the present application provides a lightweight three-dimensional model management device based on a PIXYZ tool, comprising:
[0013] A construction module, used to construct a product database, in which BOM data belonging to the same product, a plurality of supporting three-dimensional models, an update time of each supporting three-dimensional model, and a lightweight conversion time of each supporting three-dimensional model are stored in real time;
[0014] A detection module is used to periodically perform lightweight detection on each supporting three-dimensional model. If it is detected during the lightweight detection process that the lightweight conversion time of the supporting three-dimensional model is earlier than the corresponding update time, the corresponding supporting three-dimensional model is obtained as the changed three-dimensional model;
[0015] An assembly analysis module, used for performing assembly analysis on the changed three-dimensional model to obtain an upper-level supporting three-dimensional model, wherein the upper-level supporting three-dimensional model is a supporting three-dimensional model that needs to be re-lightweighted due to the changed three-dimensional model, and the upper-level supporting three-dimensional model is a minimum conversion unit, and the minimum conversion unit is a supporting three-dimensional model that independently performs a lightweight conversion operation;
[0016] The lightweight module is used to obtain the BOM structure of the upper-level supporting three-dimensional model in the BOM data, traverse and obtain the model file of each product part in the BOM structure of the upper-level supporting three-dimensional model, use the PIXYZ tool to lightweight the model file of each product part, and update the corresponding lightweight conversion time in the product database.
[0017] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute a lightweight three-dimensional model management method based on a PIXYZ tool.
[0018] In a fourth aspect, an embodiment of the present application provides a readable storage medium, characterized in that a computer program is stored in the readable storage medium, the computer program includes a program code for controlling a process to execute a process, and the process includes a lightweight three-dimensional model management method based on a PIXYZ tool.
[0019] The main contributions and innovations of the present invention are as follows:
[0020] The embodiment of the present application can track the model status in real time by constructing a product database containing BOM data, supporting three-dimensional models and their update and lightweight conversion time, so that the updated changed three-dimensional model can be accurately identified by timed detection; the embodiment of the present application analyzes the superior supporting three-dimensional model through automatic assembly to ensure that the model structure that needs to be re-lightweighted can be accurately found without manual intervention when the three-dimensional model is updated; the embodiment of the present application finds the model file of each product part in the superior supporting three-dimensional model according to the BOM structure to ensure the accuracy of re-lightweighting; the embodiment of the present application combines standard function operations, model tree verification and renaming in the lightweight conversion process, which not only completely retains the model information, but also makes the lightweight file format standardized, the naming unique and can be accurately associated, thereby ensuring accurate conversion and facilitating independent viewing and management.
[0021] Details of one or more embodiments of the present application are set forth in the following drawings and description to make other features, objects, and advantages of the present application more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0023] Figure 1 is a logic flow chart of a lightweight three-dimensional model management method based on the PIXYZ tool according to an embodiment of the present application;
[0024] Figure 2 It is a logic flow chart for regularly detecting the lightweight conversion time of each matching device according to an embodiment of the present application;
[0025] Figure 3 is a logic flow chart for performing assembly analysis on a modified three-dimensional model according to an embodiment of the present application;
[0026] Figure 4 is a logic flow chart of lightweight conversion using the PIXYZ tool according to an embodiment of the present application;
[0027] Figure 5 It is a logic flow chart of the operation of a monitoring script according to an embodiment of the present application;
[0028] Figure 6 It is a structural block diagram of a lightweight three-dimensional model management device based on the PIXYZ tool according to an embodiment of the present application;
[0029] Figure 7 It is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0030] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with one or more embodiments of this specification. Instead, they are merely examples of devices and methods consistent with some aspects of one or more embodiments of this specification as detailed in the appended claims.
[0031] It should be noted that: in other embodiments, the steps of the corresponding method are not necessarily performed in the order shown and described in this specification. In some other embodiments, the steps included in the method may be more or less than those described in this specification. In addition, a single step described in this specification may be decomposed into multiple steps for description in other embodiments; and multiple steps described in this specification may be combined into a single step for description in other embodiments.
[0032] Embodiment 1
[0033] The embodiment of the present application provides a lightweight 3D model management method based on the PIXYZ tool, which automatically analyzes the data in the product database to accurately detect the changed 3D model, then obtains the superior supporting 3D model through assembly analysis, and lightweights each product part model file of the superior supporting 3D model, which greatly reduces the manpower investment when the product model is frequently iterated. Specifically, reference Figure 1 , the method comprising:
[0034] Building a product database, in which BOM data belonging to the same product, multiple supporting three-dimensional models, the update time of each supporting three-dimensional model, and the lightweight conversion time of each supporting three-dimensional model are stored in real time;
[0035] Performing lightweight detection on each supporting three-dimensional model at regular intervals. If it is detected during the lightweight detection process that the lightweight conversion time of the supporting three-dimensional model is earlier than the corresponding update time, the corresponding supporting three-dimensional model is obtained as the changed three-dimensional model;
[0036] Performing assembly analysis on the changed three-dimensional model to obtain an upper-level supporting three-dimensional model, wherein the upper-level supporting three-dimensional model is a supporting three-dimensional model that needs to be re-lightweighted due to the changed three-dimensional model, and the upper-level supporting three-dimensional model is a minimum conversion unit, and the minimum conversion unit is a supporting three-dimensional model that independently performs a lightweight conversion operation;
[0037] The BOM structure of the superior supporting three-dimensional model is obtained in the BOM data, the model file of each product part in the BOM structure of the superior supporting three-dimensional model is traversed to obtain, the model file of each product part is lightweighted using the PIXYZ tool, and the corresponding lightweight conversion time in the product database is updated.
[0038] In some specific embodiments, the BOM data in the product database is a type of structured data, which is a product structure data file that can be recognized by a computer and describes the structure of the product in a data format.
[0039] In some specific embodiments, the product database also stores the drawing number and version of each supporting three-dimensional model to distinguish different supporting three-dimensional models. In addition, the product database publishes data access methods to the outside, including database access, interface access, etc., so as to obtain necessary product information in the product database, such as supporting three-dimensional models, drawing numbers of supporting three-dimensional models, version numbers of supporting three-dimensional models, update time of supporting three-dimensional models, supporting lightweight conversion time, etc.
[0040] In some embodiments, the logic flow chart for periodically detecting each matching lightweight conversion time is as follows: Figure 2 As shown, a detection time mark is set for each supporting three-dimensional model, and the detection time mark records the most recent lightweight detection time. During the lightweight detection process, if it is detected that the detection time mark of the supporting three-dimensional model is later than the corresponding update time, the lightweight detection of the corresponding supporting three-dimensional model is skipped.
[0041] Specifically, the update time of each supporting three-dimensional model and the corresponding lightweight conversion time are obtained through the external interface of the product database. The detection time identifier and the lightweight conversion time can be null values. When the detection time identifier is a null value, it means that the corresponding supporting three-dimensional model has not undergone lightweight detection. When the lightweight conversion time is a null value, it means that the corresponding supporting three-dimensional model has not undergone lightweight conversion.
[0042] Specifically, the setting of the detection time identifier can greatly reduce the traversal time during each lightweight detection. That is to say, during the lightweight detection process, the time of the detection time identifier can be used to directly determine whether the supporting three-dimensional model has been updated. If the supporting three-dimensional model has not been updated, the detection of the supporting three-dimensional model can be directly skipped without comparing the lightweight conversion time with the supporting three-dimensional model update time.
[0043] For example, the 3D model of a certain type of engine high-pressure turbine blade assembly (drawing number: HTB-001, version: V2.0) was updated on March 1, 2024, the lightweight conversion time is March 5, 2024, and the lightweight inspection time mark is set to March 5, 2024. When the system automatically identifies the model update on April 1, after reading the mark, it directly skips the inspection process because the model update time has not changed, and invests in the identification of other accessories.
[0044] Furthermore, the changed three-dimensional model obtained in this scheme can be one or more. In actual applications, when lightweight inspection is performed on each supporting three-dimensional model, multiple supporting three-dimensional models will be updated in the product database. At this time, these changed three-dimensional models will be processed in sequence.
[0045] In some embodiments, the logic flow chart of performing assembly analysis on the modified three-dimensional model is as follows: Figure 3 As shown, based on the BOM data, the parent relationship of the changed three-dimensional model is detected layer by layer to obtain the upper-level supporting three-dimensional model, and the data of the upper-level supporting three-dimensional model is one or more.
[0046] Specifically, since the characteristic of a lightweight three-dimensional model is that it contains all element information of a lower-level supporting three-dimensional model, when the corresponding supporting three-dimensional model is updated, all parent lightweight three-dimensional models that directly or indirectly use the supporting three-dimensional model need to be regenerated, otherwise some parts in the original lower-level supporting three-dimensional model will not be automatically updated. Therefore, when a supporting three-dimensional model is updated, the model to be re-lightweighted must be larger than the updated supporting three-dimensional model.
[0047] Specifically, the superior supporting three-dimensional model is the minimum conversion unit, and the minimum conversion unit has the following characteristics:
[0048] 1. The assembly position of the minimum conversion unit is an absolute coordinate, and there is no upper-level assembly constraint. That is to say, the position of the minimum conversion unit can be directly positioned according to its absolute coordinates, rather than being dependent on the relative coordinates of other supporting 3D models, and when the minimum conversion unit is changed, it will not affect other supporting 3D models.
[0049] 2. The model hierarchy of the minimum conversion unit cannot be close to or even reach the top level of the product. If the model hierarchy of the minimum conversion unit is too high, the converted lightweight model will be too large, making it difficult to view. At the same time, the update of the lower-level parts will cause the minimum conversion unit to be updated frequently, resulting in too many conversion tasks.
[0050] 3. The model hierarchy of the minimum conversion unit cannot be too low to be close to the part layer. If the hierarchy of the minimum conversion unit is too low, too many small files will be loaded, affecting the viewing effect and efficiency.
[0051] Specifically, in actual applications, the changed 3D model may have multiple parent relationships, and these parent relationships will be affected by the changed 3D model, so there can be multiple superior supporting 3D models, and the multiple superior supporting 3D models will be lightweight converted separately in the future.
[0052] Furthermore, first determine whether the changed three-dimensional model itself is the minimum conversion unit. If so, use the changed three-dimensional model as the upper-level supporting three-dimensional model. Otherwise, use the changed three-dimensional model as the tracing three-dimensional model, obtain the parent assembly supporting parts that directly or indirectly use the tracing three-dimensional model, and determine one by one whether each parent assembly supporting part is the minimum conversion unit. If so, use the corresponding parent assembly supporting part as the upper-level supporting three-dimensional model. Otherwise, use each parent assembly supporting part as the new tracing three-dimensional model to iteratively determine again until all the upper-level supporting three-dimensional models are obtained.
[0053] Specifically, this solution performs assembly analysis on the changed 3D model with the minimum conversion unit as the target, and can find out all the parents that directly or indirectly reference the changed 3D model to ensure the accuracy of each lightweight update.
[0054] For example, if the three-dimensional model of a new type of aircraft engine core compressor blade (drawing number: CPB-001, version: V2.5) changes, first determine whether the CPB-001 blade model itself is the minimum conversion unit. The system determines based on its assembly position coordinates (absolute coordinates and no upper-level assembly constraints), model hierarchy (at a critical level, not too high to cause the lightweight model to be bloated and difficult to use, nor too low to cause too many file loading problems) and other core elements. If it is indeed the minimum conversion unit, it will be immediately included in the category of the upper-level supporting three-dimensional model to be converted. If the CPB-001 blade model is not the minimum conversion unit, a certain turbine disk (drawing number: TD-002, version: V1.8) directly assembles this blade, and the TD-002 turbine disk becomes the parent assembly supporting. The system accurately identifies whether TD-002 is the minimum conversion unit according to the preset rules. If the conditions are met, it will be established as the upper-level supporting three-dimensional model; if not, TD-002 will be transformed into a new traceability three-dimensional model for continuous backtracking exploration.
[0055] In some embodiments, the logic flow chart of using the PIXYZ tool to perform lightweight conversion is as follows: Figure 4 As shown, the drawing number of the superior supporting three-dimensional model is obtained, and a sub-folder is created under the conversion root directory with the drawing number as the name, and the model file of each product part in the BOM structure of the superior supporting three-dimensional model is placed in the corresponding sub-folder. The sub-folder under the conversion root directory is lightweight converted in the PIXYZ tool, and the lightweight file corresponding to the superior supporting three-dimensional model is exported.
[0056] Furthermore, the model files in the sub-folder are loaded through the PIXYZ standard function, and the loaded model files are first sequentially refined, reference nodes are deleted, and triangle faces are merged to obtain a first lightweight three-dimensional model file, and then the BOM structure of the corresponding superior supporting three-dimensional model is used to check the first lightweight three-dimensional model file to obtain a second lightweight three-dimensional model file, and the second lightweight three-dimensional model file is exported to complete the lightweight operation.
[0057] Specifically, when performing lightweight conversion, the corresponding lower-level supporting 3D model files also need to be converted, otherwise the converted lightweight model will lose the lower-level supporting elements. Therefore, the BOM structure of the upper-level supporting 3D model must be obtained in the BOM data, and the BOM structure must be relied upon to traverse downward to the bottom-level parts, and the model files of these parts must be saved in sub-folders to ensure the accuracy of the lightweight model conversion.
[0058] Furthermore, when an error occurs when the PIXYZ standard function loads a model file in a sub-folder, the model file in the sub-folder is converted into an intermediate format and then loaded again using the PIXYZ standard function.
[0059] Furthermore, if the number of model files in the sub-folder is greater than the set number, the model files in the sub-folder are first converted into an intermediate format and then loaded using the PIXYZ standard function.
[0060] Specifically, due to the different design methods of the supporting 3D model designers, there may be situations where the model cannot be loaded normally, so the model files in the sub-folder are converted into an intermediate format with better compatibility and then loaded using the PIXYZ standard function. The intermediate format is the step format.
[0061] In some specific embodiments, the standard function tessellate of pixyz is used to refine the model. The tessellate function can set the refinement accuracy according to actual needs to complete the model refinement, and then perform reference node deletion and triangle patch merging operations according to the needs of the actual application.
[0062] Specifically, in actual applications, after successfully loading the model files in the sub-folder, confusion may occur in the loading of individual sub-models. Therefore, a model tree check is performed on the loaded model files to avoid confusion in the loading of individual sub-models. During the check, the BOM structure of the corresponding superior supporting three-dimensional model is used to perform a one-to-one check and match between nodes of the first lightweight three-dimensional model file. The matching rule is that the supporting drawing number corresponds to the model tree node name, and the case is ignored.
[0063] Specifically, the model tree node of the first lightweight three-dimensional model file is renamed according to the matching attribute information of the matching three-dimensional model recorded in the BOM data, wherein the matching attribute information includes drawing number, version, name, confidentiality level, and the like.
[0064] Specifically, by renaming the model tree node of the first lightweight three-dimensional model file, it can be achieved that the lightweight model file can be independently viewed by a model viewing tool without being separated from the enterprise data management system and contains relatively complete supporting information.
[0065] Specifically, the lightweight file corresponding to each model tree node in the second lightweight 3D model file is exported through the exportSelection standard function of the pixyz tool. The exported file is named with the drawing number + "_" + version, and unique identification attributes are added to it, such as unique oid, supporting drawing number + version, etc.
[0066] Specifically, the exported lightweight file is named with drawing number + "_" + version, and a unique identification attribute is added. The identification attribute can be used to accurately find the corresponding supporting 3D model, and the lightweight file can be associated with the corresponding supporting 3D model, and managed uniformly with the supporting 3D model in the product database.
[0067] Specifically, the lightweight file exported by this solution is in GLB format. This solution automatically obtains the model file of each product part of the superior supporting three-dimensional model according to the BOM structure, and performs lightweight processing on these model files, which greatly reduces the rendering and loading time.
[0068] In some embodiments, a monitoring script is constructed to monitor the memory usage and conversion time during the lightweight conversion process. If the memory usage is greater than a set threshold, the lightweight conversion process is restarted. If the conversion time is greater than the set time, the lightweight conversion process is terminated. The operation logic flow chart of the monitoring script is as follows: Figure 5 shown.
[0069] Specifically, during the lightweight conversion process using the pixyz tool, due to different design engineers' different habits of using model design tools or large files and other factors, a small number of models cannot be loaded by pixyz or the intermediate format files cannot be generated. When the above situation occurs, the conversion machine will usually have full memory, causing the machine to crash and the intermediate format conversion to get stuck, resulting in the inability to continue the conversion process. Faced with the conversion of product-level models, this situation is very serious, and the conversion program needs to be supervised to ensure the normal conversion progress and not get stuck. Therefore, this solution automatically monitors the conversion program and the computer's operation by building a monitoring script, and takes different measures according to different situations to ensure the normal operation of the conversion program.
[0070] Specifically, this solution uses python+java to build a monitoring script. When the memory usage is greater than 95%, the pixyz tool can no longer load the model file, so the lightweight conversion process is restarted through the monitoring script, and the supporting drawing number with problems is automatically skipped and recorded, waiting for the administrator to view and manually convert it; when the conversion time of the intermediate format is too long, exceeding one hour, this situation is generally because the model file is large and complex, and the export elements are many, causing the programming tool process to be stuck, so the lightweight conversion process is automatically stopped through the monitoring script, and the supporting drawing number with problems is automatically skipped and recorded, waiting for the administrator to view and manually convert it.
[0071] Embodiment 2
[0072] Based on the same idea, refer to Figure 6 , the present application also proposes a lightweight three-dimensional model management device based on the PIXYZ tool, comprising:
[0073] A construction module, used to construct a product database, in which BOM data belonging to the same product, a plurality of supporting three-dimensional models, an update time of each supporting three-dimensional model, and a lightweight conversion time of each supporting three-dimensional model are stored in real time;
[0074] A detection module is used to periodically perform lightweight detection on each supporting three-dimensional model. If it is detected during the lightweight detection process that the lightweight conversion time of the supporting three-dimensional model is earlier than the corresponding update time, the corresponding supporting three-dimensional model is obtained as the changed three-dimensional model;
[0075] An assembly analysis module, used for performing assembly analysis on the changed three-dimensional model to obtain an upper-level supporting three-dimensional model, wherein the upper-level supporting three-dimensional model is a supporting three-dimensional model that needs to be re-lightweighted due to the changed three-dimensional model, and the upper-level supporting three-dimensional model is a minimum conversion unit, and the minimum conversion unit is a supporting three-dimensional model that independently performs a lightweight conversion operation;
[0076] The lightweight module is used to obtain the BOM structure of the upper-level supporting three-dimensional model in the BOM data, traverse and obtain the model file of each product part in the BOM structure of the upper-level supporting three-dimensional model, use the PIXYZ tool to lightweight the model file of each product part, and update the corresponding lightweight conversion time in the product database.
[0077] Embodiment 3
[0078] This embodiment also provides an electronic device, referring to Figure 7 , comprises a memory 404 and a processor 402, wherein the memory 404 stores a computer program, and the processor 402 is configured to run the computer program to execute the steps in any of the above method embodiments.
[0079] Specifically, the processor 402 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0080] Among them, the memory 404 may include a large capacity memory 404 for data or instructions. By way of example and not limitation, the memory 404 may include a hard disk drive (HDD), a floppy disk drive, a solid state drive (SSD), a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive, or a combination of two or more of these. Where appropriate, the memory 404 may include a removable or non-removable (or fixed) medium. Where appropriate, the memory 404 may be inside or outside the data processing device. In a specific embodiment, the memory 404 is a non-volatile memory. In a specific embodiment, the memory 404 includes a read-only memory (ROM) and a random access memory (RAM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (Programmable Read-Only Memory, PROM for short), an erasable PROM (Erasable Programmable Read-Only Memory, EPROM for short), an electrically erasable PROM (Electrically Erasable Programmable Read-Only Memory, EEPROM for short), an electrically alterable ROM (Electrically Alterable Read-Only Memory, EAROM for short) or a flash memory (FLASH) or a combination of two or more of these. Under appropriate circumstances, the RAM can be a static random access memory (Static Random-Access Memory, abbreviated as SRAM) or a dynamic random access memory (Dynamic Random Access Memory, abbreviated as DRAM), wherein the DRAM can be a fast page mode dynamic random access memory 404 (Fast Page Mode Dynamic Random Access Memory, abbreviated as FPMDRAM), an extended data output dynamic random access memory (Extended Date Out Dynamic Random Access Memory, abbreviated as EDODRAM), a synchronous dynamic random access memory (Synchronous Dynamic Random-Access Memory, abbreviated as SDRAM), etc.
[0081] The memory 404 may be used to store or cache various data files required for processing and / or communication, as well as possible computer program instructions executed by the processor 402 .
[0082] The processor 402 implements any one of the lightweight three-dimensional model management methods based on the PIXYZ tool in the above embodiments by reading and executing the computer program instructions stored in the memory 404 .
[0083] Optionally, the electronic device may further include a transmission device 406 and an input / output device 408 , wherein the transmission device 406 is connected to the processor 402 , and the input / output device 408 is connected to the processor 402 .
[0084] The transmission device 406 can be used to receive or send data via a network. The specific examples of the above-mentioned network may include a wired or wireless network provided by a communication provider of the electronic device. In one example, the transmission device includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 406 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0085] The input / output device 408 is used to input or output information. In this embodiment, the input information may be BOM data, supporting three-dimensional model, etc., and the output information may be lightweight model, lightweight conversion time, etc.
[0086] Optionally, in this embodiment, the processor 402 may be configured to perform the following steps through a computer program:
[0087] Building a product database, in which BOM data belonging to the same product, multiple supporting three-dimensional models, the update time of each supporting three-dimensional model, and the lightweight conversion time of each supporting three-dimensional model are stored in real time;
[0088] Performing lightweight detection on each supporting three-dimensional model at regular intervals. If it is detected during the lightweight detection process that the lightweight conversion time of the supporting three-dimensional model is earlier than the corresponding update time, the corresponding supporting three-dimensional model is obtained as the changed three-dimensional model;
[0089] Performing assembly analysis on the changed three-dimensional model to obtain an upper-level supporting three-dimensional model, wherein the upper-level supporting three-dimensional model is a supporting three-dimensional model that needs to be re-lightweighted due to the changed three-dimensional model, and the upper-level supporting three-dimensional model is a minimum conversion unit, and the minimum conversion unit is a supporting three-dimensional model that independently performs a lightweight conversion operation;
[0090] The BOM structure of the superior supporting three-dimensional model is obtained in the BOM data, the model file of each product part in the BOM structure of the superior supporting three-dimensional model is traversed to obtain, the model file of each product part is lightweighted using the PIXYZ tool, and the corresponding lightweight conversion time in the product database is updated.
[0091] It should be noted that the specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.
[0092] In general, various embodiments may be implemented in hardware or dedicated circuits, software, logic, or any combination thereof. Some aspects of the invention may be implemented in hardware, while other aspects may be implemented in firmware or software that may be executed by a controller, microprocessor, or other computing device, but the invention is not limited thereto. Although various aspects of the invention may be shown and described as block diagrams, flow charts, or using some other graphical representation, it should be understood that, as non-limiting examples, the boxes, devices, systems, techniques, or methods described herein may be implemented in hardware, software, firmware, dedicated circuits or logic, general-purpose hardware or controllers or other computing devices, or some combination thereof.
[0093] Embodiments of the present invention may be implemented by computer software that is executable by a data processor of a mobile device, such as in a processor entity, or by hardware, or by a combination of software and hardware. Computer software or programs (also referred to as program products) including software routines, applets and / or macros may be stored in any device-readable data storage medium, and they include program instructions for performing specific tasks. A computer program product may include one or more computer executable components configured to perform an embodiment when the program is run. One or more computer executable components may be at least one software code or a portion thereof. In addition, at this point, it should be noted that, for example, Figure 7 Any block of the logic flow in the program may represent program steps, or interconnected logic circuits, blocks and functions, or a combination of program steps and logic circuits, blocks and functions. The software may be stored on physical media such as memory chips or storage blocks implemented within a processor, magnetic media such as hard disks or floppy disks, and optical media such as, for example, DVDs and their data variants, CDs, etc. Physical media are non-transitory media.
[0094] Those skilled in the art should understand that the technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0095] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A lightweight 3D model management method based on PIXYZ tool, characterized in that: The following steps are involved: Building a product database, in which BOM data belonging to the same product, multiple supporting three-dimensional models, the update time of each supporting three-dimensional model, and the lightweight conversion time of each supporting three-dimensional model are stored in real time; Performing lightweight detection on each supporting three-dimensional model at regular intervals. If it is detected during the lightweight detection process that the lightweight conversion time of the supporting three-dimensional model is earlier than the corresponding update time, the corresponding supporting three-dimensional model is obtained as the changed three-dimensional model; Performing assembly analysis on the changed three-dimensional model to obtain an upper-level supporting three-dimensional model, wherein the upper-level supporting three-dimensional model is a supporting three-dimensional model that needs to be re-lightweighted due to the changed three-dimensional model, and the upper-level supporting three-dimensional model is a minimum conversion unit, and the minimum conversion unit is a supporting three-dimensional model that independently performs a lightweight conversion operation; The BOM structure of the superior supporting three-dimensional model is obtained in the BOM data, the model file of each product part in the BOM structure of the superior supporting three-dimensional model is traversed to obtain, the model file of each product part is lightweighted using the PIXYZ tool, and the corresponding lightweight conversion time in the product database is updated.
2. A lightweight 3D model management method based on PIXYZ tool according to claim 1, characterized in that: A detection time mark is set for each supporting three-dimensional model, and the detection time mark records the most recent lightweight detection time. During the lightweight detection process, if the detection time mark of the supporting three-dimensional model is detected to be later than the corresponding update time, the lightweight detection of the corresponding supporting three-dimensional model is skipped.
3. A lightweight 3D model management method based on PIXYZ tool according to claim 1, characterized in that: Based on the BOM data, the parent relationship of the changed three-dimensional model is detected layer by layer to obtain the upper-level supporting three-dimensional model, and the data of the upper-level supporting three-dimensional model is one or more.
4. A lightweight 3D model management method based on PIXYZ tool according to claim 3, characterized in that: First, determine whether the changed three-dimensional model itself is the minimum conversion unit. If so, use the changed three-dimensional model as the upper-level supporting three-dimensional model. Otherwise, use the changed three-dimensional model as the tracing three-dimensional model, obtain the parent assembly supporting parts that directly or indirectly use the tracing three-dimensional model, and determine whether each parent assembly supporting part is the minimum conversion unit one by one. If so, use the corresponding parent assembly supporting part as the upper-level supporting three-dimensional model. Otherwise, use each parent assembly supporting part as a new tracing three-dimensional model to iteratively determine again until all the upper-level supporting three-dimensional models are obtained.
5. The lightweight 3D model management method based on PIXYZ tool according to claim 1, characterized in that: Obtain the drawing number of the superior supporting 3D model, and create a sub-folder under the conversion root directory with the drawing number as the name, put the model file of each product part in the BOM structure of the superior supporting 3D model into the corresponding sub-folder, perform lightweight conversion on the sub-folder under the conversion root directory in the PIXYZ tool, and export the lightweight file corresponding to the superior supporting 3D model.
6. A lightweight 3D model management method based on PIXYZ tool according to claim 5, characterized in that: The model files in the sub-folder are loaded through the PIXYZ standard function. The loaded model files are first subjected to model refinement, reference node deletion, and triangle face merging operations in sequence to obtain a first lightweight 3D model file. The first lightweight 3D model file is then inspected using the BOM structure of the corresponding superior supporting 3D model to obtain a second lightweight 3D model file. The second lightweight 3D model file is exported to complete the lightweight operation.
7. The lightweight 3D model management method based on PIXYZ tool according to claim 1, characterized in that: Construct a monitoring script, which monitors the memory usage and conversion time during the lightweight conversion process in real time. If the memory usage is greater than a set threshold, the lightweight conversion process is restarted; if the conversion time is greater than a set time, the lightweight conversion process is terminated.
8. A lightweight 3D model management device based on PIXYZ tool, characterized in that: include: A construction module, used to construct a product database, in which BOM data belonging to the same product, a plurality of supporting three-dimensional models, an update time of each supporting three-dimensional model, and a lightweight conversion time of each supporting three-dimensional model are stored in real time; A detection module is used to periodically perform lightweight detection on each supporting three-dimensional model. If it is detected during the lightweight detection process that the lightweight conversion time of the supporting three-dimensional model is earlier than the corresponding update time, the corresponding supporting three-dimensional model is obtained as the changed three-dimensional model; An assembly analysis module, used for performing assembly analysis on the changed three-dimensional model to obtain an upper-level supporting three-dimensional model, wherein the upper-level supporting three-dimensional model is a supporting three-dimensional model that needs to be re-lightweighted due to the changed three-dimensional model, and the upper-level supporting three-dimensional model is a minimum conversion unit, and the minimum conversion unit is a supporting three-dimensional model that independently performs a lightweight conversion operation; The lightweight module is used to obtain the BOM structure of the upper-level supporting three-dimensional model in the BOM data, traverse and obtain the model file of each product part in the BOM structure of the upper-level supporting three-dimensional model, use the PIXYZ tool to lightweight the model file of each product part, and update the corresponding lightweight conversion time in the product database.
9. An electronic device comprising a memory and a processor, characterized in that: The memory stores a computer program, and the processor is configured to run the computer program to execute a lightweight three-dimensional model management method based on a PIXYZ tool as described in any one of claims 1 to 7.
10. A readable storage medium, characterized in that: The readable storage medium stores a computer program, wherein the computer program includes a program code for controlling a process to execute a process, wherein the process includes a lightweight three-dimensional model management method based on a PIXYZ tool according to any one of claims 1 to 7.