Method for generating construction index map based on dividing wall surface based on internal viewpoint and computer readable storage medium
By automatically generating construction index drawings based on internal viewpoints, the problem of difficulty and time-consuming drawing of construction drawings is solved, and the rapid and accurate generation of construction drawings is achieved.
Patent Information
- Application Number
- CN202111599736.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-24
- Publication Date
- 2025-02-25
- Estimated Expiration
- 2041-12-24
AI Technical Summary
In the prior art, it is difficult and time-consuming to draw construction drawings by hand, making it difficult for home decoration designers to quickly build construction drawings that meet the needs of construction workers.
Using the construction index diagram generation method of partitioning the wall based on the inner viewpoint, by obtaining the plan data of the home decoration renderings, selecting the inner viewpoint in the room, splitting the wall into four groups, generating four wall drawings, and combining them with Ground data generates ground drawings, and calculates the scaling ratio to automatically generate construction index drawings.
The automatic generation of construction index drawings is achieved, which reduces the workload of designers, and the generated drawings are effective, meet the needs of construction workers, and avoids the cumbersome and errors of manual drawing.
Smart Images

Figure CN114417460B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of home decoration design technology, and specifically relates to a method for generating a construction index map for dividing a wall surface based on an inner viewpoint and a computer-readable storage medium. Background Art
[0002] Construction index drawings (construction drawings) are drawings that show the overall layout of the project, the external shape of buildings and structures, internal layout, structural construction, internal and external decoration, material methods, equipment, construction and other requirements. Construction drawings are characterized by complete drawings, accurate expression and specific requirements. They are the basis for engineering construction, preparation of construction drawing budgets and construction organization design, and are also important technical documents for technical management.
[0003] In actual home improvement scenarios, construction workers usually use construction drawings to carry out on-site construction. The construction drawings used in this process are an important step in bringing home improvement design from design to implementation. At present, home improvement designers usually use software such as 3Dmax to draw home improvement renderings, and then use CAD (Computer Aided Design) to draw construction drawings. However, manual drawing of construction drawings is not only difficult but also time-consuming and laborious. Therefore, based on the existing home improvement renderings, quickly building construction drawings that meet the needs of construction workers has become a core pain point in the market. Summary of the invention
[0004] The purpose of the present application is to provide a method for generating a construction index map based on inner viewpoint-based wall division and a computer-readable storage medium, which can automatically generate a construction index map with good generation effect.
[0005] In order to achieve the above purpose, the technical solution adopted by this application is:
[0006] A method for generating a construction index map based on dividing a wall surface based on an inner viewpoint, the method comprising:
[0007] Obtain the plan data of the home decoration renderings to be processed;
[0008] Select a point in the room as the internal viewpoint according to the plan data;
[0009] Divide the walls of the room into four groups based on the internal viewpoint, and obtain four wall drawings;
[0010] Acquire the floor data of the room according to the plan data to generate a floor drawing, and project the selected internal viewpoint onto the floor drawing to obtain an internal viewpoint drawing;
[0011] Divide the drawing area of the construction index drawing into two or three sub-areas along the longitudinal direction;
[0012] The ground and wall scaling ratios are calculated in a distribution manner in which the ground drawings and the inner viewpoint drawings are arranged horizontally in the top area, and the four wall drawings are set in the remaining sub-areas;
[0013] Scale the ground drawings and internal viewpoint drawings according to the ground scaling ratio and place them in the top area; scale the four wall drawings according to the wall scaling ratio and place them in the remaining areas to complete the generation of the construction index drawing.
[0014] Several optional methods are also provided below, but they are not intended to be additional limitations on the above-mentioned overall solution, but are merely further supplements or preferences. Under the premise that there are no technical or logical contradictions, each optional method can be combined with the above-mentioned overall solution separately, and multiple optional methods can also be combined.
[0015] Preferably, the wall of the room is divided into four groups based on the inner viewpoint to obtain four wall drawings, including:
[0016] Generate the minimum circumscribed rectangle of the floor of the room, connect the inner viewpoint with the four vertices of the minimum circumscribed rectangle, and divide the room into four areas;
[0017] For each wall, take the line connecting the geometric center of gravity of the wall and the internal viewpoint, and generate the first vector from the geometric center of gravity of the wall to the internal viewpoint;
[0018] Take the normal of the wall facing the interior of the room as the second vector;
[0019] If the dot product of the first vector and the second vector of the wall is greater than 0, the area containing any part of the wall is set as the visible perspective of the wall;
[0020] Take any wall among all the walls, and take the area corresponding to any visible viewing angle of the wall as the area to which the wall belongs;
[0021] Based on the determined wall surface, determine the area to which the next wall surface belongs in a clockwise or counterclockwise direction.
[0022] Divide all walls into four groups according to the area to which each wall belongs, and connect adjacent walls in each group in a clockwise or counterclockwise direction to obtain four wall drawings.
[0023] Preferably, based on the determined wall surface of the region, determining the region to which the next wall surface belongs in sequence in a clockwise or counterclockwise direction includes:
[0024] The wall of the determined area is taken as the reference wall, and the wall adjacent to the reference wall in a clockwise or counterclockwise direction is taken as the wall to be determined;
[0025] If the area corresponding to the visible viewing angle of the wall to be determined includes the area to which the reference wall belongs, the area to which the wall to be determined belongs is set to be the same as the area to which the reference wall belongs; otherwise, the area to which the wall to be determined belongs is determined according to the existing split groups and the visible viewing angle of the wall to be determined;
[0026] The wall to be determined after the area to which it belongs is determined is used as a reference wall, and a new wall to be determined is taken and the process is repeated until the area to which each wall belongs is determined.
[0027] Preferably, the step of determining the area to which the wall belongs according to the visible viewing angle of the existing split groups and the wall to be determined includes:
[0028] Take the existing split groups. If the split groups are one or two groups, then find the intersection of the four areas and the area corresponding to the visible viewing angle of the wall to be determined; if the split groups are three groups, then take the two end groups of the split groups and the unsplit groups to get three pending groups, and find the intersection of the areas corresponding to the three pending groups and the area corresponding to the visible viewing angle of the wall to be determined; if the split groups are four groups, then take the intersection of the areas corresponding to the two end groups of the split groups and the area corresponding to the visible viewing angle of the wall to be determined;
[0029] If the intersection contains zero areas, the area to which the reference wall belongs is taken as the area to which the wall to be determined belongs. If the intersection contains only one area, this area is taken as the area to which the wall to be determined belongs. If the intersection contains multiple areas, the front area is taken as the area to which the wall to be determined belongs in the order of the areas.
[0030] Preferably, if after the determination of the region to which each wall belongs, there is a region not containing a wall, a wall is divided from an adjacent region of the region not containing a wall into the region not containing a wall.
[0031] Preferably, the drawing area of the construction index map is divided into two or three sub-areas along the longitudinal direction, including:
[0032] If the ratio of the total length of the wall in the room to the wall height is greater than the segmentation threshold, the drawing area of the construction index diagram is divided into three sub-areas with equal spacing along the longitudinal direction; otherwise, the drawing area of the construction index diagram is divided into two sub-areas with equal spacing along the longitudinal direction.
[0033] Preferably, the calculation of the ground scaling ratio comprises:
[0034] Calculate the horizontal scaling ratio of the ground:
[0035]
[0036] Where scale_gl is the horizontal scaling ratio of the ground, ∑l_gl is the sum of the maximum horizontal lengths of the room type corresponding to the ground drawing and the inner viewpoint drawing, L_gl is the horizontal length of the top area, d1_gl is the distance between the rightmost annotation of the ground drawing and the leftmost annotation of the inner viewpoint drawing, ∑d2_gl is the sum of the distance between the leftmost annotation and the left limit of the top area in the horizontal direction in the top area plus the distance between the rightmost annotation and the right limit of the top area, ∑d3_gl is the sum of the widths of all annotations in the horizontal direction in the top area;
[0037] Calculate the ground vertical scaling ratio:
[0038]
[0039] Where scale_gw is the vertical scaling ratio of the ground, w_gw is the maximum vertical width of the room type, W_gw is the vertical width of the top area, ∑d1_gw is the sum of the widths of all the annotations set in the top area along the vertical direction, and ∑d2_gw is the sum of the distance between the topmost annotation and the upper limit of the top area and the distance between the bottommost annotation and the lower limit of the top area.
[0040] The larger one of the ground horizontal scaling ratio scale_gl and the ground vertical scaling ratio scale_gw is taken as the calculated ground scaling ratio.
[0041] Preferably, the calculation of the wall scaling ratio includes:
[0042] If the drawing area of the construction index drawing is divided into two sub-areas along the vertical direction, the area at the top along the vertical direction is the top sub-area, and the area at the bottom along the vertical direction is the first bottom sub-area. The wall scaling ratio is calculated in the distribution mode of four wall drawings arranged horizontally in the first bottom sub-area as follows:
[0043] Calculate the horizontal scaling ratio of the wall:
[0044]
[0045] Wherein, scale_wl1 is the horizontal scaling ratio of the wall, ∑l_wl1 is the sum of the horizontal lengths of all walls, L_wl1 is the horizontal length of the first bottom area, ∑d1_wl1 is the sum of the horizontal spacings between the four wall drawings, ∑d2_wl1 is the sum of the spacings between the leftmost annotation in the first bottom area and the left border of the first bottom area plus the spacing between the right border of the wall drawing at the rightmost end and the right border of the first bottom area, ∑d3_wl1 is the sum of the widths of all annotations set in the first bottom area along the horizontal direction;
[0046] Calculate the vertical scaling ratio of the wall:
[0047]
[0048] Wherein, scale_ww1 is the longitudinal scaling ratio of the wall, w_ww1 is the maximum longitudinal width of the wall, W_ww1 is the longitudinal width of the first bottom region, ∑d1_ww1 is the sum of the widths of all the annotations arranged in the first bottom region in the longitudinal direction, ∑d2_wl1 is the sum of the distance between the topmost annotation arranged in the first bottom region in the longitudinal direction and the upper limit of the first bottom region plus the distance between the bottommost annotation and the lower limit of the first bottom region;
[0049] The larger value of the wall horizontal scaling ratio scale_wl1 and the wall vertical scaling ratio scale_ww1 is taken as the calculated wall scaling ratio.
[0050] Preferably, the calculation of the wall scaling ratio includes:
[0051] If the drawing area of the construction index diagram is divided into three sub-areas along the longitudinal direction, the area at the top along the longitudinal direction is the top sub-area, the area in the middle along the longitudinal direction is the middle sub-area, and the area at the bottom along the longitudinal direction is the second bottom sub-area;
[0052] Method 1: The wall scaling ratio is calculated by setting the first wall drawing of the four wall drawings in the middle area and the last three wall drawings horizontally arranged in the second bottom area as follows:
[0053] Calculate the horizontal scaling ratio of the wall in some areas:
[0054]
[0055] Wherein, scale_wl21 is the horizontal scaling ratio of the wall in the middle area of the method, ∑l_wl21 is the sum of the horizontal lengths of all walls corresponding to the first wall drawing, L_wl21 is the horizontal length of the middle area, ∑d2_wl21 is the sum of the distance between the leftmost annotation in the middle area and the left border of the middle area plus the distance between the right border of the first wall drawing and the right border of the middle area, ∑d3_wl21 is the sum of the widths of all annotations set in the middle area along the horizontal direction;
[0056] The vertical scaling ratio of the wall in the calculation area is:
[0057]
[0058] Wherein, scale_ww21 is the vertical scaling ratio of the wall in the middle area of the method, w_ww21 is the maximum width of all walls corresponding to the first wall drawing in the vertical direction, W_ww21 is the vertical width of the middle area, ∑d1_ww21 is the sum of the widths of all annotations set in the middle area along the vertical direction, ∑d2_wl21 is the sum of the distance between the top annotation and the upper limit of the middle area set in the vertical direction in the middle area plus the distance between the bottom annotation and the lower limit of the middle area;
[0059] Take the larger value of the horizontal scaling ratio scale_wl21 of the wall in the middle part of the method below and the vertical scaling ratio scale_ww21 of the wall in the middle part of the method below as the calculated scaling ratio of the wall in the middle part of the method below;
[0060] Calculate the horizontal scaling ratio of the wall in the second bottom area:
[0061]
[0062] Wherein, scale_wl22 is the horizontal scaling ratio of the wall in the second bottom area, ∑l_wl22 is the sum of the horizontal lengths of all walls corresponding to the last three wall drawings, L_wl22 is the horizontal length of the second bottom area, ∑d1_wl22 is the sum of the horizontal spacings between the three wall drawings, ∑d2_wl22 is the sum of the spacings between the leftmost annotation in the second bottom area and the left border of the second bottom area plus the spacings between the right border of the wall drawing at the rightmost end and the right border of the second bottom area, ∑d3_wl22 is the sum of the widths of all annotations set in the second bottom area in the horizontal direction;
[0063] Calculate the vertical scaling ratio of the wall in the second bottom area:
[0064]
[0065] Wherein, scale_ww22 is the vertical scaling ratio of the wall in the second bottom area, w_ww22 is the maximum vertical width of all walls corresponding to the last three wall drawings, W_ww22 is the vertical width of the second bottom area, ∑d1_ww22 is the sum of the widths of all annotations set in the second bottom area along the vertical direction, ∑d2_wl22 is the sum of the spacing between the top annotation and the upper boundary of the second bottom area set in the vertical direction in the second bottom area plus the spacing between the bottom annotation and the lower boundary of the second bottom area;
[0066] Take the larger one of the horizontal scaling ratio scale_wl22 of the wall in the second bottom area in the method and the vertical scaling ratio scale_ww22 of the wall in the second bottom area in the method as the calculated scaling ratio of the wall in the second bottom area in the method;
[0067] Method 2: The wall scaling ratio is calculated by arranging the first two wall drawings in the middle area horizontally and the last two wall drawings in the second bottom area horizontally as follows:
[0068] Calculate the horizontal scaling ratio of the wall in some areas:
[0069]
[0070] Wherein, scale_wl31 is the horizontal scaling ratio of the wall in the middle area under mode 2, ∑l_wl31 is the sum of the horizontal lengths of all walls corresponding to the first two wall drawings, L_wl31 is the horizontal length of the middle area, ∑d1_wl31 is the sum of the horizontal spacings between the first two wall drawings, ∑d2_wl31 is the sum of the spacings between the leftmost annotation in the middle area and the left border of the middle area plus the spacings between the right border of the wall drawing at the rightmost end and the right border of the middle area, ∑d3_wl31 is the sum of the widths of all annotations set in the middle area along the horizontal direction;
[0071] The vertical scaling ratio of the wall in the calculation area is:
[0072]
[0073] Wherein, scale_ww31 is the vertical scaling ratio of the wall in the middle area under mode 2, w_ww31 is the maximum vertical width of all walls corresponding to the first two wall drawings, W_ww31 is the vertical width of the middle area, ∑d1_ww31 is the sum of the widths of all annotations set in the middle area along the vertical direction, ∑d2_wl31 is the sum of the distance between the top annotation and the upper limit of the middle area and the distance between the bottom annotation and the lower limit of the middle area set in the vertical direction;
[0074] The larger one of the horizontal scaling ratio scale_wl31 of the wall in the middle part of the area in the second method and the vertical scaling ratio scale_ww31 of the wall in the middle part of the area in the second method is taken as the calculated scaling ratio of the wall in the middle part of the area in the second method;
[0075] Calculate the horizontal scaling ratio of the wall in the second bottom area:
[0076]
[0077] Wherein, scale_wl32 is the horizontal scaling ratio of the wall in the second bottom area under the second method, ∑l_wl32 is the sum of the horizontal lengths of all walls corresponding to the last two wall drawings, L_wl32 is the horizontal length of the second bottom area, ∑d1_wl32 is the sum of the horizontal spacings between the last two wall drawings, ∑d2_wl32 is the sum of the spacing between the leftmost annotation in the second bottom area and the left border of the second bottom area plus the spacing between the right border of the wall drawing at the rightmost end and the right border of the second bottom area, ∑d3_wl32 is the sum of the widths of all annotations set in the second bottom area in the horizontal direction;
[0078] Calculate the vertical scaling ratio of the wall in the second bottom area:
[0079]
[0080] Wherein, scale_ww32 is the vertical scaling ratio of the wall of the second bottom area under the second method, w_ww32 is the maximum vertical width of all walls corresponding to the last two wall drawings, W_ww32 is the vertical width of the second bottom area, ∑d1_ww32 is the sum of the widths of all annotations set in the second bottom area along the vertical direction, ∑d2_wl32 is the sum of the spacing between the top annotation set in the second bottom area along the vertical direction and the upper limit of the second bottom area plus the spacing between the bottom annotation and the lower limit of the second bottom area;
[0081] The larger one of the horizontal scaling ratio scale_wl32 of the wall surface of the second bottom partial area in the second method and the vertical scaling ratio scale_ww32 of the wall surface of the second bottom partial area in the second method is taken as the calculated scaling ratio of the wall surface of the second bottom partial area in the second method;
[0082] Method 3: The wall scaling ratio is calculated by arranging the first three wall drawings horizontally in the middle area and the last wall drawing in the second bottom area as follows:
[0083] Calculate the horizontal scaling ratio of the wall in some areas:
[0084]
[0085] Wherein, scale_wl41 is the horizontal scaling ratio of the wall in the middle area under mode 3, ∑l_wl41 is the sum of the horizontal lengths of all walls corresponding to the first three wall drawings, L_wl41 is the horizontal length of the middle area, ∑d1_wl41 is the sum of the horizontal spacings between the first three wall drawings, ∑d2_wl41 is the sum of the spacings between the leftmost annotation in the middle area and the left border of the middle area plus the spacings between the right border of the wall drawing at the rightmost end and the right border of the middle area, ∑d3_wl41 is the sum of the widths of all annotations set in the middle area along the horizontal direction;
[0086] The vertical scaling ratio of the wall in the calculation area is:
[0087]
[0088] Wherein, scale_ww41 is the vertical scaling ratio of the wall in the middle area under mode 3, w_ww41 is the maximum vertical width of all walls corresponding to the first three wall drawings, W_ww41 is the vertical width of the middle area, ∑d1_ww41 is the sum of the widths of all annotations set in the middle area along the vertical direction, ∑d2_wl41 is the sum of the distance between the top annotation and the upper limit of the middle area and the distance between the bottom annotation and the lower limit of the middle area set in the vertical direction;
[0089] Take the larger value of the horizontal scaling ratio scale_wl41 of the wall in the middle part of the area under the third method and the vertical scaling ratio scale_ww41 of the wall in the middle part of the area under the third method as the calculated scaling ratio of the wall in the middle part of the area under the third method;
[0090] Calculate the horizontal scaling ratio of the wall in the second bottom area:
[0091]
[0092] Wherein, scale_wl42 is the horizontal scaling ratio of the wall in the second bottom area under mode 3, ∑l_wl42 is the sum of the horizontal lengths of all walls corresponding to the next wall drawing, L_wl42 is the horizontal length of the second bottom area, ∑d2_wl42 is the sum of the distance between the leftmost annotation in the second bottom area and the left border of the second bottom area plus the distance between the right border of the next wall drawing and the right border of the second bottom area, ∑d3_wl42 is the sum of the widths of all annotations set in the second bottom area along the horizontal direction;
[0093] Calculate the vertical scaling ratio of the wall in the second bottom area:
[0094]
[0095] Wherein, scale_ww42 is the vertical scaling ratio of the wall of the second bottom area under mode 3, w_ww42 is the maximum vertical width of all walls corresponding to the wall drawing, W_ww42 is the vertical width of the second bottom area, ∑d1_ww42 is the sum of the widths of all annotations set in the second bottom area along the vertical direction, ∑d2_wl42 is the sum of the spacing between the top annotation set in the second bottom area along the vertical direction and the upper limit of the second bottom area plus the spacing between the bottom annotation and the lower limit of the second bottom area;
[0096] The larger one of the horizontal scaling ratio scale_wl42 of the wall surface of the second bottom partial area in the third method and the vertical scaling ratio scale_ww42 of the wall surface of the second bottom partial area in the third method is taken as the calculated scaling ratio of the wall surface of the second bottom partial area in the third method;
[0097] The method with the smallest difference between the wall scaling ratio of the middle area and the wall scaling ratio of the second bottom area is taken as the final distribution method of the four wall drawings, and the larger one of the wall scaling ratio of the middle area and the wall scaling ratio of the second bottom area in the final distribution method is taken as the calculated wall scaling ratio.
[0098] The present application also provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of any one of the methods described above are implemented.
[0099] The method for generating a construction index map based on the inner viewpoint division of the wall surface and the computer-readable storage medium provided in the present application divide the wall surface into four groups according to the inner viewpoint, so that the grouping effect can be appropriately displayed on the construction index map, that is, no construction misunderstanding will occur, and the drawing layout can be used reasonably. And the zoom ratio is calculated based on the four wall drawings and the two ground drawings, so that the drawings finally presented on the construction index map can not only fill the drawing area to the greatest extent, but also will not cause the drawings to overlap with each other, so as to present the best visual effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0100] Figure 1 A flowchart of a method for generating a construction index map based on inner viewpoint division of a wall surface according to the present application;
[0101] Figure 2 For this application, please provide a home decoration rendering of a room type;
[0102] Figure 3 A construction index diagram diagram is provided for this application;
[0103] Figure 4A schematic projection diagram of the room layout after the room is divided into areas for this application;
[0104] Figure 5 A schematic diagram for determining whether a wall is visible within a certain viewing angle for this application. DETAILED DESCRIPTION
[0105] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0106] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application.
[0107] In one of the embodiments, a method for generating a construction index map based on dividing walls from an inner viewpoint is proposed. The inner viewpoint is used to divide the walls of the room, and the divided walls are adjusted according to the apartment structure to form reasonable groups, so that the grouping effect can be properly displayed on the drawings, without causing misunderstandings and making reasonable use of the drawing layout. Combined with the existing scheme data, the scheme data is drawn on the drawings, annotated and displayed with a material table. The drawings generated by this logic can assist workers in construction in actual production situations.
[0108] Specifically, Figure 1 As shown, the method for generating a construction index map based on dividing a wall surface based on an inner viewpoint in this embodiment includes the following steps:
[0109] Step 1, obtain the solution data of the home decoration rendering to be processed. The solution data in this embodiment includes apartment data and home decoration design data. The apartment data and home decoration design data are data that can be directly extracted from the home decoration design. This embodiment does not elaborate on how to extract them, and the extracted apartment data and home decoration design data contain general parameters. For example, the apartment data contains: how many walls are there in the apartment, where each wall is located, which direction the wall faces, how wide, high and thick the wall is. There are others, such as doors, windows, beams, columns, and rooms. The home decoration design data includes: what tiles are laid on the wall surface, how big the tiles are, how wide the gaps between the tiles are, what the tiles look like, and how the tiles are laid. There are also others, such as not necessarily laying tiles, but also wooden floors, integrated wall panels, carpets, etc. The home decoration rendering corresponding to the solution data is a schematic diagram of the effect corresponding to the actual home decoration, for example Figure 2Shown is a home decoration rendering of a one-room apartment.
[0110] Step 2: Select a point in the room as the internal viewpoint based on the solution data.
[0111] The internal viewing point can be any point that is in the room and not on the wall. In this embodiment, the geometric center of gravity of the room is preferably used as the internal viewing point. The geometric center of gravity used as the internal viewing point must be in the room and not on the wall, so the judgment time can be omitted.
[0112] Step 3: Divide the walls of the room into four groups based on the internal viewpoint to obtain four wall drawings.
[0113] like Figure 3 As shown, it is a commonly used schematic diagram of a construction index diagram. It can be seen from the construction index diagram that there are 4 groups of facades (facades are walls) ABCD in a construction index diagram. The construction index diagram of this embodiment is only used to show the distribution of the drawings therein. Its specific markings or the content of the drawings are not a limitation to this application. In order to facilitate understanding, this application provides a software operation schematic diagram. The schematic diagram is only used to show an effect, and its detailed content (such as tile patterns, quantities, etc.) has no limiting significance to this application. This method of splitting all the facades of a room into 4 groups of facades is more in line with the workers' usage habits. Therefore, this embodiment is mainly explained by splitting into 4 groups of facades. In other embodiments, other facade grouping numbers can also be reasonably derived based on the scheme of this application.
[0114] The result of splitting the facade into groups in this embodiment needs to meet the following conditions:
[0115] (1) Four groups need to be formed, resulting in four groups, ABCD;
[0116] (2) The facades within a group are physically connected walls that are arranged in order within the group;
[0117] (3) The walls between adjacent groups are also physically connected;
[0118] (4) The four groups ABCD roughly correspond to the four directions of up, down, left and right.
[0119] In order to split into groups that meet the above conditions as much as possible, this embodiment provides a logic for splitting facades into groups as follows:
[0120] Step 31: Generate a minimum circumscribed rectangle of the floor of the room, connect the inner viewpoint with the four vertices of the minimum circumscribed rectangle respectively, and divide the room into four areas.
[0121] like Figure 4As shown (the numerical marking of the line segments in the figure is only for illustration and has no limitation on the content of this application), the walls in the room type are named L1 to L12 in clockwise order, and the four areas obtained after the entire room type is divided by four arrows are numbered in sequence, and in this embodiment, the numbers are set as ABCD in sequence. Based on the four areas obtained after the division, it is necessary to determine whether each wall is visible in a certain area. In this embodiment, the situation of being visible in a certain area is referred to as visible within a certain viewing angle.
[0122] like Figure 5 As shown (the numerical value marking of the line segments in the figure is only a schematic illustration and has no limitation on the content of this application), this embodiment proposes the following method to determine whether it is visible within a certain viewing angle: the two arrows marked as A constitute the viewing angle range (i.e., the area range), the arrow marked as C is the normal direction of the wall and faces the interior of the room, and the arrow marked as B is the line connecting the geometric center of gravity of the wall and the internal viewing point. If the dot product of the vectors corresponding to the arrow marked as B and the arrow marked as C is greater than 0, the wall is considered to be visible. In addition, whether the wall contains at least a part in the area is combined to determine whether it belongs to this viewing angle. That is to say, when the dot product of the vectors corresponding to the arrow marked as B and the arrow marked as C is greater than 0, the wall is visible in the area where it exists. The specific judgment steps are as follows:
[0123] Step 32: For each wall, take the line connecting the geometric centroid of the wall and the internal viewpoint, generate a first vector from the geometric centroid of the wall to the internal viewpoint, and take the normal of the wall toward the interior of the room as the second vector. If the dot product of the first vector and the second vector of the wall is greater than 0, the area containing any part of the wall is set as the visible view of the wall.
[0124] based on Figure 4 For the room shown in , each wall is numbered sequentially for the convenience of description. After judging the visible perspective, the following results can be obtained: wall L1 is not visible from any perspective, so it is recorded as any perspective ABCD (that is, if the dot product of the first vector and the second vector of the wall is not greater than 0, it is considered that the wall is visible to any perspective); wall L2 is visible from perspective ACD; wall L3 is visible from perspective A; wall L4 is visible from perspective ABC; wall L5 is not visible at all, and the visible perspective is recorded as ABCD; wall L6 is not visible at all, and the visible perspective is recorded as ABCD; wall L7 is visible from perspective A; wall L8 is visible from perspective B; wall L9 is visible from perspective C; wall L10 is visible from perspective D; wall L11 is visible from perspective A; wall L2 is not visible at all, and the visible perspective is recorded as ABCD. The above results are organized into a table in Table 1.
[0125] Table 1 Wall visible viewing angle
[0126]
[0127] Table 1
[0128] L10 L11 L12 A A B C D D
[0129] After determining the visible viewing angle, a wall may be visible from multiple viewing angles. Therefore, in order to make the result of splitting ABCD into groups as much as possible meet the conditions that need to be met for facade splitting, it is also necessary to determine the final region to which each wall belongs. The adjustment process proposed in this embodiment is as follows:
[0130] Step 33: Take any one of all the walls, and take the area corresponding to any visible viewing angle of the wall as the area to which the wall belongs.
[0131] In order to facilitate the sequential process, this embodiment is described by taking the wall L1 as an example. Since the wall L1 is visible to the ABCD viewing angles, when determining the area to which it belongs, it is determined as area A.
[0132] Step 34: Based on the determined wall area, determine the area to which the next wall area belongs in a clockwise or counterclockwise direction.
[0133] The clockwise or counterclockwise direction here is understood to be clockwise or counterclockwise according to the order of the room walls. Figure 4 For the numbering of the walls, this embodiment preferably adopts a clockwise direction to determine the subsequent walls. The area to which each wall belongs is determined as follows:
[0134] Step 341: Take the wall of the determined belonging area as the reference wall, and take the wall adjacent to the reference wall in the clockwise or counterclockwise direction as the wall to be determined. If the wall of the currently determined belonging area is wall L1, then the reference wall is L1, and the wall to be determined is L2.
[0135] Step 342: If the area corresponding to the visible viewing angle of the wall to be determined includes the area to which the reference wall belongs, the area to which the wall to be determined belongs is set to be the same as the area to which the reference wall belongs; otherwise, the area to which the wall to be determined belongs is determined based on the existing split groups and the visible viewing angle of the wall to be determined.
[0136] For wall L2, its visible angle of view is ACD, which includes the area A of wall L1, so the area to which wall L2 belongs is also set as area A. In this way, it can be determined that the areas to which walls L1 to L7 in Table 1 belong are all area A. Since the visible angle of view of wall L8 does not include the area to which wall L7 belongs, it is necessary to determine its area based on the existing split groups and the visible angle of view of the wall to be determined, and the determination method is as follows:
[0137] Step 3421, take the existing split groups, if the split groups are one or two groups, then find the intersection of the four areas and the area corresponding to the visible angle of view of the wall to be determined. According to Table 1, when the reference wall is L7 and the wall to be determined is L8, the split group is only one group A (that is, the determined walls all belong to area A), then find the intersection of area ABCD and the visible angle of view B of wall L8.
[0138] If the split groups are three, then take the two end groups of the split groups and the unsplit groups to get three pending groups, and find the intersection of the areas corresponding to the three pending groups and the area corresponding to the visible angle of view of the wall to be determined. For example, if the split groups are ABC, the wall to be determined can only be placed in the successor of C and the predecessor of A, that is, find the intersection of area CDA and the visible angle of view B of wall L8.
[0139] If the split groups are four, then the intersection of the area corresponding to the two end groups of the split groups and the area corresponding to the visible angle of the wall to be determined is taken. For example, if the split groups are ABCD, the wall to be determined can only be placed in the successor of D and the predecessor of A, that is, the intersection of area DA and the visible angle B of wall L8 is calculated.
[0140] Step 3422: If the intersection contains zero areas, the area to which the reference wall belongs is taken as the area to which the wall to be determined belongs; if the intersection contains only one area, this area is taken as the area to which the wall to be determined belongs; if the intersection contains multiple areas, the front area is taken in order of the areas as the area to which the wall to be determined belongs.
[0141] If the intersection is the intersection of area CDA and visible BC, then only C is included in the intersection, and the area to which the wall belongs is determined to be C; if the intersection is the intersection of area CDA and visible BCD, then CD is included in the intersection, and C, which is the front in the area order ABCD, is taken as the area to which the wall to be determined belongs. In some special cases, the intersection may be an empty set, in which case the area to which the wall to be determined belongs can be set to be consistent with the area of the reference wall.
[0142] Step 343: take the wall to be determined after the area to which it belongs is determined as a reference wall, and take a new wall to be determined and repeat the process until the area to which each wall belongs is determined.
[0143] Taking Table 1 as an example, after repeated execution, the area to which each wall belongs is determined as shown in Table 2:
[0144] Table 2 Areas of the wall
[0145]
[0146] Table 2
[0147] L10 L11 L12 <![CDATA[ A ]]> <![CDATA[ A ]]> B C <![CDATA[ D ]]> D
[0148] Note: The underlined visible viewing angle in Table 2 is the area to which the wall belongs.
[0149] Step 35: Divide all walls into four groups according to the area to which each wall belongs, and connect adjacent walls in each group in a clockwise or counterclockwise direction to obtain four wall drawings.
[0150] According to the regions to which the walls are determined in Table 2, all walls are divided into four groups according to the regions. The division results in this embodiment are as follows:
[0151] Group A includes walls [L11, L12, L1, L2, L3, L4, L5, L6, L7];
[0152] Group B includes walls [L8];
[0153] Group C includes walls [L9];
[0154] Group D includes walls [L10].
[0155] In the formation of group A, since walls L1 to L7 and walls L11 to L12 are located at the two ends of the table respectively, in order to meet the condition that the facades in a group after splitting are physically connected walls and are sorted in order within the group, it is necessary to move the walls at the end of the table to the head of the table, that is, move walls L11 and L12 to the walls of L1 to obtain a group that meets the conditions.
[0156] After the group splitting, if the region to which each wall belongs is determined and there is a region not containing a wall, a wall is divided from an adjacent region of the region not containing a wall into the region not containing a wall.
[0157] Because 4 groups need to be formed, further adjustments are required if a group does not contain a wall. If group C does not contain a wall, a wall can be divided from group B or group D to group C. The division also needs to meet the condition that the walls between adjacent groups are physically connected, that is, only the last wall in group B or the first wall in group D can be divided into group C. When dividing, try to avoid the emergence of new groups that do not contain walls after the division. If a new group that does not contain walls is inevitable after the wall division, the wall division will be performed again based on the new group that does not contain walls.
[0158] Step 4: Obtain the floor data of the room according to the plan data to generate a floor drawing, and project the selected internal viewpoint onto the floor drawing to obtain the internal viewpoint drawing.
[0159] After the above steps, four groups of walls, i.e., four wall drawings, have been obtained. The wall drawings are obtained by sequentially connecting the walls arranged in order in the groups. The construction index drawing also needs to display the floor drawings. In this embodiment, the floor drawings can be directly obtained according to the floor data of the room, i.e., the drawings showing the floor in the room layout.
[0160] Step 5: Divide the drawing area of the construction index map into two or three sub-areas along the vertical direction.
[0161] The construction index drawing used in production is usually a combination of 6 small drawings (2 ground-related drawings and 4 wall-related drawings). How to use the appropriate scale ratio for these 6 small drawings and arrange them reasonably on the drawing so that each part does not block each other and there is no excessive blank space is also a key point.
[0162] The drawing part of the construction index drawing can be divided into two areas, the upper area is 2 floor drawings, and the lower area is 4 wall drawings. The wall drawings in the lower area can be displayed in 2 rows or 1 row. The key to determining how many rows are needed in the lower area is the total length of the wall and the wall height ratio. If the total length of the wall and the wall height are relatively large, the whole room is relatively large, each wall is relatively long, and it needs to be arranged in 2 rows. If the total length of the wall and the wall height ratio are relatively small, the whole room is relatively small, and each wall is short. If it continues to be arranged in 2 rows, there will be a lot of blank space, so it needs to be arranged in 1 row.
[0163] That is, when dividing the drawing area of the construction index drawing, if the ratio of the total length of the wall in the room to the wall height is greater than the segmentation threshold, the drawing area of the construction index drawing is divided into three sub-areas with equal spacing along the longitudinal direction; otherwise, the drawing area of the construction index drawing is divided into two sub-areas with equal spacing along the longitudinal direction.
[0164] Step 6: Calculate the ground scaling ratio and the wall scaling ratio in a distribution manner in which the ground drawing and the inner viewpoint drawing are arranged horizontally in the top area, and the four wall drawings are set in the remaining sub-areas.
[0165] Since the ground drawing is displayed at the top of the sub-area regardless of whether the drawing area is divided into three sub-areas or two sub-areas, the ground zoom ratio can be determined first. The calculation of the ground zoom ratio includes:
[0166] Calculate the horizontal scaling ratio of the ground:
[0167]
[0168] Where scale_gl is the horizontal scaling ratio of the ground, ∑l_gl is the sum of the maximum horizontal lengths of the room type corresponding to the ground drawing and the inner viewpoint drawing, L_gl is the horizontal length of the top area, d1_gl is the distance between the rightmost annotation of the ground drawing and the leftmost annotation of the inner viewpoint drawing, ∑d2_gl is the sum of the distance between the leftmost annotation and the left limit of the top area in the horizontal direction in the top area plus the distance between the rightmost annotation and the right limit of the top area, ∑d3_gl is the sum of the widths of all annotations in the horizontal direction in the top area;
[0169] Calculate the ground vertical scaling ratio:
[0170]
[0171] Where scale_gw is the vertical scaling ratio of the ground, w_gw is the maximum vertical width of the room type, W_gw is the vertical width of the top area, ∑d1_gw is the sum of the widths of all the annotations set in the top area along the vertical direction, and ∑d2_gw is the sum of the distance between the topmost annotation and the upper limit of the top area and the distance between the bottommost annotation and the lower limit of the top area.
[0172] The larger one of the ground horizontal scaling ratio scale_gl and the ground vertical scaling ratio scale_gw is taken as the calculated ground scaling ratio.
[0173] The denominator of the formula for calculating the ground scaling ratio in this embodiment is: the total length of the area, minus the sum of all annotation widths (the number of annotation layers used in different drawings is different, so the total width of all annotations is taken), minus the spacing between the rightmost annotation of the ground drawing and the leftmost annotation of the inner viewpoint drawing (a fixed value, the specific data depends on the desired degree of aesthetics), minus the distance between the leftmost annotation of the ground drawing and the left side of the top area, and minus the distance between the rightmost annotation of the inner viewpoint drawing and the right side of the top area.
[0174] The numerator of the formula for calculating the scaling ratio cannot be understood as the parameters of the drawing, but the parameters of the room type itself. For example, when calculating the horizontal scaling ratio, if the horizontal length of the room type is 5000mm, this 5000mm is used as the numerator, and the denominator is how many pixels on the drawing are used to draw this 5000mm. For example, the entire drawing is 800x600. Here the horizontal width is 600. After deducting various spacings, there are 400 pixels left to draw this room. The calculated value is how many mm one pixel width corresponds to the actual type. For example, one pixel width corresponds to 12.5mm.
[0175] Since both the ground drawing and the inner viewpoint drawing are ground data, the two drawings have the same appearance. When the two drawings are arranged, the drawings are arranged vertically to keep them flush. The vertical direction in this embodiment corresponds to the width direction of the drawing, and the horizontal direction corresponds to the length direction of the drawing.
[0176] Since the wall drawings have different arrangement modes when the drawing area is divided into three sub-areas or two sub-areas, the present embodiment describes the calculation of the wall scaling ratio according to different partitioning results.
[0177] Similarly, the key to calculating the scaling ratio in a partition is to subtract the following amount from the denominator:
[0178] a. Annotation width (if not included, it will be ignored);
[0179] b. The distance between the marking of one drawing and the marking of another drawing (if there is no marking on a drawing, the boundary of the drawing shall be used);
[0180] c. Horizontally, the distance between the markings of the leftmost and rightmost drawings and the boundary of the partition (if a drawing has no markings, use the boundary of the drawing). Vertically, if there is only one drawing, the distance between the upper line marking of the drawing and the boundary of the partition (if a drawing has no markings, use the boundary of the drawing).
[0181] 1) If the drawing area of the construction index drawing is divided into two sub-areas along the vertical direction, the area at the top along the vertical direction is the top sub-area, and the area at the bottom along the vertical direction is the first bottom sub-area. The wall scaling ratio is calculated in the distribution mode of four wall drawings arranged horizontally in the first bottom sub-area as follows:
[0182] Calculate the horizontal scaling ratio of the wall:
[0183]
[0184] Wherein, scale_wl1 is the horizontal scaling ratio of the wall, ∑l_wl1 is the sum of the horizontal lengths of all walls, L_wl1 is the horizontal length of the first bottom area, ∑d1_wl1 is the sum of the horizontal spacings between the four wall drawings, ∑d2_wl1 is the sum of the spacings between the leftmost annotation in the first bottom area and the left border of the first bottom area plus the spacing between the right border of the wall drawing at the rightmost end and the right border of the first bottom area, ∑d3_wl1 is the sum of the widths of all annotations set in the first bottom area along the horizontal direction;
[0185] Calculate the vertical scaling ratio of the wall:
[0186]
[0187] Wherein, scale_ww1 is the longitudinal scaling ratio of the wall, w_ww1 is the maximum longitudinal width of the wall, W_ww1 is the longitudinal width of the first bottom region, ∑d1_ww1 is the sum of the widths of all the annotations arranged in the first bottom region in the longitudinal direction, ∑d2_wl1 is the sum of the distance between the topmost annotation arranged in the first bottom region in the longitudinal direction and the upper limit of the first bottom region plus the distance between the bottommost annotation and the lower limit of the first bottom region;
[0188] The larger value of the wall horizontal scaling ratio scale_wl1 and the wall vertical scaling ratio scale_ww1 is taken as the calculated wall scaling ratio, so that both the length and width can fall into the drawing area.
[0189] In the arrangement of 4 wall drawings, if the heights of the rooms are equal, that is, the widths of the 4 wall drawings are equal, then the 4 wall drawings are arranged flush in the vertical direction to ensure that the top and bottom of the drawings are flush; if the heights of the rooms are unequal, that is, the widths of the 4 wall drawings are unequal, then the 4 wall drawings are arranged flush at one of the top and bottom in the vertical direction.
[0190] When the drawing area is divided into three sub-areas, one additional point that needs to be considered is that the four wall drawings are not necessarily divided into two rows, but should fill two rows as much as possible. For example, when there are three shorter groups and one longer group, the three shorter groups need to be grouped as one row and the longer group as one row to avoid a large number of blank spaces caused by grouping in pairs. To this end, it is necessary to traverse and try three kinds of layout methods, A and BCD, AB and CD, ABC and D. Calculate the length scaling ratio of the two rows for various layout methods respectively. Take the layout with the smallest difference in the scaling ratio of the two rows as the desired layout. After determining the layout method, since the length scaling ratio of the two rows will still be different, plus the width scaling ratio, use the maximum scaling ratio value, so that the two rows use the same scaling ratio, so that all drawings fall into the drawing area. Specifically include the following steps:
[0191] 2) If the drawing area of the construction index diagram is divided into three sub-areas along the longitudinal direction, the area at the top along the longitudinal direction is the top sub-area, the area in the middle along the longitudinal direction is the middle sub-area, and the area at the bottom along the longitudinal direction is the second bottom sub-area;
[0192] Method 1: The wall scaling ratio is calculated by setting the first wall drawing of the four wall drawings in the middle area and the last three wall drawings horizontally arranged in the second bottom area as follows:
[0193] Calculate the horizontal scaling ratio of the wall in some areas:
[0194]
[0195] Wherein, scale_wl21 is the horizontal scaling ratio of the wall in the middle area in the first embodiment, ∑l_wl21 is the sum of the horizontal lengths of all walls corresponding to the first wall drawing, L_wl21 is the horizontal length of the middle area, ∑d2_wl21 is (in the first embodiment, the symbols in each embodiment in this embodiment correspond to the limitations of this embodiment) the sum of the distance between the leftmost mark in the middle area and the left border of the middle area plus the distance between the right border of the first wall drawing and the right border of the middle area, ∑d3_wl21 is the sum of the widths of all marks set in the middle area in the horizontal direction (since in this embodiment, the marks set in the horizontal direction on the wall are only those located at the leftmost end, the sum of the widths of all marks set in the horizontal direction in the middle area here is equal to the width of the leftmost mark in the middle area, and the same applies to the rest);
[0196] The vertical scaling ratio of the wall in the calculation area is:
[0197]
[0198] Wherein, scale_ww21 is the longitudinal scaling ratio of the wall in the middle area of the method, w_ww21 is the maximum width of all walls corresponding to the first wall drawing in the longitudinal direction, W_ww21 is the longitudinal width of the middle area, ∑d1_ww21 is the sum of the widths of all annotations set in the middle area along the longitudinal direction (since in this embodiment, the annotations set in the longitudinal direction of the wall are only those located at the top and the bottom, the sum of the widths of all annotations set in the longitudinal direction in the middle area here is equal to the sum of the widths of the top and bottom annotations in the middle area, and the same applies to the rest), ∑d2_wl21 is the sum of the spacing between the top annotation set in the middle area and the upper boundary of the middle area plus the spacing between the bottom annotation and the lower boundary of the middle area;
[0199] Take the larger value of the horizontal scaling ratio scale_wl21 of the wall in the middle part of the method below and the vertical scaling ratio scale_ww21 of the wall in the middle part of the method below as the calculated scaling ratio of the wall in the middle part of the method below;
[0200] Calculate the horizontal scaling ratio of the wall in the second bottom area:
[0201]
[0202] Wherein, scale_wl22 is the horizontal scaling ratio of the wall in the second bottom area, ∑l_wl22 is the sum of the horizontal lengths of all walls corresponding to the last three wall drawings, L_wl22 is the horizontal length of the second bottom area, ∑d1_wl22 is the sum of the horizontal spacings between the three wall drawings, ∑d2_wl22 is the sum of the spacings between the leftmost annotation in the second bottom area and the left border of the second bottom area plus the spacings between the right border of the wall drawing at the rightmost end and the right border of the second bottom area, ∑d3_wl22 is the sum of the widths of all annotations set in the second bottom area in the horizontal direction;
[0203] Calculate the vertical scaling ratio of the wall in the second bottom area:
[0204]
[0205] Wherein, scale_ww22 is the vertical scaling ratio of the wall in the second bottom area, w_ww22 is the maximum vertical width of all walls corresponding to the last three wall drawings, W_ww22 is the vertical width of the second bottom area, ∑d1_ww22 is the sum of the widths of all annotations set in the second bottom area along the vertical direction, ∑d2_wl22 is the sum of the spacing between the top annotation and the upper boundary of the second bottom area set in the vertical direction in the second bottom area plus the spacing between the bottom annotation and the lower boundary of the second bottom area;
[0206] Take the larger one of the horizontal scaling ratio scale_wl22 of the wall in the second bottom area in the method and the vertical scaling ratio scale_ww22 of the wall in the second bottom area in the method as the calculated scaling ratio of the wall in the second bottom area in the method;
[0207] Method 2: The wall scaling ratio is calculated by arranging the first two wall drawings in the middle area horizontally and the last two wall drawings in the second bottom area horizontally as follows:
[0208] Calculate the horizontal scaling ratio of the wall in some areas:
[0209]
[0210] Wherein, scale_wl31 is the horizontal scaling ratio of the wall in the middle area under mode 2, ∑l_wl31 is the sum of the horizontal lengths of all walls corresponding to the first two wall drawings, L_wl31 is the horizontal length of the middle area, ∑d1_wl31 is the sum of the horizontal spacings between the first two wall drawings, ∑d2_wl31 is the sum of the spacings between the leftmost annotation in the middle area and the left border of the middle area plus the spacings between the right border of the wall drawing at the rightmost end and the right border of the middle area, ∑d3_wl31 is the sum of the widths of all annotations set in the middle area along the horizontal direction;
[0211] The vertical scaling ratio of the wall in the calculation area is:
[0212]
[0213] Wherein, scale_ww31 is the vertical scaling ratio of the wall in the middle area under mode 2, w_ww31 is the maximum vertical width of all walls corresponding to the first two wall drawings, W_ww31 is the vertical width of the middle area, ∑d1_ww31 is the sum of the widths of all annotations set in the middle area along the vertical direction, ∑d2_wl31 is the sum of the distance between the top annotation and the upper limit of the middle area and the distance between the bottom annotation and the lower limit of the middle area set in the vertical direction;
[0214] The larger one of the horizontal scaling ratio scale_wl31 of the wall in the middle part of the area in the second method and the vertical scaling ratio scale_ww31 of the wall in the middle part of the area in the second method is taken as the calculated scaling ratio of the wall in the middle part of the area in the second method;
[0215] Calculate the horizontal scaling ratio of the wall in the second bottom area:
[0216]
[0217] Wherein, scale_ql32 is the horizontal scaling ratio of the wall in the second bottom area under the second method, ∑l_wl32 is the sum of the horizontal lengths of all walls corresponding to the last two wall drawings, L_wl32 is the horizontal length of the second bottom area, ∑d1_wl32 is the sum of the horizontal spacings between the last two wall drawings, ∑d2_wl32 is the sum of the spacing between the leftmost annotation in the second bottom area and the left border of the second bottom area plus the spacing between the right border of the wall drawing at the rightmost end and the right border of the second bottom area, ∑d3_wl32 is the sum of the widths of all annotations set in the second bottom area in the horizontal direction;
[0218] Calculate the vertical scaling ratio of the wall in the second bottom area:
[0219]
[0220] Wherein, scale_ww32 is the vertical scaling ratio of the wall of the second bottom area under the second method, w_ww32 is the maximum vertical width of all walls corresponding to the last two wall drawings, W_ww32 is the vertical width of the second bottom area, ∑d1_ew32 is the sum of the widths of all annotations set in the second bottom area along the vertical direction, ∑d2_wl32 is the sum of the spacing between the top annotation set in the second bottom area along the vertical direction and the upper limit of the second bottom area plus the spacing between the bottom annotation and the lower limit of the second bottom area;
[0221] The larger one of the horizontal scaling ratio scale_wl32 of the wall surface of the second bottom partial area in the second method and the vertical scaling ratio scale_ww32 of the wall surface of the second bottom partial area in the second method is taken as the calculated scaling ratio of the wall surface of the second bottom partial area in the second method;
[0222] Method 3: The wall scaling ratio is calculated by arranging the first three wall drawings horizontally in the middle area and the last wall drawing in the second bottom area as follows:
[0223] Calculate the horizontal scaling ratio of the wall in some areas:
[0224]
[0225] Wherein, scale_wl41 is the horizontal scaling ratio of the wall in the middle area under mode 3, ∑l_wl41 is the sum of the horizontal lengths of all walls corresponding to the first three wall drawings, L_wl41 is the horizontal length of the middle area, ∑d1_wl41 is the sum of the horizontal spacings between the first three wall drawings, ∑d2_wl41 is the sum of the spacings between the leftmost annotation in the middle area and the left border of the middle area plus the spacings between the right border of the wall drawing at the rightmost end and the right border of the middle area, ∑d3_wl41 is the sum of the widths of all annotations set in the middle area along the horizontal direction;
[0226] The vertical scaling ratio of the wall in the calculation area is:
[0227]
[0228] Wherein, scale_ww41 is the vertical scaling ratio of the wall in the middle area under mode 3, w_ww41 is the maximum vertical width of all walls corresponding to the first three wall drawings, W_ww41 is the vertical width of the middle area, ∑d1_qw41 is the sum of the widths of all annotations set in the middle area along the vertical direction, ∑d2_wl41 is the sum of the distance between the top annotation and the upper limit of the middle area and the distance between the bottom annotation and the lower limit of the middle area set in the vertical direction;
[0229] Take the larger value of the horizontal scaling ratio scale_wl41 of the wall in the middle part of the area under the third method and the vertical scaling ratio scale_ww41 of the wall in the middle part of the area under the third method as the calculated scaling ratio of the wall in the middle part of the area under the third method;
[0230] Calculate the horizontal scaling ratio of the wall in the second bottom area:
[0231]
[0232] Wherein, scale_wl42 is the horizontal scaling ratio of the wall in the second bottom area under mode 3, ∑l_wl42 is the sum of the horizontal lengths of all walls corresponding to the next wall drawing, L_wl42 is the horizontal length of the second bottom area, ∑d2_wl42 is the sum of the distance between the leftmost annotation in the second bottom area and the left border of the second bottom area plus the distance between the right border of the next wall drawing and the right border of the second bottom area, ∑d3_wl42 is the sum of the widths of all annotations set in the second bottom area along the horizontal direction;
[0233] Calculate the vertical scaling ratio of the wall in the second bottom area:
[0234]
[0235] Wherein, scale_ww42 is the vertical scaling ratio of the wall of the second bottom area under mode 3, w_ww42 is the maximum vertical width of all walls corresponding to the wall drawing, W_ww42 is the vertical width of the second bottom area, ∑d1_ww42 is the sum of the widths of all annotations set in the second bottom area along the vertical direction, ∑d2_wl42 is the sum of the spacing between the top annotation set in the second bottom area along the vertical direction and the upper limit of the second bottom area plus the spacing between the bottom annotation and the lower limit of the second bottom area;
[0236] The larger one of the horizontal scaling ratio scale_wl42 of the wall surface of the second bottom partial area in the third method and the vertical scaling ratio scale_ww42 of the wall surface of the second bottom partial area in the third method is taken as the calculated scaling ratio of the wall surface of the second bottom partial area in the third method;
[0237] The method with the smallest difference between the wall scaling ratio of the middle area and the wall scaling ratio of the second bottom area is taken as the final distribution method of the four wall drawings, and the larger one of the wall scaling ratio of the middle area and the wall scaling ratio of the second bottom area in the final distribution method is taken as the calculated wall scaling ratio.
[0238] Step 7: Scale the ground drawings and internal viewpoint drawings according to the ground scaling ratio and place them in the top area; scale the four wall drawings according to the wall scaling ratio and place them in the remaining areas to complete the generation of the construction index drawing.
[0239] Through the above scheme, a construction index map can be successfully generated. On this index map, the wall of a room is reasonably divided into ABCD4 groups. And it is reasonably arranged on the drawing to ensure that the 6 parts on the drawing, 2 ground drawings, and 4 facade drawings do not interfere with each other. The drawings generated in this way meet the needs of actual construction and the construction habits of workers. Generating such drawings in an automated way greatly reduces the workload of designers in generating drawings.
[0240] It should be noted that the focus of this application is on the generation and arrangement of wall-related drawings and ground-related drawings on the construction index map. For the generation of other elements such as annotations and material tables in the construction index map, existing methods can be used and are not the focus of this embodiment.
[0241] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0242] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0243] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A method for generating a construction index map based on inner viewpoint division of a wall surface, characterized in that: The method for generating a construction index map based on dividing a wall surface from an inner viewpoint comprises: Obtain the plan data of the home decoration renderings to be processed; Select a point in the room as the internal viewpoint according to the plan data; Divide the walls of the room into four groups based on the internal viewpoint, and obtain four wall drawings; Acquire the floor data of the room according to the plan data to generate a floor drawing, and project the selected internal viewpoint onto the floor drawing to obtain an internal viewpoint drawing; Divide the drawing area of the construction index drawing into two or three sub-areas along the longitudinal direction; The ground and wall scaling ratios are calculated in a distribution manner in which the ground drawings and the inner viewpoint drawings are arranged horizontally in the top area, and the four wall drawings are set in the remaining sub-areas; Scale the ground drawings and the internal viewpoint drawings according to the ground scaling ratio and place them in the top area; scale the four wall drawings according to the wall scaling ratio and place them in the remaining areas, thus completing the generation of the construction index drawing; The wall of the room is divided into four groups based on the inner viewpoint to obtain four wall drawings, including: Generate the minimum circumscribed rectangle of the floor of the room, connect the inner viewpoint with the four vertices of the minimum circumscribed rectangle, and divide the room into four areas; For each wall, take the line connecting the geometric center of gravity of the wall and the internal viewpoint, and generate the first vector from the geometric center of gravity of the wall to the internal viewpoint; Take the normal of the wall facing the interior of the room as the second vector; If the dot product of the first vector and the second vector of the wall is greater than 0, the area containing any part of the wall is set as the visible perspective of the wall; otherwise, all four areas are set as the visible perspective of the wall; Take any wall among all the walls, and take the area corresponding to any visible viewing angle of the wall as the area to which the wall belongs; Based on the determined wall surface, determine the area to which the next wall surface belongs in a clockwise or counterclockwise direction. Divide all walls into four groups according to the area to which each wall belongs, and connect adjacent walls in each group in a clockwise or counterclockwise direction to obtain four wall drawings.
2. The method for generating a construction index map based on inner viewpoint partitioning of a wall surface as claimed in claim 1, characterized in that: Based on the determined wall of the area, the area to which the next wall belongs is determined in a clockwise or counterclockwise direction, including: The wall of the determined area is taken as the reference wall, and the wall adjacent to the reference wall in a clockwise or counterclockwise direction is taken as the wall to be determined; If the area corresponding to the visible viewing angle of the wall to be determined includes the area to which the reference wall belongs, the area to which the wall to be determined belongs is set to be the same as the area to which the reference wall belongs; otherwise, the area to which the wall to be determined belongs is determined according to the existing split groups and the visible viewing angle of the wall to be determined; The wall to be determined after the area to which it belongs is determined is used as a reference wall, and a new wall to be determined is taken and the process is repeated until the area to which each wall belongs is determined.
3. The method for generating a construction index map based on inner viewpoint partitioning of a wall surface as claimed in claim 2, characterized in that: The step of determining the area to which the existing split groups and the visible viewing angle of the wall to be determined belong includes: Take the existing split groups. If the split groups are one or two groups, then find the intersection of the four areas and the area corresponding to the visible viewing angle of the wall to be determined; if the split groups are three groups, then take the two end groups of the split groups and the unsplit groups to get three pending groups, and find the intersection of the areas corresponding to the three pending groups and the area corresponding to the visible viewing angle of the wall to be determined; if the split groups are four groups, then take the intersection of the areas corresponding to the two end groups of the split groups and the area corresponding to the visible viewing angle of the wall to be determined; If the intersection contains zero areas, the area to which the reference wall belongs is taken as the area to which the wall to be determined belongs. If the intersection contains only one area, this area is taken as the area to which the wall to be determined belongs. If the intersection contains multiple areas, the front area is taken as the area to which the wall to be determined belongs in the order of the areas.
4. The method for generating a construction index map based on inner viewpoint partitioning of a wall surface as claimed in claim 2, characterized in that: If there is an area not containing a wall after the area to which each wall belongs is determined, a wall is divided from an adjacent area of the area not containing a wall into the area not containing a wall.
5. The method for generating a construction index map based on inner viewpoint partitioning of a wall surface as claimed in claim 1, characterized in that: The drawing area of the construction index map is divided into two sub-areas or three sub-areas along the longitudinal direction, including: If the ratio of the total length of the wall in the room to the wall height is greater than the segmentation threshold, the drawing area of the construction index diagram is divided into three sub-areas with equal spacing along the longitudinal direction; otherwise, the drawing area of the construction index diagram is divided into two sub-areas with equal spacing along the longitudinal direction.
6. The method for generating a construction index map based on inner viewpoint partitioning of a wall surface as claimed in claim 1, characterized in that: The calculation of the ground scaling ratio includes: Calculate the horizontal scaling ratio of the ground: ; In the formula, is the horizontal scaling ratio of the ground, It is the sum of the maximum horizontal lengths of the room layout corresponding to the ground drawing and the interior view drawing. is the horizontal length of the top area, The distance between the rightmost dimension of the ground drawing and the leftmost dimension of the internal view drawing. The sum of the distance between the leftmost label and the left boundary of the top area and the distance between the rightmost label and the right boundary of the top area is set horizontally in the top area. It is the sum of the widths of all the labels set in the horizontal direction in the top area; Calculate the ground vertical scaling ratio: ; In the formula, is the ground vertical scaling ratio, The maximum vertical width of the room. is the vertical width of the top area, The sum of the widths of all the labels set in the vertical direction in the top area. The sum of the distance between the uppermost mark arranged in the longitudinal direction in the top region and the upper boundary of the top region and the distance between the lowermost mark and the lower boundary of the top region; Get the horizontal scaling ratio of the ground Vertical scaling ratio to ground The larger of the two values is used as the calculated ground scale.
7. The method for generating a construction index map based on inner viewpoint partitioning of a wall surface as claimed in claim 1, characterized in that: The calculation of the wall scaling ratio includes: If the drawing area of the construction index drawing is divided into two sub-areas along the vertical direction, the area at the top along the vertical direction is the top sub-area, and the area at the bottom along the vertical direction is the first bottom sub-area. The wall scaling ratio is calculated in the distribution mode of four wall drawings arranged horizontally in the first bottom sub-area as follows: Calculate the horizontal scaling ratio of the wall: ; In the formula, is the horizontal scaling ratio of the wall, is the sum of the horizontal lengths of all walls, is the horizontal length of the first bottom area, It is the sum of the horizontal spacing between the four wall drawings. is the sum of the distance between the leftmost annotation in the first bottom area and the left border of the first bottom area plus the distance between the right border of the rightmost wall drawing and the right border of the first bottom area, is the sum of the widths of all the annotations arranged in the horizontal direction in the first bottom area; Calculate the vertical scaling ratio of the wall: ; In the formula, is the vertical scaling ratio of the wall, is the maximum width of the wall in the longitudinal direction, is the longitudinal width of the first bottom region, is the sum of the widths of all the labels arranged in the longitudinal direction in the first bottom area, The sum of the distance between the uppermost mark arranged in the longitudinal direction in the first bottom region and the upper boundary of the first bottom region and the distance between the lowermost mark and the lower boundary of the first bottom region; Get the horizontal scaling ratio of the wall Vertical scaling ratio to the wall The larger of the two values is used as the calculated wall scaling ratio.
8. The method for generating a construction index map based on inner viewpoint partitioning of a wall surface as claimed in claim 1, characterized in that: The calculation of the wall scaling ratio includes: If the drawing area of the construction index diagram is divided into three sub-areas along the longitudinal direction, the area at the top along the longitudinal direction is the top sub-area, the area in the middle along the longitudinal direction is the middle sub-area, and the area at the bottom along the longitudinal direction is the second bottom sub-area; Method 1: The wall scaling ratio is calculated by setting the first wall drawing of the four wall drawings in the middle area and the last three wall drawings horizontally arranged in the second bottom area as follows: Calculate the horizontal scaling ratio of the wall in some areas: ; In the formula, To show the horizontal scaling ratio of the wall in the middle area, It is the sum of the horizontal lengths of all walls corresponding to the first wall drawing. is the horizontal length of the middle area, The sum of the distance between the leftmost annotation in the middle area and the left border of the middle area plus the distance between the right border of the first wall drawing and the right border of the middle area, It is the sum of the widths of all the labels set in the horizontal direction in the middle area; The vertical scaling ratio of the wall in the calculation area is: ; In the formula, To show the vertical scaling ratio of the wall in the middle area, is the maximum width in the vertical direction of all walls corresponding to the first wall drawing, is the longitudinal width of the middle area, It is the sum of the widths of all the labels set in the longitudinal direction in the middle area. The sum of the distance between the uppermost mark and the upper boundary of the middle region in the longitudinal direction and the distance between the lowermost mark and the lower boundary of the middle region; Take the horizontal scaling ratio of the wall in the middle area as follows The vertical scaling ratio of the wall in the middle area is shown in the following figure. The larger of the two values is used as the calculated method to obtain the wall scaling ratio of the middle part of the area; Calculate the horizontal scaling ratio of the wall in the second bottom area: ; In the formula, To show the horizontal scaling ratio of the wall in the second bottom area, It is the sum of the horizontal lengths of all the walls corresponding to the last three wall drawings. is the horizontal length of the second bottom area, is the sum of the horizontal spacing between the three wall drawings. The sum of the distance between the leftmost annotation in the second bottom area and the left border of the second bottom area plus the distance between the right border of the wall drawing at the rightmost end and the right border of the second bottom area, is the sum of the widths of all the labels arranged in the transverse direction in the second bottom area; Calculate the vertical scaling ratio of the wall in the second bottom area: ; In the formula, To show the vertical scaling ratio of the wall in the second bottom area, It is the maximum longitudinal width of all walls corresponding to the last three wall drawings. is the width of the second bottom region in the longitudinal direction, is the sum of the widths of all the labels arranged in the longitudinal direction in the second bottom area, The sum of the distance between the uppermost mark in the second bottom region and the upper boundary of the second bottom region and the distance between the lowermost mark and the lower boundary of the second bottom region; Take the horizontal scaling ratio of the wall in the second bottom area And the vertical scaling ratio of the wall in the second bottom area The larger of the two values is used as the calculated wall scaling ratio of the second bottom area; Method 2: The wall scaling ratio is calculated by arranging the first two wall drawings in the middle area horizontally and the last two wall drawings in the second bottom area horizontally as follows: Calculate the horizontal scaling ratio of the wall in some areas: ; In the formula, is the horizontal scaling ratio of the wall in the middle area of method 2. It is the sum of the horizontal lengths of all walls corresponding to the first two wall drawings. is the horizontal length of the middle area, is the sum of the horizontal distances between the first two wall drawings. The sum of the distance between the leftmost dimension in the middle area and the left border of the middle area plus the distance between the right border of the wall drawing at the rightmost end and the right border of the middle area, It is the sum of the widths of all the labels set in the horizontal direction in the middle area; The vertical scaling ratio of the wall in the calculation area is: ; In the formula, is the vertical scaling ratio of the wall in the middle area of method 2. It is the maximum longitudinal width of all walls corresponding to the first two wall drawings. is the longitudinal width of the middle area, It is the sum of the widths of all the labels set in the longitudinal direction in the middle area. The sum of the distance between the uppermost mark and the upper boundary of the middle region in the longitudinal direction and the distance between the lowermost mark and the lower boundary of the middle region; Take the horizontal scaling ratio of the wall in the middle area of method 2 The vertical scaling ratio of the wall in the middle area under method 2 The larger of the two values is used as the wall scaling ratio of the middle part of the area in the second method for calculation; Calculate the horizontal scaling ratio of the wall in the second bottom area: ; In the formula, is the horizontal scaling ratio of the wall surface in the second bottom area under mode 2, It is the sum of the horizontal lengths of all walls corresponding to the last two wall drawings. is the horizontal length of the second bottom area, is the sum of the horizontal distances between the last two wall drawings. The sum of the distance between the leftmost annotation in the second bottom area and the left border of the second bottom area plus the distance between the right border of the wall drawing at the rightmost end and the right border of the second bottom area, is the sum of the widths of all the labels arranged in the transverse direction in the second bottom area; Calculate the vertical scaling ratio of the wall in the second bottom area: ; In the formula, is the vertical scaling ratio of the wall surface in the second bottom area under mode 2, It is the maximum longitudinal width of all walls corresponding to the last two wall drawings. is the width of the second bottom region in the longitudinal direction, is the sum of the widths of all the labels arranged in the longitudinal direction in the second bottom area, The sum of the distance between the uppermost mark in the second bottom region and the upper boundary of the second bottom region and the distance between the lowermost mark and the lower boundary of the second bottom region; Take the horizontal scaling ratio of the wall in the second bottom area under method 2 The vertical scaling ratio of the wall in the second bottom area under method 2 is The larger of the two values is used as the wall scaling ratio of the second bottom area in the second method; Method 3: The wall scaling ratio is calculated by arranging the first three wall drawings horizontally in the middle area and the last wall drawing in the second bottom area as follows: Calculate the horizontal scaling ratio of the wall in some areas: ; In the formula, The horizontal scaling ratio of the wall in the middle area of method 3 is: It is the sum of the horizontal lengths of all walls corresponding to the first three wall drawings. is the horizontal length of the middle area, is the sum of the horizontal spacing between the first three wall drawings. The sum of the distance between the leftmost dimension in the middle area and the left border of the middle area plus the distance between the right border of the wall drawing at the rightmost end and the right border of the middle area, It is the sum of the widths of all the labels set in the horizontal direction in the middle area; The vertical scaling ratio of the wall in the calculation area is: ; In the formula, The vertical scaling ratio of the wall in the middle area of method 3 is: It is the maximum vertical width of all walls corresponding to the first three wall drawings. is the longitudinal width of the middle area, It is the sum of the widths of all the labels set in the longitudinal direction in the middle area. The sum of the distance between the uppermost mark and the upper boundary of the middle region in the longitudinal direction and the distance between the lowermost mark and the lower boundary of the middle region; Take the horizontal scaling ratio of the wall in the middle area of method 3 The vertical scaling ratio of the wall in the middle area under method 3 The larger of the two values is used as the wall scaling ratio of the middle part of the third method; Calculate the horizontal scaling ratio of the wall in the second bottom area: ; In the formula, is the horizontal scaling ratio of the wall in the second bottom area of method 3, It is the sum of the horizontal lengths of all walls corresponding to the next wall drawing. is the horizontal length of the second bottom area, The sum of the distance between the leftmost annotation in the second bottom area and the left border of the second bottom area plus the distance between the right border of the next wall drawing and the right border of the second bottom area, is the sum of the widths of all the labels arranged in the transverse direction in the second bottom area; Calculate the vertical scaling ratio of the wall in the second bottom area: ; In the formula, is the vertical scaling ratio of the wall in the second bottom area of method 3, It is the maximum longitudinal width of all walls corresponding to the wall drawing. is the width of the second bottom region in the longitudinal direction, is the sum of the widths of all the labels arranged in the longitudinal direction in the second bottom area, The sum of the distance between the uppermost mark in the second bottom region and the upper boundary of the second bottom region and the distance between the lowermost mark and the lower boundary of the second bottom region; Take the horizontal scaling ratio of the wall in the second bottom area of method 3 The vertical scaling ratio of the wall in the second bottom area under method 3 The larger of the two values is used as the calculated wall scaling ratio of the second bottom area; The method with the smallest difference between the wall scaling ratio of the middle area and the wall scaling ratio of the second bottom area is taken as the final distribution method of the four wall drawings, and the larger one of the wall scaling ratio of the middle area and the wall scaling ratio of the second bottom area in the final distribution method is taken as the calculated wall scaling ratio.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
Building plane graph wall vectorization method based on segmented rectangles
CN110555122A
House type graph generation method and system
CN112052489A