House plan editing method and device, storage medium and program product

By using dynamic matching collision detection logic and bounding box analysis, the problem of insufficient flexibility in collision detection during floor plan editing is solved, improving detection accuracy and the rationality of the floor plan.

CN121280554APending Publication Date: 2026-01-06QINGDAO HAIER TECH +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511211684.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-08-27
Publication Date
2026-01-06

AI Technical Summary

Technical Problem

Existing floor plan editing methods lack flexibility in collision detection, resulting in low accuracy and making it difficult to ensure the rationality of the spatial layout of the edited floor plan.

Method used

By identifying the types of family elements in the floor plan to be detected, the collision detection logic that matches the combination of their types is dynamically determined. Spatial relationship analysis is performed in conjunction with bounding boxes to generate collision detection results, and the floor plan is edited based on these results.

Benefits of technology

It improves the flexibility and accuracy of collision detection, ensures the rationality of the edited floor plan, realizes dynamic adaptation detection rules for family elements, and enhances the rationality of spatial layout.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121280554A_ABST
    Figure CN121280554A_ABST
Patent Text Reader

Abstract

The invention discloses a house type image editing method and device, a storage medium and a program product, and relates to the technical field of smart home / smart home, and the house type image editing method comprises the steps: determining a collision detection logic based on the family element type of a first family element and the family element type of a second family element in a to-be-detected house type image, based on the collision detection logic, the first bounding box of the first family element and the second bounding box of the second family element, obtaining a collision detection result, and based on the collision detection result, editing the to-be-detected house type image to obtain an edited house type image; according to the method, the detection rule is dynamically adapted for different types of family elements, and the flexibility of collision detection of the family elements is enhanced, so that the accuracy of a collision detection result is improved, and the rationality of the edited house type image is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of smart home / intelligent home technology, and more specifically, to a floor plan editing method, device, storage medium, and program product. Background Technology

[0002] In fields such as smart homes and interior design, digital modeling of floor plans is fundamental for achieving visual design, scheme preview, equipment management, and space intelligence. When users create or edit floor plans, they can use templates, hand-drawn floor plans, or upload floor plans to create new floor plans. They can also add / edit floor plan components, furniture, equipment, and other elements. These processes must ensure the compliance and rationality of the placement of each element.

[0003] In existing technologies, floor plan editing tools typically employ collision detection technology for verification. This involves first generating a rectangular axis-aligned bounding box (AABB) for each family element, and then calculating whether any overlap exists between these bounding boxes to determine if a collision has occurred. However, this method of collision detection for family elements lacks flexibility, resulting in low accuracy and making it difficult to ensure the spatial layout rationality of the edited floor plan. Summary of the Invention

[0004] This application provides a floor plan editing method, device, storage medium, and program product to solve the technical problem that existing floor plan editing methods lack flexibility in collision detection, resulting in low accuracy and difficulty in ensuring the rationality of the spatial layout of the edited floor plan.

[0005] In a first aspect, embodiments of this application provide a method for editing floor plans, including:

[0006] Based on the family element type of the first family element and the family element type of the second family element in the floor plan to be detected, the collision detection logic is determined. The family element type is one of the following: floor plan structure, floor plan component, furniture object, and smart home device.

[0007] Based on the collision detection logic, the first bounding box of the first family element, and the second bounding box of the second family element, the collision detection result is obtained;

[0008] Based on the collision detection results, the floor plan to be detected is edited to obtain the edited floor plan.

[0009] Optionally, the collision detection logic is used to indicate a situation where the relative position of the first family element and the second family element is incorrect; the situation where the relative position is incorrect includes at least one of: intersection, inclusion, and connection.

[0010] Optionally, the step of editing the floor plan to be detected based on the collision detection results to obtain an edited floor plan includes:

[0011] In response to the collision detection result used to characterize the relative position error between the first family element and the second family element, an error message is output; the error message is used to indicate that the relative position between the first family element and the second family element is incorrect.

[0012] In response to the position update of the first family element and / or the position update of the second family element, the floor plan to be detected is edited based on the updated position of the first family element and / or the updated position of the second family element to obtain an edited floor plan.

[0013] Optionally, before obtaining the collision detection result based on the collision detection logic, the first bounding box of the first family element, and the second bounding box of the second family element, the method further includes:

[0014] The floor plan editing interface displays the floor plan editing canvas; the area of ​​the floor plan editing canvas is used to display the floor plan to be tested.

[0015] Based on the coordinates of the vertices of the first family element in the coordinate system of the floor plan editing canvas, the axis-aligned bounding box of the first family element is obtained, which serves as the first bounding box.

[0016] Based on the coordinates of the vertices of the second family element in the coordinate system of the floor plan editing canvas, the axis-aligned bounding box of the second family element is obtained, which serves as the second bounding box.

[0017] Optionally, the edited floor plan is a two-dimensional floor plan. After editing the floor plan to be detected based on the collision detection results to obtain the edited floor plan, the method further includes:

[0018] Based on the edited floor plan and the number of smart home devices bound to the rooms in the edited floor plan, a 3D floor plan is rendered to obtain an interactive 3D floor plan; the 3D floor plan includes the identifiers of the smart home devices.

[0019] Based on the interactive 3D floor plan, smart home devices can be controlled.

[0020] Optionally, the step of rendering a 3D floor plan based on the edited floor plan and the number of smart home devices bound to the rooms in the edited floor plan to obtain an interactive 3D floor plan includes:

[0021] In response to the fact that the number of smart home devices bound to the apartment room is greater than a preset number, a 3D apartment floor plan is rendered based on the edited floor plan, device aggregation identifier, and the identifier of the first smart home device to obtain the interactive 3D apartment floor plan; among the smart home devices bound to the apartment room, multiple second smart home devices other than the first smart home device are interactively controlled based on the device aggregation identifier.

[0022] Optionally, the method further includes:

[0023] In response to deleting the identifier of the first smart home device from the interactive 3D floor plan, a target smart home device for displaying the identifier in the room of the floor plan is determined from the plurality of second smart home devices;

[0024] The identifier of the target smart home device is displayed in the room of the apartment in the interactive 3D floor plan.

[0025] Secondly, embodiments of this application provide a floor plan editing device, comprising:

[0026] The determination module is used to determine the collision detection logic based on the family element type of the first family element and the family element type of the second family element in the floor plan to be detected. The family element type is one of the following: floor plan structure, floor plan component, furniture object, and smart home device.

[0027] The processing module is used to obtain a collision detection result based on the collision detection logic, the first bounding box of the first family element, and the second bounding box of the second family element.

[0028] The editing module is used to edit the floor plan to be detected based on the collision detection results, so as to obtain the edited floor plan.

[0029] Optionally, the collision detection logic is used to indicate a situation where the relative position of the first family element and the second family element is incorrect; the situation where the relative position is incorrect includes at least one of: intersection, inclusion, and connection.

[0030] Optionally, the device further includes: an output module;

[0031] The output module is configured to output an error message in response to the collision detection result indicating a relative position error between the first family element and the second family element; the error message is used to indicate a relative position error between the first family element and the second family element.

[0032] The editing module is further configured to, in response to the position update of the first family element and / or the position update of the second family element, edit the floor plan to be detected based on the updated position of the first family element and / or the updated position of the second family element to obtain an edited floor plan.

[0033] Optionally, the device further includes: a display module;

[0034] The display module is used to display a floor plan editing canvas through the floor plan editing interface; the area of ​​the floor plan editing canvas is used to display the floor plan to be detected.

[0035] The processing module is further configured to obtain the axis-aligned bounding box of the first family element based on the coordinates of the vertices of the first family element in the coordinate system of the floor plan editing canvas, and use it as the first bounding box;

[0036] The processing module is further configured to obtain the axis-aligned bounding box of the second family element based on the coordinates of the vertices of the second family element in the coordinate system of the floor plan editing canvas, and use it as the second bounding box.

[0037] Optionally, the device further includes: a rendering module and a control module;

[0038] The rendering module is used to render a 3D floor plan based on the edited floor plan and the number of smart home devices bound to the rooms in the edited floor plan, to obtain an interactive 3D floor plan; the 3D floor plan includes the identifiers of the smart home devices.

[0039] The control module is used to control smart home devices based on the interactive 3D floor plan.

[0040] Optionally, the rendering module is further configured to, in response to the number of smart home devices bound to the apartment room being greater than a preset number, render a 3D apartment map based on the edited apartment map, device aggregation identifier, and the identifier of the first smart home device, to obtain the interactive 3D apartment map; among the smart home devices bound to the apartment room, multiple second smart home devices other than the first smart home device are interactively controlled based on the device aggregation identifier.

[0041] Optionally, the rendering module is further configured to, in response to deleting the identifier of the first smart home device from the interactive 3D floor plan, determine a target smart home device from the plurality of second smart home devices for displaying the identifier in the room of the floor plan;

[0042] The rendering module is also used to display the identifier of the target smart home device in the room of the interactive 3D floor plan.

[0043] Thirdly, embodiments of this application provide an electronic device, including: a processor, and a memory communicatively connected to the processor;

[0044] The memory stores computer-executed instructions;

[0045] The processor executes computer execution instructions stored in the memory to implement the floor plan editing method as described in the first aspect and various possible implementations of the first aspect.

[0046] Fourthly, embodiments of this application provide a computer-readable storage medium including a stored program, which, when executed, performs the floor plan editing method as described in the first aspect and various possible implementations thereof.

[0047] Fifthly, embodiments of this application provide a program product, including a computer program, which, when executed by a processor, implements the floor plan editing method described above.

[0048] The floor plan editing method provided in this application determines collision detection logic based on the family element type of the first family element and the family element type of the second family element in the floor plan to be detected. Based on the collision detection logic, the first bounding box of the first family element, and the second bounding box of the second family element, a collision detection result is obtained. Based on the collision detection result, the floor plan to be detected is edited to obtain an edited floor plan. This method dynamically adapts the detection rules for different types of family elements, enhances the flexibility of collision detection for family elements, thereby improving the accuracy of the collision detection result and ensuring the rationality of the edited floor plan. Attached Figure Description

[0049] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0050] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0051] Figure 1 A schematic diagram of the hardware environment for the floor plan editing method provided in the embodiments of this application;

[0052] Figure 2 A schematic flowchart illustrating the floor plan editing method provided in this application embodiment;

[0053] Figure 3 This application provides a schematic diagram of the floor plan of the unit to be tested. Figure 1 ;

[0054] Figure 4 This application provides a schematic diagram of the floor plan of the unit to be tested. Figure 2 ;

[0055] Figure 5 This application provides a schematic diagram of the floor plan of the unit to be tested. Figure 3 ;

[0056] Figure 6 A schematic diagram of the axis-aligned bounding box provided in the embodiments of this application. Figure 1 ;

[0057] Figure 7 A schematic diagram of the axis-aligned bounding box provided in the embodiments of this application. Figure 2 ;

[0058] Figure 8 A schematic diagram of cross-detection provided in the embodiments of this application. Figure 1 ;

[0059] Figure 9 A schematic diagram of cross-detection provided in the embodiments of this application. Figure 2 ;

[0060] Figure 10 The embodiments of this application include a detection illustration. Figure 1 ;

[0061] Figure 11 The embodiments of this application include a detection illustration. Figure 2 ;

[0062] Figure 12 This is a schematic diagram of the connection detection provided in an embodiment of this application;

[0063] Figure 13 This is a schematic diagram illustrating error messages provided for an embodiment of this application.

[0064] Figure 14 This is a schematic diagram of the equipment layout rules provided in the embodiments of this application;

[0065] Figure 15 This is a schematic diagram of the device layout and filtration rules provided in the embodiments of this application;

[0066] Figure 16 This is a schematic diagram of the floor plan editing device provided in the embodiments of this application;

[0067] Figure 17 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.

[0068] Figure label:

[0069] 1-House layout; 2-House components; 3-First room; 4-Furniture; 5-Third smart home device; 6-Second room; 7-Abnormal area; 8-First device; 9-Second device. Detailed Implementation

[0070] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.

[0071] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0072] According to one aspect of the embodiments of this application, a method for editing floor plans is provided. This method is widely applicable to whole-house intelligent digital control application scenarios such as smart homes, smart home ecosystems, and intelligence house ecosystems. Optionally, in this embodiment, the above-mentioned floor plan editing method can be applied to, for example... Figure 1 The hardware environment shown consists of terminal device 102 and server 104. For example... Figure 1 As shown, server 104 is connected to terminal device 102 via a network and can be used to provide services (such as application services) to the terminal or clients installed on the terminal. A database can be set up on the server or independently of the server to provide data storage services for server 104. Cloud computing and / or edge computing services can be configured on the server or independently of the server to provide data processing services for server 104.

[0073] The aforementioned network may include, but is not limited to, at least one of the following: wired network, wireless network. The aforementioned wired network may include, but is not limited to, at least one of the following: wide area network, metropolitan area network, local area network. The aforementioned wireless network may include, but is not limited to, at least one of the following: Wi-Fi (Wireless Fidelity), Bluetooth. The terminal device 102 may not be limited to PC, mobile phone, tablet computer, smart air conditioner, smart range hood, smart refrigerator, smart oven, smart stove, smart washing machine, smart water heater, smart washing equipment, smart dishwasher, smart projector, smart TV, smart clothes rack, smart curtains, smart audio-visual equipment, smart socket, smart speaker, smart speaker box, smart fresh air equipment, smart kitchen and bathroom equipment, smart bathroom equipment, smart robot vacuum cleaner, smart window cleaning robot, smart mopping robot, smart air purifier, smart steam oven, smart microwave oven, smart water heater, smart air purifier, smart water dispenser, smart door lock, etc.

[0074] When creating or editing apartment layouts, users can create basic layouts by selecting templates, hand-drawing, or uploading existing floor plans. They can then add or adjust various elements such as components, furniture, and equipment. To ensure design quality, all these processes must ensure that the arrangement of each element conforms to specifications and is logically sound.

[0075] Currently, floor plan editing tools generally rely on collision detection technology for automatic verification. Specifically, a rectangular axis-aligned bounding box (AABB) is generated for each family element, and spatial conflicts are identified by determining whether the bounding boxes of different elements overlap.

[0076] However, this detection method, which relies solely on whether bounding boxes intersect, has obvious limitations: it lacks flexibility, resulting in low accuracy and making it difficult to ensure the rationality of the spatial layout of the completed floor plan.

[0077] The method for editing floor plans provided in this application aims to solve the above-mentioned technical problems in the prior art.

[0078] This application provides a method for editing floor plans. By identifying the types of first and second family elements in the floor plan to be tested, a collision detection logic matching their type combinations is dynamically determined. Based on this logic, spatial relationship analysis is performed by combining the first bounding box of the first family element and the second bounding box of the second family element to generate corresponding collision detection results. Subsequently, the system automatically edits the floor plan based on the detection results and outputs the edited floor plan. This method dynamically adapts detection rules for different types of family elements, enhancing the flexibility of collision detection for family elements, thereby improving the accuracy of collision detection results and ensuring the rationality of the edited floor plan.

[0079] First, the types of family elements involved in this application will be explained.

[0080] Family elements: refer to the identifiable and operable basic objects that constitute the spatial structure, functional zoning, interior furnishings, and equipment facilities of a house.

[0081] Home element types: can include house structure, house components, furniture, and smart home devices.

[0082] Apartment layout: refers to the basic layout of a building space, including the spatial boundaries formed by walls, floors, ceilings, etc. It is used to define the size and shape of the room and the relative positional relationship between them, and is the basis on which all other elements depend.

[0083] Apartment components: These are specific components attached to the apartment structure, used to achieve specific building functions such as connectivity, lighting, and ventilation, such as doors, windows, and partitions.

[0084] Furniture objects: refer to physical items placed inside a residential space to meet the needs of users for living, working, and entertainment, which can be flexibly arranged, such as sofas, beds, and wardrobes.

[0085] Smart home devices: Electronic devices or systems deployed within a home space that can be remotely monitored, controlled, automated, and interconnected with other devices, such as smart air conditioners, smart washing machines, and smart refrigerators.

[0086] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will be described below with reference to the accompanying drawings.

[0087] Figure 2 This is a flowchart illustrating the floor plan editing method provided in this embodiment. The executing entity in this embodiment can be, for example, a smart home control application. Figure 2 As shown, the floor plan editing method provided in this embodiment includes:

[0088] S201. Based on the family element type of the first family element and the family element type of the second family element in the floor plan to be detected, determine the collision detection logic.

[0089] The floor plan to be tested can be a two-dimensional floor plan that the user is creating or editing. The floor plan includes multiple family elements and the family element types of each family element. The family element types can be one of the following: floor plan structure, floor plan components, furniture objects, and smart home devices.

[0090] The first family element and the second family element can refer to two objects that interact during a collision detection event in the floor plan to be detected. The first family element can be the element currently being operated on by the user, and the second family element can be an element that already exists in the floor plan to be detected and may collide with the first element.

[0091] Collision detection logic refers to specific judgment rules determined based on the type combination of the first and second family elements, used to determine whether the positional relationship between the first and second family elements in space is reasonable. Here, the family element types of the first and second family elements can be the same or different.

[0092] For example, collision detection logic is used to indicate cases where the relative positions of a first family element and a second family element are incorrect. These incorrect relative positions include at least one of the following: intersection, containment, and adjoining. Optionally, these incorrect relative positions may also include: overlap, partial overlap, and stacking, where overlap is a special case of containment.

[0093] For example, in the case where the family element type of the first family element is a floor plan structure:

[0094] (1) If the family element type of the second family element is a furniture object, the collision detection logic is: the house structure cannot intersect or overlap with existing furniture objects;

[0095] (2) If the family element type of the second family element is a house type structure, the collision detection logic is: the house type structure cannot intersect, connect or overlap with the existing house type structure.

[0096] For example, in the case where the family element type of the first family element is a house type component:

[0097] (1) If the family element type of the second family element is a house type structure, the collision detection logic is as follows: all dimensions of the house type component must be created by attaching to the house type structure; the house type component cannot be created on the intersecting house type structure, including T-shaped walls; the house type component cannot exceed the house type structure or partially exceed the house type structure during the editing (scaling) process; the width of the house type component must be consistent with the thickness of the house type structure to which it is attached.

[0098] (2) If the family element type of the second family element is a house type component, the collision detection logic is: house type components cannot cross, connect or overlap with each other.

[0099] For example, in the case where the family element type of the first family element is a furniture object:

[0100] (1) If the family element type of the second family element is a house type structure, the collision detection logic is: furniture objects cannot intersect or overlap with the house type structure; furniture objects cannot be placed outside the room enclosed by the house type structure.

[0101] (2) If the family element type of the second family element is a house type component, the collision detection logic is: furniture objects and house type components cannot intersect or overlap;

[0102] (3) If the family element type of the second family element is a furniture object, the collision detection logic is: furniture objects cannot cross or overlap with each other.

[0103] For example, if the family element type of the first family element is a smart home device, and the family element type of the second family element is a house type, then the collision detection logic is as follows: smart home devices cannot intersect or overlap with house types; smart home devices cannot be placed outside the rooms enclosed by house types; smart home devices cannot be placed in other rooms.

[0104] Figure 3 This application provides a schematic diagram of the floor plan of the unit to be tested. Figure 1 ,like Figure 3 As shown, house structure 1 is the wall, and house component 2 is the door and window. At this time, house component 2 (door and window) is the first family element, and house structure 1 (wall) is the second family element. The collision detection logic is used to indicate the situation where the relative position of the door and window and the wall is incorrect. For example: the size of the door and window must be attached to the wall; the door and window cannot be created on the intersecting wall; the door and window cannot exceed the wall during the editing process; the width of the door and window must be consistent with the thickness of the wall it is attached to.

[0105] Figure 4 This application provides a schematic diagram of the floor plan of the unit to be tested. Figure 2 ,like Figure 4As shown, furniture object 4 is the first family element, and the wall of the first room 3 is the second family element. The collision detection logic is used to indicate the situation where the relative position of furniture object 4 and the wall of the first room 3 is incorrect, including: furniture object 4 cannot intersect or overlap with the wall of the first room 3, and furniture object 4 cannot be placed outside the first room 3.

[0106] Figure 5 This application provides a schematic diagram of the floor plan of the unit to be tested. Figure 3 ,like Figure 5 As shown, the third smart home device 5 is the first family element, and the wall of the first room 3 is the second family element. The collision detection logic is used to indicate the situation where the relative position of the third smart home device 5 and the wall of the first room 3 is incorrect, including: the third smart home device 5 cannot intersect or overlap with the wall of the first room 3, the third smart home device 5 cannot be placed outside the first room 3, and the third smart home device 5 cannot be placed in the second room 6.

[0107] The purpose of this step is to determine the corresponding algorithm logic for collision detection based on the family element types of the first and second family elements. In this way, by identifying combinations of family element types and dynamically matching differentiated detection rules, the accuracy of collision detection is improved compared with existing technologies.

[0108] S202. Based on the collision detection logic, the first bounding box of the first family element, and the second bounding box of the second family element, the collision detection result is obtained.

[0109] The first bounding box can be a geometric representation of the first family element on the two-dimensional floor plan, and the second bounding box can be a geometric representation of the second family element on the two-dimensional floor plan. Both the first bounding box and the second bounding box can be axis-aligned bounding boxes.

[0110] The collision detection result can include a status flag and a collision type. The status flag indicates whether a collision has occurred, and the collision type indicates the type of relative position error between the first family element and the second family element, such as intersection, containment, or connection.

[0111] Optionally, before obtaining the collision detection result based on the collision detection logic, the first bounding box of the first family element, and the second bounding box of the second family element, the following steps are also included:

[0112] The floor plan editing interface displays the floor plan editing canvas, and the area of ​​the floor plan editing canvas is used to display the floor plan to be tested.

[0113] Based on the coordinates of the vertices of the first family element in the coordinate system of the floor plan editing canvas, the axis-aligned bounding box of the first family element is obtained, which serves as the first bounding box;

[0114] Based on the coordinates of the vertices of the second family element in the coordinate system of the floor plan editing canvas, the axis-aligned bounding box of the second family element is obtained, which serves as the second bounding box.

[0115] In this embodiment, the floor plan editing interface refers to the graphical interface for users to design floor plans. The floor plan editing canvas is the core area of ​​the editing interface, used to visually display the floor plan to be inspected. The floor plan editing canvas provides a global two-dimensional coordinate system, for example, with the origin at the lower left corner, the X-axis to the right, and the Y-axis upward. Therefore, when all family elements are created or placed, their vertex coordinates are transformed and recorded in this unified coordinate system.

[0116] An axis-aligned bounding box is a minimum rectangle whose sides are parallel to the coordinate axes and can completely enclose a family element. Figure 6 A schematic diagram of the axis-aligned bounding box provided in the embodiments of this application. Figure 1 , Figure 7 A schematic diagram of the axis-aligned bounding box provided in the embodiments of this application. Figure 2 See below for reference. Figure 6 and Figure 7 This section introduces a method for constructing axis-aligned bounding boxes for family elements:

[0117] like Figure 6 As shown, when the rotation direction of a family element is parallel to the X-axis or Y-axis, the process of constructing an AABB bounding box for the family element is as follows: take the minimum value of the X-axis of all vertices of the family element's geometry as X1, the maximum value as X2, the minimum value of the Y-axis as Y1, and the maximum value of the Y-axis as Y2. Then P1(X1,Y2), P2(X2,Y2), P3(X2,Y1), and P4(X1,Y1) form the bounding box of the family element.

[0118] like Figure 7 As shown, when the rotation direction of a family element is not parallel to the X-axis or Y-axis, the vertex coordinates of its axis-aligned bounding box will change. However, the axis-aligned bounding box does not rotate with the object. Let the minimum value of all vertices of the family element on the X-axis be X3 and the maximum value be X4. Let the minimum value on the Y-axis be Y3 and the maximum value on the Y-axis be Y4. Then, P5(X3,Y4), P6(X4,Y4), P7(X4,Y3), and P8(X3,Y3) form the AABB box of the family element.

[0119] After obtaining the first bounding box of the first family element and the second bounding box of the second family element, collision detection can be performed on the first bounding box of the first family element and the second bounding box of the second family element based on the determined collision detection logic to determine the specific situation of the relative position error, thereby obtaining the corresponding collision detection result.

[0120] For example, each endpoint of the first bounding box of the first family element is judged sequentially. If the endpoint coordinates of the first bounding box of the first family element are between the endpoint coordinates of the second family element's bounding box, then the case where the relative positions of the first family element and the second family element are incorrect is determined to be an intersection.

[0121] Figure 8 A schematic diagram of cross-detection provided in the embodiments of this application. Figure 1 ,like Figure 8 As shown, element 1AABB is the first bounding box of the first family element, and 2AABB is the second bounding box of the second family element. By sequentially judging each endpoint of element 1AABB, it is found that the endpoint coordinate P12 of element 1AABB is between the endpoint coordinates P24 and P23 of element 2AABB, so element 1AABB and element 2AABB intersect.

[0122] For example, if the maximum value of the endpoint coordinates of the first bounding box of the first family element on the X-axis is greater than the minimum value of the endpoint coordinates of the second bounding box of the second family element on the X-axis, then the case where the relative positions of the first family element and the second family element are incorrect is considered an intersection.

[0123] Figure 9 A schematic diagram of cross-detection provided in the embodiments of this application. Figure 2 ,like Figure 9 As shown, the coordinates of the endpoints P12 and P13 of element 1AABB are the maximum value (max X1) of the element on the X-axis, and the coordinates of the endpoints P21 and P24 of element 2AABB are the minimum value (min X2) of the element on the X-axis. Since max X1 is greater than min X2, the rightmost boundary of element 1AABB is to the right of the leftmost boundary of element 2AABB, so element 1AABB intersects with element 2AABB.

[0124] In this embodiment of the application, when the collision detection logic is determined to be as follows based on the family element type of the first family element and the family element type of the second family element, the above-mentioned cross-detection method can be used for collision detection:

[0125] The apartment layout must not intersect with existing furniture or objects;

[0126] The apartment layout must not intersect with existing wall components;

[0127] The components of the apartment layout must not overlap;

[0128] Apartment components cannot exceed or partially exceed the apartment structure during the sizing (expansion) process;

[0129] Furniture objects cannot overlap;

[0130] Furniture and objects must not intersect with the apartment layout or its components;

[0131] Smart home devices should not be integrated with the house layout.

[0132] For example, each endpoint of the first bounding box of the first family element is judged sequentially. If the coordinates of all endpoints of the first bounding box of the first family element are within the range of the endpoint coordinates of the bounding box of the second family element, then the case of the relative position error between the first family element and the second family element is determined to be included.

[0133] Figure 10 The embodiments of this application include a detection illustration. Figure 1 ,like Figure 10 As shown, element 1AABB is the first bounding box of the first family element, and 2AABB is the second bounding box of the second family element. By sequentially judging each endpoint of element 1AABB, it is found that the endpoint coordinates P11, P12, P13, and P14 of element 1AABB are all located inside element 2AABB. Therefore, element 1AABB and element 2AABB have an inclusion relationship.

[0134] Figure 11 The embodiments of this application include a detection illustration. Figure 2 ,like Figure 11 As shown, the endpoint coordinates P11 and P14 of element 1AABB fall on the edge where the endpoint coordinates P21 and P24 of element 2AABB are located, and the endpoint coordinates P12 and P13 of element 1AABB fall on the edge where the endpoint coordinates P22 and P23 of element 2AABB are located. That is, all the endpoints of element 1AABB are located on the boundary of element 2AABB, so element 1AABB and element 2AABB also have an inclusion relationship.

[0135] In this embodiment of the application, when the collision detection logic is determined to be the following based on the family element type of the first family element and the family element type of the second family element, the above-described collision detection method can be used for collision detection:

[0136] All dimensions of the apartment building components must be created based on the apartment building structure;

[0137] Furniture and objects should not be placed outside the rooms enclosed by the apartment's layout.

[0138] Smart home devices should not be placed outside the rooms enclosed by the house's layout;

[0139] Smart home devices should not be placed in other rooms.

[0140] For example, each endpoint of the first bounding box of the first family element is judged sequentially. If the endpoint coordinates of the first bounding box of the first family element are completely consistent with the endpoint coordinates of the bounding box of the second family element, then the case where the relative positions of the first family element and the second family element are incorrect is considered to be coincident. Coincidence is a special case of the above-mentioned containment relationship.

[0141] In this embodiment of the application, when the collision detection logic is determined to be as follows based on the family element type of the first family element and the family element type of the second family element, the above-described overlap detection method can be used for collision detection:

[0142] The apartment layout must not overlap with existing furniture or objects;

[0143] The apartment layout must not overlap with existing wall components;

[0144] Apartment layout components cannot be created on intersecting apartment layout structures;

[0145] Furniture objects cannot overlap;

[0146] Furniture and objects must not overlap with the apartment layout or its components;

[0147] Smart home devices should not overlap with the apartment layout;

[0148] For example, each endpoint of the first bounding box of the first family element is judged sequentially. If the two endpoints of an edge on the first bounding box of the first family element are contained or included by an edge of the bounding box of the second family element, and the endpoints on the other side are not included, then the case where the relative positions of the first family element and the second family element are incorrect is determined to be connected.

[0149] Figure 12 This is a schematic diagram of the connection detection provided in the embodiments of this application, such as... Figure 12 As shown, element 1AABB is the first bounding box of the first family element, and 2AABB is the second bounding box of the second family element. Each endpoint of element 1AABB is judged in turn. If the endpoints P12 and P13 of 1AABB are on the same vertical line as the endpoints P21 and P24 of the second family element, and the endpoints P11 and P14 on the other side are not contained in 2AABB, then element 1AABB and element 2AABB are connected.

[0150] In this embodiment of the application, when the collision detection logic is determined to be the following based on the family element type of the first family element and the family element type of the second family element, the above-described connection detection method can be used for collision detection:

[0151] The apartment layout must not connect with existing wall components;

[0152] The components of the apartment layout must not be connected to each other.

[0153] Thus, by using the endpoint coordinates of the AABB bounding box for geometric detection, the intersection, overlap, connection, and containment of two family elements can be detected, improving the accuracy and efficiency of collision detection.

[0154] S203. Based on the collision detection results, edit the floor plan to be detected to obtain the edited floor plan.

[0155] In this step, the collision detection results obtained in the previous step are used as the basis for decision-making, that is, to determine whether there is a relative position error between the first family element and the second family element. For the floor plan that is currently being edited, the collision detection results are presented to the user in a visual way to guide the user to complete the editing. Finally, based on the adjusted positions of the family elements, a floor plan with reasonable and compliant element layout is generated.

[0156] The floor plan editing method provided in this application determines collision detection logic based on the family element type of the first family element and the family element type of the second family element in the floor plan to be detected. Based on the collision detection logic, the first bounding box of the first family element, and the second bounding box of the second family element, a collision detection result is obtained. Based on the collision detection result, the floor plan to be detected is edited to obtain an edited floor plan. This method dynamically adapts the detection rules for different types of family elements, enhances the flexibility of collision detection for family elements, thereby improving the accuracy of the collision detection result and ensuring the rationality of the edited floor plan.

[0157] Optionally, based on the collision detection results, the floor plan to be detected is edited to obtain an edited floor plan, including:

[0158] In response to the collision detection result used to characterize the relative position error between the first family element and the second family element, an error message is output, which indicates that the relative position between the first family element and the second family element is incorrect.

[0159] In response to the position update of the first family element and / or the position update of the second family element, the floor plan to be tested is edited based on the updated position of the first family element and / or the updated position of the second family element to obtain the edited floor plan.

[0160] Error message refers to the feedback information output by the system to the user after detecting an error in the relative position of the first family element and the second family element.

[0161] When a user moves, rotates, or adjusts the first family element and / or the second family element, their new position is detected in real time, collision detection is performed again, and the floor plan is automatically updated, thus forming a floor plan editing process of detection, prompting, adjustment, re-detection, and output of a reasonable floor plan.

[0162] Figure 13 This is a schematic diagram of an error message provided in an embodiment of this application, such as... Figure 13 As shown, when the relative positions of the first family element and the second family element do not conform to the preset design rules, the system responds to the collision detection results and highlights the corresponding abnormal area in the graphical user interface. For example, it marks the error position by displaying a red border (i.e., abnormal area 7), thereby providing a visual prompt for the spatial conflict position to help the user quickly locate and adjust it.

[0163] Optionally, the edited floor plan is a two-dimensional floor plan. After editing the floor plan to be tested based on the collision detection results to obtain the edited floor plan, it also includes:

[0164] Based on the edited floor plan and the number of smart home devices bound to the rooms in the edited floor plan, a 3D floor plan is rendered to obtain an interactive 3D floor plan.

[0165] Smart home device control is achieved based on interactive 3D floor plans.

[0166] The 3D floor plan may include the identification of smart home devices.

[0167] Understandably, based on the edited two-dimensional floor plan and the number of smart home devices bound to each room, a three-dimensional floor plan is rendered to generate an interactive three-dimensional floor plan. This three-dimensional floor plan not only accurately reflects the spatial layout and structural characteristics of the apartment, but also displays the relative position and number of smart home devices in each room.

[0168] Based on the resulting interactive 3D floor plan, users can intuitively and conveniently control smart home devices. Each smart home device in the 3D floor plan has a corresponding icon for easy identification and operation. By simply clicking or selecting the corresponding device icon, users can adjust device settings, check device status, or perform other related control functions.

[0169] Optionally, based on the edited floor plan and the number of smart home devices bound to the rooms in the edited floor plan, a 3D floor plan is rendered to obtain an interactive 3D floor plan, including:

[0170] In response to the fact that the number of smart home devices bound to the apartment room exceeds the preset number, a 3D apartment floor plan is rendered based on the edited floor plan, device aggregation identifier, and the identifier of the first smart home device to obtain an interactive 3D apartment floor plan; among the smart home devices bound to the apartment room, multiple second smart home devices other than the first smart home device are interactively controlled based on the device aggregation identifier.

[0171] The smart home devices bound to a room can be manually bound by the user or automatically bound based on their installation location. A preset quantity is used to determine if there are too many smart home devices in a room, thus deciding whether device aggregation is necessary. Device aggregation identifiers can be numbers, text, icons, symbols, etc.

[0172] When the number of smart home devices in a room exceeds a certain limit, managing and controlling each device individually becomes complex and inefficient. Device aggregation simplifies the user interface, improves user experience, and increases system efficiency.

[0173] First, the system automatically detects the number of smart home devices in each room and compares it to a preset number. If it finds that the number of devices in a room exceeds the preset value, it triggers the next step.

[0174] For example, for rooms with more than a preset number of smart home devices, the system will perform a device aggregation operation. Specifically, these second smart home devices can be divided into several groups according to their type, location, or function, and a unique device aggregation identifier can be generated for each group. Then, based on the edited 2D floor plan and the device aggregation information, a 3D floor plan is rendered. During this process, the location of each device aggregation group and the identifier of the first smart home device need to be marked.

[0175] On the 3D floor plan, users can click on the device aggregation icon and select the second smart home device to control from the list of aggregated devices displayed on the interface, in order to perform control operations such as switching on / off states and adjusting modes.

[0176] Figure 14 This is a schematic diagram of the device layout rules provided in the embodiments of this application, such as... Figure 14 As shown, the first smart home device includes: multiple first devices 8 and multiple second devices 9. The device aggregation identifier is a numerical value used to display the number of multiple second smart home devices in addition to the first smart home devices among the smart home devices bound to the room. For example, a value of "5" indicates that 5 second smart home devices are aggregated together.

[0177] When arranging these devices in the room, the first consideration is to place the first device 8 in a corner. If there is not enough space in the corner to place all the devices, the second device 9 is placed at the midpoint between the two already placed first devices 8, and this process continues until no suitable midpoint can be found. If the placement space exceeds the expected number of devices and there are still devices that have not been placed, the remaining devices, i.e., the second smart home devices, are aggregated and displayed according to their placement priority.

[0178] To achieve dynamic optimization of the spatial layout in the interactive 3D floor plan and adapt it to user interaction, for example, in response to deleting the identifier of the first smart home device from the interactive 3D floor plan, a target smart home device for displaying the identifier in the room of the floor plan can be determined from a plurality of second smart home devices, and the identifier of the target smart home device can be displayed in the room of the floor plan in the interactive 3D floor plan.

[0179] Among them, device identification can refer to the graphical elements used to represent the first smart home device in the interactive 3D floor plan, such as icons, labels, status indicators, etc.; the first smart home device can refer to the smart home device that has been actively deleted or removed from display by the user, and the second smart home device can refer to other devices in the same room that are not currently displayed and are in an aggregated state.

[0180] The target smart home devices can refer to the smart home devices that the system selects from the second set of smart home devices according to preset rules (such as device priority, function type, spatial topology, user frequency, etc.) and that can be displayed, which are the objects to be added and displayed in this update.

[0181] Figure 15 This is a schematic diagram of the device layout and filtering rules provided in the embodiments of this application, such as... Figure 15As shown, in the interactive 3D floor plan, the first smart home devices include multiple first devices 8 and multiple second devices 9. The multiple second smart home devices include multiple second devices 9 and multiple other devices. These devices are aggregated together, displaying only numerical values. If the user chooses to delete a first device 8 from the room, a second device 9, i.e., the target smart home device, is released from the aggregated second smart home devices and placed in the empty position released by the deleted first device 8. At this time, the 3D floor plan renders the identifier of the newly displayed second device 9 and updates the number of the aggregate identifier to "value -1".

[0182] In this way, through the dynamic identifier update mechanism, in response to device deletion operations, the target device is intelligently selected from the hidden devices for visual replacement, thereby improving the user experience.

[0183] Figure 16 This is a schematic diagram of the floor plan editing device provided in this application. Figure 16 As shown, this application provides a floor plan editing device, the floor plan editing device 1600 including:

[0184] The determination module 1601 is used to determine the collision detection logic based on the family element type of the first family element and the family element type of the second family element in the floor plan to be detected. The family element type is one of the following: floor plan structure, floor plan component, furniture object, and smart home device.

[0185] Processing module 1602 is used to obtain a collision detection result based on the collision detection logic, the first bounding box of the first family element, and the second bounding box of the second family element;

[0186] The editing module 1603 is used to edit the floor plan to be detected based on the collision detection results to obtain the edited floor plan.

[0187] Optionally, the collision detection logic is used to indicate a situation where the relative position of the first family element and the second family element is incorrect; the situation where the relative position is incorrect includes at least one of: intersection, inclusion, and connection.

[0188] Optionally, the device further includes: an output module 1604;

[0189] The output module 1604 is configured to output an error message in response to the collision detection result indicating a relative position error between the first family element and the second family element; the error message is used to indicate a relative position error between the first family element and the second family element.

[0190] The editing module 1603 is further configured to, in response to the position update of the first family element and / or the position update of the second family element, edit the floor plan to be detected based on the updated position of the first family element and / or the updated position of the second family element to obtain an edited floor plan.

[0191] Optionally, the device further includes: a display module 1605;

[0192] The display module 1605 is used to display a floor plan editing canvas through a floor plan editing interface; the area of ​​the floor plan editing canvas is used to display the floor plan to be detected.

[0193] The processing module 1602 is further configured to obtain the axis-aligned bounding box of the first family element based on the coordinates of the vertices of the first family element in the coordinate system of the floor plan editing canvas, and use it as the first bounding box.

[0194] The processing module 1602 is further configured to obtain the axis-aligned bounding box of the second family element based on the coordinates of the vertices of the second family element in the coordinate system of the floor plan editing canvas, and use it as the second bounding box.

[0195] Optionally, the device further includes: a rendering module 1606 and a control module 1607;

[0196] The rendering module 1606 is used to render a 3D floor plan based on the edited floor plan and the number of smart home devices bound to the rooms in the edited floor plan, to obtain an interactive 3D floor plan; the 3D floor plan includes the identifiers of the smart home devices.

[0197] The control module 1607 is used to control smart home devices based on the interactive 3D floor plan.

[0198] Optionally, the rendering module 1606 is further configured to, in response to the number of smart home devices bound to the apartment room being greater than a preset number, render a 3D apartment map based on the edited apartment map, device aggregation identifier, and the identifier of the first smart home device, to obtain the interactive 3D apartment map; among the smart home devices bound to the apartment room, multiple second smart home devices other than the first smart home device are interactively controlled based on the device aggregation identifier.

[0199] Optionally, the rendering module 1606 is further configured to, in response to deleting the identifier of the first smart home device from the interactive 3D floor plan, determine a target smart home device from the plurality of second smart home devices for displaying the identifier in the room of the floor plan;

[0200] The rendering module 1606 is also used to display the identifier of the target smart home device in the room of the interactive 3D floor plan.

[0201] Figure 17 A schematic diagram of the structure of the electronic device provided in this application. Figure 17 As shown, this application provides an electronic device 1700, which includes a receiver 1701, a transmitter 1702, a processor 1703, and a memory 1704.

[0202] Receiver 1701 is used to receive commands and data;

[0203] Transmitter 1702 is used to send commands and data;

[0204] Memory 1704 is used to store instructions executed by the computer;

[0205] The processor 1703 is used to execute computer execution instructions stored in the memory 1704 to implement the various steps of the floor plan editing method in the above embodiments. For details, please refer to the relevant descriptions in the foregoing embodiments of the floor plan editing method.

[0206] Optionally, the memory 1704 can be either standalone or integrated with the processor 1703.

[0207] When the memory 1704 is set up independently, the electronic device also includes a bus for connecting the memory 1704 and the processor 1703.

[0208] The implementation principle and technical effects of the electronic device provided in this embodiment can be found in the foregoing embodiments, and will not be repeated here.

[0209] This application also provides a computer-readable storage medium storing computer-executable instructions. When a processor executes the computer-executable instructions, it implements the floor plan editing method described in any of the foregoing embodiments.

[0210] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the floor plan editing method described in any of the foregoing embodiments.

[0211] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules may be combined or integrated into another system, or some features may be ignored or not executed.

[0212] The integrated modules implemented as software functional modules described above can be stored in a computer-readable storage medium. These software functional modules, stored in a storage medium, include several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute some steps of the methods described in the various embodiments of this application.

[0213] It should be understood that the aforementioned processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. A general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in the application can be directly manifested as being executed by a hardware processor, or executed by a combination of hardware and software modules within the processor. The memory may include high-speed RAM, and may also include non-volatile memory (NVM), such as at least one disk storage device, and may also be a USB flash drive, external hard drive, read-only memory, disk, or optical disc, etc.

[0214] The aforementioned 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 read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The storage medium can be any available medium that can be accessed by a general-purpose or special-purpose computer.

[0215] An exemplary storage medium is coupled to a processor, enabling the processor to read information from and write information to the storage medium. Alternatively, the storage medium can be an integral part of the processor. Both the processor and the storage medium can reside in an Application Specific Integrated Circuit (ASIC). Alternatively, the processor and storage medium can exist as discrete components in an electronic device or host device.

[0216] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0217] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0218] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0219] The above description is only a preferred embodiment of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications should also be considered within the scope of protection of this application.

Claims

1. A house type drawing editing method, characterized by, The method comprises: determining collision detection logic based on a family element type of a first family element in a to-be-detected house type drawing and a family element type of a second family element, the family element type being one of a house type structure, a house type component, a furniture object, and a smart home device; obtaining a collision detection result based on the collision detection logic, a first bounding box of the first family element, and a second bounding box of the second family element; editing the to-be-detected house type drawing based on the collision detection result to obtain an edited house type drawing.

2. The method of claim 1, wherein, The collision detection logic is used to indicate a case of incorrect relative position of the first family element and the second family element. The case of incorrect relative position includes at least one of intersection, inclusion, and abutment.

3. The method of claim 2, wherein, The editing of the to-be-detected house type drawing based on the collision detection result to obtain the edited house type drawing comprises: outputting an error prompt information in response to the collision detection result indicating incorrect relative position of the first family element and the second family element, the error prompt information being used to indicate the incorrect relative position of the first family element and the second family element; editing the to-be-detected house type drawing based on updated position of the first family element and / or updated position of the second family element to obtain the edited house type drawing.

4. The method according to any one of claims 1 to 3, characterized in that, Before the obtaining of the collision detection result based on the collision detection logic, the first bounding box of the first family element, and the second bounding box of the second family element, the method further comprises: displaying a house type drawing editing canvas through a house type drawing editing interface, a region of the house type drawing editing canvas being used to display the to-be-detected house type drawing; obtaining an axis-aligned bounding box of the first family element as the first bounding box based on coordinates of vertices of the first family element in a coordinate system of the house type drawing editing canvas; obtaining an axis-aligned bounding box of the second family element as the second bounding box based on coordinates of vertices of the second family element in the coordinate system of the house type drawing editing canvas.

5. The method according to any one of claims 1 to 3, characterized in that, The edited house type drawing is a two-dimensional house type drawing, and after the editing of the to-be-detected house type drawing based on the collision detection result to obtain the edited house type drawing, the method further comprises: performing three-dimensional house type drawing rendering based on the edited house type drawing and a number of smart home devices bound to house type rooms in the edited house type drawing to obtain an interactive three-dimensional house type drawing, the three-dimensional house type drawing including an identifier of the smart home device; performing smart home device control based on the interactive three-dimensional house type drawing.

6. The method of claim 5, wherein, The performing of the three-dimensional house type drawing rendering based on the edited house type drawing and the number of smart home devices bound to house type rooms in the edited house type drawing to obtain the interactive three-dimensional house type drawing comprises: In response to the number of the smart home devices bound to the house type room being greater than a preset number, a three-dimensional house type drawing is rendered based on the edited house type drawing, the device aggregation identifier, and the identifier of the first smart home device, to obtain the interactive three-dimensional house type drawing; and a plurality of second smart home devices, other than the first smart home device, of the smart home devices bound to the house type room are interactively controlled based on the device aggregation identifier.

7. The method of claim 6, wherein, The method further includes: In response to deleting the identifier of the first smart home device from the interactive three-dimensional house type drawing, determining a target smart home device from the plurality of second smart home devices for displaying the identifier in the house type room; Displaying the identifier of the target smart home device in the house type room of the interactive three-dimensional house type drawing.

8. An electronic device comprising a memory and a processor, characterized in that The memory stores a computer program, and the processor is configured to execute the method according to any one of claims 1 to 7 by using the computer program.

9. A computer readable storage medium, characterized in that, The computer readable storage medium includes a stored program, wherein the program executes the method according to any one of claims 1 to 7 when running.

10. A computer program product, characterised in that, The computer program is executed by the processor to implement the method according to any one of claims 1 to 7.