Building information model lightweight processing and rendering method and device and electronic equipment
Patent Information
- Application Number
- CN202510220710.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-26
- Publication Date
- 2026-08-28
AI Technical Summary
[0005]有鉴于此,本申请实施例的目的在于提供建筑信息模型轻量化处理与渲染方法、装置、电子设备及介质,用以解决相关技术中如何对建筑信息模型进行轻量化处理的问题
[0064] In the above implementation process, the component models that make up the Building Information Model (BIM) are classified using the attribute data of the BIM, and the master model of each category is determined. Furthermore, the attribute data of all component models under that category are associated with the corresponding master models to obtain the association information of the master models. Several master models, the association information of each master model, and the attribute data of each component model are output. This ensures that the output model only includes the master models, rather than all component models, effectively reducing the number of models and achieving lightweight processing of the BIM. Moreover, the association information of the master models in the output lightweight information can determine the attribute data of all component models under the corresponding category, ensuring the accuracy of the BIM data.
Smart Images

Figure CN122657331A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of building information modeling technology, and in particular to lightweight processing and rendering methods, devices, electronic devices and media for building information models. Background Technology
[0002] Building Information Modeling (BIM) technology uses buildings as objects and, through the creation of information models, expresses their three-dimensional spatial structure, internal structure, and management attributes at a micro level.
[0003] As project scale continues to increase and modeling accuracy continues to improve, the number of component models in BIM continues to increase, and the corresponding amount of BIM component model data also continues to increase. Consequently, when rendering or performing other operations on BIM, it is necessary to render the corresponding component model based on the data of each component model, which can easily lead to low efficiency in BIM rendering.
[0004] Therefore, how to lightweight the Building Information Model (BIM) in related technologies is a problem that needs to be solved. Summary of the Invention
[0005] In view of this, the purpose of the embodiments of this application is to provide a method, apparatus, electronic device and medium for lightweight processing and rendering of building information models, so as to solve the problem of how to perform lightweight processing of building information models in related technologies.
[0006] In a first aspect, embodiments of this application provide a method for processing building models, the method comprising:
[0007] Obtain component information that makes up the building information model, wherein the component information includes several component models and attribute data of each component model;
[0008] Based on the attribute data, all the component models that make up the building information model are classified to obtain multiple categories of component model sets; at least one category of the component model set includes multiple component models;
[0009] In each category of the component model set, determine the corresponding category's main component model;
[0010] Associating the attribute data of all component models in the same category with the corresponding category's main component model yields the association information of the main component model for each category.
[0011] Output component lightweighting information, which includes several component master models, association information of each component master model, and attribute data of each component model.
[0012] In one embodiment, the attribute data includes the family name of each component model; the method for outputting component lightweight information includes:
[0013] Component models with the same family name are grouped together to obtain multiple sets of component models of the same family; at least one set of the component models of the same family includes multiple component models.
[0014] In each group of component models, determine the main model of the corresponding group of components.
[0015] Associating the attribute data of all component models in the same family component model set with the corresponding family component master model, we obtain the association information of each family component master model.
[0016] Several family-of-component master models are determined as several component master models, and the association information of each family-of-component master model is determined as the association information of the corresponding component master model. The component lightweighting information is then output.
[0017] In one embodiment, the attribute data further includes the dimensions of each component model; the method for outputting component lightweight information includes:
[0018] The main models of family members whose sizes are within a preset threshold range are grouped together to obtain multiple sets of model sets of components with the same shape; at least one set of model sets of components with the same shape includes multiple main models of the family members.
[0019] In each group of component models with the same shape, determine the main model of the corresponding group of component models with the same shape.
[0020] Associating the association information of all family member main models in the same group of component models with the corresponding group of component main models, we obtain the association information of each component main model with the same shape.
[0021] Several main models of components with the same shape are determined as several main models of components, and the association information of each main model of components with the same shape is determined as the association information of the corresponding main model of components, and the lightweight information of the components is output.
[0022] In one embodiment, the attribute data further includes the normal vector of each component model; the method for outputting component lightweight information includes:
[0023] Grouping the main models of components with the same shape whose normal vectors are in the same or opposite directions into a group yields multiple sets of similar component models; at least one set of similar component models includes multiple main models of the same shape.
[0024] In each group of similar component models, determine the main model of the corresponding group of similar components.
[0025] Associating the association information of all main models of components with the same shape in the same group of component models with the corresponding main models of components of the same type, we obtain the association information of each main model of component of the same type.
[0026] Several similar component master models are determined as several component master models, and the association information of each similar component master model is determined as the association information of the corresponding component master model, and the component lightweighting information is output.
[0027] In one embodiment, the attribute data further includes position transformation information for each component model, and the method for outputting component lightweighting information includes:
[0028] The initial position of the corresponding main model of the same type of component is determined based on the position transformation information and normal vector of the main model of each type of component.
[0029] The main models of similar components with the same initial position are grouped together to obtain multiple sets of component models with the same position; at least one set of component models with the same position includes multiple main models of the same type of component.
[0030] In each group of component models, determine the main model of the component model in the same position for the corresponding group.
[0031] Associating the association information of all similar component main models in the same group with the corresponding group's component main models in the same position, we obtain the association information of each component main model in the same position.
[0032] Several main models of components in the same position are determined as several main models of components, and the association information of each main model of components in the same position is determined as the association information of the corresponding main model of components, and the lightweight information of the components is output.
[0033] In one embodiment, the attribute data further includes material attributes for each component model, and the method for outputting component lightweight information includes:
[0034] The main models of components with the same material properties and the same location are grouped together to obtain multiple sets of component models with the same material; at least one set of component models with the same material includes multiple main models of components with the same location.
[0035] In each group of component models of the same material, determine the main model of the corresponding group of components of the same material.
[0036] Associate the association information of the main models of all components in the same position in the same group of component models of the same material with the main models of the corresponding group of components of the same material to obtain the association information of the main model of each component of the same material.
[0037] Several main models of components of the same material are used as several main models of components, and the association information of each main model of components of the same material is used as the association information of the corresponding main model of the component, and the lightweight information of the component is output.
[0038] In one embodiment, grouping component models with the same family name into multiple sets of component models of the same family includes:
[0039] In the component models that make up the building information model, the component model with a non-empty family name is identified as the first component model, and the component model with an empty family name is identified as the second component model.
[0040] First component models with the same family name are divided into the same family to obtain multiple sets of the same family component models; at least one set of the same family component models includes multiple first component models.
[0041] The lightweight component information includes several main component models, the association information of each main component model, all second component models, and the attribute data of each component model.
[0042] In one embodiment, the method further includes:
[0043] Determine the boundary dimensions of all second component models;
[0044] The second component models with the same boundary dimension information are grouped together to obtain multiple sets of component models of the same size; at least one set of component models of the same size includes multiple second component models.
[0045] In each group of component models of the same size, determine the main model of the corresponding group of components of the same size.
[0046] Associate the attribute data of all second component models in the same group of component models with the main model of the same size in the corresponding group to obtain the association information of the main model of each component of the same size.
[0047] Output component lightweighting information, which includes several component master models, association information of each component master model, several component master models of the same size, association information of each component master model of the same size, and attribute data of each component model.
[0048] Secondly, embodiments of this application provide a building information model rendering method, the method comprising:
[0049] Obtain component lightweighting information; the component lightweighting information includes several component master models, the association information of each component master model, and the attribute data of each component model; the component lightweighting information is obtained by lightweighting an initial building information model based on the building information model lightweighting processing method described above, and the initial building information model is generated based on several component models and the attribute data of each component model;
[0050] The rendering data of the corresponding main model of the component is determined from the attribute data of all the main models of the component based on the association information of each main model of the component.
[0051] Based on the rendering data of the main component model, the corresponding main component model is instantiated and rendered in the virtual scene to generate the rendered building information model.
[0052] Thirdly, embodiments of this application provide a lightweight processing device for building information models, the device comprising:
[0053] The first acquisition module is used to acquire component information that makes up the building information model, the component information including several component models and attribute data of each component model;
[0054] A classification module is used to classify all the component models that make up the building information model based on the attribute data, and obtain multiple categories of component model sets; at least one category of the component model set includes multiple component models;
[0055] The first determining module is used to determine the main component model of the corresponding category in the component model set of each category;
[0056] The association module is used to associate the attribute data of all component models in the same category of the component model set with the corresponding category of the component master model to obtain the association information of the component master model of each category;
[0057] The output module is used to output component lightweighting information, which includes several component master models, the association information of each component master model, and the attribute data of each component model.
[0058] Fourthly, embodiments of this application provide a building information model rendering apparatus, the apparatus comprising:
[0059] The second acquisition module is used to acquire component lightweighting information. The component lightweighting information includes several component master models, the association information of each component master model, and the attribute data of each component model. The component lightweighting information is obtained by lightweighting an initial building information model based on the building information model lightweighting processing method described above. The initial building information model is generated based on several component models and the attribute data of each component model.
[0060] The second determining module is used to determine the rendering data of the corresponding main component model from the attribute data of all the main component models based on the association information of each main component model.
[0061] The rendering module is used to instantiate and render the corresponding main component model in a virtual scene based on the rendering data of the main component model, and generate the rendered building information model.
[0062] Fifthly, embodiments of this application also provide an electronic device, including: a memory and a processor, wherein the memory stores a computer program executable by the processor, and when the computer program is executed by the processor, it performs the lightweight processing method for building information models as described in the first aspect above or the building information model rendering method as described in the second aspect above.
[0063] Sixthly, embodiments of this application also provide a computer-readable storage medium storing computer program instructions, which, when executed by a processor, perform the lightweight building information model processing method described in the first aspect above or the building information model rendering method described in the second aspect above.
[0064] In the above implementation process, the component models that make up the Building Information Model (BIM) are classified using the attribute data of the BIM, and the master model of each category is determined. Furthermore, the attribute data of all component models under that category are associated with the corresponding master models to obtain the association information of the master models. Several master models, the association information of each master model, and the attribute data of each component model are output. This ensures that the output model only includes the master models, rather than all component models, effectively reducing the number of models and achieving lightweight processing of the BIM. Moreover, the association information of the master models in the output lightweight information can determine the attribute data of all component models under the corresponding category, ensuring the accuracy of the BIM data. Attached Figure Description
[0065] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments of this application will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0066] Figure 1 This is a flowchart illustrating a lightweight processing method for building information models provided in an embodiment of this application;
[0067] Figure 2 This is a schematic diagram of the attribute data of a component model provided in an embodiment of this application;
[0068] Figure 3 This is a flowchart of a building information model rendering method provided in an embodiment of this application;
[0069] Figure 4 This is a schematic diagram of the structure of a lightweight processing device for building information modeling provided in an embodiment of this application;
[0070] Figure 5 This is a schematic diagram of the structure of a building information model rendering device provided in an embodiment of this application;
[0071] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0072] The embodiments of the technical solution of this application will now be described in detail with reference to the accompanying drawings. These embodiments are only used to more clearly illustrate the technical solution of this application and are therefore merely examples, and should not be used to limit the scope of protection of this application.
[0073] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs; the terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit this application.
[0074] In the description of the embodiments of this application, technical terms such as "first" and "second" are used only to distinguish different objects and should not be construed as indicating or implying relative importance or implicitly specifying the number, specific order, or primary and secondary relationship of the indicated technical features. In the description of the embodiments of this application, "multiple" means two or more, unless otherwise explicitly defined.
[0075] The emergence of concepts such as smart cities, digital twins of cities, and digital earth has accelerated the pace of urban development. As key components of urban planning and construction, the representation of land features such as buildings, roads, and vegetation in virtual scenarios is particularly important. Buildings, as the core of a city, require the construction of building information models for building virtual scenarios.
[0076] BIM technology uses buildings as objects and, through the establishment of information models, expresses their three-dimensional spatial structure, internal structure, and management attributes at a micro level.
[0077] As project scale continues to increase and modeling accuracy continues to improve, the number of component models in BIM continues to increase, and the corresponding amount of BIM component model data also continues to increase. Consequently, when rendering BIM, it is necessary to render the corresponding component model based on the data of each component model, which can easily lead to low efficiency in BIM loading and rendering.
[0078] Therefore, the low rendering efficiency of Building Information Modeling (BIM) in related technologies is a problem that needs to be solved.
[0079] Please see Figure 1 , Figure 1 This is a flowchart illustrating a lightweight building information model (BIM) processing method provided in an embodiment of this application. The BIM lightweighting processing method can be executed by an electronic device, and the method may include the following steps:
[0080] Step S101: Obtain the component information that makes up the building information model.
[0081] The component information may include several component models and the attribute data of each component model.
[0082] For example, a building includes different components, such as windows, doors, stairs, and beams. The corresponding building information model is also composed of different component models, such as window component models, door component models, stair component models, and beam component models.
[0083] It should be noted that the building information model in the embodiments of this application can be generated in building model design software. The building model design software can be software that supports BIM design, construction and management and includes rich building component model attribute data, which is not limited here.
[0084] To enable the generated Building Information Model (BIM) to be rendered in virtual scenes including roads and vegetation, component information can be exported from the building model design software. This component information can include the component models and their attribute data, and can be exported as USD files. Specifically, multiple USD files can be exported based on the component model categories in the BIM model. Each USD file stores the component models of the same category and their corresponding attribute data. Component model categories can include MEP (Mechanical, Electrical, and Mechanical), Structural, and Interior Finishing categories. MEP refers to the mechanical and electrical systems in a building, including but not limited to heating, ventilation, air conditioning (HVAC), lighting, elevators, power supply, water supply and drainage systems, and fire protection systems. MEP engineering is a key component in ensuring the comfortable, safe, and efficient operation of the building's internal environment. Structural engineering refers to the physical framework and support system of the building, including beams, columns, floor slabs, walls, and foundations. Structural engineering is responsible for ensuring the stability and safety of a building, enabling it to withstand various loads such as its own weight, wind pressure, and seismic forces. Interior decoration typically refers to the refined finishing and décor of a building's interior, including the decoration of walls, floors, and ceilings, as well as the selection and arrangement of interior furniture, lighting fixtures, and decorative items. Interior decoration projects emphasize aesthetics and functionality, aiming to enhance the comfort and aesthetics of the building to meet specific usage needs and aesthetic standards. As another example, USD files can also be generated based on the observed field of view of the BIM model. Specifically, the component model and attribute data corresponding to each view can be exported as a USD file. This allows electronic devices to obtain component information from the building information model through the received USD file. Figure 2 As shown, Figure 2 This is a schematic diagram of the attribute data of a component model provided in an embodiment of this application.
[0085] As another example, the building information model can also be pre-built in other modeling software. Furthermore, the pre-built building information model can be imported into building model design software, so that the building model design software can decompose the building information model and generate different categories of building component model files and attribute data corresponding to each building component model file according to the category of component model, thereby obtaining the component models that make up the building information model and the attribute data of each component model.
[0086] Specifically, the attribute data of a component model may include at least one of the following: the component model's family name, dimensions, normal vector, position transformation information, and material.
[0087] Step S102: Classify the component models that make up the building information model based on the attribute data to obtain a set of component models in multiple categories.
[0088] Furthermore, after obtaining the component models of the Building Information Model (BIM), the component models can be classified according to their attribute data, resulting in multiple sets of component models. At least one set of component models includes multiple component models.
[0089] Specifically, building information model (BIM) component models can be classified according to at least one attribute data, including type, family name, size, normal vector, position transformation information, and material, resulting in multiple categories of component model sets. For example, if a BIM component model has only one attribute data, classifying by family name will result in component models with the same family name within each category. Classifying by size will result in component models with the same size within each category. Classifying by normal vector will result in component models with the same normal vector within each category. Classifying by position transformation will result in component models with the same initial position within each category. Classifying by material will result in component models with the same material within each category.
[0090] If the component models in a Building Information Modeling (BIM) have two or more attribute data types, the priority of these attribute data types can be sorted based on preset rules, and the component models can be classified according to the sorted priority. For example, if the attribute data of a component model in a BIM includes family name and size, and the family name has a higher priority than the size, then after classifying all component models, multiple categories of component model sets are obtained. That is, the component models in each component model set have the same family name, and the corresponding main component model is determined in each category of component model set. Furthermore, in the multiple categories of component model sets, the component model sets corresponding to the main component models with the same size are merged, thereby realizing the classification of component model sets according to size.
[0091] Step S103: Determine the main model of the corresponding category in the component model set for each category.
[0092] Furthermore, within the component model set for each category after classification, a master component model for that category is determined. Specifically, any component model from the component model set for each category after classification can be used as the master component model for that category.
[0093] Step S104: Associate the attribute data of all component models in the same category with the corresponding component master model to obtain the association information of the component master model for each category.
[0094] Specifically, the attribute data of all component models in the same category are associated with the main component model of that category, thereby obtaining the association information of the main component model of each category. Since the main component model of each category is associated with the attribute data of all component models under the corresponding category, the attribute data of all component models under that category can be obtained through the associated main component model.
[0095] Step S105: Output component lightweighting information.
[0096] Specifically, several component master models, the association information of each component master model, and the attribute data of each component master model can be used as component lightweighting information. As a result, the output component lightweighting information only includes the component master model data, without including all component models, effectively reducing the amount of model data and realizing lightweighting of building information models.
[0097] Furthermore, the output lightweight component information can be transmitted to the 3D rendering engine, which then determines the rendering data of the corresponding component main model from the attribute data of all component models based on the association information of each component main model, and instantiates and renders the corresponding component main model in the virtual scene based on the rendering data of the component main model to generate the rendered building information model.
[0098] Specifically, the electronic device can store the main component model and its associated relationships as an FBX file, and store the attribute data of all component models as a Jason data file, thereby transmitting the FBX file and the Jason data file to the 3D rendering engine. The 3D rendering engine then determines the attribute data of the corresponding main component model based on the association information of the main component model in the FBX file, and uses the determined attribute data as the rendering data for the corresponding main component model. Specifically, all attribute data associated with each main component model can be used as the rendering data for that main component model. The main component model is then instantiated and rendered in the virtual scene based on the corresponding rendering data; that is, a corresponding main component model is rendered based on all attribute data associated with the main component model, thus achieving the rendering of all component models belonging to the same category as the main component model. This allows the Building Information Model (BIM) to store only the main component model during rendering, eliminating the need to include all component models. This effectively reduces the number of component models stored in the BIM. Furthermore, it only requires calling the main component model to instantiate and render all corresponding component models, without needing to call the component models corresponding to each attribute data. This reduces the number of component models stored during the rendering process, improves the efficiency of BIM rendering, and ensures the accuracy of the BIM rendering results by rendering using the attribute data of all component models.
[0099] In the above implementation process, the component models that make up the Building Information Model (BIM) are classified using the attribute data of the BIM, and the master model of each category is determined. Furthermore, the attribute data of all component models under that category are associated with the corresponding master models to obtain the association information of the master models. Several master models, the association information of each master model, and the attribute data of each component model are output. This ensures that the output model only includes the master models, rather than all component models, effectively reducing the number of models and achieving lightweight processing of the BIM. Moreover, the association information of the master models in the output lightweight information can determine the attribute data of all component models under the corresponding category, ensuring the accuracy of the BIM data.
[0100] In one embodiment, the attribute data includes the family name of each component model, and the method for outputting component lightweight information may include the following steps:
[0101] Step 1: Divide component models with the same family name into the same family to obtain multiple sets of component models of the same family.
[0102] In a set of multiple sets of component models of the same family, at least one set of component models of the same family includes multiple component models.
[0103] Step 2: Determine the main model of the corresponding family of components in the family of components model set for each group.
[0104] Step 3: Associate the attribute data of all component models in the same group with the main model of the same group to obtain the association information of the main model of each component.
[0105] Step 4: Determine several family member main models as several component main models, determine the association information of each family member main model as the association information of the corresponding component main model, and output the component lightweighting information.
[0106] For example, the attribute data of the component model may include the family name of the component model. When classifying the component models of the building information model, component models with the same family name may be grouped together, thereby obtaining multiple sets of component models of the same family. Furthermore, at least one set of component models of the same family includes multiple component models.
[0107] Furthermore, a corresponding master model of the same family component is determined in each set of family component models. Specifically, any component model in each set of family component models can be designated as the master model of the corresponding family component.
[0108] Then, the attribute data of all component models in the same family component model set are associated with the corresponding family component master model to obtain the association information of each family component master model. Specifically, the ID information of all component models in the same family component model set can be associated with the corresponding family component master model to obtain the association information of the corresponding family component master model.
[0109] Furthermore, several family-related component master models are defined as several component master models, and the association information of each family-related component master model is defined as the association information of the corresponding component master model. This ensures that the output lightweight component information includes several family-related component master models, the association information of each family-related component master model, and the attribute data of each component model. Thus, the output model data only includes family-related component master models, without including all component models, reducing the number of models and achieving lightweighting of the building information model based on family names.
[0110] Furthermore, the output lightweight component information can be transmitted to the 3D engine, that is, the main model of each family component, the association information of the main models of the family components, and the attribute data of all component models can be transmitted to the 3D rendering engine. Then, the 3D rendering engine can determine the attribute data of the corresponding family component main model based on the association information of each family component main model, and determine the attribute data as the rendering data of the corresponding family component main model. Further, the 3D rendering engine can instantiate and render the corresponding family component main model based on the rendering data. After instantiating and rendering all main family components, the rendered building information model is obtained.
[0111] In the above implementation process, component models with the same family name are grouped together to obtain multiple sets of family-based component models. Within each group's set, a primary model for the same family component model is determined. Then, the attribute data of all component models in the same group's set are associated with their corresponding primary models, obtaining the association information for each primary model. Finally, lightweight component information is output, including several primary models of the same family component model, the association information for each primary model, and the attribute data for each component model. This ensures that the output model data only includes primary models of the same family component model, rather than all component models, reducing the number of models and thus achieving lightweighting of the Building Information Model based on family names.
[0112] In one embodiment, the attribute data also includes the dimensions of each component model; the method for outputting component lightweighting information may further include the following steps:
[0113] Step 1: Divide the main models of family components whose dimensions are within the preset threshold range into a group to obtain multiple sets of component models with the same shape.
[0114] At least one set of component models with the same shape includes multiple main models of the same family of components.
[0115] Step 2: Determine the main model of the same shape component in each group from the set of model of the same shape component.
[0116] Step 3: Associate the association information of all family member main models in the same group of component models with the corresponding group of component main models to obtain the association information of each component main model.
[0117] Step 4: Determine several main models of components with the same shape as several main component models, and determine the association information of each main model of components with the same shape as the association information of the corresponding main model of the component, and output the component lightweighting information.
[0118] For example, the attribute data of a component model may also include the dimensions of each component model. After identifying multiple family of component master models, the multiple family of component master models may also be classified according to their dimensions.
[0119] Specifically, main models of family-related components whose dimensions fall within a preset threshold range are grouped together, resulting in multiple sets of component models with the same external shape. At least one set of component models with the same external shape includes multiple main models of family-related components.
[0120] As one embodiment, when comparing the dimensions of two main models of the same family of components, the shapes of the two main models can be determined first, and then their dimensions can be compared. Specifically, main models of the same family of components with the same shape and dimensions within a preset threshold range in the same direction are grouped together. For example, if main model A and main model B of the same family have the same shape, then their dimensions are compared. If the dimensions of main model A and main model B of the same family in the same direction are within a preset threshold range, then main model A and main model B of the same family of components are grouped together as a set of component models with the same shape. If the shapes of main model A and main model B of the same family are different, then main model A and main model B of the same family of components are component models with different shapes.
[0121] It should be noted that when dividing the main model of a component, the dimensions used are the dimensions of the main model of the same family of components themselves, not the dimensions of the component models associated with the main model of the same family of components. The preset threshold range can be 0.5cm, 1cm, or 2cm. The size of the preset threshold range can be adaptively set according to the actual situation and is not limited here.
[0122] Furthermore, after obtaining multiple sets of model sets of components with the same shape, a corresponding master model of the component with the same shape is determined in each set. Specifically, since the same set of model sets of components with the same shape may include multiple master models of components from the same family, any master model of a component from the same family in the same set of model sets of components with the same shape can be determined as the master model of the component with the same shape in the corresponding set; if the same set of model sets of components with the same shape includes only one master model of a component from the same family, then that master model of a component from the same family is the master model of the component with the same shape in the corresponding set.
[0123] Furthermore, the association information of all family member main models in the same group of similar-shaped component models is linked to the corresponding group of similar-shaped component main models to obtain the association information of each similar-shaped component main model. Specifically, since each family member main model is associated with the attribute data of multiple family member main models, the association information of each family member main model is obtained. Moreover, each group of similar-shaped component models may include multiple family member main models. Furthermore, the association information of all family member main models in each group of similar-shaped component models is linked to the corresponding group of similar-shaped component main models to obtain the association information of each similar-shaped component main model. Thus, through each similar-shaped component main model, the association information of all family member main models in the corresponding group, as well as the attribute data of all component models under each family member main model, can be obtained.
[0124] Furthermore, several main models of components with the same shape are defined as several component main models. Correspondingly, the association information of each main model of a component with the same shape is defined as the association information of the corresponding component main model, thereby outputting component lightweighting information. This component lightweighting information includes all main models of components with the same shape, the association information of each main model of a component with the same shape, and the attribute data of each component model. This further reduces the number of models based on the main models of the same component family, achieving lightweighting of the building information model.
[0125] Furthermore, lightweight component information can be transmitted to the 3D rendering engine. This involves transmitting the main model of components with the same shape, their associated information, and the attribute data of all component models to the 3D rendering engine. This allows the engine to determine the rendering data for the corresponding main model based on the associated information of each main model. Specifically, the attribute data of all component models associated with the main model can be used as the rendering data for the corresponding main model. Then, the 3D rendering engine instantiates and renders the corresponding main model in the virtual scene based on this rendering data, thus obtaining the rendered building information model.
[0126] In the above implementation process, main models of family-related components with dimensions within a preset threshold range are grouped together to obtain multiple sets of component models with the same shape. A main model of the same shape is determined within each set. Then, the association information of all family-related main models in each set is linked to the corresponding set's main model, obtaining the association information for each main model of the same shape. This achieves component model classification based on family name and size, and establishes the association between component model attribute data and the main model of the same shape. Component lightweighting information is output, and several main models of the same shape are identified as several main component models, with the association information of each main model of the same shape being identified as the association information of the corresponding main model. This further reduces the number of models based on family name-based lightweighting of the building information model, effectively reducing the number of model calls during subsequent rendering and improving rendering efficiency. Rendering is performed using the attribute data of all component models, ensuring the accuracy of the building information model rendering.
[0127] In one embodiment, the attribute data of the component model further includes the normal vector of each component model; the method for outputting component lightweight information may include the following steps:
[0128] Step 1: Divide the main models of the same shape components with normal vectors in the same or opposite directions into a group to obtain multiple sets of similar component models.
[0129] At least one set of similar component models includes multiple main models of components with the same shape.
[0130] Step 2: Determine the main model of the same type of component in each group from the set of similar component models.
[0131] Step 3: Associate the association information of all main models of the same type of component in the same group with the corresponding main models of the same type of component to obtain the association information of each main model of the same type of component.
[0132] Step 4: Determine several similar component master models as several component master models, and determine the association information of each similar component master model as the association information of the corresponding component master model, and output the component lightweighting information.
[0133] For example, the attribute data of the component model may also include the normal vector of the component model. After generating multiple main models of components with the same shape, the multiple main models of components with the same shape can be merged according to the direction of the normal vector of the main models of components with the same shape. Specifically, since the multiple component models that make up the building information model may be formed by flipping or translating the same component model, the main models of components with the same shape whose normal vector directions are the same or opposite can be divided into the same category, thereby obtaining multiple groups of component models of the same type. Moreover, at least one group of component models of the same type includes multiple main models of components with the same shape.
[0134] As an example, if the normal vector of main model 1 with the same shape is (x1, y1, z1) and the normal vector of main model 2 with the same shape is (x2, y2, z2), then the cross product of the normal vectors (x1, y1, z1) of main model 1 and (x2, y2, z2) of main model 2 is taken, i.e., (x1, y1, z1) × (x2, y2, z2). The cross product result is then normalized. If the normalized result is ±1, then main model 1 and main model 2 with the same shape are considered to be of the same type of component model. This method can further determine the classification results of all main models with the same shape.
[0135] Furthermore, within each group's set of similar component models, a master model of that same type of component is determined. Specifically, any master model of a component with the same external shape within each group's set can be designated as the master model of that group's similar component model. Then, the association information of all master models of the same external shape within the same group's set is linked to the master model of the same type of component model within the corresponding group, thus obtaining the association information for each master model of the same type of component. Specifically, each master model of the same external shape is associated with the association information of all master models of the same family of components within the corresponding group. Further, the association information of all master models of the same external shape within the same group's set is linked to the master model of the same type of component model within the corresponding group, thereby enabling the acquisition of attribute data for all component models within the corresponding group through the master model of the same type of component.
[0136] Furthermore, all similar component master models are identified as several component master models, and the association information of each similar component master model is identified as the association information of the corresponding component master model. Then, the component lightweighting information is output, so that the component lightweighting information includes all similar component master models, the association information of each similar component master model, and the attribute data of each component model, thereby reducing the number of component models formed due to component model flipping or translation.
[0137] Furthermore, the lightweight component information is transmitted to the 3D rendering engine. This involves transmitting the main models of similar components, their associated information, and the attribute data of all component models to the 3D rendering engine. The engine then determines the rendering data for each main model of the same type of component from the attribute data of all component models based on the associated information. Specifically, the attribute data of all component models associated with the main model of the same type of component are used as the rendering data for that model. The corresponding main model of the same type of component is then instantiated and rendered based on the determined rendering data. Therefore, when rendering the Building Information Model (BIM), only one main model of the same type of component needs to be called to render the attribute data of the same group of component models. This reduces the storage volume of different component models created by rotation or translation within the BIM. Based on the lightweighting of the BIM according to size, multiple main models of components with the same shape are merged using normal vector directions, further reducing the number of models and improving rendering efficiency. Rendering using the attribute data of all component models ensures the accuracy of the BIM rendering.
[0138] In the above implementation process, the main models of components with the same shape are divided according to the direction of the normal vector to obtain multiple sets of similar component models. The main model of the same type of component is determined for each set of similar component models. The association information of all main models of components with the same shape in the same set of similar component models is associated with the main model of the corresponding set of similar component models, thereby obtaining the association information of each main model of similar component. Finally, the component lightweighting information is output. The output component lightweighting information, based on the lightweighting of the building information model according to the size, merges multiple main models of components with the same shape through the direction of the normal vector, further reducing the number of models and further realizing the lightweighting of the building information model.
[0139] In one embodiment, the attribute data includes position transformation information for each component model, and the method for outputting component lightweighting information may further include the following steps:
[0140] Step 1: Determine the initial position of the corresponding main model of the same type of component based on the position transformation information and normal vector of the main model of each type of component.
[0141] Step 2: Divide the main models of similar components with the same initial position into a group to obtain multiple sets of component models with the same position.
[0142] At least one set of component models in the same location includes multiple main models of the same type of component.
[0143] Step 3: Determine the main model of the corresponding component in the same position within the model set of each group.
[0144] Step 4: Associate the association information of all the main models of the same type of component in the same position of the same group with the main models of the same type of component in the corresponding group to obtain the association information of the main model of each component in the same position.
[0145] Step 5: Determine several main models of components in the same position as several main models of components, and determine the association information of each main model of components in the same position as the association information of the corresponding main model of components, and output the component lightweighting information.
[0146] For example, the attribute data of the component model may also include position transformation information, and multiple similar component master models can be further classified based on the position transformation information and normal vectors of similar component master models. The position transformation information includes the position transformation information of the corresponding component model when it transforms from the initial position to the current position.
[0147] As an example, different component models that make up a Building Information Model (BIM) can be obtained from the same component model through different position transformations. These position transformations can be translation, rotation, scaling, or other position transformation operations. The attribute data of each component model can include position transformation information from its initial position to its current position. This position transformation information can be a position transformation matrix or other forms of expression, without limitation. Therefore, the initial position of the corresponding main component model can be determined based on the position transformation information and normal vector of each similar component model. Specifically, the translation components of each similar component model along the X and Y axes are determined based on the position transformation information, thereby obtaining the x and y coordinates of the corresponding similar component model in the world coordinate system. The initial position information (x, y, z) of the similar component model is obtained based on the z-axis coordinate value of its normal vector. Component models with the same initial position are grouped together, resulting in multiple sets of component models with the same position. Furthermore, at least one set of component models with the same position includes multiple similar component models.
[0148] Furthermore, within each set of model sets of components in the same position, a master model of the corresponding component in the same position is determined. Specifically, any master model of the same type of component in each set of model sets of components in the same position can be determined as the master model of the corresponding component in the same position.
[0149] Then, the association information of all similar component master models in the same group and position is associated with the corresponding group's corresponding position component master models, thereby obtaining the association information of each corresponding position component master model. Since each similar component master model is associated with the association information of component master models of the same shape belonging to the same group, the association information of all similar component master models belonging to the same group is associated with the corresponding group's corresponding position component master models, thus allowing the determination of the attribute data of all associated component models through each corresponding position component master model.
[0150] Furthermore, all main models of components in the same location are identified as several main models of components, and the association information of each main model of a component in the same location is identified as the association information of the corresponding main model of the component. The lightweight component information is output, which includes all main models of components in the same location, the association information of each main model of a component in the same location, and the attribute data of all component models. This ensures that the model data in the output lightweight component information only includes the main models of components in the same location, without having to include all component models. Thus, based on the lightweighting of the building information model based on the normal vector direction, the number of models is further reduced, and the lightweighting of the building information model is further realized.
[0151] Furthermore, lightweight component information can be transferred to the 3D rendering engine. This involves transferring the main models of all components in the same location, their associated information, and the attribute data of all component models to the 3D rendering engine. The engine then determines the rendering data for each main model of a component in the same location based on the associated information and the attribute data of all component models. Specifically, the attribute data of all component models associated with each main model in the same location can be used as the rendering data for that model. The 3D rendering engine then renders the corresponding main model in the virtual scene based on this rendering data, generating a rendered building information model.
[0152] In the above implementation process, after classifying the main models of components with the same shape according to the direction of their normal vectors, the main models of the same type of components are further classified according to the position transformation information and the normal vectors. Within each group of components with the same position, the main model of the same position is determined. Then, the association information of all the main models of the same type in each group is associated with the main models of the same position in the corresponding group, obtaining the association information of each main model of the same position. This ensures that the model data in the output lightweight component information only includes the main models of components with the same position, without including all component models. Therefore, based on the lightweighting of the building information model according to the direction of the normal vectors, multiple main models of the same type of components are merged according to the position transformation information, further reducing the model data and achieving lightweighting of the building information model. Furthermore, when the 3D rendering engine renders the building information model, it only needs to instantiate and render one main model of the same position using the attribute data of all component models belonging to the same group, without needing to call a component model for each attribute data, reducing the number of model calls during the rendering process and improving rendering efficiency.
[0153] In one embodiment, the attribute data also includes the material properties of each component model, and the method for outputting component lightweighting information may further include the following steps:
[0154] Step 1: Divide the main models of components with the same material properties and the same location into a group to obtain multiple sets of component models with the same material.
[0155] At least one set of component models of the same material includes multiple main models of components in the same location.
[0156] Step 2: Determine the main model of the same material component in each group's set of component models.
[0157] Step 3: Associate the association information of all component main models in the same position in the same group of component main models of the same material with the corresponding group of component main models of the same material to obtain the association information of each component main model of the same material.
[0158] Step 4: Determine several main models of components of the same material as several main models of components, and determine the association information of each main model of components of the same material as the association information of the corresponding main model of components, and output the lightweight information of components.
[0159] For example, in addition to classifying the main models of similar components based on position transformation and normal vectors, the main models of components in the same position can also be merged based on material properties. Specifically, main models of components in the same position with the same material properties are grouped into the same group, thereby obtaining multiple sets of component models of the same material, at least one set of component models of the same material includes multiple main models of components in the same position.
[0160] Furthermore, a master model of a component of the same material is determined for each set of component models of the same material. Specifically, any master model of a component in the same position within each set of component models of the same material is determined as the master model of the corresponding set of component models of the same material.
[0161] Furthermore, the association information of all main models of components in the same position within the same group of component models of the same material is linked to the corresponding main models of components of the same material in the same group, thereby obtaining the association information of each main model of components of the same material. Since each main model of a component in the same position is associated with the association information of all main models of the same type of components in the corresponding group, and then the association information of main models of components of the same material belonging to the same group is linked to the corresponding main models of components of the same material, the attribute data of all component models belonging to the same group can be obtained through the main models of components of the same material.
[0162] Furthermore, all main models of components of the same material are identified as several main models of components, and the association information of each main model of a component of the same material is identified as the association information of the corresponding main model of the component. The component lightweighting information is output, which includes all main models of components of the same material, the association information of each main model of a component of the same material, and the attribute data of each component model. Thus, based on the lightweighting of the building information model based on the position transformation information, the lightweighting of the building information model is further improved based on the material attributes.
[0163] Furthermore, lightweight component information can be transferred to the 3D rendering engine. This involves transferring the main models of all components of the same material, their associated information, and the attribute data of all component models to the 3D rendering engine. Then, when rendering the Building Information Model (BIM), the 3D rendering engine can determine the rendering data of the main model of the same material from the attribute data of all component models based on the associated information. Specifically, the attribute data of all component models associated with the main model of the same material can be used as the rendering data for the corresponding main model. Further, based on this rendering data, the corresponding main model of the same material is rendered in the virtual scene to obtain the rendered BIM.
[0164] In the above implementation process, based on classifying the main models of similar components according to position transformation and normal vectors, the main models of components in the same position are further classified according to material properties, resulting in multiple sets of component models of the same material. The main models of components of the same material in each set are further identified, and the association information of all main models of components in the same position in each set is associated with the corresponding main models of components of the same material, thus obtaining the association information of each main model of components of the same material. This outputs component lightweighting information, which only includes the main models of components of the same material, without including all component models. Based on the lightweighting of the building information model according to position transformation information, the main models of components in the same position are merged according to material properties, further lightweighting the building information model. When rendering the building information model, the 3D rendering engine only needs to instantiate and render the attribute data of component models belonging to the same group using the same main model of the same material, reducing the number of models stored and called during rendering, improving rendering efficiency, and ensuring the accuracy of the rendering results by rendering based on the attribute data of all component models.
[0165] In one embodiment, component models with the same family name are grouped together to obtain multiple sets of component models of the same family. The method may further include the following steps:
[0166] Step 1: In the component models that make up the building information model, the component models with non-empty family names are identified as the first type of component models, and the component models with empty family names are identified as the second type of component models.
[0167] Step 2: Divide the first component models with the same family name into the same family to obtain multiple sets of component models of the same family.
[0168] At least one set of family component models includes multiple first component models.
[0169] Step 3: The component lightweighting information includes several component master models, the association information of each component master model, all second component models, and the attribute data of each component model.
[0170] For example, among the multiple component models that make up the building information model, the family name in the attribute data of the component model may be empty. Therefore, before classifying the component models according to the family name, the component models with non-empty family names can be identified as the first component model and the component models with empty family names can be identified as the second component model.
[0171] Furthermore, first component models with the same family name are grouped into the same family, thus obtaining multiple sets of family-based component models. Among them, at least one set of family-based component models includes multiple first component models.
[0172] Furthermore, the lightweight component information output subsequently includes all component master models, the association information of each component master model, all second component models, and the attribute data of each component model.
[0173] In the above implementation process, among the component models that make up the Building Information Model (BIM), component models with non-empty family names are classified into the first category of component models. Within this first category, component models are further categorized based on their family names, improving the accuracy of component model classification. Furthermore, the output lightweight component information includes all main component models and all secondary component models, eliminating the need to include all component models and effectively reducing the amount of model storage, thus achieving lightweighting of the BIM.
[0174] In one embodiment, the method further includes:
[0175] Step 1: Determine the boundary dimensions of all second component models.
[0176] Step 2: Divide the second component models with the same boundary dimension information into a group to obtain multiple sets of component models of the same size.
[0177] At least one set of component models of the same size includes multiple second component models.
[0178] Step 3: Determine the main model of the same size component in the same size component model set of each group.
[0179] Step 4: Associate the attribute data of all second component models in the same group of component models with the main model of the same size in the corresponding group to obtain the association information of the main model of each component of the same size.
[0180] Step 5: Output component lightweighting information, which includes several component master models, the association information of each component master model, several component master models of the same size, the association information of each component master model of the same size, and the attribute data of each component model.
[0181] For example, among the multiple component models constituting a building information model, the component model with an empty family name in the attribute data is identified as a second component model, and the boundary dimension information of each second component model is determined. As an example, the boundary dimension information of the second component model can be the length, width, and height of the second component model; the boundary dimension information of the second component model can also be the length, width, and height of the minimum bounding box of the second component model; the boundary dimension information of the second component model can also be the volume of the second component model. In this embodiment, the boundary dimension information of the second component model is taken as the length, width, and height of the minimum bounding box of the component model, and no limitation is made here.
[0182] Furthermore, second component models with the same boundary dimension information are divided into component models of the same size, thus obtaining multiple sets of component models of the same size. Moreover, at least one set of component models of the same size includes multiple second component models. Further, the master model of the component of the same size in each set of component models of the same size is determined; specifically, any second component model in each set of component models of the same size can be determined as the master model of the corresponding set of component models of the same size.
[0183] Furthermore, the attribute data of all second component models in the same group of component models of the same size are associated with the corresponding group's main component model of the same size, thereby obtaining the association information of each main component model of the same size. Therefore, the attribute data of all second component models in the same group can be determined through each main component model of the same size. Finally, component lightweighting information is output, which includes all main component models, the association information of each main component model, all main component models of the same size, the association information of each main component model of the same size, and the attribute data of each component model, thus realizing the lightweighting of component models with empty family names.
[0184] Furthermore, lightweight component information can be transferred to the 3D rendering engine, specifically, the main model of the same-sized component, its associated information, the main models of family components, the associated information of family component models, and the attribute data of all component models can be transferred to the 3D rendering engine. Further, when rendering the Building Information Model (BIM), the 3D rendering engine determines the rendering data of the main model of the same-sized component from the attribute data of all second component models based on the associated information of the main model of the same-sized component. Specifically, the attribute data of the second component models associated with the main model of the same-sized component can be used as the rendering data of the corresponding main model of the same-sized component. Moreover, the 3D rendering engine determines the rendering data of the main model of the component from the attribute data of all first component models based on the associated information of the main model of the component. Specifically, the attribute data of the component models associated with the main model of the component can be used as the rendering data of the corresponding main model of the component. Thus, the main model of the same-sized component is rendered in the virtual scene using the rendering data of the main model of the component, and the main model of the component is rendered in the virtual scene using the rendering data of the main model of the component, resulting in the rendered BIM. The main component model is rendered based on the rendering data of the main component model, and the same-sized component model is rendered based on the rendering data of the same-sized component model. The resulting rendered building information model achieves lightweighting of component models with empty family names and non-empty family names, effectively reducing the number of models in the rendering process and improving the efficiency of building information model rendering.
[0185] It should be noted that the main component model in the embodiments of this application can be any one of the following: main component model of the same family, main component model of the same shape, main component model of the same type, main component model of the same position, and main component model of the same material.
[0186] In the above implementation process, the boundary dimension information of each component model with an empty family name is determined, and component models with the same boundary dimension information are divided into component models of the same size, thereby merging component models with empty family names. Further, the master model of the same size component is determined for each group of same-size component models, and the attribute data of all component models in each group of same-size component models are associated with the master model of the corresponding group of same-size component models. Thus, the attribute data of all component models in the corresponding group can be obtained through each master model of same-size component models. Finally, component lightweighting information is output, which includes all master models of components, the association information of each master model of components, all master models of the same size component models, the association information of each master model of the same size component models, and the attribute data of each component model. This reduces the data volume of the first and second component models, achieving lightweighting of the building information model. Furthermore, the master models of components are rendered based on the rendering data of all master models of components, and the corresponding same-size component models are rendered based on the rendering data of all same-size component models, thereby effectively reducing the number of model calls during the rendering process and ensuring the accuracy of the rendered building information model data.
[0187] In addition, this application also provides a method for rendering building information models. Figure 3 This is a flowchart of a building information model rendering method provided in an embodiment of this application. The execution entity of this method can be a 3D rendering engine, such as... Figure 3 As shown, the building information model rendering method may include the following steps:
[0188] Step S301: Obtain component lightweighting information.
[0189] The component lightweighting information includes several component master models, the association information of each component master model, and the attribute data of each component model. The component lightweighting information is obtained by lightweighting the initial building information model based on the building information model lightweighting processing method in any of the above embodiments. The initial building information model is generated based on several component models and the attribute data of each component model.
[0190] Step S302: Determine the rendering data of the corresponding component main model from the attribute data of all component models based on the association information of each component main model.
[0191] Step S303: Based on the rendering data of the component master model, instantiate and render the corresponding component master model in the virtual scene to generate the rendered building information model.
[0192] For example, the 3D rendering engine can obtain component lightweighting information. This component lightweighting information can be obtained by lightweighting an initial building information model based on the building information model lightweighting processing method in any of the above embodiments. The initial building information model is generated based on several component models and the attribute data of each component model. The component lightweighting information includes the association information of the main component model, the main component model, and the attribute data of each component model.
[0193] Furthermore, the 3D rendering engine can determine the rendering data of the corresponding main component model from the attribute data of all component models based on the association information of the main model of each family of components, and instantiate and render the corresponding main component model in the virtual scene based on the rendering data to generate the rendered building information model.
[0194] In the above implementation process, when rendering the building information model, it is only necessary to call the attribute data of the component model according to the association relationship of the component master model to instantiate and render the corresponding component master model. That is, in the same group of family component models, only one component master model needs to be called to realize the rendering of all associated component models, without having to call different component models for different attribute data. This effectively reduces the storage of the model, thereby realizing the lightweighting of the building information model and improving the rendering efficiency of the building information model. Furthermore, rendering is performed using the actual attribute data of all component models, ensuring the accuracy of the building information model rendering.
[0195] Please see Figure 4 , Figure 4 This is a structural schematic diagram of a lightweight processing device for building information modeling provided in an embodiment of this application, as shown below. Figure 4 The lightweight building information model processing device shown includes:
[0196] The first acquisition module 401 is used to acquire component information that makes up the building information model. The component information includes several component models and attribute data of each component model.
[0197] The classification module 402 is used to classify all component models that make up the building information model based on attribute data, and obtain component model sets of multiple categories; at least one category of component model set includes multiple component models.
[0198] The first determining module 403 is used to determine the main model of the corresponding category of components in the component model set of each category.
[0199] The association module 404 is used to associate the attribute data of all component models in the same category of component model set with the corresponding category of component master model to obtain the association information of the component master model of each category.
[0200] Output module 405 is used to output component lightweighting information, which includes several component master models, the association information of each component master model, and the attribute data of each component model.
[0201] In one embodiment, the attribute data includes the family name of each component model; the association module 404 is also used for:
[0202] Component models with the same family name are grouped together to obtain multiple sets of component models of the same family; at least one set of component models of the same family includes multiple component models.
[0203] In each group of component models, determine the main model of the corresponding group of components.
[0204] Associating the attribute data of all component models in the same family component model set with the corresponding family component master model, we obtain the association information of each family component master model.
[0205] Several family-related component master models are determined as several component master models, and the association information of each family-related component master model is determined as the association information of the corresponding component master model. The component lightweighting information is then output.
[0206] In one embodiment, the attribute data also includes the dimensions of each component model; the association module 404 is further configured to:
[0207] The main models of family members whose sizes are within a preset threshold range are grouped together to obtain multiple sets of model sets of components with the same shape; at least one set of model sets of components with the same shape includes multiple main models of family members.
[0208] In each group of component models with the same shape, determine the main model of the corresponding group of component models with the same shape.
[0209] Associating the association information of all family member main models in the same group of component models with the corresponding group of component main models, we obtain the association information of each component main model with the same shape.
[0210] Several main models of components with the same shape are identified as several component main models. The association information of each main model of a component with the same shape is identified as the association information of the corresponding component main model. The component lightweighting information is then output.
[0211] In one embodiment, the attribute data also includes the normal vector of each component model; the association module 404 is further configured to:
[0212] Group the main models of components with the same shape whose normal vectors are in the same or opposite directions into a group to obtain multiple sets of similar component models; at least one set of similar component models includes multiple main models of components with the same shape.
[0213] In each group of similar component models, determine the main model of the corresponding group of similar components.
[0214] Associating the association information of all main models of components with the same shape in the same group of component models with the corresponding main models of components of the same type, we obtain the association information of each main model of component of the same type.
[0215] Several similar component master models are identified as several component master models, and the association information of each similar component master model is identified as the association information of the corresponding component master model. The component lightweighting information is then output.
[0216] In one embodiment, the attribute data also includes position transformation information for each component model, and the association module 404 is further used for:
[0217] The initial position of the corresponding main model of the same type of component is determined based on the position transformation information and normal vector of the main model of each type of component.
[0218] Group the main models of similar components with the same initial position into one group to obtain multiple sets of component models with the same position; at least one set of component models with the same position includes multiple main models of similar components.
[0219] In each group of component models, determine the main model of the component model in the same position for the corresponding group.
[0220] Associating the association information of all similar component main models in the same group with the corresponding group's component main models in the same position, we obtain the association information of each component main model in the same position.
[0221] Several main models of components in the same position are determined as several main models of components. The association information of each main model of a component in the same position is determined as the association information of the corresponding main model of the component. The lightweight information of the components is output.
[0222] In one embodiment, the attribute data also includes the material attributes of each component model, and the association module 404 is further used for:
[0223] Group the main models of components with the same material properties and the same location into one group to obtain multiple sets of component models with the same material; at least one set of component models with the same material includes multiple main models of components with the same location.
[0224] In each group of component models of the same material, determine the main model of the corresponding group of components of the same material.
[0225] Associate the association information of the main models of all components in the same position in the same group of component models of the same material with the main models of the corresponding group of components of the same material to obtain the association information of the main model of each component of the same material.
[0226] Several component master models of the same material are used as several component master models, and the association information of each component master model of the same material is used as the association information of the corresponding component master model, and the component lightweighting information is output.
[0227] In one embodiment, the association module 404 is specifically used for:
[0228] In the component models that make up the building information model, the component model with a non-empty family name is identified as the first component model, and the component model with an empty family name is identified as the second component model.
[0229] First component models with the same family name are grouped into the same family, resulting in multiple sets of family-based component models; at least one set of family-based component models includes multiple first component models.
[0230] The lightweight component information includes several main component models, the association information of each main component model, all second component models, and the attribute data of each component model.
[0231] In one embodiment, the association module 404 is further configured to:
[0232] Determine the boundary dimensions of all second component models;
[0233] Second component models with the same boundary dimension information are grouped together to obtain multiple sets of component models of the same size; at least one set of component models of the same size includes multiple second component models.
[0234] In each group of component models of the same size, determine the main model of the corresponding group of components of the same size.
[0235] Associate the attribute data of all second component models in the same group of component models with the main model of the same size in the corresponding group to obtain the association information of the main model of each component of the same size.
[0236] Output component lightweighting information, which includes several component master models, the association information of each component master model, several component master models of the same size, the association information of each component master model of the same size, and the attribute data of each component model.
[0237] It should be understood that this lightweight building information model processing method embodiment corresponds to the execution of each step involved in the above method embodiment. The specific functions of the lightweight building information model processing device can be found in the description above; to avoid repetition, detailed descriptions are appropriately omitted here. The lightweight building information model processing device includes at least one software function module that can be stored in memory or embedded in the device's operating system (OS) in the form of software or firmware.
[0238] Please see Figure 5 , Figure 5 This is a structural schematic diagram of a building information model rendering device provided in an embodiment of this application, such as... Figure 5 The building information model rendering apparatus shown includes:
[0239] The second acquisition module 501 is used to acquire component lightweighting information.
[0240] The component lightweighting information includes several component master models, the association information of each component master model, and the attribute data of each component model. The component lightweighting information is obtained by lightweighting the initial building information model based on the building information model lightweighting processing method in any of the above embodiments. The initial building information model is generated based on several component models and the attribute data of each component model.
[0241] The second determining module 502 is used to determine the rendering data of the corresponding component main model from the attribute data of all component models based on the association information of each component main model.
[0242] The rendering module 503 is used to instantiate and render the corresponding component master model in the virtual scene based on the rendering data of the component master model, and generate the rendered building information model.
[0243] It should be understood that this building information model rendering method embodiment corresponds to and can execute the various steps involved in the above method embodiment. The specific functions of the building information model rendering device can be found in the description above. To avoid repetition, detailed descriptions are appropriately omitted here. The building information model rendering device includes at least one software function module that can be stored in memory or embedded in the device's operating system (OS) in the form of software or firmware.
[0244] Please refer to Figure 6 , Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. An electronic device 600 provided in this application includes a processor 601 and a memory 602. These components are interconnected and communicate with each other via a communication bus 603 and / or other forms of connection mechanisms (not shown). The memory 602 stores a computer program executable by the processor 601. When executed by the processor 601, this computer program performs the lightweight processing method or the building information model rendering method described in the first aspect above.
[0245] This application also provides a computer-readable storage medium storing computer program instructions, which, when executed by a processor 601, perform the lightweight building information model processing method or the building information model rendering method described in the first aspect above.
[0246] The storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read Only Memory (EPROM), Programmable Red-Only Memory (PROM), Read-Only Memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.
[0247] It should be understood that the disclosed apparatus / systems and methods can also be implemented in other ways, as provided in the embodiments of this application. The apparatus embodiments described above are merely illustrative. For example, the flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code, which contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, or they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram and / or flowchart, and combinations of blocks in block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.
[0248] In addition, the functional modules in the various embodiments of this application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.
[0249] The above description is only an optional implementation of the embodiments of this application, but the protection scope of the embodiments of this application is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the embodiments of this application should be covered within the protection scope of the embodiments of this application.
Claims
1. A lightweight processing method for Building Information Modeling (BIM), characterized in that, The method includes: Obtain component information that makes up the building information model, wherein the component information includes several component models and attribute data of each component model; Based on the attribute data, all the component models that make up the building information model are classified to obtain multiple categories of component model sets; at least one category of the component model set includes multiple component models; In each category of the component model set, determine the corresponding category's main component model; Associating the attribute data of all component models in the same category with the corresponding category's main component model yields the association information of the main component model for each category. Output component lightweighting information, which includes several component master models, association information of each component master model, and attribute data of each component model.
2. The method according to claim 1, characterized in that, The attribute data includes the family name of each component model; The method for outputting lightweight component information includes: Component models with the same family name are grouped together to obtain multiple sets of component models of the same family; at least one set of the component models of the same family includes multiple component models. In each group of component models, determine the main model of the corresponding group of components. Associating the attribute data of all component models in the same family component model set with the corresponding family component master model, we obtain the association information of each family component master model. Several family-of-component master models are determined as several component master models, and the association information of each family-of-component master model is determined as the association information of the corresponding component master model. The component lightweighting information is then output.
3. The method according to claim 2, characterized in that, The attribute data also includes the dimensions of each component model; the method for outputting component lightweight information includes: The main models of family members whose sizes are within a preset threshold range are grouped together to obtain multiple sets of model sets of components with the same shape; at least one set of model sets of components with the same shape includes multiple main models of the family members. In each group of component models with the same shape, determine the main model of the corresponding group of component models with the same shape. Associating the association information of all family member main models in the same group of component models with the corresponding group of component main models, we obtain the association information of each component main model with the same shape. Several main models of components with the same shape are determined as several main models of components, and the association information of each main model of components with the same shape is determined as the association information of the corresponding main model of components, and the lightweight information of the components is output.
4. The method according to claim 3, characterized in that, The attribute data also includes the normal vector of each component model; the method for outputting component lightweight information includes: Grouping the main models of components with the same shape whose normal vectors are in the same or opposite directions into a group yields multiple sets of similar component models; at least one set of similar component models includes multiple main models of the same shape. In each group of similar component models, determine the main model of the corresponding group of similar components. Associating the association information of all main models of components with the same shape in the same group of component models with the corresponding main models of components of the same type, we obtain the association information of each main model of component of the same type. Several similar component master models are determined as several component master models, and the association information of each similar component master model is determined as the association information of the corresponding component master model, and the component lightweighting information is output.
5. The method according to claim 4, characterized in that, The attribute data also includes position transformation information for each component model, and the method for outputting component lightweighting information includes: The initial position of the corresponding main model of the same type of component is determined based on the position transformation information and normal vector of the main model of each type of component. The main models of similar components with the same initial position are grouped together to obtain multiple sets of component models with the same position; at least one set of component models with the same position includes multiple main models of the same type of component. In each group of component models, determine the main model of the component model in the same position for the corresponding group. Associating the association information of all similar component main models in the same group with the corresponding group's component main models in the same position, we obtain the association information of each component main model in the same position. Several main models of components in the same position are determined as several main models of components, and the association information of each main model of components in the same position is determined as the association information of the corresponding main model of components, and the lightweight information of the components is output.
6. The method according to claim 5, characterized in that, The attribute data also includes the material attributes of each component model, and the method for outputting component lightweight information includes: The main models of components with the same material properties and the same location are grouped together to obtain multiple sets of component models with the same material; at least one set of component models with the same material includes multiple main models of components with the same location. In each group of component models of the same material, determine the main model of the corresponding group of components of the same material. Associate the association information of the main models of all components in the same position in the same group of component models of the same material with the main models of the corresponding group of components of the same material to obtain the association information of the main model of each component of the same material. Several main models of components of the same material are used as several main models of components, and the association information of each main model of components of the same material is used as the association information of the corresponding main model of the component, and the lightweight information of the component is output.
7. The method according to any one of claims 2-6, characterized in that, The process of grouping component models with the same family name into a single group yields multiple sets of component models from the same family, including: In the component models that make up the building information model, the component model with a non-empty family name is identified as the first component model, and the component model with an empty family name is identified as the second component model. First component models with the same family name are divided into the same family to obtain multiple sets of the same family component models; at least one set of the same family component models includes multiple first component models. The lightweight component information includes several main component models, the association information of each main component model, all second component models, and the attribute data of each component model.
8. The method according to claim 7, characterized in that, The method further includes: Determine the boundary dimensions of all second component models; The second component models with the same boundary dimension information are grouped together to obtain multiple sets of component models of the same size; at least one set of component models of the same size includes multiple second component models. In each group of component models of the same size, determine the main model of the corresponding group of components of the same size. Associate the attribute data of all second component models in the same group of component models with the main model of the same size in the corresponding group to obtain the association information of the main model of each component of the same size. Output component lightweighting information, which includes several component master models, association information of each component master model, several component master models of the same size, association information of each component master model of the same size, and attribute data of each component model.
9. A building information model rendering method, characterized in that, The method includes: Obtain component lightweighting information; the component lightweighting information includes several component master models, the association information of each component master model, and the attribute data of each component model; the component lightweighting information is obtained by lightweighting an initial building information model based on the building information model lightweighting processing method according to any one of claims 1-8, and the initial building information model is generated based on several component models and the attribute data of each component model; The rendering data of the corresponding main model of the component is determined from the attribute data of all the main models of the component based on the association information of each main model of the component. Based on the rendering data of the main component model, the corresponding main component model is instantiated and rendered in the virtual scene to generate the rendered building information model.
10. A lightweight processing device for Building Information Modeling (BIM), characterized in that, The device includes: The first acquisition module is used to acquire component information that makes up the building information model, the component information including several component models and attribute data of each component model; A classification module is used to classify all the component models that make up the building information model based on the attribute data, and obtain multiple categories of component model sets; at least one category of the component model set includes multiple component models; The first determining module is used to determine the main component model of the corresponding category in the component model set of each category; The association module is used to associate the attribute data of all component models in the same category of the component model set with the corresponding category of the component master model to obtain the association information of the component master model of each category; The output module is used to output component lightweighting information, which includes several component master models, the association information of each component master model, and the attribute data of each component model.
11. A building information model rendering device, characterized in that, The device includes: The second acquisition module is used to acquire component lightweighting information; the component lightweighting information includes several component master models, the association information of each component master model, and the attribute data of each component model; the component lightweighting information is obtained by lightweighting an initial building information model based on the building information model lightweighting processing method according to any one of claims 1-8, and the initial building information model is generated based on several component models and the attribute data of each component model; The second determining module is used to determine the rendering data of the corresponding main component model from the attribute data of all the main component models based on the association information of each main component model. The rendering module is used to instantiate and render the corresponding main component model in a virtual scene based on the rendering data of the main component model, and generate the rendered building information model.
12. An electronic device, characterized in that, The electronic device includes: Memory; processor; The memory stores a computer program executable by the processor. When the computer program is executed by the processor, it performs the lightweight processing method for building information models according to any one of claims 1-8 or the rendering method for building information models according to claim 9.
13. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer program instructions, which, when executed by a processor, perform the lightweight processing method for building information models according to any one of claims 1-8 or the rendering method for building information models according to claim 9.