An electrical model lightweight translation software method based on IFC data format
By employing a lightweight translation method for electrical models that utilizes layered processing and dynamic rendering resource scheduling, the problem of low efficiency in applying IFC data format electrical models across different hardware platforms is solved, achieving efficient transmission and smooth display.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- STATE GRID SHANGHAI ELECTRIC POWER DESIGN
- Filing Date
- 2025-08-28
- Publication Date
- 2026-05-15
AI Technical Summary
Existing methods for translating electrical models in the IFC data format result in large file sizes and data redundancy in the output models, making them inefficient for use on different hardware platforms.
By processing the geometric, attribute, and topological data of the electrical model in layers, eliminating redundant information, adjusting the geometric accuracy according to the actual application scenario, and dynamically scheduling rendering resources in conjunction with the performance of the terminal hardware, lightweight translation is achieved.
It enables efficient transmission and rapid loading of electrical models on different hardware terminals, ensuring the integrity and adaptability of model information, expanding application scenarios, and enhancing the practical value of the models.
Smart Images

Figure CN121118394B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of model data processing technology, specifically to a lightweight translation software method for electrical models based on the IFC data format. Background Technology
[0002] IFC data format (e.g., Building Information Modeling, BIM) is the de facto international standard for engineering data exchange in the construction industry. It aims to solve the problem of data interoperability between multiple professional software throughout the entire life cycle of a building. The standard uses the EXPRESS language to build a four-layer architecture system, and realizes cross-platform information exchange through a neutral file format. It covers professional fields such as architecture, mechanical and electrical engineering, and structure, and supports data types such as geometry, materials, and facility management.
[0003] IFC data format files contain a wealth of information, including geometric data, material properties, and element relationships for architecture, electrical systems, and structures. They are stored in a hierarchical structure, which satisfies both machine and human readability. However, this complex structure results in large file sizes; for example, a 100MB model can export to a 1GB IFC file. Furthermore, IFC data format files can only be read and recognized by professional BIM software. Given the significant differences in hardware performance, loading models on low-end terminals can cause lag or prevent viewing. Therefore, current methods translate IFC data format models into smaller files. However, existing translation methods typically output fixed-precision model files, and the use of general simplification strategies fails to effectively eliminate data redundancy. The compressed translated model space is also relatively limited. Therefore, the translated model still suffers from large data volumes, severely restricting the application of electrical models across different equipment platforms. Summary of the Invention
[0004] To address the shortcomings of existing technologies, this invention provides a lightweight translation software method for electrical models based on the IFC data format, which solves the problems mentioned in the background art.
[0005] To achieve the above objectives, the present invention provides the following technical solution: a lightweight translation software method for electrical models based on IFC data format, comprising the following steps:
[0006] Extract the geometric data, attribute data, and topological relationship data of the electrical model in the IFC data format of the industrial basic category. Based on the electrical equipment housing, electrical circuits, and electrical components of the electrical model, divide the electrical model into a geometric layer, an attribute layer, and a topological layer. Then, remove redundant information from the geometric layer, attribute layer, and topological layer to obtain a simplified electrical model.
[0007] The geometric accuracy of the simplified electrical model is determined based on the actual application scenario parameters of electrical construction. The geometric simplification parameters of the simplified electrical model are adjusted and simplified corrections are made. The processed simplified electrical model data is stored in the model combination of the target conversion format, and the initial model file of the target conversion format after lightweight translation is output.
[0008] Based on the initial model file, a correction analysis is performed. Taking the first version of the output initial model file as a basis, the model content loss or damage that occurred in the lightweight translation of the initial model file is analyzed. Based on the lost and damaged content of the initial model file, the corresponding model part of the simplified electrical model is extracted, translated again and supplemented into the initial model file to generate the second version of the initial model file. This process continues until the initial model file is updated and completed. After incremental completion of the initial model file, the lightweight electrical model in the target conversion format is generated.
[0009] The lightweight electrical model reserves ports for model data increments and model completion. Based on the hardware performance of the target running terminal of the lightweight electrical model, the rendering data of the lightweight electrical model is determined according to the hardware performance of the target running terminal. Based on the rendering data, the data increment and model completion of the lightweight electrical model are selected, and rendering resource scheduling is established to adapt to the hardware performance of different target running terminals.
[0010] Preferably, the geometric layer is the electrical equipment housing, the attribute layer is the parameter attributes of the electrical components, and the topology layer is the wiring diagram of the electrical circuit.
[0011] The steps for removing redundant information in the geometry layer, attribute layer, and topology layer include:
[0012] The electrical model is split into the geometry layer, the attribute layer, and the topology layer. The precision of the electrical equipment housing in the geometry layer is reduced, while the visible parts of the equipment are retained. The brackets, mounting brackets, switches, and sockets inside the equipment are eliminated or replaced with simplified models.
[0013] The attribute layer retains key parameters that affect equipment selection, construction and installation, and operation and maintenance, while removing temporary information, duplicate annotations, and non-standard parameters generated during the modeling process.
[0014] For the electrical circuits, the topology layer retains the connection relationships between the main circuit and branch circuits of the circuits, and the connection relationships between the distribution box and each device, while removing non-critical wiring relationships of the electrical circuits.
[0015] Preferably, the steps of determining the geometric accuracy of the simplified electrical model based on the actual application scenario parameters of electrical construction, and adjusting the geometric simplification parameters of the simplified electrical model and performing simplification correction include:
[0016] Obtain the actual application scenario parameters of the electrical construction, which include: construction simulation, engineering drawings and mobile terminal browsing scenario types, and determine the geometric accuracy of the simplified electrical model through user interaction;
[0017] The simplified electrical model has three levels of geometric accuracy: high-precision scenario, medium-precision scenario, and low-precision scenario. The high-precision scenario corresponds to the construction simulation, and users have engineering simulation requirements for the electrical model.
[0018] The medium-precision scenario corresponds to the engineering drawing, which is an electrical equipment drawing or an electrical equipment model, and the engineering drawing must be viewable on a computer.
[0019] The low-precision scene corresponds to the mobile terminal browsing, which has low requirements for the performance of the equipment used to view the electrical model, and meets the viewing requirements of smart mobile devices.
[0020] Preferably, in the high-precision scenario, the simplified electrical model needs to retain model details; in the medium-precision scenario, the simplified electrical model needs to retain all model content; the simplification of the electrical model is achieved by reducing the model precision; and in the low-precision scenario, the simplified electrical model needs to ensure that the key parameters of the model are retained, and that non-critical parts of the electrical model are deleted or replaced.
[0021] Preferably, the step of storing the simplified electrical model data in a model combination according to the target conversion format includes:
[0022] The simplified data is categorized and packaged according to the geometric layer, the attribute layer, and the topology layer. An independent storage location is allocated to the simplified data in each layer, and a type identifier is added.
[0023] Based on the electrical model, the simplified data of the three layers are associated and mapped. The simplified data of each layer are located in the same workspace, combined, and the combined data is packaged.
[0024] The simplified data from the three layers, after being packaged, is integrated into a complete model file, and the complete model file is then output to obtain the initial model file.
[0025] Preferably, the step of performing correction analysis on the initial model file includes:
[0026] By comparing the core data of the initial model file with that of the simplified electrical model through integrity verification, problems such as missing geometric details, missing attribute parameters, and damage to topological relationships are identified.
[0027] The initial model file generates a correction list based on the identification, including the location, type, and severity of the missing content, and sends a correction reminder.
[0028] Preferably, the logic for selecting incremental data from the lightweight electrical model and model completion in the rendering data selection, and establishing rendering resource scheduling to adapt to the performance of the target running terminal with different hardware, specifically includes:
[0029] High-performance target terminals enable detailed rendering mode to preserve complete geometric details and textures; medium-performance target terminals enable balanced rendering mode to simplify textures of non-critical components; low-performance target terminals enable basic rendering mode, using solid colors to replace textures and prioritizing loading of visible area models. The rendering resource scheduling adjusts the rendering precision based on the component load monitoring of the target terminal.
[0030] Preferably, during the process of extracting the model portion corresponding to the simplified electrical model and translating it again to supplement the initial model file, the same precision parameters as when the simplified electrical model was first translated to the initial model file are used to ensure that the supplemented content is consistent with the initial model file in terms of geometric dimensions, attribute format, and topological logic.
[0031] Preferably, the logic for reserving the port for incremental model data and the port for model completion in the lightweight electrical model is as follows:
[0032] The lightweight electrical model reserves a model data increment port for receiving and integrating incremental change data when the lightweight electrical model is updated, allowing users to import data and output the model.
[0033] The model completion port of the lightweight electrical model is used to receive additions, completions, and deletions of model content, allowing users to add or modify the content of the lightweight electrical model.
[0034] Preferably, the rendering resource scheduling utilizes an operation loading mechanism, prioritizing the loading of model data within the current user operation focus based on the user operation focus of the target running terminal, while data in areas other than the user operation focus is temporarily stored using low-precision placeholders, with the precision increased later when the user browses.
[0035] This invention provides a lightweight translation software method for electrical models based on the IFC data format. It has the following advantages:
[0036] (1) By implementing layered lightweight processing of the geometric, attribute and topology data of the electrical model, instead of adopting a general simplification strategy, redundant information at each level is effectively eliminated, achieving the effect of accurately reducing the amount of model data, realizing efficient transmission and fast loading of the translated model on different hardware terminals, and improving the basic application capabilities of the model across device platforms.
[0037] (2) Semantic completion ensures the integrity of professional information in the model after lightweight processing. At the same time, the rendering parameters are dynamically adapted according to the performance of the terminal hardware, avoiding the loading problem of fixed-precision models on low-end terminals. This achieves a balance between the integrity of model information and terminal adaptability, enabling the smooth display of electrical models on different performance devices, expanding the application scenarios of the model, and ensuring that electrical professional information can be effectively transmitted. This prevents the loss or damage of professional information during lightweight translation, thus ensuring data integrity.
[0038] (3) The incremental translation method is used to target the version update part, which reduces the invalid consumption of full translation. At the same time, a dynamic data association mechanism is established to retain key data and increment the model, thereby improving the efficiency of version iteration and the timeliness of model data. This enables the electrical model to be used efficiently across stages throughout its life cycle, enhancing the practical value of the model. Attached Figure Description
[0039] Figure 1 This is a flowchart illustrating the steps of a lightweight translation software method for electrical models based on IFC data format according to the present invention.
[0040] Figure 2 This is a flowchart of a lightweight translation software method for electrical models based on the IFC data format according to the present invention. Detailed Implementation
[0041] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0042] Example 1
[0043] Please see Figure 1-2 This invention provides a lightweight translation software method for electrical models based on IFC data format. To achieve the above objectives, this invention is implemented through the following technical solution, including the following steps:
[0044] Extract the geometric data, attribute data, and topological relationship data of the electrical model in the IFC data format of the industrial basic class. Based on the electrical equipment housing, electrical circuits, and electrical components of the electrical model, divide the electrical model into a geometric layer, an attribute layer, and a topological layer. Then, remove redundant information from the geometric layer, attribute layer, and topological layer to obtain a simplified electrical model.
[0045] Based on the actual application scenario parameters of electrical construction, the geometric accuracy of the simplified electrical model is determined, the geometric simplification parameters of the simplified electrical model are adjusted and simplified corrections are made, the processed simplified electrical model data is stored according to the model combination in the target conversion format, and the initial model file in the target conversion format after lightweight translation is output.
[0046] Based on the initial model file, a correction analysis is performed. Taking the first version of the output initial model file as a basis, the model content loss or damage that occurred in the lightweight translation of the initial model file is analyzed. Based on the lost and damaged content of the initial model file, the corresponding model parts of the simplified electrical model are extracted, translated again and supplemented into the initial model file to generate the second version of the initial model file. This process continues until the initial model file is updated and completed. After incremental completion of the initial model file, a lightweight electrical model in the target conversion format is generated.
[0047] The lightweight electrical model reserves ports for incremental model data and model completion. Based on the hardware performance of the target terminal of the lightweight electrical model, the rendering data of the lightweight electrical model is determined according to the hardware performance of the target terminal. Based on the rendering data, the data increment and model completion of the lightweight electrical model are selected, and rendering resource scheduling is established to adapt to the hardware performance of different target terminals.
[0048] In this embodiment, based on the lightweight translation requirement of the electrical model in IFC data format, the computing device first parses the electrical model in IFC data format and layers it according to electrical characteristics: extracting geometric, attribute, and topology data, and correspondingly dividing it into a geometric layer (containing 3D information of equipment pipeline shape), an attribute layer (containing equipment parameters and loop codes), and a topology layer (containing connection relationships and system structure). Then, layered lightweighting is implemented. The geometric layer simplifies or deletes internal parts and components according to the equipment component type, such as retaining the external pipeline model and deleting the internal wire model of the pipeline, and eliminating redundant details. The attribute layer filters the core attributes of the equipment, such as the parameters and dimensions of the equipment, and then compresses the attribute codes and removes temporary annotations in the model. The topology layer retains the connection lines of the main loop and branch loops and simplifies non-core route lines.
[0049] The system obtains parameters from actual application scenarios of users using construction simulation, engineering drawings, and mobile browsing, matches the corresponding high-precision, medium-precision, or low-precision model simplification parameters, adjusts the geometric simplification parameters according to the accuracy requirements, and corrects the dimensions of the simplification results to ensure engineering accuracy. After simplifying the processed geometric, attribute, and topological data according to the target conversion format, the system assembles the models at each level into a complete simplified model, encapsulates and generates the initial model file, and outputs it.
[0050] Based on the first version of the initial model file, the content loss or damage during the translation process is analyzed through integrity verification. For the missing or damaged content, the corresponding part is extracted from the simplified electrical model and re-translated to supplement the initial model file to generate the second version. The correction and completion process is repeated until the model has no missing key information. After incremental completion, the lightweight electrical model in the target format is output.
[0051] Based on the performance of the target terminal hardware, the lightweight electrical model can be further refined by adding or deleting model content. Then, the performance of the target terminal hardware is detected, and the detailed rendering, balanced rendering, or basic rendering mode is matched. The lightweight electrical model can then be viewed, and based on the terminal's real-time load and rendering data, the model data can be flexibly loaded incrementally or the content can be completed, thereby achieving smooth operation on different hardware terminals.
[0052] Example 2
[0053] Specifically: the geometry layer is the electrical equipment housing, the attribute layer is the parameter attributes of electrical components, and the topology layer is the wiring diagram of electrical circuits;
[0054] The steps for removing redundant information in the geometry layer, attribute layer, and topology layer include:
[0055] The electrical model is split into a geometry layer, an attribute layer, and a topology layer. The detail of the electrical equipment housing in the geometry layer is reduced, while the visible parts of the equipment are retained. The brackets, mounting brackets, switches, and sockets inside the equipment are eliminated or replaced with simplified models.
[0056] Key parameters affecting equipment selection, construction and installation, and operation and maintenance are retained in the attribute layer, while temporary information, duplicate annotations and non-standard parameters generated during the modeling process are removed.
[0057] For the topology layer, which is for electrical circuits, the connection relationships between the main circuit and branch circuits of the circuit, and the connection relationships between the distribution box and each device are retained, while non-critical electrical circuit wiring relationships are eliminated.
[0058] The steps for determining the geometric accuracy of a simplified electrical model based on actual application scenario parameters in electrical construction, adjusting the geometric simplification parameters of the simplified electrical model, and performing simplification corrections include:
[0059] Obtain parameters for actual application scenarios in electrical construction, including construction simulation, engineering drawings, and mobile browsing scenario types. Determine the geometric accuracy of the simplified electrical model through user interaction.
[0060] The simplified electrical model's geometric accuracy includes three accuracy levels: high-precision scenario, medium-precision scenario, and low-precision scenario. The high-precision scenario corresponds to construction simulation, and users have engineering simulation requirements for the electrical model.
[0061] Medium-precision scenes correspond to engineering drawings, which are electrical equipment drawings or electrical equipment models. The engineering drawings must be viewable on a computer.
[0062] Low-precision scenes are suitable for mobile browsing, and the electrical model has low requirements for the performance of the equipment used, which meets the viewing requirements of smart mobile devices.
[0063] In high-precision scenarios, simplifying electrical models requires retaining model details. In medium-precision scenarios, simplifying electrical models requires retaining all model content. The simplification of electrical models is achieved by reducing the model's precision. In low-precision scenarios, simplifying electrical models requires ensuring that the key parameters of the model are retained, and deleting or replacing non-critical parts of the electrical model.
[0064] In this embodiment, the electrical model is split into a geometric layer, an attribute layer, and a topology layer. The splitting process uses unique identifiers to determine the connection order of the split model components, thus establishing connections and positioning between model data layers. This ensures that the geometric, attribute, and topology data of the same device can be queried and combined through unique identifiers. The precision of the electrical equipment housing in the geometric layer is reduced by using a triangular facet merging algorithm to decrease the number of surface patches (facets are local tangent planes used to approximate the surface of an object in 3D modeling). Small facets in areas with gentle curvature changes are merged, internal structures such as brackets are directly deleted, and small components such as switches and sockets are simplified. Geometric templates (such as cuboids) are used as a replacement, retaining key installation dimensions. The attribute layer retains key parameters that affect equipment selection, construction, installation, operation, and maintenance. Filtering is performed through a pre-set core attribute screening library, which is built based on electrical design specifications. Required attributes (such as the rated current of circuit breakers) and optional attributes (such as equipment weight) are defined according to equipment type. Temporary information generated during the modeling process (such as modeler and modeling time), duplicate annotations (such as custom codes that duplicate equipment IDs), and non-standard parameters (such as non-standard remarks) are removed. Text-type attributes are standardized (such as unifying the expressions "power" and "rated power").
[0065] The topology layer preserves the connection relationships between main and branch circuits of electrical lines, as well as the connection relationships between distribution boxes and various devices. It extracts the spanning tree of the topology network using graph theory algorithms, retaining core paths and eliminating non-critical electrical lines, such as short-distance repeated connections and temporary test line connection records. It simplifies the coordinates of continuous inflection points within the same circuit, replacing dense coordinate point records with path curve parameters. High-precision scenarios need to meet engineering simulation requirements, retaining high-precision data of key dimensions such as equipment size, wiring relationships, and equipment details, with a geometric simplification rate controlled within 30% and a dimensional error ≤5mm. Medium-precision scenarios need to retain the structural integrity and main dimensional information of the entire model, with a geometric simplification rate controlled around 50% and a dimensional error ≤10mm. Lightweighting is achieved by reducing the fineness of surface details. Low-precision scenarios can be viewed on mobile devices, indicating lower hardware requirements for viewing devices and lower performance requirements for devices using the electrical model. Prioritizing model loading speed and smoothness, the geometric simplification rate can be increased to 70%–80%, achieving lightweighting by deleting non-critical components and significantly simplifying surface details, with a key parameter retention rate ≥95%.
[0066] Example 3
[0067] Specifically, the steps for simplifying the storage of electrical model data by combining models according to the target conversion format include:
[0068] The simplified data is categorized and packaged according to geometric, attribute, and topological layers, and each layer of simplified data is allocated an independent storage location and a type identifier is added.
[0069] Based on the electrical model, the three-layer simplified data are correlated and mapped. The simplified data of each layer are located in the same workspace, combined, and the combined data is packaged.
[0070] The packaged, simplified three-layer data is integrated into a complete model file, and the complete model file is output to obtain the initial model file.
[0071] The steps for correcting the initial model file include:
[0072] By comparing the core data of the initial model file with the simplified electrical model through integrity verification, problems such as missing geometric details, missing attribute parameters, and damage to topological relationships can be identified.
[0073] The initial model file generates a correction list based on the identification, including the location, type, and severity of missing content, and sends correction reminders;
[0074] In this embodiment, the geometry layer data is stored in folders according to entity type (equipment, pipeline, accessories). Each entity data contains simplified mesh information, material description and spatial coordinates. The attribute layer data is stored as a data table according to the device type. Each row corresponds to the attribute set of an entity, including the device attribute name, value and unit. The topology layer data is stored as a network relationship table, which records the circuit connection type and identification code. Each layer of simplified data is allocated an independent storage location and a type identifier is added to facilitate quick identification of data type during parsing.
[0075] The packaged three-layer simplified data is integrated into a complete model file. During the integration process, the identification codes of the three-layer model components stored in the topology layer network relationship table are used in combination with the coordinate system of the model workspace to determine the bottom coordinate position of the model. Then, the corresponding target model components are called in the order of the identification codes and combined with the bottom model components that have been located to form a complete model and output it.
[0076] The core data of the initial model file and the simplified electrical model are compared by integrity verification. The key feature values of the initial model (such as the number of model components, key dimensions, and core attributes) are extracted and compared with the corresponding feature values of the simplified electrical model. An allowable error threshold is set to identify problems such as missing geometric details (e.g., incomplete equipment outline), missing attribute parameters (e.g., no recorded rated current), and damage to topological relationships (e.g., interrupted circuit connections). The specific location of the missing and damaged content is located by feature matching. Based on the identification, a correction list is generated, which includes the location, type, and severity of the missing content. The location information records the identification code and spatial coordinates of the model component. The types are classified as geometric, attribute, and topological. The severity is classified according to the scope of impact as critical (affecting engineering applications), minor (affecting the display of details), and slight (not affecting core functions). The correction list is then stored, and correction reminders are sent via system message or email. The reminder content includes a summary of the missing content and handling suggestions.
[0077] Example 4
[0078] Specifically: The logic for selecting incremental lightweight electrical model data and model completion for rendering data, and establishing rendering resource scheduling to adapt to the performance of different hardware target running terminals is as follows:
[0079] High-performance target runtimes enable detailed rendering mode to preserve full geometric details and textures; medium-performance target runtimes enable balanced rendering mode to simplify textures of non-critical components; low-performance target runtimes enable basic rendering mode, using solid colors to replace textures and prioritizing loading of visible area models. Rendering resource scheduling adjusts rendering precision based on component load monitoring of the target runtime.
[0080] During the process of extracting the corresponding model parts of the simplified electrical model and translating them again to supplement the initial model file, the same precision parameters as when translating the simplified electrical model to the initial model file are used to ensure that the supplemented content is consistent with the initial model file in terms of geometric dimensions, attribute format and topological logic.
[0081] The logic for reserving incremental model data ports and model completion ports in the lightweight electrical model is as follows:
[0082] The lightweight electrical model reserves an incremental data port for receiving and integrating incremental change data when the lightweight electrical model is updated, allowing users to import data and output models from the lightweight electrical model.
[0083] The lightweight electrical model's model completion port is used to receive additions, completions, and deletions of model content, allowing users to add or modify the content of the lightweight electrical model.
[0084] The rendering resource scheduling utilizes an operation loading mechanism. Based on the user's operation focus on the target terminal, model data within the current user's operation focus is loaded first. Data in areas outside the user's operation focus is temporarily stored using low-precision placeholders, and the precision is increased when the user browses.
[0085] In this embodiment, the high-performance target operating terminal (such as a workstation equipped with a dedicated graphics card) enables a detailed rendering mode to retain complete geometric details and textures. In this mode, all simplified geometric faces are loaded, lighting and shadow effects are enabled, and the rendered texture uses the original resolution. It supports real-time display of details when the model is rotated and scaled. The medium-performance target operating terminal (such as a regular office computer) enables a balanced rendering mode to simplify the textures of non-critical components. In this mode, the geometric details of the core components are retained, the number of faces for non-critical components is appropriately reduced, the texture resolution is reduced accordingly, and some lighting and shadow effects are turned off. By reducing the amount of computation, the visual effect and performance are balanced. The low-performance target operating terminal (such as a smartphone, tablet, and computer with integrated graphics) enables a basic rendering mode that uses solid colors to replace textures and prioritizes loading the visible area model. In this mode, solid color fill is used to replace texture mapping, which greatly reduces the number of geometric faces (preserving the device outline shape). By only loading the model data of the currently visible area of the screen, the non-visible area is temporarily stored as a low-precision placeholder.
[0086] Load monitoring adjusts rendering precision by collecting data such as CPU usage, GPU load, and memory usage in real time through the target running terminal performance monitoring interface. When the load exceeds the preset threshold (e.g., CPU ≥ 80%, frame rate < 15fps), the rendering precision is automatically reduced (e.g., reducing the number of faces, turning off textures). When the load is below the recovery threshold (e.g., CPU ≤ 60%), the rendering precision is gradually restored. The adjustment process is smooth and avoids screen flickering.
[0087] Although embodiments of the invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention.
Claims
1. A lightweight translation software method for electrical models based on IFC data format, characterized in that, Includes the following steps: Extract the geometric data, attribute data, and topological relationship data of the electrical model in the IFC data format of the industrial basic category. Based on the electrical equipment housing, electrical circuits, and electrical components of the electrical model, divide the electrical model into a geometric layer, an attribute layer, and a topological layer. Then, remove redundant information from the geometric layer, attribute layer, and topological layer to obtain a simplified electrical model. The geometric accuracy of the simplified electrical model is determined based on the actual application scenario parameters of electrical construction. The geometric simplification parameters of the simplified electrical model are adjusted and simplified corrections are made. The processed simplified electrical model data is stored in the model combination of the target conversion format, and the initial model file of the target conversion format after lightweight translation is output. Based on the initial model file, a correction analysis is performed. Taking the first version of the output initial model file as a basis, the model content loss or damage that occurred in the lightweight translation of the initial model file is analyzed. Based on the lost and damaged content of the initial model file, the corresponding model part of the simplified electrical model is extracted, translated again and supplemented into the initial model file to generate the second version of the initial model file. This process continues until the initial model file is updated and completed. After incremental completion of the initial model file, the lightweight electrical model in the target conversion format is generated. The lightweight electrical model reserves ports for model data increments and model completion. Based on the hardware performance of the target running terminal of the lightweight electrical model, the rendering data of the lightweight electrical model is confirmed, and the data increments and model completion of the lightweight electrical model are selected according to the rendering data. Rendering resource scheduling is established to adapt to the hardware performance of different target running terminals.
2. The lightweight translation software method for electrical models based on IFC data format according to claim 1, characterized in that, The geometric layer is the housing of the electrical equipment, the attribute layer is the parameter attributes of the electrical components, and the topology layer is the wiring diagram of the electrical circuit. The steps for removing redundant information in the geometry layer, attribute layer, and topology layer include: The electrical model is split into the geometry layer, the attribute layer, and the topology layer. The precision of the electrical equipment housing in the geometry layer is reduced, while the visible parts of the equipment are retained. The brackets, mounting brackets, switches, and sockets inside the equipment are eliminated or replaced with simplified models. The attribute layer retains key parameters that affect equipment selection, construction and installation, and operation and maintenance, while removing temporary information, duplicate annotations, and non-standard parameters generated during the modeling process. For the electrical circuits, the topology layer retains the connection relationships between the main circuit and branch circuits of the circuits, and the connection relationships between the distribution box and each device, while removing non-critical wiring relationships of the electrical circuits.
3. The lightweight translation software method for electrical models based on IFC data format according to claim 1, characterized in that, The steps of determining the geometric accuracy of the simplified electrical model based on actual application scenario parameters of electrical construction, adjusting the geometric simplification parameters of the simplified electrical model, and performing simplification correction include: Obtain the actual application scenario parameters of the electrical construction, which include: construction simulation, engineering drawings and mobile terminal browsing scenario types, and determine the geometric accuracy of the simplified electrical model through user interaction; The simplified electrical model has three levels of geometric accuracy: high-precision scenario, medium-precision scenario, and low-precision scenario. The high-precision scenario corresponds to the construction simulation, and users have engineering simulation requirements for the electrical model. The medium-precision scenario corresponds to the engineering drawing, which is an electrical equipment drawing or an electrical equipment model, and the engineering drawing must be viewable on a computer. The low-precision scene corresponds to the mobile terminal browsing, which has low requirements for the performance of the equipment used to view the electrical model, and meets the viewing requirements of smart mobile devices.
4. The lightweight translation software method for electrical models based on IFC data format according to claim 3, characterized in that, In the high-precision scenario, the simplified electrical model needs to retain model details. In the medium-precision scenario, the simplified electrical model needs to retain all model content. The simplification of the electrical model is achieved by reducing the model precision. In the low-precision scenario, the simplified electrical model needs to ensure that the key parameters of the model are retained, and the non-critical parts of the electrical model are deleted or replaced.
5. The lightweight translation software method for electrical models based on IFC data format according to claim 1, characterized in that, The steps for storing the simplified electrical model data in a model combination format according to the target conversion format include: The simplified data is categorized and packaged according to the geometric layer, the attribute layer, and the topology layer. An independent storage location is allocated to the simplified data in each layer, and a type identifier is added. Based on the electrical model, the simplified data of the three layers are associated and mapped. The simplified data of each layer are located in the same workspace, combined, and the combined data is packaged. The simplified data from the three layers, after being packaged, is integrated into a complete model file, and the complete model file is output to obtain the initial model file.
6. The lightweight translation software method for electrical models based on IFC data format according to claim 1, characterized in that, The steps for correcting and analyzing the initial model file include: By comparing the core data of the initial model file with that of the simplified electrical model through integrity verification, problems such as missing geometric details, missing attribute parameters, and damage to topological relationships are identified. After identification, a correction list is generated, including the location, type, and severity of the missing content, and a correction reminder is sent.
7. The lightweight translation software method for electrical models based on IFC data format according to claim 1, characterized in that, The logic for selecting the data increments and model completions of the lightweight electrical model for rendering data, and establishing rendering resource scheduling to adapt to the hardware performance of different target running terminals, is as follows: The high-performance target terminal uses a detailed rendering mode to preserve complete geometric details and textures. The medium-performance target terminal uses a balanced rendering mode to simplify the textures of non-critical components. The low-performance target terminal uses a basic rendering mode to replace textures with solid colors and prioritizes loading visible area models. The rendering resource scheduling adjusts the rendering accuracy based on the component load monitoring of the target terminal.
8. The lightweight translation software method for electrical models based on IFC data format according to claim 1, characterized in that, During the process of extracting the model portion corresponding to the simplified electrical model and translating it again to supplement the initial model file, the same precision parameters as when the simplified electrical model was first translated to the initial model file are used to ensure that the supplemented content is consistent with the initial model file in terms of geometric dimensions, attribute format, and topological logic.
9. The lightweight translation software method for electrical models based on IFC data format according to claim 1, characterized in that, The logic for reserving incremental model data ports and model completion ports in the lightweight electrical model is as follows: The lightweight electrical model reserves a model data increment port for receiving and integrating incremental change data when the lightweight electrical model is updated, allowing users to import data and output models of the lightweight electrical model; The model completion port of the lightweight electrical model is used to receive additions, completions, and deletions of model content, allowing users to add or modify the content of the lightweight electrical model.
10. The lightweight translation software method for electrical models based on IFC data format according to claim 1, characterized in that, The rendering resource scheduling utilizes an operation loading mechanism. Based on the user's operation focus on the target running terminal, model data within the current user operation focus is loaded first. Data in areas other than the user operation focus is temporarily stored using low-precision placeholders, and the precision is increased when the user browses.