Component information sharing method, device and equipment based on building design platform
By matching and multiplexing the geometric information of components in the geometric pool of the architectural design platform, the memory usage problem caused by the increasing number of component instances is solved, and the operation efficiency and memory utilization are improved.
Patent Information
- Application Number
- CN202411984325.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-30
- Publication Date
- 2025-05-16
AI Technical Summary
In the architectural design platform, since each component instance generates its own geometric information, when there are more and more component instances in the project, the geometric information occupies a large amount of memory, affecting operation efficiency.
By introducing a geometric pool into the architectural design platform, the first geometric information of the component is obtained and whether there is a consistent second geometric information in the geometric pool is matched. If the match is successful, the corresponding geometric model will be reused; if it is not matched, a new geometric model will be created.
The sharing of component geometry information is realized, avoiding the generation of new geometry information every time the component is placed, thereby improving operational efficiency and reducing memory consumption.
Smart Images

Figure CN120011328A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a component information sharing method, device, electronic device and storage medium based on an architectural design platform. Background Art
[0002] In the architectural design platforms or software in the field of architecture, there are more and more components with repeated attributes. Components refer to the various elements that make up a building. The components in a building mainly include buildings, walls, beams, columns, windows, doors, etc. When users use architectural design software for design, they often need to add component instances such as doors, windows, and columns. The number of these instances in a project is very large, and the shape and appearance of a class of instances are the same. The prior art needs to generate a piece of geometric information for each component instance generated. Since each component instance generates its own geometric information, when there are more and more component instances in a project, the geometric information of these component instances will occupy a lot of memory. Summary of the invention
[0003] The present application provides a component information sharing method, device, electronic device and storage medium based on an architectural design platform, aiming to solve the technical problem that since each component instance generates its own geometric information, when there are more and more component instances in a project, the geometric information of these component instances will occupy a large amount of memory. The sharing of geometric information is realized, and there is no need to generate new geometry every time a component is placed, which improves operating efficiency and reduces memory consumption.
[0004] In a first aspect, the present application provides a component information sharing method based on a building design platform, comprising:
[0005] When placing or modifying a component of the building design platform, obtaining first geometric information of the component;
[0006] Based on the first geometric information, matching is performed in a preset geometric pool to determine whether second geometric information consistent with the first geometric information can be matched in the geometric pool;
[0007] If second geometric information consistent with the first geometric information is matched in the geometric pool, a geometric model corresponding to the second geometric information is reused;
[0008] If the second geometric information consistent with the first geometric information is not matched in the geometric pool, a geometric model is established based on the first geometric information.
[0009] According to the component information sharing method based on the architectural design platform provided in an embodiment of the present application, when placing or modifying a component of the architectural design platform, obtaining the first geometric information of the component includes:
[0010] When placing or modifying the component, first geometric information of the component is generated based on a key-value pair; the key-value pair stores shape change attributes of the component;
[0011] For window components, the key-value pair stores width, height, and protrusion depth; for door components, the key-value pair stores width and height.
[0012] According to the component information sharing method based on the architectural design platform provided in the embodiment of the present application, the component is a window component, and the specific process of matching in the geometric pool through the first geometric information is as follows:
[0013] According to the width, height and protrusion depth in the first geometric information, the first geometric information is matched in the geometric pool, and it is determined whether there is target geometric information in the geometric pool that is consistent with the width, the height and the protrusion depth;
[0014] If there is target geometric information that is consistent with the width, the height, and the protrusion depth, determining that second geometric information consistent with the first geometric information is matched in the geometric pool;
[0015] If there is no target geometric information that is consistent with the width, the height, and the protrusion depth, it is determined that no second geometric information consistent with the first geometric information is matched in the geometric pool.
[0016] According to the component information sharing method based on the architectural design platform provided in the embodiment of the present application, the component is a door component, and the specific process of matching in the geometric pool through the first geometric information is as follows:
[0017] According to the matching of the width and height in the first geometric information in the geometric pool, determining whether there is target geometric information in the geometric pool that is consistent with the width and the height;
[0018] If there is target geometric information that is consistent with the width and the height, determining that second geometric information that is consistent with the first geometric information is matched in the geometric pool;
[0019] If there is no target geometric information that is consistent with the width and the height, it is determined that no second geometric information that is consistent with the first geometric information is matched in the geometric pool.
[0020] According to the component information sharing method based on the architectural design platform provided in the embodiment of the present application, the component includes a corresponding updater, which is used to maintain shared geometry; when the shape data related information of the component is placed or modified, the updater is triggered to query whether there is a corresponding shared geometry in the shared geometry manager according to the key-value pair; if it exists, the shared geometry is reused, otherwise a new shared geometry is created.
[0021] According to the component information sharing method based on the architectural design platform provided in the embodiment of the present application, the geometric model is a shared geometric body; the shared geometric body is used to maintain the shared geometric information.
[0022] In a second aspect, an embodiment of the present application further provides a component information sharing device based on a building design platform, which includes a unit for executing the above method.
[0023] In a third aspect, an embodiment of the present application further provides a computer device, which includes a memory and a processor, wherein a computer program is stored in the memory, and the above method is implemented when the processor executes the computer program.
[0024] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, wherein the storage medium stores a computer program, and the computer program can implement the above method when executed by a processor.
[0025] In a fifth aspect, the present application also provides a computer program product, including a computer program, which, when executed by a processor, implements any of the component information sharing methods based on the architectural design platform as described above.
[0026] The component information sharing method based on the architectural design platform provided in the embodiment of the present application obtains the first geometric information of the component when placing or modifying the component of the architectural design platform; matches in a preset geometric pool based on the first geometric information to determine whether the second geometric information consistent with the first geometric information can be matched in the geometric pool; if the second geometric information consistent with the first geometric information is matched in the geometric pool, the geometric model corresponding to the second geometric information is reused; if the second geometric information consistent with the first geometric information is not matched in the geometric pool, the geometric model is established based on the first geometric information. Therefore, the embodiment of the present application solves the technical problem that the geometric information of the component instance will occupy a large amount of memory when there are more and more component instances in the project because each component instance generates its own geometric information, and realizes the sharing of geometric information constructed in the architectural design platform, so that new geometry does not need to be generated every time a component is placed, which improves the platform operation efficiency while also reducing memory consumption. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1It is a flow chart of a component information sharing method based on a building design platform provided in an embodiment of the present application;
[0028] Figure 2 It is a structural schematic diagram of a component information sharing device based on a building design platform provided in an embodiment of the present application;
[0029] Figure 3 An embodiment diagram of an electronic device provided in an embodiment of the present application;
[0030] Figure 4 An embodiment diagram of a computer-readable storage medium provided for an embodiment of the present application. DETAILED DESCRIPTION
[0031] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.
[0032] In the description of this application, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, "plurality" means two or more, unless otherwise clearly and specifically defined.
[0033] In the description of the present application, the term "for example" is used to mean "used as an example, illustration or description". Any embodiment described as "for example" in the present application is not necessarily to be interpreted as being more preferred or advantageous than other embodiments. In order to enable any technician in the field to implement and use the present application, the following description is given. In the following description, details are listed for the purpose of explanation. It should be understood that a person of ordinary skill in the art can recognize that the present application can be implemented without using these specific details. In other examples, well-known structures and processes will not be elaborated in detail to avoid unnecessary details to obscure the description of the present application. Therefore, the present application is not intended to be limited to the embodiments shown, but is consistent with the widest range of principles and features disclosed in the present application.
[0034] See also Figure 1 , Figure 1It is a flow chart of a component information sharing method based on a building design platform provided by the present application. In the embodiment of the present application, the execution subject of the component information sharing method based on a building design platform is a component instance sharing device. Therefore, the component information sharing method based on a building design platform includes:
[0035] Step 10, when placing or modifying a component of the building design platform, obtaining first geometric information of the component.
[0036] Specifically, when placing or modifying a component, the placement or modification instruction of the component is triggered, so the component instance sharing device responds to the placement or modification instruction of the component and obtains the first geometric information of the component, wherein the first geometric information (geometry information) of the component is generated based on a key-value pair, and the key-value pair stores the shape change attribute of the component. Therefore, it can be understood that the component instance sharing device responds to the placement or modification instruction of the component and generates the first geometric information of the component based on the key-value pair. The architectural design platform in this embodiment can be a bracket architectural design platform or other architectural design platforms.
[0037] Furthermore, for different types of components, the shape change attributes stored in the key-value pair are different. For example, for a window component, the key-value pair stores the width, height and protrusion depth of the window component. For another example, for a door component, the key-value pair stores the width and height of the door component.
[0038] Step 20: performing matching in a preset geometric pool based on the first geometric information, and determining whether second geometric information consistent with the first geometric information can be matched in the geometric pool.
[0039] Optionally, the component instance sharing device matches the first geometric information in a preset geometric pool to determine whether second geometric information consistent with the first geometric information can be matched in the geometric pool, wherein the geometric pool is generated based on the geometric information of the historical components.
[0040] Among them, for different types of components, the information matched in the geometry pool is different. In one embodiment, for window components, the key-value pair stores the width, height and protrusion depth of the window component, so it is necessary to match in the geometry pool according to the width, height and protrusion depth of the component. For door components, the key-value pair stores the width and height of the door component, so it is necessary to match in the geometry pool according to the width and height of the component, as described in steps 201 to 206.
[0041] Step 30: If second geometric information consistent with the first geometric information is matched in the geometric pool, the geometric model corresponding to the second geometric information is reused.
[0042] Furthermore, if it is determined that second geometric information consistent with the first geometric information is matched in the geometric pool, that is, there is a geometric model matching the first geometric information in the geometric pool, the component instance sharing device reuses the geometric model corresponding to the second geometric information.
[0043] Step 40: If the second geometric information consistent with the first geometric information is not matched in the geometric pool, a geometric model is established based on the first geometric information.
[0044] Furthermore, if it is determined that the second geometric information consistent with the first geometric information is not matched in the geometric pool, that is, there is no geometric model matching the first geometric information in the geometric pool, the component instance sharing device establishes a new geometric model based on the first geometric information. If there is geometric information that matches the first geometric information subsequently, the new geometric model corresponding to the first geometric information is directly reused.
[0045] The embodiment of the present application achieves sharing of geometric information by matching the first geometric information of the placed or modified component with the corresponding second geometric information in the geometric pool and reusing the geometric model corresponding to the second geometric information. It is not necessary to generate new geometry each time a component is placed, thereby improving operating efficiency and reducing memory consumption.
[0046] In one embodiment, when the component is a window component, the specific process of matching in the geometry pool through the first geometric information is as described in steps 201 to 203:
[0047] Step 201, matching the width, height and protrusion depth in the first geometric information in the geometric pool, and determining whether there is target geometric information with the same width, height and protrusion depth in the geometric pool;
[0048] Step 202: if there is target geometric information that is consistent with the width, the height, and the protrusion depth, then determine that second geometric information that is consistent with the first geometric information is matched in the geometric pool;
[0049] Step 203: If there is no target geometric information that is consistent with the width, the height, and the protrusion depth, it is determined that the second geometric information that is consistent with the first geometric information is not matched in the geometric pool.
[0050] Optionally, the component instance sharing device matches in the geometry pool according to the width, height and protrusion depth in the first geometry information, that is, determines whether there is target geometry information in the geometry pool that is consistent with the width, height and protrusion depth.
[0051] Further, if it is determined that there is target geometric information that is consistent with the width, the height, and the protrusion depth, the component instance sharing device determines that second geometric information that is consistent with the first geometric information is matched in the geometric pool.
[0052] Furthermore, if there is no target geometric information that is consistent with the width, the height, and the protrusion depth, that is, the geometric information in the geometric pool is inconsistent with the first geometric information in width, and / or, the height is inconsistent, or / and, the protrusion depth is inconsistent, the component instance sharing device determines that the second geometric information that is consistent with the first geometric information is not matched in the geometric pool.
[0053] The embodiment of the present application achieves sharing of geometric information by matching the first geometric information of the placed or modified component with the corresponding second geometric information in the geometric pool and reusing the geometric model corresponding to the second geometric information. It is not necessary to generate new geometry each time a component is placed, thereby improving operating efficiency and reducing memory consumption.
[0054] In one embodiment, the component is a gate component, and the specific process of matching the first geometric information in the geometric pool is as described in steps 204 to 206:
[0055] Step 204, matching the width and height in the first geometric information in the geometric pool, and determining whether there is target geometric information with the same width and the same height in the geometric pool;
[0056] Step 205: If there is target geometric information that is consistent with the width and the height, determine that second geometric information that is consistent with the first geometric information is matched in the geometric pool;
[0057] Step 206: If there is no target geometric information that is consistent with the width and the height, it is determined that the second geometric information that is consistent with the first geometric information is not matched in the geometric pool.
[0058] Optionally, the component instance sharing device matches in the geometry pool according to the width and height in the first geometry information, that is, determines whether there is target geometry information in the geometry pool that is consistent with the width and the height.
[0059] Further, if it is determined that there is target geometric information that is consistent with the width and the height, the component instance sharing device determines that second geometric information that is consistent with the first geometric information is matched in the geometric pool.
[0060] Further, if it is determined that there is no target geometric information that is consistent with the width and the height, that is, the geometric information in the geometric pool is inconsistent with the first geometric information in width, and / or, height, the component instance sharing device determines that the second geometric information that is consistent with the first geometric information is not matched in the geometric pool.
[0061] The embodiment of the present application achieves sharing of geometric information by matching the first geometric information of the placed or modified component with the corresponding second geometric information in the geometric pool and reusing the geometric model corresponding to the second geometric information. It is not necessary to generate new geometry each time a component is placed, thereby improving operating efficiency and reducing memory consumption.
[0062] In one embodiment, the component includes a corresponding updater (updater r), which is used to maintain a shared geometry (Shared Geometry Holder), and the shared geometry is used to store shared component geometry data. Therefore, when placing or modifying the shape data related information of the component, the component instance sharing device triggers the updater, and queries whether there is a corresponding shared geometry in the shared geometry manager according to the key-value pair; if there is, the shared geometry is reused, otherwise a new shared geometry is created.
[0063] In one embodiment, the geometric model is a shared geometric body, and the shared geometric body is used to maintain shared geometric information.
[0064] Furthermore, the overall solution of the embodiment of the present application can be understood as follows: when creating an instance or modifying instance shape-related data, a key-value pair is generated for the instance, and the key-value pair is defined by the business end. The key-value pair is used to describe the geometric information of the instance, and consistency of the key-value pair indicates that the geometric information is consistent. Instance has a corresponding updater to maintain shared geometry (the updater is triggered when the instance is generated or the instance shape data-related information is modified, and the shared geometry manager is queried based on the key-value pair to see whether there is a corresponding shared geometry. If so, it is reused, otherwise a new one is created). Shared geometry is responsible for maintaining shared geometry.
[0065] Furthermore, the component information sharing device based on the architectural design platform provided in the present application is described below. The component information sharing device based on the architectural design platform described below and the component information sharing method based on the architectural design platform described above can be referred to each other.
[0066] Optional, see Figure 2 , Figure 2 It is a structural schematic diagram of a component information sharing device based on a building design platform provided by the present application. The component information sharing device based on a building design platform includes:
[0067] The acquisition unit 210 is used to acquire first geometric information of a component when placing or modifying a component of the building design platform;
[0068] A matching unit 220 is used to perform matching in a preset geometric pool based on the first geometric information, and determine whether second geometric information consistent with the first geometric information can be matched in the geometric pool;
[0069] A multiplexing unit 230, configured to reuse a geometric model corresponding to the second geometric information if second geometric information consistent with the first geometric information is matched in the geometric pool;
[0070] The creation unit 240 is configured to establish a geometric model based on the first geometric information if no second geometric information consistent with the first geometric information is matched in the geometric pool.
[0071] The embodiment of the present application achieves sharing of geometric information by matching the first geometric information of the placed or modified component with the corresponding second geometric information in the geometric pool and reusing the geometric model corresponding to the second geometric information. It is not necessary to generate new geometry each time a component is placed, thereby improving operating efficiency and reducing memory consumption.
[0072] See also Figure 3 , Figure 3 This is an example diagram of an electronic device provided in an embodiment of the present application. Figure 3 As shown, the embodiment of the present application provides an electronic device 300, including a memory 310, a processor 320, and a computer program 311 stored in the memory 310 and executable on the processor 320. When the processor 320 executes the computer program 311, the following steps are implemented:
[0073] When placing or modifying a component of the building design platform, obtaining the first geometric information of the component;
[0074] Based on the first geometric information, matching is performed in a preset geometric pool to determine whether second geometric information consistent with the first geometric information can be matched in the geometric pool;
[0075] If second geometric information consistent with the first geometric information is matched in the geometric pool, the geometric model corresponding to the second geometric information is reused;
[0076] If the second geometric information consistent with the first geometric information is not matched in the geometric pool, a geometric model is established based on the first geometric information.
[0077] See also Figure 4 , Figure 4 The following is an example of a computer-readable storage medium provided in the present application. Figure 4 As shown, this embodiment provides a computer-readable storage medium 400, on which a computer program 311 is stored. When the computer program 311 is executed by a processor, the following steps are implemented:
[0078] When placing or modifying a component, obtaining the first geometric information of the component;
[0079] Based on the first geometric information, matching is performed in a preset geometric pool to determine whether second geometric information consistent with the first geometric information can be matched in the geometric pool;
[0080] If second geometric information consistent with the first geometric information is matched in the geometric pool, the geometric model corresponding to the second geometric information is reused;
[0081] If the second geometric information consistent with the first geometric information is not matched in the geometric pool, a geometric model is established based on the first geometric information.
[0082] On the other hand, the present application also provides a computer program product, the computer program product includes a computer program, the computer program can be stored in a non-transitory computer-readable storage medium, when the computer program is executed by a processor, the computer can execute the component information sharing method based on the architectural design platform provided by the above methods, the method includes:
[0083] When placing or modifying a component, obtaining the first geometric information of the component;
[0084] Based on the first geometric information, matching is performed in a preset geometric pool to determine whether second geometric information consistent with the first geometric information can be matched in the geometric pool;
[0085] If second geometric information consistent with the first geometric information is matched in the geometric pool, the geometric model corresponding to the second geometric information is reused;
[0086] If the second geometric information consistent with the first geometric information is not matched in the geometric pool, a geometric model is established based on the first geometric information.
[0087] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0088] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0089] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A component information sharing method based on a building design platform, characterized in that: include: When placing or modifying a component of the building design platform, obtaining first geometric information of the component; Based on the first geometric information, matching is performed in a preset geometric pool to determine whether second geometric information consistent with the first geometric information can be matched in the geometric pool; If second geometric information consistent with the first geometric information is matched in the geometric pool, the geometric model corresponding to the second geometric information is reused; If the second geometric information consistent with the first geometric information is not matched in the geometric pool, a geometric model is established based on the first geometric information.
2. The component information sharing method based on the architectural design platform according to claim 1 is characterized in that: When placing or modifying a component of the building design platform, obtaining first geometric information of the component includes: When placing or modifying the component, first geometric information of the component is generated based on a key-value pair; the key-value pair stores shape change attributes of the component; For window components, the key-value pair stores width, height, and protrusion depth; for door components, the key-value pair stores width and height.
3. The method according to claim 2, characterized in that The component is a window component, and the specific process of matching in the geometric pool through the first geometric information is as follows: According to the width, height and protrusion depth in the first geometric information, the first geometric information is matched in the geometric pool, and it is determined whether there is target geometric information in the geometric pool that is consistent with the width, the height and the protrusion depth; If there is target geometric information that is consistent with the width, the height, and the protrusion depth, determining that second geometric information consistent with the first geometric information is matched in the geometric pool; If there is no target geometric information that is consistent with the width, the height, and the protrusion depth, it is determined that no second geometric information consistent with the first geometric information is matched in the geometric pool.
4. The method according to claim 2, characterized in that: The component is a gate component, and the specific process of matching in the geometry pool through the first geometry information is as follows: According to the matching of the width and height in the first geometric information in the geometric pool, determining whether there is target geometric information in the geometric pool that is consistent with the width and the height; If there is target geometric information that is consistent with the width and the height, determining that second geometric information that is consistent with the first geometric information is matched in the geometric pool; If there is no target geometric information that is consistent with the width and the height, it is determined that no second geometric information that is consistent with the first geometric information is matched in the geometric pool.
5. The method according to claim 1, characterized in that The component includes a corresponding updater, which is used to maintain shared geometry; when the shape data related information of the component is placed or modified, the updater is triggered to query whether there is a corresponding shared geometry in the shared geometry manager according to the key-value pair; if it exists, the shared geometry is reused, otherwise a new shared geometry is created.
6. The method according to claim 1, characterized in that The geometric model is a shared geometric body; the shared geometric body is used to maintain shared geometric information.
7. A component information sharing device based on a building design platform, characterized in that: The method comprises a unit for executing the method according to any one of claims 1 to 6.
8. A computer device, characterized in that: The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the method according to any one of claims 1 to 6 when executing the computer program.
9. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 6 can be implemented.
10. A computer program product, characterized in that The computer program product stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 6 can be implemented.