Design diagram generation method and apparatus, device, and storage medium

By automatically generating design drawings based on internal wall line vector data, the problems of cumbersome operation and insufficient accuracy in existing technologies are solved, and efficient and accurate design drawing generation is achieved.

CN119416316BActive Publication Date: 2025-12-09REALSEE (BEIJING) TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411456373.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-17
Publication Date
2025-12-09
Estimated Expiration
2044-10-17

AI Technical Summary

Technical Problem

In existing technologies, the drawing of house design drawings requires manual measurement and recording of the dimensions of walls, doors and windows. This process is cumbersome, time-consuming and labor-intensive, and it is difficult to guarantee the drawing accuracy, resulting in poor drawing quality of CAD drawings.

Method used

Based on the vector data of the interior wall lines of the target house, the representation data of the exterior wall lines is generated. By determining the positional relationship between the wall attachments and the interior and exterior walls, as well as the scale data, the design drawing is automatically generated, ensuring that the display areas of the internal scale data do not overlap.

Benefits of technology

It achieves efficient and accurate automatic generation of design drawings without human intervention, with good display effect, low generation cost, and no overlap between data display areas.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119416316B_ABST
    Figure CN119416316B_ABST
Patent Text Reader

Abstract

Embodiments of the present disclosure disclose a design drawing generation method and device, equipment and a storage medium, wherein the method comprises: generating first representation data of an outer wall line based on inner wall line vector data of a target house, the inner wall line vector data comprising second representation data of the inner wall line and third representation data of wall attachments; determining the positional relationship between the wall attachments and the inner wall and the outer wall and scale data based on the first representation data, the second representation data and the third representation data, the scale data comprising outer scale data and inner scale data; determining the display area of each data in the inner scale data, wherein the display areas of each data in the inner scale data do not overlap with each other; and generating a design drawing of the target house based on the first representation data, the second representation data, the positional relationship, the scale data and the display area. The embodiments of the present disclosure can automatically generate a design drawing according to the inner wall line vector data of a target house.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates to the technical field of computer, and particularly relates to a design drawing generation method and device, equipment and storage medium. BACKGROUND

[0002] In many fields, such as the field of home decoration, the field of architectural design, etc., it is usually necessary to complete the related design by means of a computer aided design (CAD) drawing. At present, the size information of walls, doors and windows of a house needs to be measured and recorded manually, and then a sketch is drawn, and a CAD drawing is drawn in professional software according to the drawn sketch. This way is tedious, time-consuming and laborious, and it is difficult to guarantee the drawing accuracy, thereby leading to poor drawing effect of the CAD drawing.

[0003] Therefore, how to automatically generate a CAD drawing is a technical problem worthy of attention. SUMMARY

[0004] In order to solve the above technical problem, the present disclosure is proposed. Embodiments of the present disclosure provide a design drawing generation method, device, equipment and storage medium.

[0005] According to an aspect of an embodiment of the present disclosure, a design drawing generation method is provided, comprising:

[0006] generating first representation data of an outer wall line based on inner wall line vector data of a target house, the inner wall line vector data comprising second representation data of an inner wall line and third representation data of a wall attachment;

[0007] determining a position relationship between the wall attachment and the inner wall and outer wall and scale data based on the first representation data, the second representation data and the third representation data, the scale data comprising outer scale data and inner scale data;

[0008] determining display areas of each data in the inner scale data, wherein the display areas of each data in the inner scale data do not overlap with each other;

[0009] generating a design drawing of the target house based on the first representation data, the second representation data, the position relationship, the scale data and the display areas.

[0010] In some embodiments of the present disclosure, the generating first representation data of an outer wall line based on inner wall line vector data of a target house comprises:

[0011] determining at least one first polygon formed by the inner wall line based on the second representation data of the inner wall line;

[0012] respectively expand a first distance to obtain at least one second polygon;

[0013] respectively shrink a second distance to obtain at least one third polygon, a difference between the first distance and the second distance being a thickness value of the outer wall;

[0014] generate first representation data of the outer wall line based on the at least one third polygon.

[0015] In some embodiments of the present disclosure, the generating the first representation data of the outer wall line based on the at least one third polygon comprises:

[0016] in response to the number of the third polygons being one, performing optimization processing on the third polygon to obtain a fourth polygon formed by the outer wall line, and the representation data of the fourth polygon being the first representation data of the outer wall line;

[0017] in response to the number of the third polygons being more than two, performing set union and convex hull processing on the at least one third polygon in sequence to obtain a fifth polygon;

[0018] performing optimization processing on the fifth polygon to obtain a sixth polygon formed by the outer wall line, and the representation data of the sixth polygon being the first representation data of the outer wall line.

[0019] In some embodiments of the present disclosure, the third representation data comprises two end points of a line segment on which the wall attachment is located.

[0020] The determining the positional relationship between the wall attachment and the inner wall and the outer wall based on the first representation data, the second representation data and the third representation data comprises:

[0021] based on the two end points, drawing a line segment with a set length in a direction perpendicular to the inner wall line and / or the outer wall line;

[0022] determining the positional relationship between the wall attachment and the inner wall or the outer wall based on an intersection between the line segment and the inner wall line and / or the outer wall line.

[0023] In some embodiments of the present disclosure, the determining the scale data based on the first representation data, the second representation data and the third representation data comprises:

[0024] based on a positional relationship between each end point in the first representation data, the second representation data and the third representation data and a center point of a target house, projecting in a closest direction to obtain an intersection point with a three-layer scale line, and generating outer scale data; and

[0025] generate the internal scale data based on size information of the wall attachments in the third representation data and size information of each room of the target house.

[0026] In some embodiments of the present disclosure, the determining the display area of each data in the internal scale data comprises:

[0027] abstracting each data in the internal scale data into a component respectively to obtain at least two components;

[0028] determining the display area of each component in sequence, wherein the display area of each component does not overlap with an occupied space area, and the occupied space area comprises a space area occupied by the data whose display area has been determined.

[0029] In some embodiments of the present disclosure, the determining the display area of each component in sequence comprises:

[0030] creating an occupied space area, and an initial value of the occupied space area is empty;

[0031] selecting a target component from the at least two components, wherein the target component is a component whose display area is to be determined;

[0032] determining an overlapping state between an initial occupied area of the target component and the occupied space area;

[0033] in response to the overlapping state indicating no overlapping, determining the initial occupied area of the target component as the display area of the target component, and adding the initial occupied area to the occupied space area;

[0034] in response to the overlapping state indicating overlapping, adjusting the display area of the target component until the display area of the target component does not overlap with the occupied space area, and adding the adjusted display area of the target component to the occupied space area;

[0035] iteratively performing the operation of selecting the target component from the at least two components until the display area of each component in the at least two components has been determined.

[0036] According to another aspect of the embodiments of the present disclosure, a design drawing generation apparatus is provided, comprising:

[0037] a first generation module configured to generate first representation data of an external wall line based on internal wall line vector data of a target house, wherein the internal wall line vector data comprises second representation data of an internal wall line and third representation data of wall attachments;

[0038] The first determining module is configured to determine a position relationship between the wall attachment and the interior wall and the exterior wall and scale data based on the first feature data, the second feature data, and the third feature data, wherein the scale data includes exterior scale data and interior scale data.

[0039] The second determining module is configured to determine display areas of the data in the interior scale data, wherein the display areas of the data in the interior scale data do not overlap with each other.

[0040] The second generating module is configured to generate a design drawing of the target house based on the first feature data, the second feature data, the position relationship, the scale data, and the display areas.

[0041] In some embodiments of the present disclosure, the first generating module includes:

[0042] The first determining sub-module is configured to determine at least one first polygon formed by the interior wall line based on the second feature data of the interior wall line.

[0043] The outward expanding sub-module is configured to outwardly expand the at least one first polygon by a first distance respectively to obtain at least one second polygon.

[0044] The inward shrinking sub-module is configured to inwardly shrink the at least one second polygon by a second distance respectively to obtain at least one third polygon, wherein a difference between the first distance and the second distance is an exterior wall thickness feature value.

[0045] The first generating sub-module is configured to generate the first feature data of the exterior wall line based on the at least one third polygon.

[0046] In some other embodiments of the present disclosure, the first generating sub-module includes:

[0047] The first optimization unit is configured to, in response to the number of the third polygons being one, perform optimization processing on the third polygon to obtain a fourth polygon formed by the exterior wall line, wherein feature data of the fourth polygon is the first feature data of the exterior wall line.

[0048] The processing unit is configured to, in response to the number of the third polygons being more than two, sequentially perform set union and convex hull processing on the at least one third polygon to obtain a fifth polygon.

[0049] The second optimization unit is configured to perform optimization processing on the fifth polygon to obtain a sixth polygon formed by the exterior wall line, wherein feature data of the sixth polygon is the first feature data of the exterior wall line.

[0050] In some embodiments of the present disclosure, the third characterization data comprises two end points of a line segment on which the wall attachment is located.

[0051] The first determining module comprises:

[0052] The second generating submodule is configured to generate a line segment with a set length in a direction perpendicular to the inner wall line and / or the outer wall line based on the two end points.

[0053] The second determining submodule is configured to determine the positional relationship between the wall attachment and the inner wall or the outer wall based on the intersection of the line segment and the inner wall line and / or the outer wall line.

[0054] In some embodiments of the present disclosure, the first determining module comprises:

[0055] The projecting submodule is configured to project the respective end points in the first characterization data, the second characterization data and the third characterization data to a nearest direction to obtain an intersection point of the three-layer scale line based on the positional relationship between the respective end points and the center point of the target house, and generate outer scale data.

[0056] The third generating submodule is configured to generate the inner scale data based on the size information of the wall attachment in the third characterization data and the size information of each room of the target house.

[0057] In some embodiments of the present disclosure, the second determining module comprises:

[0058] The abstracting submodule is configured to abstract each data in the inner scale data into a component to obtain at least two components.

[0059] The third determining submodule is configured to sequentially determine a display area of each component, wherein the display area of each component does not overlap with an occupied space area, and the occupied space area comprises a space area occupied by the data of the determined display area.

[0060] In some embodiments of the present disclosure, the third determining submodule comprises:

[0061] The creating unit is configured to create an occupied space area, and an initial value of the occupied space area is empty.

[0062] The selecting unit is configured to select a target component of a to-be-determined display area from the at least two components.

[0063] The first determining unit is configured to determine an overlapping state between an initial occupied area of the target component and the occupied space area.

[0064] a second determining unit, configured to determine an initial occupied area of the target component as a display area of the target component and add the initial occupied area to the occupied space area, in response to the indication of the overlapping state being non-overlapping;

[0065] an adjusting unit, configured to adjust the display area of the target component until the display area of the target component is non-overlapping with the occupied space area, in response to the indication of the overlapping state being overlapping, and add the adjusted display area of the target component to the occupied space area;

[0066] an iterating unit, configured to iteratively perform the operation of selecting a target component from the at least two components to determine a display area until display areas of the at least two components are determined.

[0067] According to still another aspect of the present disclosure, a computer readable storage medium is provided, which stores computer program instructions, and the computer program instructions, when executed, implement the design drawing generation method.

[0068] According to still another aspect of the present disclosure, an electronic device is provided, which comprises:

[0069] a memory, configured to store a computer program product;

[0070] a processor, configured to execute the computer program product stored in the memory, and the computer program product, when executed, implements the design drawing generation method.

[0071] According to still another aspect of the present disclosure, a computer program product is provided, which comprises computer program instructions, and the computer program instructions, when executed by a processor, implement the design drawing generation method.

[0072] The design drawing generation method, device, equipment and storage medium provided by the above embodiments of the present disclosure can generate first representation data of an outer wall line based on inner wall line vector data of a target house when generating a design drawing, the inner wall line vector data comprising second representation data of an inner wall line and third representation data of a wall attachment; determine a positional relationship between the wall attachment and the inner wall line and the outer wall line and scale data based on the first representation data, the second representation data and the third representation data; determine display areas of each data in the inner scale data, wherein the display areas of each data in the inner scale data do not overlap with each other; and generate a design drawing of the target house based on the first representation data, the second representation data, the positional relationship, the scale data and the display areas. Thus, the technical solution of the present disclosure can automatically generate a design drawing based on the inner wall line vector data of a target house, the display of each data in the generated design drawing does not overlap with each other, the display effect is good, and the technical solution does not need human intervention and has low generation cost.

[0073] The technical solutions of the present disclosure are described in further detail below by combining with the drawings and embodiments. BRIEF DESCRIPTION OF DRAWINGS

[0074] The above and other objects, features and advantages of the present disclosure will become more apparent from the following detailed description when taken in conjunction with the accompanying drawings in which:

[0075] The present disclosure can be understood more apparent from the following detailed description in conjunction with the accompanying drawings, in which:

[0076] Figure 1 A flowchart of a method for generating a design drawing according to an exemplary embodiment of the present disclosure;

[0077] Figure 2 A flowchart of a method for determining outer wall line data in a design drawing according to an exemplary embodiment of the present disclosure;

[0078] Figure 3 An optimization effect of an outer wall line of a design drawing according to an exemplary embodiment of the present disclosure Figure 1 ;

[0079] Figure 4 An optimization effect of an outer wall line of a design drawing according to an exemplary embodiment of the present disclosure Figure 2 ;

[0080] Figure 5 A flowchart of a method for determining the position of a wall attachment in a design drawing according to an exemplary embodiment of the present disclosure;

[0081] Figure 6 A flowchart of a method for determining the display area of a scale in a design drawing according to an exemplary embodiment of the present disclosure;

[0082] Figure 7 A flowchart of a method for determining the display area of each component in a design drawing according to an exemplary embodiment of the present disclosure;

[0083] Figure 8 An effect drawing of a design drawing according to an exemplary embodiment of the present disclosure;

[0084] Figure 9 An effect drawing of a continuous window according to an exemplary embodiment of the present disclosure;

[0085] Figure 10 A structural diagram of another embodiment of a design drawing generation device according to the present disclosure;

[0086] Figure 11 Structure diagram of yet another embodiment of a design drawing generation apparatus of the present disclosure;

[0087] Figure 12 Structure diagram of an electronic device provided by an illustrative embodiment of the present disclosure. DETAILED DESCRIPTION

[0088] Hereinafter, example embodiments according to the present disclosure will be described in detail with reference to the accompanying drawings. It should be apparent that the described embodiments are merely a part of the embodiments of the present disclosure, and do not limit the present disclosure, and thus the present disclosure can be realized in various ways other than the embodiments described herein.

[0089] It should be noted that the relative arrangement, numerical expressions, and values of the components and steps set forth in the embodiments are not limiting to the scope of the present disclosure unless otherwise specifically stated.

[0090] It should be understood by those skilled in the art that the terms "first", "second", and the like in the embodiments of the present disclosure are merely used to distinguish different steps, devices, or modules, and do not represent any specific technical meaning, nor do they represent a necessary logical order between them.

[0091] It should also be understood that in the embodiments of the present disclosure, "a plurality of" can mean two or more, and "at least one" can mean one, two, or more.

[0092] It should also be understood that for any component, data, or structure mentioned in the embodiments of the present disclosure, it can be understood as one or more in general, without explicit limitation or in the context of the preceding and following text giving the opposite indication.

[0093] In addition, the term "and / or" in the present disclosure is merely a description of the association relationship between the associated objects, which means that there can be three relationships, for example, A and / or B can mean that there are three cases of A alone, A and B together, and B alone. In addition, the character " / " in the present disclosure generally represents an "or" relationship between the front and rear associated objects.

[0094] It should also be understood that the description of each embodiment of the present disclosure emphasizes the differences between each embodiment, and the same or similar parts can be referred to each other, and for the sake of brevity, will not be repeated.

[0095] At the same time, it should be understood that, for the convenience of description, the size of each part shown in the drawings is not drawn in accordance with the actual proportional relationship.

[0096] The following description of at least one example embodiment is merely illustrative in nature and is in no way limiting to the disclosure and its application or uses.

[0097] Techniques, methods, and apparatus known to those of ordinary skill in the relevant art can not be discussed in detail herein, but should be considered part of the specification.

[0098] It should be noted that like reference numerals and letters refer to like items throughout the attached drawings, and once an item is defined in one drawing, it should not require further discussion in subsequent drawings.

[0099] Embodiments of the present disclosure can be applied to terminal devices, computer systems, servers, and the like electronic devices, which can operate with many other general-purpose or special-purpose computing system environments or configurations. Examples of well-known terminal devices, computing systems, environments, and / or configurations suitable for use with terminal devices, computer systems, servers, and the like electronic devices include, but are not limited to, personal computer systems, server computer systems, thin clients, thick clients, handheld or laptop devices, microprocessor-based systems, set-top boxes, programmable consumer electronics, network personal computers, minicomputer systems, mainframe computer systems, and distributed cloud computing technology environments comprising any of the above systems, and the like.

[0100] Terminal devices, computer systems, servers, and the like electronic devices can be described in the general context of computer system-executable instructions, such as program modules, being executed by a computer system. Generally, program modules can include routines, programs, objects, components, logic, data structures, and the like, which perform particular tasks or implement particular abstract data types. Computer systems / servers can be implemented in a distributed cloud computing environment, in which tasks are performed by remote processing devices that are linked through a communications network. In a distributed cloud computing environment, program modules can be located in local or remote computer system storage media, including storage devices.

[0101] Summary of the disclosure

[0102] The technical solutions provided by the embodiments of the present disclosure are used to solve the problem of automatic generation of house design drawings, and can be applied to various business fields, such as home decoration, architectural design, and house transaction. The design drawings generated by the technical solutions of the embodiments can also be referred to as computer-aided design (CAD) drawings. In the related technology of CAD drawings, manual measurement and professional software design are required, which is tedious and time-consuming.

[0103] According to the technical solutions of the present disclosure, CAD drawings can be automatically generated according to internal wall line vector data without human intervention, which is efficient and accurate.

[0104] Exemplary method

[0105] Figure 1 a flowchart of one embodiment of a design drawing generation method of the present disclosure; the design drawing generation method can be applied on an electronic device (such as a computer system, a server), as shown in Figure 1 The design drawing generation method includes the following steps:

[0106] In step 101, first representation data of an outer wall line is generated based on inner wall line vector data of a target house.

[0107] In the present disclosure, the inner wall line vector data includes second representation data of the inner wall line and third representation data of wall attachments. The second representation data of the inner wall line can include starting point coordinates and ending point coordinates of the inner wall line corresponding to each wall, and line data of the inner wall line, which can be described by a chain of sequentially spaced coordinates, either uniformly or non-uniformly. The wall attachments can be objects such as windows, doors, and weak current boxes on the wall. The third representation data of the wall attachments can include information such as height and width for representing the size of the wall attachments, and coordinate information for representing the position of the wall attachments.

[0108] In the present embodiment, a polygon formed by the outer wall line can be obtained by outward expansion and inward contraction of the inner wall line, and then the third representation data of the outer wall line can be obtained. The specific implementation of determining the first representation data of the outer wall line in the present disclosure can be referred to the embodiment shown in Figure 2 which will not be described in detail here.

[0109] The first representation data of the outer wall line can include starting point coordinates and ending point coordinates of the outer wall line corresponding to each wall, and line data of the outer wall line, which can be described by a chain of sequentially spaced coordinates, either uniformly or non-uniformly.

[0110] In step 102, the position relationship between the wall attachments and the inner wall and the outer wall, and scale data are determined based on the first representation data, the second representation data, and the third representation data.

[0111] In the present disclosure, the wall attachments, such as windows, can be located on the outer wall or on the inner wall. The position relationship between the wall attachments and the inner wall and the outer wall is used to indicate the position of the wall attachments on the wall, which can be determined by judging whether the wall attachments intersect with the outer wall line or the inner wall line to determine the position of the wall attachments on the outer wall or on the inner wall.

[0112] In the present disclosure, the scale data can include outer scale data and inner scale data. The outer scale data is used to indicate three layers of scale lines marked on the outermost side of the CAD drawing and size information, which is composed of size lines, extension lines (i.e. size boundary lines), size text (i.e. size numbers), etc. The outer scale data is usually located at the outermost periphery of the CAD drawing, with three size lines marked in the horizontal direction and the vertical direction, as shown in Figure 8As shown, the outer scale data can include the overall length, overall width and other overall dimensions of the house in the horizontal direction, and also include the axis dimensions such as the open space and depth of the house, and the wall segment of the outer wall of the house and the detailed dimensions of the door and window openings.

[0113] In a specific implementation, the outer scale data can be generated by projecting the position relationship between each endpoint in the first representation data, the second representation data and the third representation data and the center point of the target house to the nearest direction, to obtain the intersection point of the three layers of scale lines. For example, the point located at the upper left position of the center point of the target house can be projected to the left side and the upper side, respectively, to fall on the three layers of scale lines on the left side and the upper side. The point located at the lower right position of the center point of the target house can be projected to the right side and the lower side, respectively, to fall on the three layers of scale lines on the right side and the lower side, see Figure 8 . Wherein, the center point of the target house can be understood as the point of the center position of the target house.

[0114] The inner scale data is used to indicate the annotation information annotated in the CAD floor plan area. The inner scale data can be generated based on the size information of each wall attachment (such as the height of the window, the width of the window), the position information of the attachment (such as the height of the window from the ground), and the size information of each room of the target house (such as the width, length and area of the master bedroom), see Figure 8 .

[0115] In this embodiment, according to the point data and line data of the second representation data of the inner wall line, the size information of each room can be determined, and according to the third annotation information of the wall attachment, the detailed dimensions of the door and window openings can be determined. According to the first representation data of the outer wall line, the size information of the wall segment of the outer wall of the house can be determined. Therefore, in combination with the first representation data, the second representation data and the third representation data, the outer scale data and the inner scale data can be determined.

[0116] In this embodiment, the specific implementation of determining the position of the wall attachment according to the first representation data, the second representation data and the third representation data can be referred to the embodiment shown in Figure 5 , which will not be described in detail here.

[0117] In step 103, the display area of each data in the inner scale data is determined, wherein the display areas of each data in the inner scale data do not overlap with each other.

[0118] In the present disclosure, each data in the inner scale data can include size information of wall attachments and size information of each room, for example, can include the width (CK: 1007mm), height (CH: 1387mm), and ground clearance (CX: 777mm) of window 1, the width (CK: 1307mm), height (CH: 1387mm), and ground clearance (CX: 777mm) of window 2, and the like. The display areas of size information of different wall attachments or different rooms cannot overlap to avoid collision of size information.

[0119] In the present embodiment, the specific implementation of determining the display area of each data in the inner scale data can be referred to the embodiment shown in Figure 6 The specific implementation of determining the display area of each data in the inner scale data will not be described in detail here.

[0120] In step 104, based on the first representation data, the second representation data, the position relationship, the scale data, and the display area, a design drawing of the target house is generated.

[0121] In the present disclosure, the design drawing is a CAD file that can be directly used and edited, such as a Drawing Web Format (DWG) file and a Drawing Exchange Format (DXF) file.

[0122] In the present embodiment, the design drawing can be drawn according to the first representation data, the second representation data, the position relationship, the scale data, and the display area of different scale data.

[0123] The above steps 101-104, when generating the design drawing, can generate the first representation data of the outer wall line based on the inner wall line vector data of the target house, the inner wall line vector data including the second representation data of the inner wall line and the third representation data of the wall attachments; determine the position relationship of the wall attachments and the inner wall line and the outer wall line and the scale data based on the first representation data, the second representation data, and the third representation data; determine the display area of each data in the inner scale data, wherein the display areas of each data in the inner scale data do not overlap; and generate the design drawing of the target house based on the first representation data, the second representation data, the position relationship, the scale data, and the display area. Thus, the technical scheme of the present disclosure can automatically generate the design drawing according to the inner wall line vector data of the target house, the display of each scale data in the generated design drawing does not overlap, the display effect is good, and no manual intervention is required, and the generation cost is low.

[0124] In order to better illustrate the design drawing generation scheme of the present disclosure, another embodiment will be described below.

[0125] Figure 2A flowchart for determining the outer wall line data in the method for generating a design drawing provided for an exemplary embodiment of the present disclosure is shown in FIG. 1. The present embodiment takes the determination of the outer wall line data as an example for illustrative purposes, and as shown in FIG. 1, includes the following steps: Figure 2

[0126] In step 201, at least one first polygon formed by the inner wall line is determined based on the second representation data of the inner wall line.

[0127] In the present embodiment, one or more first polygons can be obtained according to the second representation data of the inner wall line. The multiple first polygons can represent multiple groups of continuous inner wall lines. For example, in the case of a house type with a patio, there is an independent first polygon inside the house type, or there is an independent space area in the room which is connected together only through a window and other indoor areas, and the independent space area can also be formed into a first polygon.

[0128] In the present embodiment, for the convenience of subsequent operations, each first polygon can be corrected to be counterclockwise or clockwise, and the starting point and the ending point of the wall line attachment are adjusted. For example, the first polygon is adjusted to be in the clockwise direction, and the direction from the starting point to the ending point of the window 1 on the first polygon does not conform to the clockwise direction, so the starting point and the ending point can be swapped, i.e., the starting point is treated as the ending point, and the ending point is treated as the starting point. In the present implementation, by correcting the sequence of the first polygon to be counterclockwise or clockwise, and adjusting the starting point and the ending point of the wall body attachment accordingly, an ordered set of wall body attachments can be obtained, which is helpful for subsequent drawing of CAD drawings.

[0129] In step 202, at least one second polygon is obtained by respectively expanding the first distance outside the at least one first polygon.

[0130] In the present disclosure, the first distance is a distance that exceeds the value corresponding to the thickness of the outer wall in the CAD drawing, for example, the thickness of the outer wall is a fixed value of 40 cm, which corresponds to 1 cm in the CAD drawing, and the first distance can be a value exceeding 1 cm, such as 2 cm.

[0131] In some embodiments, the operation of expanding the first polygon is to extend each side of a polygon outward by a fixed distance to form a new second polygon.

[0132] In step 203, at least one third polygon is obtained by respectively shrinking the second distance inside the at least one second polygon, and the difference between the first distance and the second distance is the representation value of the thickness of the outer wall.

[0133] ​In the present disclosure, the second distance is a value smaller than the first distance, and the difference between the second distance and the first distance is the thickness of the outer wall. For example, the thickness of the outer wall is a fixed value of 40 cm, and in the CAD drawing, it is 1 cm. Therefore, the first distance can be a value greater than 1 cm, such as 2 cm, and the second distance can be 1 cm.

[0134] In the present embodiment, the inward shrinking of the second polygon means that each side of the second polygon is moved inward by a certain distance, thereby forming a new smaller polygon. In the present implementation, the polygon can be shrunk by setting a negative distance value through the buffer tool, and polygons with an area less than a certain value can be selected.

[0135] In the present embodiment, the outward expansion and inward shrinking operations in steps 202 and 203 can be implemented by a buffer operation, thereby generating at least one third polygon corresponding to the at least one first polygon formed by the inner wall line. Moreover, the third polygon obtained achieves the flattening of the irregular corner parts of the first polygon, and expanding the first polygon by 1 times the thickness of the outer wall cannot achieve the effect of flattening the irregular corner parts of the first polygon.

[0136] In step 204, the first representation data of the outer wall line is generated based on the at least one third polygon.

[0137] In specific implementation, the third polygons can be optimized respectively according to the number of third polygons to obtain the first representation data of the outer wall line. In response to the number of third polygons being one, the third polygon is optimized to obtain a fourth polygon formed by the outer wall line, and the representation data of the fourth polygon is the first representation data of the outer wall line. In response to the number of third polygons being more than two, at least one third polygon is sequentially processed by set union and convex hull to obtain a fifth polygon, and then the fifth polygon is optimized to obtain a sixth polygon formed by the outer wall line, and the representation data of the sixth polygon is the first representation data of the outer wall line.

[0138] In some embodiments, the third polygon obtained may have some uneven situations, which makes the effect of the CAD drawing poor. The optimization of the third polygon can achieve better results. For example, when there are some short and small line segments on the third polygon, the short and small line segments can be flattened with adjacent side lines, as shown in FIG. 7A; or when the angle between adjacent side lines on the third polygon is less than a certain threshold, the adjacent side lines can be flattened into a side line, as shown in FIG. 7B. Figure 3 Figure 4 In the present implementation, the third polygon is optimized to obtain a better outer wall line polygon, and then more accurate first representation data is obtained. ​

[0139] In some embodiments, if the third polygons are more than two, the third polygons can be taken in union, and then the polygon after the union can be subjected to convex hull processing to obtain a fifth polygon. The fifth polygon can be subjected to optimization to make it smooth, and a good result can be achieved.

[0140] In this embodiment, the convex hull processing performed on the polygon refers to an operation of finding a minimum convex polygon containing all the vertices of the original polygon (the polygon after the union in the present disclosure).

[0141] In some embodiments, after the polygon is subjected to the optimization processing, the representation data of the optimized polygon can be determined as the first representation data of the outer wall line.

[0142] Through the steps 201-204, the representation data of the outer wall line is determined based on the second representation data of the inner wall line. The outer wall line profile obtained through the outward expansion and inward contraction processing of the polygon of the inner wall line and the further optimization of the polygon of the outer wall line is smooth, which is beneficial to improving the effect of the subsequent CAD drawing.

[0143] Figure 5 A flowchart for determining the position of the wall attachment in the method for generating a design drawing provided by an exemplary embodiment of the present disclosure is shown in the figure. This embodiment takes how to determine the position of the wall attachment as an example for illustrative purposes, as shown in the figure, comprising the following steps: Figure 5

[0144] In step 501, based on two end points, a line segment with a set value in the direction perpendicular to the inner wall line and / or the outer wall line is made.

[0145] In this embodiment, for each wall attachment, the corresponding third representation data can include the coordinates of the two end points of the wall attachment. Two line segments with a set value can be made outwardly from the inner wall line and the outer wall line along the perpendicular direction of the wall line through the two end points, respectively. Alternatively, a center point of the two end points of the wall attachment can be determined first, and then two line segments with a set value can be made outwardly from the inner wall line and the outer wall line along the perpendicular direction of the wall line through the center point. The set value can be determined based on the thickness of the wall attachment. For example, the thickness of a window usually does not exceed the thickness of the wall, and therefore the size of the set value cannot exceed the representation value of the window thickness in the CAD drawing.

[0146] In step 502, based on the intersection of the line segment and the inner wall line and / or the outer wall line, the positional relationship between the wall attachment and the inner wall or the outer wall is determined.

[0147] ​In some embodiments, if the drawn line segment intersects with the outer wall line but not the inner wall line, it can be determined that the wall attachment is located on the outer wall; if the drawn line segment intersects with the inner wall line but not the outer wall line, it can be determined that the wall attachment is located on the inner wall.

[0148] In some optional embodiments, whether the adjacent windows are a continuous window can also be determined according to the distance between the windows, for example, two windows located on two adjacent walls can be a window in L shape, see Figure 9 wherein the two windows with the label 91 and the label 92 are determined as a complete continuous window because the distance is 0, and the window can be adjusted as a continuous L-shaped window. In this embodiment, the display effect and accuracy of the wall attachment can be further improved.

[0149] Through the steps 501-502, the positions of the wall attachments can be calculated, and the wall attachments can be further grouped and integrated, which provides a good solution for improving the accuracy of the wall attachments in the subsequently generated CAD diagram.

[0150] Figure 6 A flowchart for determining the display area of the scale data in the design diagram generation method of an exemplary embodiment of the present disclosure is provided; this embodiment takes how to determine the display area of the scale data as an example for illustrative purposes.

[0151] In step 601, each data in the inner scale data is abstracted as a component to obtain at least two components.

[0152] In the present disclosure, each data in the inner scale data can be abstracted as a component according to different granularities. In some embodiments, the object can be abstracted as a component according to the granularity, for example, the scale data of each wall attachment is abstracted as a component, such as the width, height and ground clearance of the window 1 are abstracted as a component 1; the width, height and ground clearance of the window 2 are abstracted as a component 2; the length, width and area information of the room 1 are abstracted as a component 3, etc. In other embodiments, a smaller granularity can also be used, such as a text or a legend, for example, the width of the window 1 is abstracted as a component 1, the height of the window 1 is abstracted as a component 2, and the ground clearance of the window 1 is abstracted as a component 3. The present disclosure does not limit the granularity of abstracting each data in the inner scale data as a component.

[0153] In step 602, the display area of each component is determined in sequence, wherein the display area of each component does not overlap with the occupied space area, and the occupied space area includes the space area occupied by the data in the determined display area.

[0154] In the present disclosure, sequentially determining the display region of each component can be understood as determining the display region of each component one by one, and the display region of each component does not overlap with the occupied space region.

[0155] In some embodiments, the manner of determining the display region of each component can refer to Figure 7 The embodiment is not described in detail here.

[0156] Through steps 601-602, the display region of each component can be determined by abstracting each data in the inner scale data as a component, and the display region of each component does not collide, which helps to improve the display effect of the CAD drawing.

[0157] Figure 7 The flowchart for determining the display region of each component in the design drawing generation method provided by an exemplary embodiment of the present disclosure is shown; the present embodiment takes how to determine the display region of each component as an example for illustrative description, as shown in Figure 7 The embodiment is not described in detail here.

[0158] In step 701, an occupied space region is created, and the initial value of the occupied space region is empty.

[0159] The occupied space region is used to indicate the space region occupied by the components whose display regions have been determined, and the initial value thereof is empty, that is, before the display region of any component is determined, the occupied space region is empty.

[0160] In step 702, a target component whose display region is to be determined is selected from at least two components.

[0161] In some embodiments, at least two components obtained by abstracting the inner scale data can be added in a component list in advance, and the target component whose display region is to be determined can be selected by traversing the component list.

[0162] It can be understood that the components in the component list can be sorted according to a spatial order, for example, the wall attachments can be added in the component list according to the clockwise order on the wall, so that the display region of each component can be determined according to a certain order, for example, according to the clockwise direction, window 1 is located in front of window 2, so that the display region of window 1 can be determined first, and then the display region of window 2 can be determined.

[0163] In step 703, the overlap state between the initial occupied region of the target component and the occupied space region is determined.

[0164] In the present disclosure, the initial occupancy area is the original occupancy area generated when the interior scale data is abstracted to obtain the component. The initial occupancy area of each component is usually related to the position of the wall attachment corresponding to the component, for example, the initial occupancy area corresponding to the component of the scale data of window 1 is located below the position of window 1, the initial occupancy area corresponding to the component of the scale data of room 1 is located in the middle of room 1, and the like.

[0165] The initial occupancy area can be represented according to the information such as the area center point, width, and height. The occupied space area can be composed of multiple discontinuous occupancy areas, for example, the occupied space area includes display area 1 of the component corresponding to the scale data of window 1 and display area 2 of the component corresponding to the scale data of window 2, and the two display areas can be two isolated space areas, and the representation information (area center point, width, and height) of the two display areas can be recorded.

[0166] According to the representation information of the initial occupancy area and the representation information of the occupied space area, it can be determined whether there is an overlap between the two, and the overlapping area can be further determined.

[0167] Further, when the overlap state indicates no overlap, step 704 can be performed; further, when the overlap state indicates overlap, step 705 can be performed.

[0168] In step 704, in response to the overlap state indicating no overlap, the initial occupancy area of the target component is determined as the display area of the target component, and the initial occupancy area is added to the occupied space area.

[0169] The above step 702 is iteratively performed until the display area of all components is determined, that is, the display area of all interior scale data is determined.

[0170] In step 705, in response to the overlap state indicating overlap, the display area of the target component is adjusted until it is not overlapped with the occupied space area, and the initial occupancy area is added to the occupied space area.

[0171] In some embodiments, when the initial occupancy area of the target component overlaps with the occupied space area, a plurality of candidate components can be sequentially defined based on a fixed step length, and the occupancy areas of all candidate components can be combined to form a large auxiliary occupancy area. The difference set between the auxiliary occupancy area and the occupied area can be determined, that is, the area that will not cause overlap can be obtained, and the display area of the target component can be adjusted to the area that will not cause overlap.

[0172] In another embodiment, the target component can also be moved from the initial occupancy area to the opposite direction of the overlapping part until the occupied space area no longer overlaps, and the display area of the target component can be obtained.

[0173] After determining the display area of ​​the target component, the display area can be added to the occupied space area to obtain the updated occupied space area.

[0174] Iterate through step 702 until all components have determined their display areas, that is, all internal ruler data have determined their display areas, and the display areas of all internal ruler data do not collide.

[0175] Steps 701 to 705 above construct the occupied space area and iteratively determine the display area of ​​each component based on the occupied space area, which can realize anti-collision display of all internal scale data and improve the display effect of CAD drawings.

[0176] Corresponding to the embodiments of the aforementioned design drawing generation method, this disclosure also provides embodiments of the design drawing generation apparatus.

[0177] Exemplary apparatus

[0178] Figure 10 This is a schematic diagram of one embodiment of the apparatus for generating design drawings according to the present disclosure. This apparatus is used in electronic devices (such as computer systems, servers), such as... Figure 10 As shown, the device includes:

[0179] The first generation module 11 is used to generate first characterization data of the outer wall line based on the inner wall line vector data of the target house. The inner wall line vector data includes second characterization data of the inner wall line and third characterization data of the wall attachments.

[0180] The first determining module 12 is used to determine the positional relationship between the wall attachment and the inner and outer walls, as well as the scale data, based on the first characterization data, the second characterization data and the third characterization data. The scale data includes the outer scale data and the inner scale data.

[0181] The second determining module 13 is used to determine the display area of ​​each data in the inner ruler data, wherein the display areas of each data in the inner ruler data do not overlap.

[0182] The second generation module 14 is used to generate a design drawing of the target house based on the first representation data, the second representation data, the positional relationship, the scale data, and the display area.

[0183] Figure 11 This is a schematic diagram of the structure of another embodiment of the apparatus for generating design drawings of this disclosure, as shown below. Figure 11 As shown, in Figure 10 Based on the illustrated embodiment, in one embodiment, the first generation module 11 includes:

[0184] The first determining submodule 111 is configured to determine at least one first polygon formed by the inner wall line based on the second feature data of the inner wall line.

[0185] The outward expanding submodule 112 is configured to outwardly expand the at least one first polygon by a first distance respectively to obtain at least one second polygon.

[0186] The inward shrinking submodule 113 is configured to inwardly shrink the at least one second polygon by a second distance respectively to obtain at least one third polygon, and a difference between the first distance and the second distance is a feature value of the outer wall thickness.

[0187] The first generating submodule 114 is configured to generate the first feature data of the outer wall line based on the at least one third polygon.

[0188] In an embodiment, the first generating submodule 114 includes:

[0189] The first optimization unit 1141 is configured to, in response to the number of the third polygons being one, perform optimization processing on the third polygon to obtain a fourth polygon formed by the outer wall line, and feature data of the fourth polygon is the first feature data of the outer wall line.

[0190] The processing unit 1142 is configured to, in response to the number of the third polygons being more than two, perform set union and convex hull processing on the at least one third polygon in sequence to obtain a fifth polygon.

[0191] The second optimization unit 1143 is configured to perform optimization processing on the fifth polygon to obtain a sixth polygon formed by the outer wall line, and feature data of the sixth polygon is the first feature data of the outer wall line.

[0192] In an embodiment, the third feature data includes two end points of a line segment on which the wall attachment is located.

[0193] The first determining module 12 includes:

[0194] The second generating submodule 121 is configured to, based on the two end points, draw a line segment with a set value in a direction perpendicular to the inner wall line and / or the outer wall line.

[0195] The second determining submodule 122 is configured to determine a positional relationship between the wall attachment and the inner wall or the outer wall based on an intersection point of the line segment and the inner wall line and / or the outer wall line.

[0196] In an embodiment, the first determining module 12 includes:

[0197] The projection submodule 123 is configured to, based on a positional relationship between each end point in the first feature data, the second feature data and the third feature data and a center point of the target house, project in a closest direction to obtain an intersection point with a three-layer scale line to generate outer scale data.

[0198] The third generation sub-module 124 is configured to generate the internal scale data based on the size information of the wall attachments in the third representation data and the size information of each room of the target house.

[0199] In an embodiment, the second determination module 13 comprises:

[0200] The abstraction sub-module 131 is configured to abstract each data in the internal scale data into a component respectively, to obtain at least two components.

[0201] The third determination sub-module 132 is configured to determine the display area of each component in sequence, wherein the display area of each component does not overlap with the occupied space area, and the occupied space area comprises the space area occupied by the data of the determined display area.

[0202] In an embodiment, the third determination sub-module 132 comprises:

[0203] The creation unit 1321 is configured to create an occupied space area, and the initial value of the occupied space area is empty.

[0204] The selection unit 1322 is configured to select a target component of the to-be-determined display area from the at least two components.

[0205] The first determination unit 1323 is configured to determine the overlapping state of the initial occupied area of the target component and the occupied space area.

[0206] The second determination unit 1324 is configured to, in response to the overlapping state indicating no overlapping, determine the initial occupied area of the target component as the display area of the target component, and add the initial occupied area to the occupied space area.

[0207] The adjustment unit 1325 is configured to, in response to the overlapping state indicating overlapping, adjust the display area of the target component until the display area of the target component does not overlap with the occupied space area, and add the adjusted display area of the target component to the occupied space area.

[0208] The iteration unit 1326 is configured to iteratively perform the operation of selecting the target component of the to-be-determined display area from the at least two components, until the display area of each component is determined.

[0209] The modules and units in the device of the present disclosure can also be divided into more granularities according to actual needs, and the specific implementation can be set according to actual needs.

[0210] The device of the embodiments of the present disclosure can be used to implement the methods of the above-mentioned embodiments of the present disclosure, and the specific implementations of the two are mutually corresponding, and the specific implementations of the related parts are mutually referred to, which will not be described here.

[0211] Exemplary electronic device, computer program product, and computer-readable storage medium

[0212] The embodiments of the present disclosure further provide an electronic device, comprising a memory for storing a computer program; and a processor for executing the computer program stored in the memory, and when the computer program is executed, the design drawing generation method of any of the above-mentioned embodiments of the present disclosure is implemented.

[0213] Hereinafter, the electronic device according to the embodiments of the present disclosure will be described with reference to the accompanying drawings. Figure 12 The electronic device can integrate the apparatuses implementing the method of the embodiments of the present disclosure. Figure 12 The structural diagram of the electronic device provided for an illustrative embodiment of the present disclosure is shown in FIG. 1. Figure 12 As shown in FIG. 1, the electronic device comprises one or more processors 121, a memory 122 of one or more computer readable storage media, and a computer program stored on the memory and executable on the processor. When the program of the memory 122 is executed, the design drawing generation method described above can be implemented.

[0214] Specifically, in actual application, the electronic device can further comprise input devices 123, output devices 124 and the like, and these components are interconnected through a bus system and / or other forms of connection mechanism (not shown). Those skilled in the art can understand that Figure 12 The structure of the electronic device shown in FIG. 1 does not constitute a limitation on the electronic device, and can comprise more or fewer components than shown, or certain components, or different arrangement of components.

[0215] Among them:

[0216] The processor 121 can be a central processing unit (CPU) or other forms of processing units with design drawing generation capability and / or instruction execution capability, which performs various functions and processes data by running or executing software programs and / or modules stored in the memory 122 and calling data stored in the memory 122, thereby monitoring the whole electronic device.

[0217] The memory 122 can comprise one or more computer program products, which can comprise various forms of computer readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory can comprise, for example, random access memory (RAM), cache memory and the like. The non-volatile memory can comprise, for example, read-only memory (ROM), hard disk, flash memory and the like. One or more computer program instructions can be stored on the computer readable storage medium, and the processor 121 can run the program instructions to implement the design drawing generation method of the above-mentioned embodiments of the present disclosure and / or other desired functions. Various contents such as input signals, signal components, noise components and the like can also be stored in the computer readable storage medium.

[0218] The input device 123 can be used to receive input of digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.

[0219] The output device 124 can output various information to the outside, including determined distance information, direction information, etc. The output device 124 can include, for example, a display, a speaker, a printer, and a communication network and a remote output device connected thereto, etc.

[0220] The electronic device can further include a power supply to supply power to each of the components, and can be logically connected to the processor 121 through a power management system, so that the power management system can perform functions of managing charging, discharging, and power consumption management, etc. The power supply can also include one or more direct or alternating power sources, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, etc.

[0221] Of course, in order to simplify, Figure 12 Only some of the components of the electronic device related to the present disclosure are shown in the middle, and components such as buses, input / output interfaces, etc. are omitted. In addition, the electronic device can further include any other appropriate components according to specific application cases.

[0222] In addition to the above-mentioned methods and devices, embodiments of the present disclosure can also be a computer program product, which includes computer program instructions that make the processor execute the steps of the design drawing generation method according to various embodiments of the present disclosure described in the above "Exemplary Methods" section of the specification when the processor runs.

[0223] The computer program product can be written in any combination of one or more programming languages to perform the operations of the embodiments of the present disclosure, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, as an independent software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.

[0224] In addition, the embodiments of the present disclosure can also be a computer readable storage medium having computer program instructions stored thereon, which make the processor execute the steps of the design drawing generation method according to various embodiments of the present disclosure described in the above "Exemplary Methods" section of the specification when the processor runs.

[0225] The computer readable storage medium can be a combination of one or more computer readable media. The computer readable media can be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium can include, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium include an electrical connection having one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0226] The above describes the basic principles of the present disclosure in combination with specific embodiments, but it should be noted that the advantages, benefits, effects and the like mentioned in the present disclosure are only examples and are not limiting, and these advantages, benefits, effects and the like cannot be considered as necessary for each embodiment of the present disclosure. In addition, the above specific details of the disclosure are only for the purpose of example and for the purpose of understanding, and are not limiting, and the above details do not limit the present disclosure to be necessarily implemented with the above specific details.

[0227] Each embodiment in the specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between each embodiment can be mutually referred to. For system embodiments, since they basically correspond to method embodiments, the description is relatively simple, and the relevant parts can be referred to the part of the method embodiment.

[0228] Those skilled in the art can understand that all or part of the steps of the above-mentioned method embodiments can be completed by program instruction related hardware, and the foregoing program can be stored in a computer readable storage medium. The program executes the steps of the method embodiments when executed; and the foregoing storage medium includes ROM, RAM, magnetic disk or optical disk and various storage medium that can store program codes.

[0229] The methods and apparatuses of the present disclosure can be implemented in many ways. For example, the methods and apparatuses of the present disclosure can be implemented by software, hardware, firmware, or any combination of software, hardware, and firmware. The above order of steps for the method is only for illustration, and the steps of the method of the present disclosure are not limited to the above specific description. Unless otherwise specifically stated, the steps of the method of the present disclosure are not limited to the above specific description. In addition, in some embodiments, the present disclosure can also be implemented as a program recorded in a recording medium, which includes machine readable instructions for implementing the method according to the present disclosure. Therefore, the present disclosure also covers the recording medium storing the program for executing the method according to the present disclosure.

[0230] The description of the present disclosure is given for illustrative and descriptive purposes, and is not exhaustive or limited to the forms disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art. The embodiments are chosen and described in order to best explain the principles of the present disclosure and its practical application, and to thereby enable others skilled in the art to best utilize the present disclosure for various embodiments with various modifications as are suited to the particular use contemplated.

Claims

1. A method of generating a design drawing, characterized by, The method comprises the following steps: generating first representation data of outer wall lines based on inner wall line vector data of a target house, the inner wall line vector data comprising second representation data of inner wall lines and third representation data of wall attachments, the first representation data comprising starting point coordinates and ending point coordinates of outer wall lines corresponding to each wall and line data of the outer wall lines; determining the position relationship between the wall attachments and the inner and outer walls and scale data based on the first representation data, the second representation data and the third representation data, the scale data comprising outer scale data and inner scale data; determining display areas of each data in the inner scale data, wherein the display areas of each data in the inner scale data do not overlap with each other; generating a design drawing of the target house based on the first representation data, the second representation data, the position relationship, the scale data and the display areas; the method of generating first representation data of outer wall lines based on inner wall line vector data of a target house comprises the following steps: determining at least one first polygon formed by the inner wall lines based on the second representation data of the inner wall lines; extending each of the at least one first polygon outward by a first distance to obtain at least one second polygon; shrinking each of the at least one second polygon inward by a second distance to obtain at least one third polygon, wherein the difference between the first distance and the second distance is an outer wall thickness representation value; generating the first representation data of the outer wall lines based on the at least one third polygon.

2. The method of claim 1, wherein, the method of generating the first representation data of the outer wall lines based on the at least one third polygon comprises the following steps: in response to the number of the third polygons being one, performing optimization processing on the third polygon to obtain a fourth polygon formed by the outer wall lines, wherein the representation data of the fourth polygon is the first representation data of the outer wall lines; in response to the number of the third polygons being more than two, performing set union and convex hull processing on the at least one third polygon in sequence to obtain a fifth polygon; performing optimization processing on the fifth polygon to obtain a sixth polygon formed by the outer wall lines, wherein the representation data of the sixth polygon is the first representation data of the outer wall lines.

3. The method according to any of claims 1-2, characterized by, the third representation data comprises two end points of a line segment on which the wall attachment is located; the method of determining the position relationship between the wall attachments and the inner and outer walls based on the first representation data, the second representation data and the third representation data comprises the following steps: based on the two end points, a line segment with a set length is drawn in a direction perpendicular to the inner wall line and / or the outer wall line; based on the intersection of the line segment and the inner wall line and / or the outer wall line, the position relationship between the wall attachment and the inner wall or the outer wall is determined.

4. The method according to any of claims 1-2, characterized by, the method of determining scale data based on the first representation data, the second representation data and the third representation data comprises the following steps: based on the position relationship between each end point in the first representation data, the second representation data and the third representation data and the center point of the target house, projection is made in the direction closest to the target house to obtain intersection points with three-layer scale lines to generate outer scale data; and, Generate the internal scale data based on size information of the wall attachments in the third representation data and size information of each room of the target house.

5. The method according to any of claims 1-2, characterized by, The determining of the display area of each data in the internal scale data comprises: Abstract each data in the internal scale data into a component respectively to obtain at least two components; Determine the display area of each component in sequence, wherein the display area of each component does not overlap with an occupied space area, and the occupied space area comprises a space area occupied by the data of the determined display area.

6. The method of claim 5, wherein, The determining of the display area of each component in sequence comprises: Create an occupied space area, and an initial value of the occupied space area is empty; Select a target component from the at least two components, wherein the target component is a component whose display area is to be determined; Determine an overlapping state of an initial occupied area of the target component and the occupied space area; In response to the overlapping state indicating no overlapping, determine the initial occupied area of the target component as the display area of the target component, and add the initial occupied area to the occupied space area; In response to the overlapping state indicating overlapping, adjust the display area of the target component until the display area of the target component does not overlap with the occupied space area, and add the adjusted display area of the target component to the occupied space area; Iteratively perform the operation of selecting a target component from the at least two components until the display area of each component in the at least two components is determined.

7. A design pattern generation apparatus characterized by comprising: Comprise: The first generation module is used for generating first representation data of external wall lines based on internal wall line vector data of a target house, the internal wall line vector data comprises second representation data of internal wall lines and third representation data of wall attachments, and the first representation data comprises starting point coordinates and ending point coordinates of external wall lines corresponding to each wall and line data of the external wall lines; The first determination module is used for determining a position relationship between the wall attachments and the internal wall and external wall and scale data based on the first representation data, the second representation data and the third representation data, and the scale data comprises external scale data and internal scale data; The second determination module is used for determining display areas of each data in the internal scale data, wherein the display areas of each data in the internal scale data do not overlap with each other; The second generation module is used for generating a design drawing of the target house based on the first representation data, the second representation data, the position relationship, the scale data and the display areas. The first generation module comprises: The first determination submodule is used for determining at least one first polygon formed by the internal wall lines based on the second representation data of the internal wall lines; The outward expansion submodule is used for outwardly expanding at least one first polygon by a first distance respectively to obtain at least one second polygon; The inward contraction submodule is used for inwardly contracting at least one second polygon by a second distance respectively to obtain at least one third polygon, and a difference between the first distance and the second distance is an external wall thickness representation value; The first generation submodule is used for generating the first representation data of the external wall lines based on at least one third polygon.

8. A computer readable storage medium, the storage medium having stored thereon computer program instructions which, when executed, implement the method of any of claims 1-6.

9. An electronic device, the electronic device comprising: a memory for storing a computer program product; a processor for executing the computer program product stored in the memory, and the computer program product, when executed, implements the method of any of claims 1-6.

Citation Information

Patent Citations

  • Room wall drawing method and device

    CN110782505A

  • House type drawing method and system based on HTML5

    CN111008414A