A cornice generation method, device, equipment and storage medium
By automatically generating the eaves positioning line and the offset eaves line, combined with preset conditions, the problem of low efficiency and unusability of eaves generation in the existing technology is solved, and fast and accurate eaves generation is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- HANGZHOU QUNHE INFORMATION TECHNOLOGIES CO LTD
- Filing Date
- 2023-12-26
- Publication Date
- 2026-08-04
AI Technical Summary
In existing technologies, manually drawing the eaves area results in poor efficiency and high unavailability in generating eaves.
By determining the eaves positioning line, the offset value and offset direction of the basic positioning line are used to automatically generate the eaves positioning line and the offset eaves positioning line, and the eaves area and eaves are generated in combination with preset conditions.
It enables the rapid and convenient generation of accurate eaves, reduces computational resource requirements and the possibility of generation errors, and improves generation efficiency and accuracy.
Smart Images

Figure CN117592168B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of architectural design technology, and in particular to the field of eaves design technology. Background Technology
[0002] An eave can refer to the part of a building's roof (or floor) that extends beyond the exterior wall. It serves to facilitate roof drainage, protect the exterior wall, and enhance the building's aesthetics.
[0003] In existing technologies, eaves areas are typically drawn manually to determine the location and shape of the eaves, and eaves are generated based on these areas. However, since different eaves correspond to different eaves, manually drawing the eaves area for each eave may result in poor eaves generation efficiency and a higher probability of generating unusable eaves. Summary of the Invention
[0004] This disclosure provides a method, apparatus, device, and storage medium for generating eaves to solve or alleviate one or more technical problems in the prior art.
[0005] In a first aspect, this disclosure provides a method for generating eaves, including:
[0006] Determine the eaves positioning line; this eaves positioning line contains N basic positioning lines; N is a positive integer;
[0007] Using the offset values and offset directions of N basic positioning lines, determine the offset eaves positioning line;
[0008] Based on the offset eaves positioning line, generate the eaves corresponding to the eaves positioning line.
[0009] Secondly, this disclosure provides an eaves generating device, comprising:
[0010] The first determining module is used to determine the eaves positioning line; the eaves positioning line contains N basic positioning lines; N is a positive integer;
[0011] The second determining module is used to determine the offset eaves positioning line after offset by using the offset values and offset directions of N basic positioning lines;
[0012] The generation module is used to generate the eaves corresponding to the offset eaves positioning line based on the offset eaves positioning line.
[0013] Thirdly, an electronic device is provided, comprising:
[0014] At least one processor; and
[0015] The memory is communicatively connected to the at least one processor; wherein,
[0016] 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 methods described in the present disclosure.
[0017] Fourthly, 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 methods according to embodiments of the present disclosure.
[0018] Fifthly, a computer program product is provided, including a computer program that, when executed by a processor, implements any of the methods according to embodiments of the present disclosure.
[0019] The beneficial effects of the technical solution provided in this disclosure include at least the following: the technical solution provided in this disclosure can generate eaves quickly and conveniently; in addition, the technical solution provided in this disclosure can also generate eaves with high accuracy in a relatively simple way.
[0020] 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
[0021] In the accompanying drawings, unless otherwise specified, the same reference numerals throughout the various drawings denote the same or similar parts or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings depict only some embodiments provided according to this disclosure and should not be construed as limiting the scope of this disclosure.
[0022] Figure 1 This is a schematic diagram illustrating an application scenario according to an embodiment of this disclosure;
[0023] Figure 2 This is a flowchart illustrating the implementation of an eaves generation method according to an embodiment of the present disclosure;
[0024] Figure 3 This is a schematic flowchart illustrating the determination of the eaves positioning line according to an embodiment of this disclosure;
[0025] Figure 4A This is a schematic diagram of the eaves positioning line according to an embodiment of the present disclosure. Figure 1 ;
[0026] Figure 4B This is a schematic diagram of the eaves positioning line according to an embodiment of the present disclosure. Figure 2 ;
[0027] Figure 5 This is a schematic flowchart of an eaves generation method according to an embodiment of the present disclosure;
[0028] Figure 6A This is a schematic diagram of the offset eaves positioning line according to an embodiment of the present disclosure. Figure 1 ;
[0029] Figure 6B This is a schematic diagram of the offset eaves positioning line according to an embodiment of the present disclosure. Figure 2 ;
[0030] Figure 7A This is a schematic diagram of the first region according to an embodiment of the present disclosure. Figure 1 ;
[0031] Figure 7B This is a schematic diagram of the first region according to an embodiment of the present disclosure. Figure 2 ;
[0032] Figure 7C This is a schematic diagram of the first region according to an embodiment of the present disclosure. Figure 3 ;
[0033] Figure 7D This is a schematic diagram of the updated first region according to an embodiment of the present disclosure;
[0034] Figure 8 This is a schematic diagram of the structure of an eaves generating device 800 according to an embodiment of the present disclosure;
[0035] Figure 9 This is a structural block diagram of an electronic device according to an embodiment of the present disclosure. Detailed Implementation
[0036] The present disclosure will now be described in further detail with reference to the accompanying drawings. The same reference numerals in the drawings denote elements that have the same or similar functions. Although various aspects of embodiments are shown in the drawings, they are not necessarily drawn to scale unless specifically indicated otherwise.
[0037] Furthermore, to better illustrate this disclosure, numerous specific details are set forth in the following detailed description. Those skilled in the art will understand that this disclosure can be practiced without certain specific details. In some instances, methods, means, components, and circuits well known to those skilled in the art have not been described in detail in order to highlight the main points of this disclosure.
[0038] In the field of architectural design, eaves are one of the more common structural forms in building structures. Specifically, an eave refers to the part of a building's roof (or floor) that extends beyond the exterior wall, serving to facilitate roof drainage, protect the exterior walls, and enhance the building's aesthetics.
[0039] It's easy to understand that determining the shape and location of the eaves is an essential step in generating them. The shape and location of the eaves can be determined by the eaves area. Currently, in existing technologies, the eaves area typically needs to be manually drawn by an architect.
[0040] However, since different eaves correspond to different eave areas, if the eave area corresponding to each eave needs to be determined by manually drawing the eave area, it will lead to poor eave generation efficiency and a higher possibility of generating unusable eaves.
[0041] To address the aforementioned problems, this disclosure proposes a method for generating eaves. Figure 1 This is a schematic diagram illustrating an application scenario according to an embodiment of this disclosure, such as... Figure 1 As shown, the application scenario includes: terminal device 110 and server 120; wherein, terminal device 110 and server 120 can communicate with each other through any type of wired or wireless network.
[0042] In one example, terminal device 110 responds to a user request by determining the eaves positioning line, and the offset values and directions of each basic positioning line within the eaves positioning line; and sends the eaves positioning line, and the offset values and directions of each basic positioning line within the eaves positioning line, to server 120 via a network; wherein, the eaves positioning line can be used to determine the eaves area, such as the boundary line of the eaves area. Server 120 receives the eaves positioning line, and the offset values and directions of each basic positioning line within the eaves positioning line, from terminal device 110 via a network, and uses the eaves positioning line, and the offset values and directions of each basic positioning line within the eaves positioning line, to generate the eaves corresponding to the eaves positioning line.
[0043] Of course, it should be noted that the application scenarios of this disclosure embodiment do not limit the number of terminal devices 110. For example, the application scenario may include one or more terminal devices 110. These terminal devices 110 include, but are not limited to, mobile phones, computers, smart voice interaction devices, smart home appliances, in-vehicle terminals, game consoles, e-book readers, multimedia playback devices, wearable devices, and other electronic devices. The server 120 may be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms.
[0044] Figure 2This is a flowchart illustrating the implementation of an eaves generation method according to an embodiment of the present disclosure, including:
[0045] S210. Determine the eaves positioning line; this eaves positioning line contains N basic positioning lines; N is a positive integer;
[0046] S220. Using the offset values and offset directions of N basic positioning lines, determine the offset eaves positioning line;
[0047] S230. Based on the offset eaves positioning line, generate the eaves corresponding to the eaves positioning line.
[0048] The eaves positioning line can be used to determine the eaves area, such as the boundary line of the eaves area; the basic positioning line can be drawn manually by the user or automatically generated by the relevant information input by the user.
[0049] The eaves generation method proposed in this disclosure can autonomously determine the eaves positioning line through one or more basic positioning lines, and adaptively generate the eaves (such as strip eaves) based on the eaves positioning line, thereby reducing the difficulty of eaves design, accelerating the speed and accuracy of eaves generation, and making it easier for architects and even ordinary users to quickly and conveniently design more reasonable eaves.
[0050] It is readily understood that, in the eaves generation method proposed in this disclosure, determining the eaves positioning line used to control the shape and position of the eaves is a crucial step. This eaves positioning line can consist of N user-inputted or automatically generated basic positioning lines (curves).
[0051] Figure 3 This is a schematic flowchart illustrating the determination of the eaves positioning line according to embodiments of this disclosure. Specifically, as shown in the following example... Figure 3 As shown, the method for determining the eaves positioning line based on N basic positioning lines can include at least the following three:
[0052] Method 1: When N is 1, the basic positioning line can be directly determined as the eaves positioning line.
[0053] Method 2: When N is greater than 1, if there are at least two basic positioning lines that can be connected end-to-end in sequence, then the eaves positioning line should be determined, including:
[0054] Based on the endpoint positions of N basic positioning lines, connect the N basic positioning lines sequentially; the endpoint positions include the start position and / or the end position; wherein, the endpoint positions of any two connected basic positioning lines among the N basic positioning lines match.
[0055] If the attribute information and / or offset direction of the N connected basic positioning lines are the same, the eaves positioning line is determined using the N connected basic positioning lines.
[0056] The attribute information may include user-defined attribute information or default attribute information. The basic positioning line may include directed line segments. Specifically, the direction of the basic positioning line is determined based on the position of its endpoints; for example, the direction of the basic positioning line may be the direction from the starting position to the ending position.
[0057] In one example, matching the endpoints of any two connected base positioning lines can include: the connection method of any two connected base positioning lines is end-to-end connection.
[0058] For example, when two basic positioning lines are connected sequentially, and the arrow direction of each basic positioning line is used to indicate the extension direction of the basic positioning line (i.e., the arrow direction of the basic positioning line is used to characterize the direction of the basic positioning line from the starting position to the ending position), such as Figure 4A As shown, if basic positioning line l1 and basic positioning line l2 are connected sequentially, and the end point of basic positioning line l1 and the start point of basic positioning line l2 are the same (i.e., the connection method of basic positioning line l1 and basic positioning line l2 is end-to-end), then this embodiment of the present disclosure can determine that the endpoint positions of the two connected basic positioning lines match, that is, the endpoint positions of basic positioning line l1 and basic positioning line l2 match.
[0059] Alternatively, if four basic positioning lines are connected sequentially, and the arrow direction of each basic positioning line is used to indicate the extension direction of that basic positioning line (i.e., the arrow direction of the basic positioning line is used to characterize the direction of the basic positioning line from the starting position to the ending position), then... Figure 4BAs shown, if the basic positioning lines l1, l2, l3, and l4 are connected sequentially, and the endpoint of basic positioning line l1 is the same as the starting point of basic positioning line l2, the endpoint of basic positioning line l2 is the same as the starting point of basic positioning line l3, the endpoint of basic positioning line l3 is the same as the starting point of basic positioning line l4, and the endpoint of basic positioning line l4 is the same as the starting point of basic positioning line l1 (i.e., the connection method of basic positioning line l1 and basic positioning line l2 is end-to-end, the connection method of basic positioning line l2 and basic positioning line l3 is end-to-end, the basic positioning line l4 is the same as the starting point of basic positioning line l1), the basic positioning line l4 is the same as the starting point of basic positioning line l1 (i.e., the connection method of basic positioning line l1 and basic positioning line l2 is end-to-end, the basic positioning line l3 is the same as the starting point of basic positioning line l4 ... If the connection method between positioning line l3 and basic positioning line l4 is end-to-end, and the connection method between basic positioning line l4 and basic positioning line l1 is also end-to-end, then this embodiment of the disclosure can determine that the endpoint positions of any two connected basic positioning lines among the four basic positioning lines match, that is, the endpoint position of basic positioning line l1 matches the endpoint position of basic positioning line l2, the endpoint position of basic positioning line l2 matches the endpoint position of basic positioning line l3, the endpoint position of basic positioning line l3 matches the endpoint position of basic positioning line l4, and the endpoint position of basic positioning line l4 matches the endpoint position of basic positioning line l1.
[0060] Furthermore, the offset direction of the aforementioned basic positioning line can be determined by the user; for example, the offset direction of the basic positioning line determined by the user may include offset to the left of the basic positioning line and / or offset to the right of the basic positioning line.
[0061] Based on the above, if the N connected basic positioning lines proposed in this embodiment are actually two connected basic positioning lines (such as basic positioning line l1 and basic positioning line l2), then this embodiment can first determine the attribute information and / or offset direction of basic positioning line l1 and basic positioning line l2 respectively. Then, if the attribute information and / or offset direction of basic positioning line l1 and basic positioning line l2 are the same, then the connected basic positioning lines l1 and l2 can be determined as eaves positioning lines; or, if the attribute information and / or offset direction of basic positioning line l1 and basic positioning line l2 are not the same, then the basic positioning lines l1 and basic positioning line l2 can be determined as two eaves positioning lines respectively.
[0062] Alternatively, if the N basic positioning lines proposed in this embodiment are four basic positioning lines (such as basic positioning line l1, basic positioning line l2, basic positioning line l3 and basic positioning line l4), then this embodiment can first determine the attribute information and / or offset direction of the basic positioning line l1, basic positioning line l2, basic positioning line l3 and basic positioning line l4 respectively. Subsequently, if the attribute information and / or offset direction of the basic positioning lines l1, l2, l3, and l4 are the same, then the connected basic positioning lines l1, l2, l3, and l4 can be determined as eaves positioning lines; or, if the attribute information and / or offset direction of the basic positioning lines l1, l2, l3, and l4 are all different, then the basic positioning lines l1, l2, l3, and l4 can be determined as four eaves positioning lines respectively; or, if the attribute information and / or offset direction of the basic positioning lines l1, l2, l3, and l4 are all different, then the basic positioning lines l1, l2, l3, and l4 can be determined as four eaves positioning lines respectively; If at least two of the basic positioning lines l1 and l4 are connected and have the same attribute information and / or offset direction, then these two connected basic positioning lines with the same attribute information and / or offset direction can be identified as one eaves positioning line, and the remaining basic positioning lines can be identified as the other eaves positioning lines. For example, if the attribute information and / or offset direction of the basic positioning lines l2 and l3 are the same, then the connected basic positioning lines l2 and l3 can be identified as one eaves positioning line, and the remaining basic positioning lines can be identified as the other eaves positioning lines. That is, the basic positioning lines l1 and l4 can be identified as the other two basic positioning lines.
[0063] Of course, it should be noted that in this embodiment, if the eaves positioning line cannot form a closed area (such as a loop), then any one or more basic positioning lines can be added to the eaves positioning line; conversely, if the eaves positioning line can form a closed area (such as a loop), then no one or more basic positioning lines can be added to the eaves positioning line.
[0064] The embodiments of this disclosure can accelerate the generation of eaves based on eaves positioning lines containing multiple basic positioning lines, thereby improving the efficiency of eaves generation, reducing the computation time and computational resources required for eaves generation, and thus improving the applicability and convenience of the eaves generation method proposed in the embodiments of this disclosure.
[0065] Method 3: If N is greater than 1, and there are no at least two basic positioning lines with matching endpoints, then the N basic positioning lines can be determined as N eaves positioning lines respectively.
[0066] For example, if this embodiment of the disclosure includes three basic positioning lines, and the endpoints of the three basic positioning lines do not match, then this embodiment of the disclosure can directly determine the three basic positioning lines as three eaves positioning lines.
[0067] The above content briefly introduces the eaves generation method proposed in this embodiment, and how to determine the eaves positioning line. Of course, it should be noted that the number of basic positioning lines included in the above eaves positioning line is only an example. The eaves positioning line can include any number of basic positioning lines. For example, the eaves positioning line can also include 5, 6 or 7 basic positioning lines.
[0068] Obviously, in order to generate the eaves, after determining the eaves positioning line, this embodiment of the present disclosure also needs to generate the eaves corresponding to the eaves positioning line based on the eaves positioning line. Figure 5 This is a schematic flowchart of an eaves generation method according to an embodiment of the present disclosure, such as... Figure 5 As shown, the method for generating an eaves may include the following steps:
[0069] Step 1: Determine the positioning line of the eaves after offset.
[0070] In one example, the offset eaves positioning line can be determined using the offset value and offset direction of each of the N basic positioning lines contained in the eaves positioning line.
[0071] Specifically, the offset values and directions of N basic positioning lines are used to determine the offset eaves positioning line, including:
[0072] Using the offset value and offset direction of each basic positioning line, offset each basic positioning line separately to obtain N offset basic positioning lines;
[0073] Based on the N offset base positioning lines, determine the offset eaves positioning lines.
[0074] For example, such as Figure 6AAs shown, when the eaves positioning line includes two basic positioning lines (such as basic positioning line l1 and basic positioning line l2), if the offset directions of basic positioning line l1 and basic positioning line l2 are both to the left of the basic positioning line, the offset value of basic positioning line l1 is 300, and the offset value of basic positioning line l2 is 200, then in this embodiment of the disclosure, the basic positioning lines l1 and l2 can be offset using the offset value and offset direction of basic positioning line l1 and the offset value and offset direction of basic positioning line l2 respectively, to obtain the offset basic positioning lines l′1 and l′2; then, the offset eaves positioning line is determined based on the offset basic positioning lines l′1 and l′2. For example, the offset basic positioning lines l′1 and l′2 can be connected sequentially to determine the offset eaves positioning line.
[0075] Alternatively, if the eaves positioning line includes three basic positioning lines (i.e., basic positioning line l1, basic positioning line l2, and basic positioning line l3), and the offset directions of basic positioning lines l1, l2, and l3 are all biased to the right of the basic positioning line, and the offset value of basic positioning line l1 is 200, the offset value of basic positioning line l2 is 500, and the offset value of basic positioning line l3 is 800, then in this embodiment, the basic positioning lines l1, l2, and l3 can be offset using the offset values and directions of basic positioning lines l1, l2, and l3 respectively to obtain the offset basic positioning lines l′1, l′2, and l′3; then, the offset eaves positioning line is determined based on the offset basic positioning lines l′1, l′2, and l′3. For example, the offset base positioning line l′1, offset base positioning line l′2, and offset base positioning line l′3 can be connected sequentially to determine the offset eaves positioning line.
[0076] Or, for example Figure 6BAs shown, when the eaves positioning line includes four basic positioning lines (such as basic positioning line l1, basic positioning line l2, basic positioning line l3, and basic positioning line l4), if the offset directions of basic positioning lines l1, l2, l3, and l4 are all biased to the left of the basic positioning line, and the offset values of basic positioning lines l1, l2, l3, and l4 are all 300, then in this embodiment, the offset value and offset direction of basic positioning line l1, and the offset value and offset direction of basic positioning line l2 can be used first. The offset values and directions of the basic positioning lines l1, l2, l3, and l4 are used to offset the basic positioning lines l1, l2, l3, and l4 respectively, resulting in offset basic positioning lines l′1, l′2, l′3, and l′4. Then, based on these offset basic positioning lines l′1, l′2, l′3, and l′4, the offset eaves positioning line is determined. For example, the offset basic positioning lines l′1, l′2, l′3, and l′4 can be connected sequentially to determine the offset eaves positioning line.
[0077] During the eaves generation process, the embodiments of this disclosure can offset multiple basic positioning lines at once based on the offset value and offset direction of each basic positioning line, thereby reducing the negative impact caused by multiple offsets of basic positioning lines, with each offset being one basic positioning line, during the eaves generation process to a certain extent.
[0078] Step 2: Generate the eaves corresponding to the offset eaves positioning line.
[0079] Obviously, in order to generate the eaves corresponding to the eaves positioning line, this embodiment of the disclosure also needs to generate the eaves corresponding to the eaves positioning line based on the offset eaves positioning line. Specifically, generating the eaves corresponding to the eaves positioning line based on the offset eaves positioning line includes:
[0080] The first area is determined using the offset eaves positioning line and / or the eaves positioning line.
[0081] Based on the first region, determine the eaves area corresponding to the eaves positioning line;
[0082] If the eaves area meets the preset conditions, the eaves corresponding to the eaves positioning line are generated using the eaves area and the attribute information corresponding to the eaves area; wherein, the attribute information corresponding to the eaves area is determined according to the attribute information of the eaves positioning line; the attribute information of the eaves positioning line is determined according to the attribute information of N basic positioning lines.
[0083] Since the embodiments of this disclosure require multiple steps (such as determining the eaves area corresponding to the eaves positioning line based on the first area, and determining whether the eaves area meets the preset conditions) to determine the eaves area used to generate the eaves, the embodiments of this disclosure can not only generate eaves intuitively and quickly based on the eaves area, but also improve the accuracy of the eaves determined based on the eaves area, thereby improving the user experience and reducing the complexity of generating eaves.
[0084] The first region can be determined by the eaves positioning line and the offset eaves positioning line.
[0085] For example, in the case where the eaves positioning line includes two basic positioning lines (such as basic positioning line l1 and basic positioning line l2), and the offset eaves positioning line includes two offset basic positioning lines (such as offset basic positioning line l′1 and offset basic positioning line l′2), the embodiments of this disclosure can determine the first region based on the eaves positioning line and the offset eaves positioning line. Specifically, as shown in the example... Figure 7A As shown, in this embodiment of the disclosure, the first region Q (i.e., based on the base positioning line l1, the base positioning line l2, the offset base positioning line l′1, and the offset base positioning line l′2) can be determined. Figure 7A (The non-closed region shown);
[0086] Alternatively, when the eaves positioning line includes four basic positioning lines (such as basic positioning line l1, basic positioning line l2, basic positioning line l3, and basic positioning line l4), and the offset eaves positioning line includes four offset basic positioning lines (offset basic positioning line l′1, offset basic positioning line l′2, offset basic positioning line l′3, and offset basic positioning line l′4), the embodiments of this disclosure can determine the first region based on the basic positioning lines (such as basic positioning line l1, basic positioning line l2, basic positioning line l3, and basic positioning line l4) and the offset eaves positioning lines (i.e., offset basic positioning lines l′1, offset basic positioning line l′2, offset basic positioning line l′3, and offset basic positioning line l′4). Specifically, as... Figure 7B As shown in Figures 7 and 7C, embodiments of this disclosure can determine the first region Q (i.e., ...) based on the basic positioning lines l1, l2, l3, l4, and the offset basic positioning lines l′1, l′2, l′3, and l′4. Figure 7B and Figure 7C (The shaded area shown).
[0087] However, if the first region is not a closed region, generating the eaves directly based on the first region may result in the inability to generate the eaves or the generation of incorrect eaves, thereby reducing the user experience and increasing unnecessary computing resources.
[0088] To address the aforementioned issues, this embodiment of the present disclosure, after determining the first region, also needs to verify whether the first region is a closed region; and based on the verification result, the eaves region is determined, thereby reducing the possibility of generating eaves based on non-closed regions.
[0089] Therefore, the method for determining the eaves area corresponding to the eaves positioning line based on the first area proposed in this embodiment includes:
[0090] If the first region is a closed region, then the first region is defined as the eaves region; and,
[0091] If the first region is not a closed region, update the first region using at least one boundary positioning line and determine the updated first region as the eaves region; wherein the updated first region is a closed region.
[0092] For example, such as Figure 7B and 7C As shown, if the first region Q is a closed region, the first region Q can be directly determined as the eaves region in this embodiment of the present disclosure.
[0093] Specifically, if the first region is not a closed region, then in this embodiment of the disclosure, the first region can be updated using at least one boundary positioning line, and the updated first region can be determined as the eaves region.
[0094] The boundary positioning line includes a positioning line used to adjust the position of the boundary of the first region; the boundary positioning line can be drawn manually by the user or automatically generated by the server.
[0095] Specifically, in this embodiment of the disclosure, the boundary positioning line can be used to update a first region that is not a closed region into a closed region. Specifically, if the first region is not a closed region, at least one boundary positioning line can be added at the boundary position of the first region to update the first region, so that the updated first region belongs to a closed region.
[0096] For example, such as Figure 7D As shown, if the first region Q is not a closed region, this embodiment of the present disclosure can add boundary positioning lines i1 and i2 at the boundary position of the first region Q to obtain a closed region, and determine this closed region as the updated first region Q′. Then, this embodiment of the present disclosure can use the updated first region Q′ (i.e., Figure 7D The shaded area shown is identified as the eaves area.
[0097] This embodiment of the disclosure verifies in advance whether the first region formed by the eaves positioning line and / or the offset eaves positioning line is a closed region before generating the eaves. This can reduce various problems that may occur in the subsequent eaves generation process, such as the inability to generate eaves or the generation of incorrect eaves, thereby improving the user experience, increasing the efficiency of eaves generation, and reducing the computing resources required to generate eaves.
[0098] However, even if the eaves area is a closed region, there are still cases where the eaves cannot be generated or an incorrect eaves are generated. For example, among the N basic positioning lines constituting the eaves area, if any two connected eaves positioning lines are not connected end-to-end, then the eaves area may not be able to generate an eaves; or, among the N basic positioning lines constituting the eaves area, if any two unconnected eaves positioning lines intersect, then based on the eaves area, an unusable eaves may be generated, or even no eaves may be generated at all.
[0099] Therefore, to avoid the above situation, in generating the eaves based on the eaves area, this embodiment of the disclosure also needs to determine whether the area constituting the eaves meets preset conditions. These preset conditions include at least one of the following:
[0100] The connection method of any two connected basic positioning lines corresponding to the eaves area is to connect end to end; the connection method of any two connected basic positioning lines is determined according to the endpoint positions of the basic positioning lines; the endpoint positions include the starting position and / or the ending position.
[0101] Any two unconnected foundation positioning lines corresponding to the eaves area do not intersect.
[0102] For example, if any two connected basic positioning lines corresponding to the eaves area include basic positioning line l1 and basic positioning line l2, and the end point of basic positioning line l1 and the start point of basic positioning line l2 are the same, that is, the connection between basic positioning line l1 and basic positioning line l2 is that they are connected end to end, then it can be determined that the eaves area meets the preset conditions.
[0103] Alternatively, if any two non-connected basic positioning lines corresponding to the eaves area, including basic positioning line l1 and basic positioning line l2, intersect, then it can be determined that the eaves area does not meet the preset conditions.
[0104] By verifying the connection method of any two connected eaves positioning lines in the eaves area, and whether the eaves positioning lines intersect, the usability of the determined eaves area can be further improved, reducing a series of negative impacts caused by generating eaves using unusable eaves areas, and improving the user experience.
[0105] In addition, to facilitate users to understand in real time whether the eaves positioning line is available or whether the eaves area is usable, this embodiment of the disclosure further includes: generating a prompt message for the eaves positioning line when the eaves area does not meet the preset conditions; wherein the prompt message includes that the eaves positioning line and / or the eaves area is unavailable.
[0106] Of course, it should be noted that the specific content included in the above prompts is merely an example, and the embodiments of this disclosure do not limit the specific content included in the prompts. Specifically, since the main purpose of the prompts in the embodiments of this disclosure is to inform the user that the eaves positioning line and / or the eaves area is unavailable, and to remind the user to update the eaves positioning line and / or the eaves area in a timely manner, the prompts in the embodiments of this disclosure may include any content that can inform the user that the eaves positioning line and / or the eaves area is unavailable, and to update the eaves positioning line and / or the eaves area. For example, the prompts may also include that the eaves area is invalid, the eaves positioning line is invalid, please update the eaves positioning line, or please update the eaves area, etc.
[0107] By displaying real-time prompts to users regarding the eaves positioning line and / or eaves area, this embodiment of the present disclosure helps users quickly understand whether the current eaves positioning line and / or eaves area is available. This allows users to quickly update the eaves positioning line and / or eaves area in a short period of time, thereby improving the efficiency of generating the eaves positioning line and enhancing the user experience.
[0108] It is easy to understand that if the eaves area proposed in the embodiments of this disclosure meets the preset conditions, then the embodiments of this disclosure can generate eaves (such as strip eaves) based on the eaves area.
[0109] Specifically, in this embodiment, the eaves area and its corresponding attribute information can be used to generate the eaves corresponding to the eaves positioning line. The attribute information corresponding to the eaves area is determined based on the attribute information of the eaves positioning line; the attribute information of the eaves positioning line is determined based on the attribute information of N basic positioning lines. This attribute information is used to determine at least one of the eaves' height, width, thickness, and slope.
[0110] For example, if the attribute information of each eave positioning line included in the eave positioning line includes a height of 3m, a width of 0.5m, a thickness of 0.2m, and a slope of 89.9 degrees, then in this embodiment of the disclosure, it can be determined that the attribute information of the eave positioning line includes a height of 3m, a width of 0.5m, a thickness of 0.2m, and a slope of 89.9 degrees.
[0111] Furthermore, since the attribute information corresponding to the eaves area is determined based on the attribute information of the eaves positioning line, if the attribute information of the eaves positioning line includes a height of 3m, a width of 0.5m, a thickness of 0.2m, and a slope of 89.9 degrees, then the attribute information corresponding to the eaves area can also include a height of 3m, a width of 0.5m, a thickness of 0.2m, and a slope of 89.9 degrees.
[0112] It should be noted that if the eaves area corresponds to at least one boundary positioning line, then the attribute information of the boundary positioning line also includes a height of 3m, a width of 0.5m, a thickness of 0.2m, and a slope of 89.9 degrees.
[0113] Obviously, if the attribute information of the eaves area includes a height of 3m, a width of 0.5m, a thickness of 0.2m, and a slope of 89.9 degrees, then this embodiment of the disclosure can generate an eaves with a height of 3m, a width of 0.5m, a thickness of 0.2m, and a slope of 89.9 degrees based on the eaves area; wherein, each side of the eaves can correspond one-to-one with the N basic positioning lines corresponding to the eaves area (i.e., the N basic positioning lines contained in the eaves positioning lines corresponding to the eaves area).
[0114] Since the attribute information proposed in this embodiment can describe the eaves from multiple dimensions, the eaves can be generated more accurately and reasonably based on the attribute information proposed in this embodiment, thereby improving the accuracy of the generated eaves.
[0115] This disclosure provides an eaves generating device. Figure 8 This is a schematic diagram of the structure of an eaves generating device 800 according to an embodiment of the present disclosure, including:
[0116] The first determining module 810 is used to determine the eaves positioning line; the eaves positioning line includes N basic positioning lines; N is a positive integer;
[0117] The second determining module 820 is used to determine the offset eaves positioning line after offset by using the offset values and offset directions of N basic positioning lines;
[0118] The generation module 830 is used to generate the eaves corresponding to the offset eaves positioning line based on the offset eaves positioning line.
[0119] In some implementations, the generation module 830 is configured to include:
[0120] The first area is determined using the offset eaves positioning line and / or the eaves positioning line.
[0121] Based on the first region, determine the eaves area corresponding to the eaves positioning line;
[0122] If the eaves area meets the preset conditions, the eaves corresponding to the eaves positioning line are generated using the eaves area and the attribute information corresponding to the eaves area; wherein, the attribute information corresponding to the eaves area is determined according to the attribute information of the eaves positioning line; the attribute information of the eaves positioning line is determined according to the attribute information of N basic positioning lines.
[0123] In some implementations, the generation module 830 is also used to generate a prompt message for the eaves positioning line when the eaves area does not meet the preset conditions; wherein the prompt message includes that the eaves positioning line is unavailable.
[0124] In some implementations, attribute information is used to determine at least one of the eaves' height, width, thickness, and slope.
[0125] In some implementations, the preset conditions include at least one of the following:
[0126] The connection method of any two connected basic positioning lines corresponding to the eaves area is to connect end to end; the connection method of any two connected basic positioning lines is determined according to the endpoint positions of the basic positioning lines; the endpoint positions include the starting position and / or the ending position.
[0127] Any two unconnected foundation positioning lines corresponding to the eaves area do not intersect.
[0128] In some implementations, the second determining module 820 is used for:
[0129] If the first region is a closed region, then the first region is defined as the eaves region; and,
[0130] If the first region is not a closed region, update the first region using at least one boundary positioning line and determine the updated first region as the eaves region; wherein the updated first region is a closed region.
[0131] 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.
[0132] 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.
[0133] Figure 9 This is a structural block diagram of an electronic device according to an embodiment of the present disclosure. Figure 9 As shown, the electronic device includes a memory 910 and a processor 920. The memory 910 stores a computer program that can run on the processor 920. The number of memories 910 and processors 920 can be one or more. The memory 910 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 930 for communicating with external devices and performing data exchange and transmission.
[0134] If the memory 910, processor 920, and communication interface 930 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 9 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.
[0135] Optionally, in a specific implementation, if the memory 910, processor 920, and communication interface 930 are integrated on a single chip, the memory 910, processor 920, and communication interface 930 can communicate with each other through an internal interface.
[0136] 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.
[0137] 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).
[0138] 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.
[0139] 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.
[0140] 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.
[0141] 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.
[0142] 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.
[0143] 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 eaves, comprising: Determine the eaves positioning line; The eaves positioning line includes N basic positioning lines; N is a positive integer; Using the offset values and offset directions of the N basic positioning lines, the offset eaves positioning line is determined; The first area is determined using the offset eaves positioning line and / or the eaves positioning line; If the first area is a closed area, the first area is defined as the eaves area; Furthermore, if the first region is not a closed region, the first region is updated using at least one boundary positioning line, and the updated first region is determined as the eaves region; wherein, the updated first region is a closed region; if the eaves region meets preset conditions, the eaves corresponding to the eaves region and the attribute information corresponding to the eaves region are used to generate the eaves corresponding to the eaves positioning line; wherein, the attribute information corresponding to the eaves region is determined based on the attribute information of the eaves positioning line; the attribute information of the eaves positioning line is determined based on the attribute information of N basic positioning lines; The preset conditions include at least one of the following: the connection method of any two connected basic positioning lines corresponding to the eaves area is that they are connected end to end; the connection method of any two connected basic positioning lines is determined according to the endpoint positions of the basic positioning lines; the endpoint positions include the starting position and / or the ending position; and any two unconnected basic positioning lines corresponding to the eaves area do not intersect.
2. The method according to claim 1 further includes generating a prompt message for the eaves positioning line when the eaves area does not meet the preset conditions; wherein, The notification message includes information such as the eaves positioning line and / or the eaves area being unavailable.
3. The method of claim 2, wherein, The attribute information is used to determine at least one of the following: the height, width, thickness, and slope of the eaves.
4. An eaves generating device, comprising: The first determining module is used to determine the eaves positioning line; The eaves positioning line includes N basic positioning lines; N is a positive integer; The second determining module is used to determine the offset eaves positioning line after offset by using the offset value and offset direction of the N basic positioning lines; A generation module is used to determine a first region using the offset eaves positioning line and / or the eaves positioning line; If the first area is a closed area, the first area is defined as the eaves area; Furthermore, if the first region is not a closed region, the first region is updated using at least one boundary positioning line, and the updated first region is determined as the eaves region; wherein, the updated first region is a closed region; if the eaves region meets preset conditions, the eaves corresponding to the eaves region and the attribute information corresponding to the eaves region are used to generate the eaves corresponding to the eaves positioning line; wherein, the attribute information corresponding to the eaves region is determined based on the attribute information of the eaves positioning line; the attribute information of the eaves positioning line is determined based on the attribute information of N basic positioning lines; The preset conditions include at least one of the following: the connection method of any two connected basic positioning lines corresponding to the eaves area is that they are connected end to end; the connection method of any two connected basic positioning lines is determined according to the endpoint positions of the basic positioning lines; the endpoint positions include the starting position and / or the ending position; and any two unconnected basic positioning lines corresponding to the eaves area do not intersect.
5. 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-3.
6. 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-3.
7. A computer program product comprising a computer program that, when executed by a processor, implements the method according to any one of claims 1-3.