Out-swing window generation method and device, electronic equipment and storage medium

CN117725650BActive Publication Date: 2026-10-27HANGZHOU QUNHE INFORMATION TECHNOLOGIES CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202311746421.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-18
Publication Date
2026-10-27
Estimated Expiration
2043-12-18

AI Technical Summary

Technical Problem

[0003]但是,在现有软件中,一般仅配置内飘窗模型,没有配置外飘窗模型

Benefits of technology

[0020]根据本公开的技术,按照点击操作对应的外飘窗图标对应的外飘窗类型,显示对应的外飘窗模型,如果外飘窗模型与第一墙体的距离小于设定阈值,并且外飘窗模型的外飘窗类型与第一墙体的墙体类型匹配,则在外飘窗模型上生成吸附边框,并产生对外飘窗模型的吸附力,利用基于吸附边框与所述第一墙体之间的位置关系,控制外飘窗模型移动和/或旋转,使得外飘窗模型被吸附在第一墙体并且吸附边框与第一墙体上的部分墙体重合,然后,在第一墙体上挖除与吸附边框重合的墙体,从而,在第一墙体上生成与第一墙体融合为一体的外飘窗。采用本公开的技术,可以快速、方便地生成与墙体匹配的外飘窗。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117725650B_ABST
    Figure CN117725650B_ABST
Patent Text Reader

Abstract

The present disclosure provides an out-swing window generation method and device, electronic equipment and storage medium, relating to the technical field of computer. The specific implementation scheme is: in response to a click operation on an out-swing window icon, an out-swing window model is displayed based on the out-swing window type corresponding to the out-swing window icon; in the case that the distance between the out-swing window model and a first wall is less than a set threshold, and the out-swing window type matches the wall type of the first wall, an adsorption frame is generated on the out-swing window model based on the size information of the out-swing window model and the size information of the first wall; based on the positional relationship between the adsorption frame and the first wall, the out-swing window model is controlled to move and / or rotate, so that the out-swing window model is attached to the first wall, and the adsorption frame coincides with part of the wall on the first wall; the wall on the first wall that coincides with the adsorption frame is excavated. By using the technology of the present disclosure, the out-swing window can be accurately generated on the wall.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of computer technology. Specifically, it relates to methods, apparatus, electronic devices, and storage media for generating external windows. Background Technology

[0002] In building design software, structural components or parts of buildings are typically modeled, and an interior or interior building is constructed by combining multiple different models.

[0003] However, existing software typically only configures the inner floating window model, not the outer floating window model. This prevents designers from quickly generating outer floating windows using the outer floating window model. Summary of the Invention

[0004] This disclosure provides a method, apparatus, electronic device, and storage medium for generating external windows.

[0005] According to one aspect of this disclosure, a method for generating an external floating window is provided, comprising:

[0006] In response to a click on the floating window icon, the corresponding floating window model is displayed based on the floating window type corresponding to the icon.

[0007] If the distance between the external bay window model and the first wall is less than a set threshold, and the external bay window type matches the wall type of the first wall, an adsorption border is generated on the external bay window model based on the size information of the external bay window model and the size information of the first wall.

[0008] Based on the positional relationship between the adsorption frame and the first wall, the exterior window model is controlled to move and / or rotate so that the exterior window model is attached to the first wall, and the adsorption frame overlaps with a portion of the wall on the first wall.

[0009] The wall overlapping the adsorption frame is removed from the first wall to form an external bay window that is integrated with the first wall.

[0010] According to another aspect of this disclosure, an external bay window generating device is provided, comprising:

[0011] The model display module is used to respond to a click operation on the floating window icon and display the corresponding floating window model based on the floating window type corresponding to the floating window icon.

[0012] An adsorption border generation module is used to generate an adsorption border on the outer bay window model based on the size information of the outer bay window model and the size information of the first wall when the distance between the outer bay window model and the first wall is less than a set threshold and the type of the outer bay window matches the wall type of the first wall.

[0013] An external bay window adsorption module is used to control the movement and / or rotation of the external bay window model based on the positional relationship between the adsorption frame and the first wall, so that the external bay window model is attached to the first wall, and the adsorption frame overlaps with a portion of the wall on the first wall;

[0014] The wall removal module is used to remove the wall that overlaps with the adsorption frame on the first wall, so as to form an external bay window that is integrated with the first wall.

[0015] According to another aspect of this disclosure, an electronic device is provided, comprising:

[0016] At least one processor; and

[0017] The memory is communicatively connected to the at least one processor; wherein,

[0018] The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform any of the external window generation methods in the embodiments of this disclosure.

[0019] According to another aspect of this disclosure, a non-transitory computer-readable storage medium is provided storing computer instructions, wherein the computer instructions are used to cause the computer to perform any of the external window generation methods according to embodiments of this disclosure.

[0020] According to the technology disclosed herein, a corresponding floating window model is displayed based on the floating window type corresponding to the clicked floating window icon. If the distance between the floating window model and the first wall is less than a set threshold, and the floating window type of the floating window model matches the wall type of the first wall, an adsorption border is generated on the floating window model, creating an adsorption force on the floating window model. Using the positional relationship between the adsorption border and the first wall, the floating window model is moved and / or rotated, causing the floating window model to be adsorbed onto the first wall, with the adsorption border coinciding with a portion of the wall on the first wall. Then, the portion of the wall overlapping the adsorption border is removed from the first wall, thereby generating a floating window that is integrated with the first wall. Using the technology disclosed herein, floating windows that match the wall can be generated quickly and conveniently.

[0021] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this disclosure, nor is it intended to limit the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description. Attached Figure Description

[0022] The accompanying drawings are provided to better understand this solution and do not constitute a limitation of this disclosure. Wherein:

[0023] Figure 1 This is a flowchart of a method for generating an external floating window according to an embodiment of the present disclosure;

[0024] Figure 2 This is a schematic diagram of an external bay window model of an embodiment of the present disclosure attached to a straight wall;

[0025] Figure 3 This is a schematic diagram of an external bay window model of an embodiment of the present disclosure attached to a right-angle corner wall;

[0026] Figure 4 This is a schematic diagram of the parameter setting interface for the external floating window according to an embodiment of the present disclosure;

[0027] Figure 5 This is a schematic diagram of an external floating window model and an adsorbed border according to an embodiment of this disclosure;

[0028] Figure 6 This is a schematic diagram of an external floating window model and an adsorbed border according to another embodiment of this disclosure;

[0029] Figure 7 This is a schematic diagram of an external bay window model of another embodiment of the present disclosure attached to a straight wall;

[0030] Figure 8 This is a schematic diagram of an interior wall according to an embodiment of the present disclosure;

[0031] Figure 9 This is a structural block diagram of an external bay window generating device according to an embodiment of the present disclosure;

[0032] Figure 10 This is a block diagram of an electronic device according to an embodiment of the present disclosure. Detailed Implementation

[0033] The exemplary embodiments of this disclosure are described below with reference to the accompanying drawings, including various details of the embodiments to aid understanding, and should be considered merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope of this disclosure. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description.

[0034] Figure 1This is a flowchart of a method for generating an external floating window according to an embodiment of the present disclosure.

[0035] like Figure 1 As shown, the method for generating an external bay window may include:

[0036] S110, in response to a click operation on the floating window icon, displays the corresponding floating window model based on the floating window type corresponding to the floating window icon;

[0037] S120, when the distance between the outer bay window model and the first wall is less than a set threshold, and the outer bay window type matches the wall type of the first wall, an adsorption border is generated on the outer bay window model based on the size information of the outer bay window model and the size information of the first wall.

[0038] S130, based on the positional relationship between the adsorption frame and the first wall, control the movement and / or rotation of the external bay window model so that the external bay window model is attached to the first wall and the adsorption frame overlaps with part of the wall on the first wall;

[0039] S140, the wall overlapping with the adsorption frame is removed from the first wall to form an external bay window that is integrated with the first wall.

[0040] Understandably, the above methods can be applied to building design software. For example, a tool can be added to the building design software to implement these methods. The building design software can be for interior or exterior buildings.

[0041] Understandably, multiple different types of bay window icons can be set in the menu bar of the building generation interface. For example, one bay window icon corresponds to one type of bay window. Bay window types can include straight bay windows and L-shaped bay windows.

[0042] Figure 2 A cross-sectional view of a straight bay window is shown. Figure 3 The diagram shows a cross-sectional view of an L-shaped bay window. (Example:) Figure 2 As shown, a straight bay window can be attached to a flat wall. Figure 3 As shown, an L-shaped bay window can be attached to a right-angle corner wall.

[0043] Alternatively, an external window icon could be added to the menu bar of the building generation interface. When a user clicks this icon, a type selection window would appear, allowing the user to choose the type of external window corresponding to that icon. The type selection window could include options for linear external windows and L-shaped external windows.

[0044] Understandably, if the floating window icon corresponds to a straight floating window type, then the initial values ​​of each parameter of the straight floating window model are obtained, and the straight floating window model is generated and displayed based on these initial values. If the floating window icon corresponds to an L-shaped floating window type, then the initial values ​​of each parameter of the L-shaped floating window model are obtained, and the L-shaped floating window model is generated and displayed based on these initial values.

[0045] Understandably, the bay window model is displayed in the building generation interface. Users can adjust the structural dimensions of the bay window model by setting various parameters in the bay window parameter settings interface or panel.

[0046] Understandably, users can drag the bay window model within the building generation interface. For example, in response to a dragging operation on the bay window model, the distance between the bay window model and each wall is detected. If the distance between the bay window model and the first wall is less than a set threshold, and the bay window type of the bay window model matches the wall type of the first wall, then the first wall applies an attraction force to the bay window model. In this case, the attraction border needs to be generated on the bay window model using the size information of the first wall and the size information of the bay window model.

[0047] Then, based on the positional relationship between the adsorption frame and the first wall, the adsorption frame is moved and / or rotated so that the bay window model is attached to the first wall, and the adsorption frame on the bay window model is also attached to the first wall. In this way, the bay window model is accurately and automatically adsorbed onto the corresponding wall.

[0048] Understandably, the type of the bay window should match the type of the first wall, including: when the bay window is a straight bay window and the first wall is a straight wall, then the type of the bay window should match the type of the first wall. Alternatively, it should include: when the bay window is an L-shaped bay window and the first wall is a right-angle corner wall, then the type of the bay window should match the type of the first wall.

[0049] In practical applications, when the straight-line bay window model is close to a straight wall, it can be attracted to the wall. When the straight-line bay window model moves on the straight wall and approaches the connection point between the first wall and other walls, the door or window openings on the first wall, or the break point on the first wall, these locations will attract the straight-line bay window model to that location.

[0050] When the L-shaped bay window model is close to the right-angle corner wall, the L-shaped bay window model can be attached to the corner position on the right-angle corner wall.

[0051] For example, if the first wall is a straight wall, the dimensional information of the first wall may include the width, height, and thickness of the first wall. If the first wall is a right-angle corner wall, the first wall includes a first straight wall and a second straight wall that are vertically connected, and its dimensional information may include the width, height, and thickness of the first straight wall, as well as the width, height, and thickness of the second straight wall.

[0052] For example, if the bay window model is a straight bay window, the size information of the bay window model may include: window cross-section length (window length), window cross-section width (window width), window height, and bay window panel thickness, etc. If the bay window model is an L-shaped bay window, the bay window model includes a first side window and a second side window that are vertically connected, then the size information of the bay window model may include: the window cross-section length, window cross-section width, window height, and bay window panel thickness of the first side window, and the window cross-section length, window cross-section width, window height, and bay window panel thickness of the second side window, etc. The window height of the first side window and the window height of the second side window are the same.

[0053] Understandably, the first wall includes a first side and a second side. The positional relationship between the adsorption frame and the first wall may include the distance between the adsorption frame and the first side of the first wall, the distance between the adsorption frame and the second side of the first wall, and the angle between the adsorption frame and the first wall.

[0054] For example, assume the first wall is a straight wall and the bay window model is a straight bay window. If the distance between the adsorption frame and the first side of the first wall is less than the distance between the adsorption frame and the second side of the first wall, and the adsorption frame is parallel to the first wall, and the adsorption frame part of the bay window model is close to the first wall, then the bay window model is controlled to attach to the first side of the first wall.

[0055] Continuing with the previous example, if the angle between the adsorption frame and the first wall is non-zero, then control the rotation of the outer window model until the angle between the adsorption frame and the first wall is zero, that is, the adsorption frame is parallel to the first wall, and the adsorption frame part of the outer window model is close to the first wall. When this effect is achieved, control the outer window model to attach to the first side of the first wall.

[0056] For example, assume the first wall is a right-angle corner wall and the bay window model is an L-shaped bay window. If the distance between the adsorption frame and the first right-angle corner side of the first wall is less than the distance between the adsorption frame and the second right-angle corner side of the first wall, and the right angle of the adsorption frame is parallel to the right angle of the first wall, then control the bay window model to attach to the first right-angle corner side of the first wall.

[0057] Continuing from the previous example, if the right angle of the adsorption frame is not parallel to the right angle of the first wall, then control the outer window model to rotate until the right angle of the adsorption frame is parallel to the right angle of the first wall, and the adsorption frame is close to the first wall, then control the outer window model to attach to the side of the first right-angle corner of the first wall.

[0058] Understandably, when the bay window model is attached to the first wall, the adhesive frame on the bay window model overlaps with a portion of the wall surface on the first wall. For example... Figure 2 As shown, the linear suction frame overlaps with a portion of the wall surface, such as... Figure 3 As shown, the L-shaped adsorption frame overlaps with a portion of the corner wall of the right-angle corner wall. At this point, a hole is cut into the overlapping part of the first wall, and the window on the first wall, the component attached to the outside of the window is the bay window.

[0059] According to the above implementation method, based on the floating window icon corresponding to the click operation, the corresponding floating window model is displayed. If the distance between the floating window model and the first wall is less than a set threshold, and the floating window type of the floating window model matches the wall type of the first wall, an adsorption frame is generated on the floating window model, creating an adsorption force on the floating window model. Using the positional relationship between the adsorption frame and the first wall, the floating window model is moved and / or rotated, so that the floating window model is adsorbed onto the first wall and the adsorption frame overlaps with a portion of the wall on the first wall. Then, the wall overlapping with the adsorption frame is removed from the first wall, thereby generating a floating window that is integrated with the first wall. Using the above implementation method, floating windows that match the wall can be generated quickly and conveniently.

[0060] In one implementation, the above-mentioned displaying of the corresponding floating window model based on the floating window type corresponding to the floating window icon includes: displaying the corresponding floating window parameter setting interface based on the floating window type corresponding to the floating window icon; displaying the corresponding floating window preview model based on the initial values ​​of each parameter in the floating window parameter setting interface; and adjusting the floating window preview model based on the updated values ​​of each parameter in the at least one parameter when at least one parameter in the floating window parameter setting interface is updated to obtain the floating window model.

[0061] Understandably, when a user clicks the pop-up window icon, if the pop-up window type corresponding to the icon is a straight pop-up window, then the initial values ​​of each parameter of the straight pop-up window model are obtained, and the straight pop-up window model is generated and displayed based on these initial values. If the pop-up window type corresponding to the icon is an L-shaped pop-up window, then the initial values ​​of each parameter of the L-shaped pop-up window model are obtained, and the L-shaped pop-up window model is generated and displayed based on these initial values.

[0062] Understandably, the floating window preview model is displayed along with the floating window parameter settings interface. Users can adjust various parameters in the floating window parameter settings interface or panel to adjust the structural dimensions of the floating window model and obtain a floating window model that meets the user's requirements.

[0063] like Figure 4 As shown, taking a straight bay window as an example, the bay window parameter setting interface can include the bay window model's ground clearance, windowsill length, windowsill depth, window height, window length, window width, left distance from the opening, right distance from the opening, and window panel thickness. A straight bay window consists of three window panels, which can also be considered as the wall thickness. It can also include parameters regarding whether there are beams, and the rotation angle of the straight bay window.

[0064] According to the above implementation method, in response to the click operation of the floating window icon, the floating window parameter setting interface and an initialized floating window preview model are displayed. Users can adjust the floating window preview model through the floating window parameter setting interface to obtain a floating window model that meets the user's requirements.

[0065] In one implementation, based on the size information of the bay window model and the size information of the first wall, an adsorption border is generated on the bay window model, including: when the bay window model is a straight bay window, determining the length of the rectangular border based on the cross-sectional length of the straight window of the bay window model; determining the width of the rectangular border based on the wall thickness of the first wall; and generating a corresponding adsorption border at the straight window of the bay window model based on the length and width of the rectangular border.

[0066] For example, such as Figure 2 and 5 As shown, the cross-sectional length of the linear window is d1, and the length of the rectangular border is d2. Figure 2 and Figure 5 As shown, the thickness of the first wall is w1, and the width of the rectangular border is w2. d1 and d2 are the same, and w1 and w2 are the same.

[0067] For example, the corresponding snap-in border generated at the linear window of the outer window model is the rectangular border mentioned above.

[0068] According to the above implementation method, when the external bay window model is a straight external bay window, the length and width of the rectangular frame are determined according to the cross-sectional length of the straight window of the external bay window model and the wall thickness of the first wall, so as to obtain the size information of the adsorption frame. The corresponding adsorption frame is generated at the straight window of the external bay window model using the size information of the adsorption frame.

[0069] In some implementations, based on the size information of the bay window model and the size information of the first wall, an adsorption border is generated on the bay window model, including: when the bay window model is an L-shaped bay window, determining the lengths of the first and second borders in the L-shaped border based on the cross-sectional lengths of the first and second side windows in the L-shaped window model; determining the widths of the first and second borders in the L-shaped border based on the wall thickness of the first wall; and generating a corresponding adsorption border at the L-shaped window of the bay window model based on the length and width of the first border and the length and width of the second border.

[0070] For example, such as Figure 3 As shown, the L-shaped window includes a first side window and a second side window. The first side window has a cross-sectional length of d3 and a cross-sectional width of w3. The second side window has a cross-sectional length of d4 and a cross-sectional width of w4. Figure 6 As shown, the length of the first border in the L-shaped border is d5 and the width is w5. The length of the second border in the L-shaped border is d6 and the width is w6. Figure 3 As shown, the thickness of the first wall is w7.

[0071] Among them, such as Figure 3 and Figure 6 As shown, the difference between d3 and w4 is equal to d5, the difference between d4 and w3 is equal to d6, and w5, w6 and w7 are the same.

[0072] According to the above implementation method, when the external bay window model is an L-shaped external bay window, the length and width of the two side windows of the L-shaped window based on the external bay window model, as well as the wall thickness of the first wall, can be used to determine the length and width of the two borders of the L-shaped frame, thereby obtaining the size information of the adsorption border. The size information of the adsorption border is then used to generate the corresponding adsorption border at the straight window of the external bay window model.

[0073] In one embodiment, the method may further include: setting a control point on at least one side of the snap-in border and / or on at least one side of the outer window model other than the snap-in border; and adjusting the outer window model and / or the snap-in border in response to a movement operation of the control point.

[0074] like Figure 5 and Figure 6 As shown, control points can be set on one or more edges of the outer window model, or on one or more edges of the snap-in border of the outer window model. By moving the control point, the edge containing that control point is moved. As the edge containing the control point moves, the other edges adjust accordingly, thereby achieving the effect of adjusting the outer window model and / or the snap-in border.

[0075] For example, a control point can be set at the midpoint of an edge. Of course, a control point can also be set at any position on the edge.

[0076] like Figure 7 As shown, control points 1 and 2 can adjust the length D1 of the bay window's opening. Control points 3 and 4 can adjust the length D2 of the bay window's sill. Control point 5 can adjust the width W1 of the bay window's sill. The length D1 of the bay window's opening can be different from the length D2 of the bay window's sill.

[0077] For example, if the length of the window is enlarged or reduced by control point 1 or 2, the specific values ​​of the window length, left margin, or right margin on the property panel of the floating window parameter settings interface will also be updated accordingly.

[0078] For example, if the length of the window is modified through the external window parameter settings interface, the length of the window on the first wall will also change accordingly.

[0079] According to the above implementation method, control points are set in the edges of the adsorption frame or the outer floating window model. The outer floating window model and / or the adsorption frame can be adjusted by moving the control points.

[0080] In one embodiment, the method may further include: in response to a removal operation of removing the bay window from the first wall, filling the cavity remaining on the first wall after removing the bay window.

[0081] like Figure 8 As shown, viewed from the inner side of the first wall, after the bay window is removed from the first wall, a hole remains in the first wall. Figure 8 The arrow in the image indicates the location of the hole. At this point, the hole can be filled with wall material.

[0082] According to the above implementation method, the hole left after the removal of the bay window can be filled in the wall to keep the wall intact.

[0083] Figure 9 This is a structural block diagram of an external bay window generation device according to an embodiment of the present disclosure.

[0084] like Figure 9 As shown, the external bay window generating device may include:

[0085] The model display module 910 is used to respond to a click operation on the floating window icon and display the corresponding floating window model based on the floating window type corresponding to the floating window icon.

[0086] The adsorption border generation module 920 is used to generate an adsorption border on the outer bay window model based on the size information of the outer bay window model and the size information of the first wall when the distance between the outer bay window model and the first wall is less than a set threshold and the type of the outer bay window matches the wall type of the first wall.

[0087] The exterior bay window adsorption module 930 is used to control the movement and / or rotation of the exterior bay window model based on the positional relationship between the adsorption frame and the first wall, so that the exterior bay window model is attached to the first wall, and the adsorption frame overlaps with a portion of the wall on the first wall.

[0088] The wall removal module 940 is used to remove the wall that overlaps with the adsorption frame on the first wall to form an external bay window that is integrated with the first wall.

[0089] In one embodiment, the adsorption border generation module 920 includes:

[0090] The first determining unit is used to determine the length of the rectangular border based on the cross-sectional length of the straight window of the external bay window model when the external bay window model is a straight external bay window model.

[0091] The second determining unit is used to determine the width of the rectangular border based on the wall thickness of the first wall.

[0092] The first generation unit is used to generate a corresponding snap-in border at the line-shaped window of the outer floating window model based on the length and width of the rectangular border.

[0093] In one embodiment, the adsorption border generation module 920 includes:

[0094] The third determining unit is used to determine the lengths of the first and second borders in the L-shaped frame based on the cross-sectional lengths of the first and second side windows in the L-shaped window of the external window model when the external window model is an L-shaped external window.

[0095] The fourth determining unit is used to determine the width of the first border and the width of the second border in the L-shaped frame based on the wall thickness of the first wall.

[0096] The second generation unit is used to generate a corresponding snap-fit ​​border at the L-shaped window of the outer floating window model based on the length and width of the first border and the length and width of the second border in the L-shaped border.

[0097] In one implementation, it further includes:

[0098] A control point generation module is used to set control points on at least one side of the adsorption frame and / or on at least one side of the outer window model other than the adsorption frame.

[0099] The model adjustment module is used to adjust the outer window model and / or the snap-in border in response to the movement operation of the control point.

[0100] In one implementation, it further includes:

[0101] A wall filling module is used to fill the voids remaining on the first wall after the removal of the bay window in response to a removal operation of removing the bay window from the first wall.

[0102] In one embodiment, the model display module 910 includes:

[0103] The parameter interface display unit is used to display the corresponding external window parameter setting interface based on the external window type corresponding to the external window icon.

[0104] The model preview unit is used to display the corresponding external window preview model based on the initial values ​​of each parameter in the external window parameter setting interface;

[0105] The model update unit is used to adjust the preview model of the external window based on the updated values ​​of each of the at least one parameter when at least one parameter in the external window parameter setting interface is updated, so as to obtain the external window model.

[0106] The specific functions and examples of each module and submodule of the apparatus in this disclosure can be found in the relevant descriptions of the corresponding steps in the above method embodiments, and will not be repeated here.

[0107] The acquisition, storage, and application of user personal information involved in the technical solution disclosed herein comply with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0108] According to embodiments of this disclosure, this disclosure also provides an electronic device, a readable storage medium, and a computer program product.

[0109] Figure 10 This is a structural block diagram of an electronic device according to an embodiment of the present disclosure. Figure 10As shown, the electronic device includes a memory 1010 and a processor 1020. The memory 1010 stores a computer program that can run on the processor 1020. The number of memories 1010 and processors 1020 can be one or more. The memory 1010 can store one or more computer programs, which, when executed by the electronic device, cause the electronic device to perform the methods provided in the above-described method embodiments. The electronic device may also include a communication interface 1030 for communicating with external devices and performing data exchange and transmission.

[0110] If the memory 1010, processor 1020, and communication interface 1030 are implemented independently, they can be interconnected via a bus to communicate with each other. This bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. This bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 10 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.

[0111] Optionally, in a specific implementation, if the memory 1010, processor 1020 and communication interface 1030 are integrated on a single chip, then the memory 1010, processor 1020 and communication interface 1030 can communicate with each other through an internal interface.

[0112] 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), Field-Programmable Gate Arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. General-purpose processors can be microprocessors or any conventional processor. It is worth noting that the processor can be a processor supporting Advanced Reduced Instruction Set Machines (ARM) architecture.

[0113] Further, optionally, the aforementioned memory may include read-only memory and random access memory, and may also include non-volatile random access memory. The memory may be volatile or non-volatile, or may include both. Non-volatile memory may include read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory may include random access memory (RAM), which serves as an external cache. Many forms of RAM are available by way of example, but not limitation. Examples include Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), Synchronous DRAM (SDRAM), Double Data Rate Synchronous DRAM (DDR SDRAM), Enhanced Synchronous DRAM (ESDRAM), Synchlink DRAM (SLDRAM), and Direct RAMBUS RAM (DR RAM).

[0114] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this disclosure are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line, DSL) or wireless (e.g., infrared, Bluetooth, microwave, etc.) means. The computer-readable storage medium can be any available medium accessible to a computer, or a data storage device such as a server or data center that integrates one or more available media. The available media can be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., Digital Versatile Discs (DVDs)), or semiconductor media (e.g., Solid State Disks (SSDs)). It is worth noting that the computer-readable storage media mentioned in this disclosure can be non-volatile storage media; in other words, it can be non-transient storage media.

[0115] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware or by a program instructing related hardware. The program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.

[0116] In the description of the embodiments of this disclosure, references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this disclosure. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of those different embodiments or examples.

[0117] In the description of the embodiments disclosed herein, unless otherwise stated, " / " means "or". For example, A / B can mean A or B. The "and / or" in this document is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone.

[0118] In the description of embodiments of this disclosure, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of embodiments of this disclosure, unless otherwise stated, "a plurality of" means two or more.

[0119] The above description is merely an exemplary embodiment of this disclosure and is not intended to limit this disclosure. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this disclosure should be included within the protection scope of this disclosure.

Claims

1. A method for generating an external bay window, characterized in that, include: In response to a click on the floating window icon, the corresponding floating window model is displayed based on the floating window type corresponding to the icon. When the distance between the bay window model and the first wall is less than a set threshold, and the bay window type matches the wall type of the first wall, an adsorption border is generated on the bay window model based on the size information of the bay window model and the size information of the first wall; wherein, when the bay window type is a straight bay window and the first wall is a straight wall, the bay window type matches the wall type of the first wall; when the bay window type is an L-shaped bay window and the first wall is a right-angle corner wall, the bay window type matches the wall type of the first wall. Based on the positional relationship between the adsorption frame and the first wall, the movement of the bay window model is controlled so that the bay window model is attached to the first wall, and the adsorption frame overlaps with a portion of the wall on the first wall; wherein, the first wall includes a first side and a second side opposite to each other, and the positional relationship between the adsorption frame and the first wall includes: the distance between the adsorption frame and the first side, the distance between the adsorption frame and the second side, and the angle between the adsorption frame and the first wall; The wall overlapping the adsorption frame is removed from the first wall to form an external bay window that is integrated with the first wall.

2. The method according to claim 1, characterized in that, The step of generating an adsorption border on the bay window model based on the size information of the bay window model and the size information of the first wall includes: When the external bay window model is a straight-line external bay window, the length of the rectangular border is determined based on the cross-sectional length of the straight-line window of the external bay window model; The width of the rectangular border is determined based on the wall thickness of the first wall. Based on the length and width of the rectangular border, a corresponding snap-in border is generated at the linear window of the outer floating window model.

3. The method according to claim 1, characterized in that, The step of generating an adsorption border on the bay window model based on the size information of the bay window model and the size information of the first wall includes: When the external window model is an L-shaped external window, the lengths of the first and second side windows in the L-shaped window of the external window model are determined based on the cross-sectional lengths of the first and second side windows, respectively. Based on the wall thickness of the first wall, determine the width of the first border and the width of the second border in the L-shaped frame; Based on the length and width of the first border and the length and width of the second border in the L-shaped border, a corresponding snap-in border is generated at the L-shaped window of the outer floating window model.

4. The method according to claim 1, characterized in that, Also includes: Control points are set on at least one side of the adsorption frame and / or on at least one side of the external window model other than the adsorption frame; In response to the movement of the control point, the external window model and / or the snap-on border are adjusted.

5. The method according to claim 4, characterized in that, Also includes: In response to the removal operation of removing the bay window from the first wall, the remaining hole in the first wall after removing the bay window is filled with wall material.

6. The method according to any one of claims 1-5, characterized in that, The step of displaying the corresponding floating window model based on the floating window type corresponding to the floating window icon includes: Based on the type of the floating window corresponding to the floating window icon, the corresponding floating window parameter setting interface is displayed; Based on the initial values ​​of each parameter in the floating window parameter setting interface, the corresponding floating window preview model is displayed; If at least one parameter in the external floating window parameter setting interface is updated, the external floating window preview model is adjusted based on the updated values ​​of each of the at least one parameter to obtain the external floating window model.

7. A device for generating an exterior bay window, characterized in that, include: The model display module is used to respond to a click operation on the floating window icon and display the corresponding floating window model based on the floating window type corresponding to the floating window icon. An adsorption border generation module is used to generate an adsorption border on the bay window model based on the size information of the bay window model and the size information of the first wall when the distance between the bay window model and the first wall is less than a set threshold and the type of the bay window matches the wall type of the first wall. Specifically, when the bay window type is a straight bay window and the first wall is a straight wall, the bay window type matches the wall type of the first wall; when the bay window type is an L-shaped bay window and the first wall is a right-angle corner wall, the bay window type matches the wall type of the first wall. An external bay window adsorption module is used to control the movement of the external bay window model based on the positional relationship between the adsorption frame and the first wall, so that the external bay window model is attached to the first wall, and the adsorption frame overlaps with a portion of the wall on the first wall; wherein, the first wall includes a first side and a second side opposite to each other, and the positional relationship between the adsorption frame and the first wall includes: the distance between the adsorption frame and the first side, the distance between the adsorption frame and the second side, and the angle between the adsorption frame and the first wall; The wall removal module is used to remove the wall that overlaps with the adsorption frame on the first wall, so as to form an external bay window that is integrated with the first wall.

8. The apparatus according to claim 7, characterized in that, The adsorption border generation module includes: The first determining unit is used to determine the length of the rectangular border based on the cross-sectional length of the straight window of the external bay window model when the external bay window model is a straight external bay window model. The second determining unit is used to determine the width of the rectangular border based on the wall thickness of the first wall. The first generation unit is used to generate a corresponding snap-in border at the line-shaped window of the outer floating window model based on the length and width of the rectangular border.

9. The apparatus according to claim 7, characterized in that, The adsorption border generation module includes: The third determining unit is used to determine the lengths of the first and second borders in the L-shaped frame based on the cross-sectional lengths of the first and second side windows in the L-shaped window of the external window model when the external window model is an L-shaped external window. The fourth determining unit is used to determine the width of the first border and the width of the second border in the L-shaped frame based on the wall thickness of the first wall. The second generation unit is used to generate a corresponding snap-fit ​​border at the L-shaped window of the outer floating window model based on the length and width of the first border and the length and width of the second border in the L-shaped border.

10. The apparatus according to claim 7, characterized in that, Also includes: A control point generation module is used to set control points on at least one side of the adsorption frame and / or on at least one side of the outer window model other than the adsorption frame. The model adjustment module is used to adjust the outer window model and / or the snap-in border in response to the movement operation of the control point.

11. The apparatus according to claim 10, characterized in that, Also includes: A wall filling module is used to fill the voids remaining on the first wall after the removal of the bay window in response to a removal operation of removing the bay window from the first wall.

12. The apparatus according to any one of claims 7-11, characterized in that, The model display module includes: The parameter interface display unit is used to display the corresponding external window parameter setting interface based on the external window type corresponding to the external window icon. The model preview unit is used to display the corresponding external window preview model based on the initial values ​​of each parameter in the external window parameter setting interface; The model update unit is used to adjust the preview model of the external window based on the updated values ​​of each of the at least one parameter when at least one parameter in the external window parameter setting interface is updated, so as to obtain the external window model.

13. An electronic device, comprising: At least one processor; as well as A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-6.

14. A non-transitory computer-readable storage medium storing computer instructions, wherein, The computer instructions are used to cause the computer to perform the method according to any one of claims 1-6.

Citation Information

Patent Citations

  • Component adsorption method based on house type structure editing

    CN114491767A