Room paving quantity calculation method, device and storage medium based on layout placement
By dividing the bricks to be laid into standard polygons and counting their distribution in the laying area, the problem of insufficient laying calculation in the existing technology is solved, and more accurate brick calculations and more in line with each other is achieved. The needs of actual life scenarios.
Patent Information
- Application Number
- CN202111307609.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-05
- Publication Date
- 2025-02-11
- Estimated Expiration
- 2041-11-05
AI Technical Summary
In the prior art, most of the calculation of laying volume is calculated using room area and brick area according to the formula. The calculation volume is not accurate enough, and it is impossible to calculate the amount more realistically in line with the brick shape factor.
By obtaining the shape and size parameters of the room laying area and the tiles to be laid, the tiles to be laid are divided into multiple standard polygons with the same shape, counting the distribution of standard polygons in the laying area, and calculating the tiles to be laid. Number of blocks.
The accuracy of the calculation of laying bricks is improved, and the brick shape factors can be considered more accurately, meeting the needs of more realistic life scenarios.
Smart Images

Figure CN114036612B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of home decoration design, and in particular to a method, device and storage medium for calculating the quantity of room paving based on layout placement. Background Art
[0002] The home decoration design industry is developing rapidly and the pace is getting faster and faster. Designers are increasingly inclined to design online, calculate engineering quantities, and make budgets quickly. Paving quantity calculation is one of the links. The traditional method of calculating the area based on the formula cannot meet more needs, and the quantity calculation requirements need to be more and more accurate.
[0003] At present, most of the paving quantity calculations are based on the formula using the room area and the paving brick area, which is not accurate enough. Moreover, it is impossible to consider the shape of the bricks to calculate the actual usage. Summary of the invention
[0004] The purpose of the embodiments of the present invention is to provide a room paving quantity calculation method, device and storage medium based on layout placement, which is used to solve the problem that most of the current paving quantity calculations use the room area and the paving brick area according to the formula, and the calculation is not accurate enough.
[0005] In order to solve the above technical problems, according to one aspect of the present invention, an embodiment of the present invention provides a room paving quantity calculation method based on layout placement, which adopts the following technical solution:
[0006] A room paving quantity calculation method based on layout placement, comprising:
[0007] Get the shape and size parameters of the room paving area;
[0008] Get the shape and size parameters of the bricks to be laid;
[0009] According to the shape of a single brick to be laid, each brick is divided into a plurality of standard polygons of the same shape, and shape and size parameters of the standard polygons are obtained;
[0010] The paving area is fully paved with the standard polygons, and the number of standard polygons completely within the paving area and the number of standard polygons cut by the boundary of the paving area are counted;
[0011] The number of tiles to be laid is calculated based on the number of standard polygons that are completely within the paving area and the number of standard polygons that are cut by the paving area boundary.
[0012] In some embodiments, after the paving area is fully paved with the standard polygons and before the number of standard polygons completely within the paving area and the number of standard polygons cut by the boundary of the paving area is counted, the method further includes:
[0013] Numbering and marking the center position of the standard polygons cut by the boundary of the paved area;
[0014] The standard polygon cut by the boundary of the paved area is divided into a boundary inner polygon and a boundary outer polygon, and the boundary inner polygon and boundary outer polygon formed by clipping retain the label and center position of the original standard polygon;
[0015] Sort all polygons inside the boundary by area from large to small, and sort all polygons outside the boundary by area from small to large.
[0016] In some embodiments, before counting the number of standard polygons completely within the tiling area and the number of standard polygons cut by the tiling area boundary, the method includes:
[0017] Determines whether to use texture when paving the room with the bricks to be laid; if so,
[0018] Compare the sizes of the inner polygon and the outer polygon in order. If the outer polygon can completely cover the inner polygon, the number of standard polygons to be laid is reduced by 1.
[0019] The processed inner boundary polygons are recorded until the processing is complete.
[0020] In some embodiments, the step of sequentially comparing the sizes of the inner border polygon and the outer border polygon, if the outer border polygon can completely cover the inner border polygon, includes: moving the center position of the outer border polygon to the center position of the inner border polygon, and the outer border polygon can completely cover the inner border polygon.
[0021] In some embodiments, the size of the inner border polygon and the outer border polygon are compared in sequence. If the outer border polygon can completely cover the inner border polygon, it includes: moving the center position of the outer border polygon to the center position of the inner border polygon, and the outer border polygon is able to completely cover the inner border polygon after rotating 180 degrees.
[0022] In some embodiments, the determining whether to use texture when paving a room with the bricks to be laid; if not,
[0023] The first step is to compare the sizes of the inner polygon and the outer polygon. If the outer polygon can completely cover the inner polygon, the number of standard polygons to be laid is reduced by 1.
[0024] The second step is to clip the outer polygon of the boundary according to the inner polygon of the boundary, and compare the size of the inner polygon of the boundary with the clipped outer polygon of the boundary. If the clipped outer polygon of the boundary can completely cover the inner polygon of the boundary, the number of standard polygons to be laid is reduced by 1.
[0025] The third step is to repeat the second step until the clipped outer polygon of the boundary cannot completely cover the inner polygon of the boundary.
[0026] In some embodiments, the comparing the sizes of the inner border polygon and the outer border polygon, if the outer border polygon can completely cover the inner border polygon, comprises:
[0027] Align each vertex of the outer polygon and the adjacent edge of the vertex with a point of the inner polygon and the adjacent edge of the point.
[0028] In some embodiments, the standard polygon includes a triangle, a quadrilateral, or a hexagon.
[0029] Another purpose of an embodiment of the present invention is to provide a device for calculating the amount of paving in a room based on layout placement, which is used to solve the problem that most of the current paving amount calculations use the room area and the paving brick area according to a formula, and the calculation is not accurate enough.
[0030] In order to solve the above technical problems, according to another aspect of the present invention, an embodiment of the present invention provides a device for calculating the amount of room tiles based on layout placement, which adopts the following technical solution:
[0031] A device for calculating the quantity of room paving based on layout placement, comprising:
[0032] An information transmission module is used to obtain shape and size parameters of the paving area of the room and the shape and size parameters of the bricks to be paved, and to divide each brick into a plurality of standard polygons of the same shape according to the shape of a single brick to be paved, and to obtain the shape and size parameters of the standard polygons;
[0033] An information processing module, used for processing the shape and size parameters of the room paving area, the shape and size parameters of the bricks to be paved and the shape and size parameters of the standard polygon obtained in the information transmission module;
[0034] The information processing module fills the paving area with standard polygons, counts the number of standard polygons that are completely within the paving area and the number of standard polygons that are cut by the boundary of the paving area, and calculates the number of bricks to be laid based on the number of standard polygons that are completely within the paving area and the number of standard polygons that are cut by the boundary of the paving area.
[0035] In order to solve the above technical problems, according to another aspect of the present invention, an embodiment of the present invention provides a computer-readable storage medium for solving the problem that most of the current paving quantity calculations use room area and paving brick area according to formulas, and the quantity calculation is not accurate enough.
[0036] In order to solve the above technical problems, an embodiment of the present invention provides a computer-readable storage medium, which adopts the following technical solution:
[0037] A computer-readable storage medium stores executable instructions, which, when executed by a processor, implement the above-mentioned room tiling quantity calculation method based on layout placement.
[0038] Compared with the existing technology, this room paving quantity calculation method based on layout placement divides the paving bricks, calculates the number of bricks to be laid according to the number of standard polygons completely in the paving area and the number of standard polygons cut by the boundary of the paving area, and divides the number of statistical standard polygons by the number of standard polygons of a paving brick to finally obtain the number of required paving bricks. The calculation of paving bricks is more accurate; at the same time, the requirements of texture symmetry are taken into account to meet more scenarios that are in line with real life. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the scheme of the present invention, the following is a brief introduction to the drawings required for the description of the embodiments. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. Among them:
[0040] Figure 1 It is a flow chart of the room paving quantity calculation method based on layout placement of the present invention;
[0041] Figure 2 It is a schematic diagram of the room paving quantity calculation method based on layout placement of the present invention when the bricks to be paved use textures when paving a room;
[0042] Figure 3 It is a schematic diagram of the room paving quantity calculation method based on layout placement of the present invention when the bricks to be paved are paved in the room without using texture;
[0043] Figure 4 It is a logic block diagram of the room paving quantity calculation method based on layout placement of the present invention.
[0044] The numbers in the attached drawings are as follows: 1. Standard polygon; 21. Inner polygon of the boundary; 22. Outer polygon of the boundary; 3. Paving area. DETAILED DESCRIPTION
[0045] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by technicians in the technical field of the present invention; the terms used in this specification are only for the purpose of describing specific embodiments and are not intended to limit the present invention. For example, the directions or positions indicated by the terms "length", "width", "up", "down", "left", "right", "front", "back", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc. are based on the directions or positions shown in the drawings, which are only for the convenience of description and should not be understood as limitations on the present technical solution.
[0046] The terms "including" and "having" and any variations thereof in the specification and claims of the present invention and the above-mentioned drawings are intended to cover non-exclusive inclusions; the terms "first", "second", etc. in the specification and claims of the present invention or the above-mentioned drawings are used to distinguish different objects rather than to describe a specific order. "Multiple" means two or more, unless otherwise clearly and specifically defined.
[0047] In the specification and claims of the present invention and the above-mentioned drawings, when an element is referred to as being "fixed to" or "mounted on" or "disposed on" or "connected to" another element, it may be directly or indirectly located on the other element. For example, when an element is referred to as being "connected to" another element, it may be directly or indirectly connected to the other element.
[0048] In addition, reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0049] Example
[0050] In this embodiment, if Figure 1 As shown, a room paving quantity calculation method based on layout placement includes:
[0051] 101. Get the shape and size parameters of the paving area of the room.
[0052] In this embodiment, the room paving area can be obtained by actual measurement.
[0053] 102. Obtain the shape and size parameters of the bricks to be laid.
[0054] In this embodiment, the shape and size of the bricks to be laid are selected by the user.
[0055] 103. Divide each brick into a plurality of standard polygons of the same shape according to the shape of a single brick to be laid, and obtain shape and size parameters of the standard polygons.
[0056] In this embodiment, according to the shape and size of the bricks to be laid selected by the user, the paving bricks are divided into multiple completely identical standard polygons. The standard polygons can be triangles, quadrilaterals, or hexagons. In this embodiment, quadrilaterals are used, and one paving brick is composed of multiple standard polygons.
[0057] 104. Use the standard polygons to fully pave the paving area, and count the number of standard polygons that are completely within the paving area and the number of standard polygons that are cut by the boundary of the paving area.
[0058] In this embodiment, the above-mentioned standard polygons are used to cover the paving area of the room, and then the paved standard polygons are clipped using the boundary of the paving area of the room. Finally, the number of standard polygons completely within the paving area and the number of standard polygons cut by the boundary of the paving area are counted.
[0059] 105. Calculate the number of bricks to be laid according to the number of standard polygons completely within the paving area and the number of standard polygons cut by the boundary of the paving area;
[0060] In this embodiment, the number of standard polygons after counting is divided by the number of standard polygons of a paving brick, and finally the number of paving bricks required is obtained.
[0061] In this embodiment, after the paving area is fully paved with the standard polygons and before the number of standard polygons completely within the paving area and the number of standard polygons cut by the boundary of the paving area is counted, the method further includes:
[0062] The standard polygons cut by the boundary of the paved area are numbered and the center positions are marked; numbers or letters can be used for numbering.
[0063] The standard polygon cut by the boundary of the paved area is divided into an inner boundary polygon and an outer boundary polygon. The inner boundary polygon and the outer boundary polygon formed by clipping retain the label and center position of the original standard polygon.
[0064] Sort all the inner polygons of the boundary by area from large to small, and the outer polygons by area from small to large, to facilitate subsequent comparison.
[0065] In this embodiment, before counting the number of standard polygons that are completely within the paving area and the number of standard polygons that are cut by the boundary of the paving area, it includes: judging whether to use texture when paving the room with the bricks to be paved, where the texture mainly refers to whether to use a rectangular array when paving the floor tiles or to lay the floor tiles in other texture shapes. If the tiles are laid in a rectangular array, the shapes of all the outer polygons are the same; if the tiles are laid in other texture shapes, the shapes of all the outer polygons are different.
[0066] Specifically, Figure 2 and Figure 4 As shown, when a texture is used when paving a room with bricks, the following steps are taken:
[0067] The sizes of the inner border polygon 21 and the outer border polygon 22 are compared in sequence. If the outer border polygon 22 can completely cover the inner border polygon 21, the number of standard polygons 1 to be laid is reduced by 1; all inner border polygons 21 are arranged from large to small in area, and the outer border polygons are arranged from small to large in area. After comparing them one by one, the center position of the outer border polygon 22 can be moved to the center position of the inner border polygon 21, and the outer border polygon 22 can completely cover the inner border polygon 21; or the center position of the outer border polygon 22 is moved to the center position of the inner border polygon 21, and the outer border polygon 22 can completely cover the inner border polygon 21 after rotating 180 degrees.
[0068] Record the processed inner boundary polygons 21 until the processing is completed; record how many inner boundary polygons 21 can be completely covered, and subtract a few from the number of standard polygons 1 cut by the boundary of the paving area 3; divide the number of standard polygons 1 after counting by the number of standard polygons 1 of a paving brick, and finally get the number of paving bricks required.
[0069] like Figure 3 and Figure 4 As shown, when the bricks to be laid out in a room are not textured, the following steps are performed:
[0070] The first step is to compare the sizes of the inner border polygon 21 and the outer border polygon 22. If the outer border polygon 22 can completely cover the inner border polygon 21, the number of standard polygons 1 to be laid is reduced by 1. The comparison is mainly carried out by aligning each vertex of the outer border polygon and the adjacent edge of the vertex with a certain point of the inner border polygon and the adjacent edge of the certain point to see whether the outer border polygon 22 can completely cover the inner border polygon 21.
[0071] In the second step, the outer border polygon is clipped according to the inner border polygon 21, and the sizes of the inner border polygon 21 and the clipped outer border polygon 22 are compared. If the clipped outer border polygon 22 can completely cover the inner border polygon 21, the number of standard polygons 1 to be laid is reduced by 1.
[0072] In the third step, the second step is repeated until the clipped outer boundary polygon 22 cannot completely cover the inner boundary polygon 21. Since the area of the outer boundary polygon 22 after one clipping may be larger than the inner boundary polygon 21, it is necessary to clip it twice or three times until the clipped outer boundary polygon 22 cannot completely cover the inner boundary polygon 21.
[0073] This embodiment also relates to a device for calculating the amount of room tiles based on layout placement, which includes:
[0074] An information transmission module is used to obtain shape and size parameters of the paving area of the room and the shape and size parameters of the bricks to be paved, and to divide each brick into a plurality of standard polygons of the same shape according to the shape of a single brick to be paved, and to obtain the shape and size parameters of the standard polygons;
[0075] An information processing module, used for processing the shape and size parameters of the room paving area, the shape and size parameters of the bricks to be paved and the shape and size parameters of the standard polygon obtained in the information transmission module;
[0076] The information processing module fills the paving area with standard polygons, counts the number of standard polygons that are completely within the paving area and the number of standard polygons that are cut by the boundary of the paving area, and calculates the number of bricks to be laid based on the number of standard polygons that are completely within the paving area and the number of standard polygons that are cut by the boundary of the paving area.
[0077] The present embodiment also relates to a computer-readable storage medium storing executable instructions, which, when executed by a processor, implement the above-mentioned room tiling quantity calculation method based on layout placement.
[0078] In summary, this room paving quantity calculation method based on layout placement divides the paving bricks, calculates the number of bricks to be laid according to the number of standard polygons completely in the paving area and the number of standard polygons cut by the boundary of the paving area, and divides the number of statistical standard polygons by the number of standard polygons of a paving brick to finally obtain the number of required paving bricks. The calculation of paving bricks is more accurate. At the same time, the requirements of texture symmetry are taken into account to meet more scenarios that are in line with real life.
[0079] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent substitution, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.
Claims
1. A room paving quantity calculation method based on layout placement, characterized in that: include: Get the shape and size parameters of the room paving area; Get the shape and size parameters of the bricks to be laid; According to the shape of a single brick to be laid, each brick is divided into a plurality of standard polygons of the same shape, and shape and size parameters of the standard polygons are obtained; The paving area is fully paved with the standard polygons, and the number of standard polygons completely within the paving area and the number of standard polygons cut by the boundary of the paving area are counted; Calculate the number of bricks to be laid according to the number of standard polygons completely within the paving area and the number of standard polygons cut by the boundary of the paving area; After the paving area is fully paved with the standard polygons and before the number of standard polygons completely within the paving area and the number of standard polygons cut by the boundary of the paving area is counted, the method further includes: Numbering and marking the center position of the standard polygons cut by the boundary of the paved area; The standard polygon cut by the boundary of the paved area is divided into a boundary inner polygon and a boundary outer polygon, and the boundary inner polygon and boundary outer polygon formed by clipping retain the label and center position of the original standard polygon; Sort all the polygons inside the boundary by area from large to small, and sort all the polygons outside the boundary by area from small to large; Before counting the number of standard polygons completely within the tiling area and the number of standard polygons cut by the tiling area boundary, include: Determines whether to use texture when paving the room with the bricks to be laid; if so, Compare the sizes of the inner polygon and the outer polygon in order. If the outer polygon can completely cover the inner polygon, the number of standard polygons to be laid is reduced by 1. The processed inner boundary polygons are recorded until the processing is complete.
2. A room paving quantity calculation method based on layout placement according to claim 1, characterized in that: The step of sequentially comparing the sizes of the inner border polygon and the outer border polygon, if the outer border polygon can completely cover the inner border polygon, includes: moving the center position of the outer border polygon to the center position of the inner border polygon, and the outer border polygon can completely cover the inner border polygon.
3. A room paving quantity calculation method based on layout placement according to claim 2, characterized in that: The step of comparing the sizes of the inner border polygon and the outer border polygon in sequence, if the outer border polygon can completely cover the inner border polygon, includes: moving the center position of the outer border polygon to the center position of the inner border polygon, and rotating the outer border polygon 180 degrees to completely cover the inner border polygon.
4. The room paving quantity calculation method based on layout placement according to claim 1 is characterized in that: The determination is whether to use texture when paving the room with the bricks to be paved; if not, The first step is to compare the sizes of the inner polygon and the outer polygon. If the outer polygon can completely cover the inner polygon, the number of standard polygons to be laid is reduced by 1. The second step is to clip the outer polygon of the boundary according to the inner polygon of the boundary, and compare the size of the inner polygon of the boundary with the clipped outer polygon of the boundary. If the clipped outer polygon of the boundary can completely cover the inner polygon of the boundary, the number of standard polygons to be laid is reduced by 1. The third step is to repeat the second step until the clipped outer polygon of the boundary cannot completely cover the inner polygon of the boundary.
5. A room paving quantity calculation method based on layout placement according to claim 4, characterized in that: The comparing the sizes of the inner border polygon and the outer border polygon, if the outer border polygon can completely cover the inner border polygon, comprises: Align each vertex of the outer polygon and the adjacent edge of the vertex with a point of the inner polygon and the adjacent edge of the point.
6. The room paving quantity calculation method based on layout placement according to claim 1 is characterized in that: The standard polygons include triangles, quadrilaterals, and hexagons.
7. A device for calculating the quantity of room paving based on layout placement, characterized in that: include: An information transmission module is used to obtain shape and size parameters of the paving area of the room and the shape and size parameters of the bricks to be paved, and to divide each brick into a plurality of standard polygons of the same shape according to the shape of a single brick to be paved, and to obtain the shape and size parameters of the standard polygons; An information processing module, used for processing the shape and size parameters of the room paving area, the shape and size parameters of the bricks to be paved and the shape and size parameters of the standard polygon obtained in the information transmission module; The information processing module fills the paving area with standard polygons, counts the number of standard polygons completely within the paving area and the number of standard polygons cut by the boundary of the paving area, and calculates the number of bricks to be paved according to the number of standard polygons completely within the paving area and the number of standard polygons cut by the boundary of the paving area; The information processing module is further used to: after the paving area is fully paved with the standard polygons and before counting the number of standard polygons completely within the paving area and the number of standard polygons cut by the paving area boundary, number the standard polygons cut by the paving area boundary and mark the center position; The standard polygon cut by the boundary of the paved area is divided into a boundary inner polygon and a boundary outer polygon, and the boundary inner polygon and boundary outer polygon formed by clipping retain the label and center position of the original standard polygon; Sort all the polygons inside the boundary by area from large to small, and sort all the polygons outside the boundary by area from small to large; The information processing module is also used to: before counting the number of standard polygons completely within the paving area and the number of standard polygons cut by the paving area boundary, determine whether to use texture when paving the room with the bricks to be paved; if so, Compare the sizes of the inner polygon and the outer polygon in order. If the outer polygon can completely cover the inner polygon, the number of standard polygons to be laid is reduced by 1. The processed inner boundary polygons are recorded until the processing is complete.
8. A computer-readable storage medium storing executable instructions, characterized in that: When the executable instructions are executed by the processor, the room tiling quantity calculation method based on layout placement described in any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Generation method and system for laying scheme of tile
CN105631143A