Building modeling method, device, computer equipment and readable storage medium
By determining the standard layer and mapping layer in the floor of the three-dimensional building model, and synergistically updating the mapping components when modification occurs in the standard layer, the problems of cumbersome operation, high degree of modification freedom, and lag in the modeling process in the existing technology are solved, and more efficient modeling design and better user experience are achieved.
Patent Information
- Application Number
- CN202210771482.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-30
- Publication Date
- 2025-03-14
- Estimated Expiration
- 2042-06-30
AI Technical Summary
In the prior art, during the modeling process of three-dimensional building models, the solution of cross-floor replication after modules are grouped has problems such as cumbersome operational interaction, too free module modification, and too many components, resulting in poor user experience.
By determining the standard layer and mapping layer in the floor of the building model, obtaining component data of the standard layer, creating it in the mapping layer, and synchronizing the mapping component when modifications occur in the standard layer.
The coordinated design between the standard layer and the mapping layer is realized, the accuracy and completeness of the model is ensured, user operations are simplified, and user modification is constrained on the standard layer, reducing the modification requirements of the mapping layer, and improving performance and interactivity.
Smart Images

Figure CN115081079B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of computer-aided design, and in particular to a modeling method, device, computer equipment and readable storage medium for a building model. Background Art
[0002] In the modeling design of a three-dimensional building model, in order to maintain the final integrity of the model, even the same floors in the building model need to be generated by three-dimensional entities. In the prior art, the modeling of the building model is usually achieved by grouping modules and then replicating them across floors. With respect to this modeling method of the building model, the inventor has found that the solution of grouping modules and then replicating them across floors has the following main disadvantages:
[0003] 1. Complicated operation interaction: Every time you need to edit a group of modules, you need to double-click to enter the group editing mode. If the building floors are frequently modified, you will need to repeatedly enter the group editing mode, resulting in a poor operation experience. At the same time, when copying an entire floor, you need to first select it, then copy it to the clipboard, and then click the Paste to Floor command to complete the copy. The entire operation process has many steps and the functions are not centralized;
[0004] 2. Module modification is too free: After the modules are grouped, any group copied can be modified individually without any constraints. Users often ignore the main expression due to the flexible and casual modification, resulting in the extra workload of repeatedly adjusting and modifying the final results;
[0005] 3. Performance lag due to too many components: In conventional projects, once there are many floors, a large number of duplicate components will be generated in the project environment after the modules are copied in groups. Operating in a view with many components will cause very slow performance, greatly affecting the overall user experience.
[0006] Therefore, how to improve the user experience in the process of 3D architectural modeling and design has become a technical problem that needs to be solved urgently in this field. Summary of the invention
[0007] The purpose of the present invention is to provide a modeling method, device, computer equipment and readable storage medium for a building model, so as to solve the technical problems in the prior art.
[0008] On the one hand, to achieve the above-mentioned purpose, the present invention provides a modeling method of a building model.
[0009] The building model includes multiple floors, and the modeling method of the building model includes: determining a standard layer and a mapping layer in the floors of the building model; obtaining component data of the standard layer; using the component data to create the components of the standard layer in the mapping layer to obtain mapping components; and in response to an editing operation on the standard layer, modifying the components of the standard layer, and updating the mapping components in linkage with the modified components of the standard layer.
[0010] Furthermore, the step of acquiring the component data of the standard layer includes: determining the components belonging to the standard layer according to the top positioning components, the top and bottom positioning components and the bottom positioning components; and acquiring the component data of the components belonging to the standard layer.
[0011] Furthermore, the step of determining the standard layer and the mapping layer in the floors of the building model includes: in response to the standard layer function selection operation, displaying the floor assembly panel, wherein the floor assembly panel includes the constituent floors of the building model; in response to the operation of selecting the standard layer in the constituent floors, determining the standard layer; determining the alternative mapping layer that meets the preset legal rules with the standard layer; displaying the alternative mapping layer and the non-alternative mapping layer in the constituent floors of the building model in different display modes; and determining the mapping layer in response to the operation of selecting the mapping layer in the alternative mapping layers.
[0012] Furthermore, the step of determining an alternative mapping layer that satisfies preset legal rules with the standard layer includes: searching for floors with the same height as the standard layer among the constituent floors of the building model to obtain a first floor group; deleting the topmost floor and the bottommost floor in the first floor group to obtain a second floor group; determining whether the number of floors in the second floor group meets a preset threshold; when the number of floors in the second floor group meets the preset threshold, determining the floors in the second floor group as the alternative mapping layer.
[0013] Furthermore, the building modeling method further comprises: when the mapping layer is selected, displaying a bounding box of the mapping layer and information of the mapping layer.
[0014] Furthermore, the building modeling method further comprises: when the mapping component is selected, displaying information of the mapping component and displaying positioning information adapted to the mapping layer where the mapping component is located.
[0015] Furthermore, the modeling method of the building model also includes: obtaining material information of components in the standard layer; identifying material information of the mapping components in the mapping layer; and deleting interlayer lines between components with the same material information between the mapping layers and between the mapping layer and the standard layer.
[0016] On the other hand, to achieve the above-mentioned purpose, the present invention provides a modeling device for a building model.
[0017] The building model includes multiple floors, and the modeling device of the building model includes: a determination module, used to determine the standard layer and the mapping layer in the floors of the building model; a first acquisition module, used to obtain the component data of the standard layer; a mapping module, used to create the components of the standard layer in the mapping layer using the component data to obtain the mapping components; and a response module, used to modify the components of the standard layer in response to the editing operation of the standard layer, and update the mapping components in linkage according to the modified components of the standard layer.
[0018] To achieve the above objectives, the present invention also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the computer program.
[0019] To achieve the above object, the present invention also provides a computer-readable storage medium on which a computer program is stored, and the computer program implements the steps of the above method when executed by a processor.
[0020] The modeling method, device, computer equipment and readable storage medium of the building model provided by the present invention are for a building model including multiple floors. First, the standard layer and the mapping layer are determined in the floors of the building model. Through the standard layer function, one of the completely identical floors is designated as the standard layer, and the other floors are designated as the associated mapping layers. Then, the component data of the standard layer is obtained, and the components of the standard layer are created in the mapping layer using the component data to obtain the mapping components. When the standard layer is modified, in addition to modifying the components of the standard layer, the mapping components are also updated in conjunction with the components of the modified standard layer. Through the present invention, the standard layer and the mapping layer can be designed collaboratively, so that the mapping components perfectly retain the main data and adapt to the corresponding floors. The mapping components can be completely consistent with the physical components of the standard layer in visual expression, ensuring the accuracy of the model; they can also be easily modified, and can better concentrate user constraints on the modification of the standard layer, making it more convenient for users to operate and modify. The mapping layer can be updated simultaneously without modification, satisfying the user's rapid setting of the assembled floors. By real-time monitoring of the changes in the components in the floors, the same floors can be quickly modified; at the same time, the mapping layer reuses the component data of the standard layer, making the building model lightweight and non-stuck, the data volume is greatly reduced, and the performance improvement is obviously perceived. In summary, under the premise of ensuring the integrity of the three-dimensional modeling, users can more easily complete the typical scenario of floor reuse, and the performance and interactivity are significantly improved compared to the solution of cross-floor replication after module grouping, which paves the way for the subsequent rapid construction of building models and the issuance of standard floor construction drawings, improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0022] Figure 1 A flowchart of a method for modeling a building model provided in Embodiment 1 of the present invention;
[0023] Figure 2 A schematic diagram of a floor assembly panel in a building modeling method provided by an embodiment of the present invention;
[0024] Figure 3 A schematic diagram of the range of standard layer components in the building modeling method provided by an embodiment of the present invention;
[0025] Figure 4 A block diagram of a building modeling device provided in Embodiment 2 of the present invention;
[0026] Figure 5 This is a hardware structure diagram of a computer device provided in Embodiment 3 of the present invention. DETAILED DESCRIPTION
[0027] In order to make the purpose, technical scheme and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0028] Embodiment 1
[0029] The embodiment of the present invention provides a method for modeling a building model, the building model includes multiple floors, through which the efficiency and performance of repeated floor modeling are improved, and the user experience in the process of modeling and designing a three-dimensional building model is improved. Specifically, Figure 1 Flow chart of the method for modeling a building model provided in the first embodiment of the present invention, such as Figure 1 As shown, the building modeling method provided in this embodiment includes the following steps S101 to S104.
[0030] Step S101: Determine standard layers and mapping layers in the floors of the building model.
[0031] The building model includes multiple floors, some of which have the same floor height, and in the floors with the same floor height, the geometric shapes and non-shape data of the components are completely consistent.
[0032] For this type of building model, standard layers and mapping layers are defined in the floors with the same height and completely consistent component data, that is, one of the floors is designated as the standard layer and the other floors are designated as mapping layers. All component data of the standard layer will be used as original data to realize the visual expression of geometric shapes and non-shape data on the standard layer; the mapping layer is set as the floor that is associated with the standard layer to establish a linkage relationship.
[0033] Among them, the standard floor name can be defined as the corresponding floor name-standard floor. For example, if the floor name is building 3F, the corresponding standard floor name is building 3F-standard floor, and the mapping layer name uses the floor name.
[0034] Optionally, a certain floor in the building model can be set as a default standard floor, and other floors that meet the requirements can be mapped floors. Alternatively, the standard floor and the mapped floor can also be set based on user operations.
[0035] When the standard layer and the mapping layer are set based on the user operation, optionally, the step specifically includes the following steps S1011 to S1015. Step S1011: In response to the standard layer function selection operation, display the floor assembly panel, wherein the floor assembly panel includes the component floors of the building model. Specifically, Figure 2 A schematic diagram of a floor assembly panel in a building modeling method provided by an embodiment of the present invention, such as Figure 2 As shown, a floor assembly panel is preset to be displayed based on the standard floor function selection operation. When the user decides to use the standard floor function to model the building model, the floor assembly panel is displayed. In the floor assembly panel, the component floors of the building model include the floor names and the floor height parameters corresponding to the floors. In addition, the floor names and floor height parameters are both data that cannot be modified in the floor management panel. For example, this type of unchangeable data is displayed in a gray state to prompt the user. Step S1012: In response to the operation of selecting a standard layer in the component floors, the standard layer is determined. Among them, when displaying the component floors, the floor assembly panel may display the floors that cannot be selected as standard layers in a gray state to prompt the user which floors cannot be selected as standard layers. For example, the top elevation floors and the ±0.000 elevation floors are in a gray and unselectable state. The user selects a standard layer from the floors that can be selected as standard layers to determine the standard layer of the modeling process. Figure 23F is selected as the standard floor. Step S1013: Determine the candidate mapping layers that meet the preset legal rules with the standard floor. The legal rules are preset to define the legal requirements that the standard floor and the mapping layer need to meet. When the user selects the standard floor, according to the legal rules, it can be determined which floors in the component floors can be used as mapping layers, and these floors that can be used as mapping layers are defined as candidate mapping layers. Step S1014: Different display modes are used to display the candidate mapping layers and the non-alternative mapping layers in the component floors of the building model. After the candidate mapping layers are determined, a specific display mode can be used to prompt the user which floors are candidate mapping layers. For example, the non-alternative mapping layers are displayed in a gray state, so that other floors that are not grayed out are candidate mapping layers. Step S1015: In response to the operation of selecting a mapping layer in the alternative mapping layers, the mapping layer is determined. After the alternative mapping layers are displayed to the user, the user can select a mapping layer from them. It is convenient for the user to operate to select the standard layer and the mapping layer, and at the same time, it can prevent the user from selecting an illegal mapping layer during the selection process, which is conducive to improving the user experience.
[0036] For the above step S1013, further optionally, when determining the alternative mapping layer that meets the preset legal rules with the standard layer, the following steps S10131 to S1013 are specifically performed. Among them, step S10131: search for the floor with the same floor height as the standard layer in the constituent floors of the building model to obtain the first floor group. Step S10132: delete the top floor, the bottom floor and the standard floor in the first floor group to obtain the second floor group. Among them, the top floor and the bottom floor can neither be used as standard layers nor as mapping layers, and the standard layer itself cannot be used as a mapping layer. Step S10133: Determine whether the number of floors in the second floor group meets the preset threshold. Among them, the preset threshold can be set to 2, that is, at least two alternative mapping layers are included. Step S10134: When the number of floors in the second floor group meets the preset threshold, the floors in the second floor group are determined to be alternative mapping layers. Figure 2As shown in the figure, when the user selects a certain building floor as the standard floor in the standard floor selection column on the left, the layer in the mapping layer setting on the right becomes gray and unselectable; after selecting the standard floor on the left, the floors with inconsistent floor heights on the right side of the panel become gray and unselectable; the top elevation floor and the ±0.000 elevation floor (that is, the bottom floor) are gray and unselectable. Among them, the floors in the standard floor selection column on the left are not checked by default, and can be checked by clicking. The floors in the standard floor selection column on the left can be clicked at any time. If a certain floor A has been set as a standard floor, when other floor B is clicked, the floor A will be cancelled as a standard floor, and floor B will be re-set as a standard floor, and all other floor properties will be scanned to re-determine the alternative mapping layer. Among them, the mapping selection is grayed out by default. After setting the standard layer, the floors that can be used as mapping layers according to the floor height conditions are switched to an optional state; the default value of the standard layer setting is "None".
[0037] Step S102: Obtain component data of the standard layer.
[0038] After the standard floor is determined, component data of the standard floor is obtained, and the component data includes geometric shape data and accompanying information data. Through the component data, three-dimensional information expression can be realized for the corresponding floor. Specifically, the component data of the set standard floor can be imported, or the component data of the standard floor can be obtained by editing.
[0039] Optionally, in one embodiment, when obtaining the component data of the standard layer in step S102, the specific steps performed include: determining the components belonging to the standard layer according to the top positioning components, the top and bottom positioning components and the bottom positioning components; obtaining the component data belonging to the standard layer components. Among them, the top positioning component refers to the component whose top elevation is the standard layer in the positioning information, such as: floor slabs, beams, etc. The top and bottom positioning components refer to the components whose top elevation does not affect the positioning attribution in the positioning information, and are only confirmed as the components of the layer by the bottom elevation, such as: columns, walls, stairs, rooms, etc. In the positioning information of the bottom positioning component, the components whose bottom elevation is the layer, such as include door and window openings, railings, eaves, household cleaning utensils, etc. Figure 3 A schematic diagram of the range of standard layer components in the building modeling method provided by an embodiment of the present invention, such as Figure 3 As shown, the bottom elevation of the standard layer -1F is ±0.0001F, the top elevation is ±3.0002F, the bottom elevation of the standard layer -3F is ±6.3003F, and the top elevation is ±9.3004F.
[0040] Step S103: Using the component data, create the components of the standard layer in the mapping layer to obtain the mapping components.
[0041] After obtaining the component data of the standard layer, in addition to creating components in the standard layer, in this step, the component data of the standard layer is also used to create components in the mapping layer, where the components of the mapping layer are defined as mapping components, thereby creating the data and visual expression of the main components in the mapping layer in real time.
[0042] Step S104: In response to the editing operation on the standard layer, the components of the standard layer are modified, and the mapping components are linked and updated according to the modified components of the standard layer.
[0043] Specifically, after the 3D representation of the accompanying information in the standard layer is projected into the mapping layer, the modification of the components in the standard layer will be linked and updated on the mapping layer. The 3D representation and information of the standard layer are directly projected onto the mapping layer, and the mapping components of the mapping layer cannot be edited, but will only be linked to the modification of the standard layer in real time.
[0044] In the modeling method of the building model provided in this embodiment, for a building model including multiple floors, first, the standard layer and the mapping layer are determined in the floors of the building model, and through the standard layer function, one of the completely identical floors is designated as the standard layer, and the other floors are designated as associated mapping layers, and then the component data of the standard layer is obtained, and the components of the standard layer are created in the mapping layer using the component data to obtain the mapping components. When the standard layer is modified, in addition to modifying the components of the standard layer, the mapping components are also updated in conjunction with the components of the modified standard layer. The modeling method of the building model provided by this embodiment enables the standard layer and the mapping layer to be designed collaboratively, so that the mapping components perfectly retain the main data and adapt to the corresponding floors. The mapping components can be completely consistent with the physical components of the standard layer in visual expression, ensuring the accuracy of the model; and it can be easily modified, and the user constraints can be better concentrated on the modification of the standard layer, making it more convenient for users to operate and modify. The mapping layer can be updated simultaneously without modification, satisfying the user's rapid setting of the assembled floors. By real-time monitoring of the changes in the components in the floors, the same floors can be quickly modified; at the same time, the mapping layer reuses the component data of the standard layer, making the building model lightweight and non-stuck, the data volume is greatly reduced, and the performance improvement is obviously perceived. In summary, under the premise of ensuring the integrity of the three-dimensional modeling, users can more easily complete the typical scenario of floor reuse, and the performance and interactivity are significantly improved compared to the solution of cross-floor replication after module grouping, which paves the way for the subsequent rapid construction of building models and the issuance of standard floor construction drawings, improving the user experience.
[0045] Optionally, in an embodiment, the building modeling method further includes: when the mapping layer is selected, displaying a bounding box of the mapping layer and information of the mapping layer.
[0046] Specifically, the mapping layer contains a dotted frame as the bounding box of the mapping layer, which can be picked up. If the mouse is hovered or selected, the visual effect of the bounding box will be displayed as a dotted frame. For example, when the dotted frame is selected, the highlighted blue selected state is displayed, and at the same time, the information of the current mapping layer is displayed in the property panel; at this time, moving the mouse on the bounding box range line keeps the highlight, and moving it outside the range cancels the highlight, and the bounding box turns dark blue; if the mouse is in a blank area without any components but close to the edge of the bounding box, the bounding box of the mapping layer will also appear at this time. When the mouse moves away from the bounding box, the dotted line disappears. Specifically, the bounding box of the mapping layer is set to a dotted box with a color value of #0ED6F0.
[0047] Using the modeling method of the building model provided by this embodiment, the components of the mapping layer are mapping components, and the components of the standard layer are reused. However, when the mapping layer is selected, the enclosing frame of the mapping layer is displayed to distinguish it from the standard layer. At the same time, the information of the mapping layer is displayed, so that the mapping layer can be visually distinguished from the enclosing layer, and the information of the mapping layer itself can be displayed, which provides a good user experience.
[0048] Optionally, in an embodiment, the building modeling method further includes: when a mapping component is selected, displaying information of the mapping component, and displaying positioning information adapted to the mapping layer where the mapping component is located.
[0049] Specifically, when the mouse hovers over a mapped component, the component will display the corresponding information of the mapped component. When a component of the mapping layer is selected, the property panel will display the corresponding positioning information based on the current floor.
[0050] Using the building modeling method provided in this embodiment, the components of the mapping layer are mapping components, and the components of the standard layer are reused. However, when the mapping component is selected, the floor where the mapping component is located, that is, the positioning information of the mapping layer is displayed, which is convenient for users to determine the floor where the mapping component is located in real time, and the user experience is good.
[0051] Optionally, in one embodiment, the modeling method of the building model also includes: obtaining material information of components in the standard layer; identifying material information of the mapping components in the mapping layer; and deleting interlayer lines between components with the same material information between mapping layers and between the mapping layer and the standard layer.
[0052] Specifically, the mapping layer itself is a visual expression of the standard layer, and the main body data belongs to the standard layer, so the unprocessed interlayer lines of the standard layer will be retained. In this embodiment, the material information of the temporarily created mapping component is identified, and the mapping components with the same material information between the mapping layers and the interlayer lines between the mapping components and the physical components with the same material information are deleted to achieve the effect of hiding the components according to the material. Specifically, the interlayer lines can be deleted based on manual operation or automatically, and this application does not limit this.
[0053] By adopting the modeling method of the building model provided by this embodiment, when editing the components of the standard layer, there is no need to enter the panel editing mode, and the editing can be directly operated. The standard layer will focus the modification and editing on the main standard layer, and only allow the main components to be modified directly in the standard layer, and then synchronously create the visual expression of the mapped components to the mapping layer. The mapping layer can only be selected and cannot be modified. The standard layer detects the top and bottom elevations of the components and is directly set according to the floors in the standard layer. It does not need to be defined after boxing like grouping. The standard layer is only applicable to two or more floors with exactly the same floor height and component parameters, and modules can generally only be used for a small range of component sets. The standard layer can include all grouped modules in the current floor, and groups cannot nest other grouped modules.
[0054] Embodiment 2
[0055] Corresponding to the above-mentioned embodiment 1, embodiment 2 of the present invention provides a modeling device for a building model. The corresponding technical feature details and corresponding technical effects can be referred to the above-mentioned embodiment 1, and will not be repeated in this embodiment. Figure 4 A block diagram of a building modeling device provided in Embodiment 2 of the present invention, such as Figure 4 As shown, the device includes: a determination module 201 , a first acquisition module 202 , a mapping module 203 and a response module 204 .
[0056] The determination module 201 is used to determine the standard layer and the mapping layer in the floor of the building model; the first acquisition module 202 is used to obtain the component data of the standard layer; the mapping module 203 is used to create the components of the standard layer in the mapping layer using the component data to obtain the mapping components; and the response module 204 is used to modify the components of the standard layer in response to the editing operation on the standard layer, and update the mapping components in linkage with the modified components of the standard layer.
[0057] Optionally, in one embodiment, the first acquisition module includes: a first determination unit, used to determine the components belonging to the standard layer according to the top positioning component, the top and bottom positioning components and the bottom positioning component; a first acquisition unit, used to acquire component data belonging to the standard layer components.
[0058] Optionally, in one embodiment, the determination module includes: a first response unit, used to display a floor assembly panel in response to a standard layer function selection operation, wherein the floor assembly panel includes the constituent floors of the building model; a second response unit, used to determine the standard layer in response to an operation of selecting a standard layer in the constituent floors; a second determination unit, used to determine an alternative mapping layer that meets preset legal rules with the standard layer; a first display unit, used to display the alternative mapping layer and the non-alternative mapping layer in the constituent floors of the building model in different display modes; and a third response unit, used to determine the mapping layer in response to an operation of selecting a mapping layer in the alternative mapping layers.
[0059] Optionally, in one embodiment, when the second determination unit determines the alternative mapping layer that satisfies the preset legal rules with the standard layer, the specific steps performed include: searching for floors with the same height as the standard layer among the constituent floors of the building model to obtain a first floor group; deleting the topmost floor and the bottommost floor in the first floor group to obtain a second floor group; judging whether the number of floors in the second floor group meets a preset threshold; when the number of floors in the second floor group meets the preset threshold, determining the floors in the second floor group as the alternative mapping layer.
[0060] Optionally, in an embodiment, the modeling device of the building model further includes: a first display module, configured to display a bounding box of the mapping layer and information of the mapping layer when the mapping layer is selected.
[0061] Optionally, in an embodiment, the modeling device of the building model further includes: a second display module, configured to display information of the mapping component and positioning information adapted to the mapping layer where the mapping component is located when the mapping component is selected.
[0062] Optionally, in one embodiment, the modeling device of the building model also includes: a second acquisition module, used to acquire material information of components in the standard layer; an identification module, used to identify material information of mapping components in the mapping layer; and a deletion module, used to delete interlayer lines between components with the same material information between the mapping layers and between the mapping layer and the standard layer.
[0063] Embodiment 3
[0064] This embodiment also provides a computer device, such as a smart phone, tablet computer, laptop computer, desktop computer, rack server, blade server, tower server or cabinet server (including an independent server or a server cluster composed of multiple servers) that can execute programs. Figure 5As shown, the computer device 01 of this embodiment includes at least but is not limited to: a memory 011 and a processor 012 which can be interconnected through a system bus. Figure 5 It should be pointed out that Figure 5 Only a computer device 01 having components memory 011 and processor 012 is shown, but it should be understood that it is not required to implement all of the components shown, and more or fewer components may be implemented instead.
[0065] In this embodiment, the memory 011 (i.e., readable storage medium) includes flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 011 may be an internal storage unit of the computer device 01, such as a hard disk or memory of the computer device 01. In other embodiments, the memory 011 may also be an external storage device of the computer device 01, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card, etc. equipped on the computer device 01. Of course, the memory 011 may also include both the internal storage unit of the computer device 01 and its external storage device. In this embodiment, the memory 011 is generally used to store the operating system and various application software installed on the computer device 01, such as the program code of the modeling device of the building model in the second embodiment. In addition, the memory 011 can also be used to temporarily store various types of data that have been output or are to be output.
[0066] In some embodiments, the processor 012 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips. The processor 012 is generally used to control the overall operation of the computer device 01. In this embodiment, the processor 012 is used to run the program code stored in the memory 011 or process data, such as a modeling method of a building model.
[0067] Embodiment 4
[0068] This embodiment also provides a computer-readable storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory (for example, an SD or DX memory, etc.), a random access memory (RAM), a static random access memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a disk, an optical disk, a server, an App application store, etc., on which a computer program is stored, and when the program is executed by a processor, a corresponding function is realized. The computer-readable storage medium of this embodiment is used for storing a modeling device of a building model, and when executed by a processor, the modeling method of the building model of the first embodiment is realized.
[0069] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0070] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0071] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method.
[0072] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A method for modeling a building model, characterized in that: The building model includes multiple floors, and the building modeling method includes: Determining standard layers and mapping layers in the floors of the building model; Acquire component data of the standard layer; Using the component data, the components of the standard layer are created in the mapping layer to obtain mapping components; In response to an editing operation on the standard layer, modifying a component of the standard layer, and updating the mapping component in linkage with the modified component of the standard layer; Obtaining material information of components in the standard layer; identifying material information of a mapping member in the mapping layer; and The interlayer lines between the mapping layers, between the mapping layer and the standard layer, and between components with the same material information are deleted. The step of determining the standard layer and the mapping layer in the floors of the building model comprises: in response to the standard layer function selection operation, displaying the floor assembly panel, wherein the floor assembly panel includes the component floors of the building model; in response to the operation of selecting the standard layer in the component floors, determining the standard layer; determining the candidate mapping layer that meets the preset legal rules with the standard layer; displaying the candidate mapping layer and the non-candidate mapping layer in the component floors of the building model in different display modes; and determining the mapping layer in response to the operation of selecting the mapping layer in the candidate mapping layers; The step of determining an alternative mapping layer that satisfies preset legal rules with the standard layer includes: searching for floors with the same floor height as the standard layer in the constituent floors of the building model to obtain a first floor group; deleting the topmost floor and the bottommost floor in the first floor group to obtain a second floor group; determining whether the number of floors in the second floor group meets a preset threshold; when the number of floors in the second floor group meets the preset threshold, determining the floors in the second floor group as the alternative mapping layers.
2. The building modeling method according to claim 1, characterized in that: The step of obtaining the component data of the standard layer includes: Determine the components belonging to the standard layer according to the top positioning components, the top and bottom positioning components and the bottom positioning components; Component data belonging to the standard layer component is obtained.
3. The building modeling method according to claim 1, characterized in that: The modeling method of the building model also includes: When the mapping layer is selected, a bounding box of the mapping layer and information of the mapping layer are displayed.
4. The method for building a building model according to claim 1, characterized in that: The modeling method of the building model also includes: When the mapping component is selected, information of the mapping component is displayed, and positioning information adapted to the mapping layer where the mapping component is located is displayed.
5. A building modeling device, characterized in that: The building model includes a plurality of floors, and the modeling device of the building model includes: A determination module, used to determine a standard layer and a mapping layer in the floors of the building model; A first acquisition module, used for acquiring component data of the standard layer; A mapping module, used to create the components of the standard layer in the mapping layer by using the component data to obtain a mapping component; A response module, configured to modify the components of the standard layer in response to an editing operation on the standard layer, and update the mapping components in linkage with the modified components of the standard layer; A second acquisition module is used to acquire material information of components in the standard layer; an identification module, configured to identify material information of a mapping component in the mapping layer; and A deletion module is used to delete the interlayer lines between the mapping layers, between the mapping layer and the standard layer, and between components with the same material information. The determination module includes: a first response unit for displaying a floor assembly panel in response to a standard layer function selection operation, wherein the floor assembly panel includes the component floors of the building model; a second response unit for determining the standard layer in response to an operation of selecting a standard layer in the component floors; a second determination unit for determining an alternative mapping layer that meets a preset legal rule with the standard layer; a first display unit for displaying the alternative mapping layer and the non-alternative mapping layer in the component floors of the building model in different display modes; a third response unit for determining the mapping layer in response to an operation of selecting a mapping layer in the alternative mapping layers; When the second determination unit determines the alternative mapping layer that meets the preset legal rules with the standard layer, the specific steps performed include: searching for floors with the same floor height as the standard layer in the constituent floors of the building model to obtain a first floor group; deleting the topmost floor and the bottommost floor in the first floor group to obtain a second floor group; judging whether the number of floors in the second floor group meets a preset threshold; when the number of floors in the second floor group meets the preset threshold, determining the floors in the second floor group as the alternative mapping layers.
6. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 4 are implemented.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.
Citation Information
Patent Citations
Floor processing method, device and electronic equipment
CN113420355A