Line design method, decoration design method, device and storage medium
Patent Information
- Application Number
- CN202310063460.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2022-12-14
- Filing Date
- 2023-01-12
- Publication Date
- 2026-09-11
- Estimated Expiration
- 2043-01-12
AI Technical Summary
[0004]在上述方案中,设计师每次设计时均需要通过手动多次调整,严重降低了设计效率
[0033] This method solves the problem of low efficiency in interior design in existing technologies by loading a line file of a target line; displaying a two-dimensional cross-section of the target line based on the line file; receiving setting instructions for setting panels on both sides of the target line in the two-dimensional cross-section; obtaining the overlap relationship between the target line and the panels on both sides based on the setting instructions; associating and storing the overlap relationship with the target line; and uploading the target line to a line library. When a target line in the line library is selected, the overlap between the target line and the adjacent panel is set according to the overlap relationship corresponding to the target line.
Smart Images

Figure CN116244796B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to a line design method, decoration design method, device, and storage medium, belonging to the field of decoration design technology. Background Technology
[0002] In the field of home decoration design, panel components are an important part of building surface decoration, and the aesthetic purpose of the entire visual surface is often achieved by splicing panels with lines.
[0003] In existing solutions, designers delineate an area or determine the location of a panel on the building surface, and generate a panel in that area or location; they then manually adjust the positions of the lines and panels to design the overlapping relationship between the lines and adjacent panels.
[0004] In the above scheme, designers need to manually make multiple adjustments each time they design, which seriously reduces design efficiency. Summary of the Invention
[0005] The purpose of this invention is to provide a line design method, decoration design method, device, and storage medium to solve the problems existing in the prior art.
[0006] To achieve the above objectives, the present invention provides the following technical solution:
[0007] According to a first aspect, embodiments of the present invention provide a line design method, the method comprising:
[0008] Load the line file for the target line;
[0009] Display a two-dimensional cross-section of the target line based on the line file;
[0010] The two-dimensional cross-section receives a setting instruction for setting plates on both sides of the target line;
[0011] The overlap relationship between the target line and the plates on both sides is obtained according to the setting instructions;
[0012] The overlapping relationship and the target line are associated and stored, and the target line is uploaded to the line library. When the target line in the line library is selected, the overlapping relationship between the target line and the adjacent board is set according to the overlapping relationship corresponding to the target line.
[0013] Optionally, the setting instruction is a dragging instruction for the board, and obtaining the overlap relationship between the target line and the boards on both sides according to the setting instruction includes:
[0014] Identify candidate overlap points and lofting reference points in the two-dimensional profile, wherein the candidate overlap points include at least one;
[0015] Identify the end position of the drag command;
[0016] The overlapping relationship is obtained based on the candidate overlapping points, the layout reference points, and the drag end position.
[0017] Optionally, obtaining the overlap relationship based on the candidate overlap point, the layout reference point, and the drag end position includes:
[0018] Obtain the distance between the drag end position and each candidate overlap point;
[0019] The overlapping relationship is obtained based on the acquired distances and the layout reference points.
[0020] Optionally, obtaining the overlapping relationship based on the acquired distances and the layout reference point includes:
[0021] If there is a target overlap point among the candidate overlap points whose distance from the end of the dragging position is less than a preset distance, then the overlap relationship is determined based on the position of the target overlap point and the layout reference point.
[0022] Optionally, the method further includes:
[0023] The plate dragged by the drag command is placed at the target overlap point.
[0024] Optionally, obtaining the overlapping relationship based on the acquired distances and the layout reference point includes:
[0025] If there is no target overlap point among the candidate overlap points whose distance to the end of the drag is less than a preset distance, then the overlap relationship is determined based on the end of the drag and the layout reference point.
[0026] Optionally, the overlapping relationship includes the layout reference point, the overlapping information of the left side plate and the overlapping information of the right side plate, and the overlapping information includes the distance from the building surface, the distance from the target line and the direction.
[0027] Secondly, a decoration design method is provided, the method comprising:
[0028] The display includes a presentation interface with at least two panels;
[0029] Receive a placement instruction to place a target line in the at least two plates, the target line being a line designed by the method described in the first aspect;
[0030] Based on the overlapping relationship corresponding to the target line, the overlap between the target line and the at least two plates is set.
[0031] Thirdly, a design apparatus is provided, the apparatus including a memory and a processor, the memory storing at least one program instruction, the processor loading and executing the at least one program instruction to implement the method as described in the first or second aspect.
[0032] Fourthly, a computer storage medium is provided, wherein at least one program instruction is stored therein, the at least one program instruction being loaded and executed by a processor to implement the method as described in the first or second aspect.
[0033] This method solves the problem of low efficiency in interior design in existing technologies by loading a line file of a target line; displaying a two-dimensional cross-section of the target line based on the line file; receiving setting instructions for setting panels on both sides of the target line in the two-dimensional cross-section; obtaining the overlap relationship between the target line and the panels on both sides based on the setting instructions; associating and storing the overlap relationship with the target line; and uploading the target line to a line library. When a target line in the line library is selected, the overlap between the target line and the adjacent panel is set according to the overlap relationship corresponding to the target line.
[0034] The above description is merely an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention and to implement it in accordance with the contents of the specification, the preferred embodiments of the present invention are described in detail below with reference to the accompanying drawings. Attached Figure Description
[0035] Figure 1 A flowchart illustrating a line design method according to an embodiment of the present invention;
[0036] Figure 2 A possible schematic diagram of a two-dimensional cross-section of a target line provided for an embodiment of the present invention;
[0037] Figure 3 This is a possible schematic diagram of providing plates on both sides of a target line according to one embodiment of the present invention;
[0038] Figure 4 This is a possible schematic diagram of the overlapping points in a two-dimensional cross-section of a target line obtained through identification, provided in an embodiment of the present invention.
[0039] Figure 5 A flowchart illustrating a decoration design method according to an embodiment of the present invention;
[0040] Figure 6 This is a possible schematic diagram of two user-placed panels provided in one embodiment of the present invention;
[0041] Figure 7 Provided as an embodiment of the present invention Figure 6 A possible schematic diagram showing the placement of the target line between the two plates shown;
[0042] Figure 8 This is a schematic diagram illustrating the positional relationship between lines and plates after automatic adjustment based on the overlapping relationship of target lines, as provided in an embodiment of the present invention. Detailed Implementation
[0043] The technical solution of the present invention will now be clearly and completely described with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0044] In the description of this invention, it should be noted that the terms "center," "upper," "lower," "left," "right," "vertical," "horizontal," "inner," and "outer," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are used only for the convenience of describing the invention and for simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on the invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.
[0045] In the description of this invention, it should be noted that, unless otherwise explicitly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection of two components. Those skilled in the art can understand the specific meaning of the above terms in this invention based on the specific circumstances.
[0046] Furthermore, the technical features involved in the different embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0047] Please refer to Figure 1It illustrates a flowchart of a line design method provided in one embodiment of this application, such as... Figure 1 As shown, the method includes:
[0048] Step 101: Load the line file of the target line;
[0049] The terminal loads the line file of the target line. Optionally, it loads the CAD file of the target line. Of course, in actual implementation, the file format of the line file may vary depending on the design software, and this application does not limit this.
[0050] The lines mentioned in this application can be splicing lines, skirting boards, ceiling lines, etc., and are not limited thereto.
[0051] Step 102: Display the two-dimensional cross-section of the target line based on the line file;
[0052] After loading the line file, a 2D cross-section is displayed based on the line file. Please refer to [reference needed]. Figure 2 It shows a schematic diagram of a possible two-dimensional cross-section of the target line displayed on the terminal.
[0053] Optionally, when displaying a two-dimensional section, the layout reference points can be shown, for example, Figure 2 The lower center position and its direction are shown. The information of the obtained layout reference point is: coordinates (0,0), direction is the positive y-axis direction (0,1).
[0054] Step 103: Receive a setting instruction for setting plates on both sides of the target line in the two-dimensional cross-section;
[0055] The setting command can be a drag command that drags the plate on both sides of the target line, or a setting command that sets the coordinate position of the plate. This application does not limit this.
[0056] For example, please refer to Figure 3 Users can drag the left panel to the left of the target line to set the overlap between the left panel and the target line. Similarly, the right panel can be dragged to set the overlap between the right panel and the target line.
[0057] Of course, in actual implementation, the display interface can also show an input box for inputting the placement position of the left panel, receiving the user's input of the left panel's position. Similarly, the display interface can also show an input box for the user to input the placement position of the right panel, receiving the user's input of the right panel's position.
[0058] The panels described in this application can be either wall panels or stone panels, and there is no limitation on this.
[0059] Step 104: Obtain the overlap relationship between the target line and the plates on both sides according to the setting instructions;
[0060] Optionally, when the command is set to a drag command, this step includes:
[0061] First, identify candidate overlap points and lofting reference points in the two-dimensional profile, wherein the candidate overlap points include at least one;
[0062] Candidate overlap points are each corner point in the two-dimensional profile, and the corner point includes at least one of the line segment endpoints, line segment midpoints, and the center point of the profile.
[0063] For example, please refer to Figure 4 The circles shown in the two-dimensional cross-section of the figure represent the candidate overlap points that have been identified. For example, in one possible embodiment, the coordinates of several overlap points are calculated based on the two-dimensional cross-section of the line as (-10, 7.5) and (10, 7.5).
[0064] The staking benchmark mentioned in this step is the same as the staking benchmark shown in step 102, and will not be repeated here.
[0065] Additionally, the layout reference position of the panel can be recorded during the dragging process. For example, combined with... Figure 3 The identified layout reference position for the left panel is the position of the left circle and its direction is to the left. Similarly, the identified layout reference position for the right panel is the position of the right circle and its direction is to the right.
[0066] Second, identify the end position of the drag command;
[0067] After the dragging operation ends, obtain the position where the dragging command ended.
[0068] Third, the overlapping relationship is obtained based on the candidate overlapping points, the layout reference points, and the drag end position.
[0069] (1) Obtain the distance between the drag end position and each candidate overlap point;
[0070] Optionally, when there are at least two candidate overlap points, the distance between the drag end position and each candidate overlap point can be obtained; if there is only one candidate overlap point, the distance between the drag end position and that candidate overlap point can be obtained only. Specifically, the distance between the drag end position and the candidate overlap point is calculated as follows: if the dragged object is a left panel, the distance between the lower right or upper right corner of the left panel and the overlap point is calculated; if the dragged object is a right panel, the distance between the lower left or upper left corner of the right panel and the overlap point is calculated.
[0071] (2) Obtain the overlapping relationship based on the obtained distances and the layout reference points.
[0072] If any of the candidate overlap points has a target overlap point whose distance to the end of the dragging is less than a preset distance, then the overlap relationship is determined based on the position of the target overlap point and the lofting reference point. The plate dragged by the drag command is placed at the target overlap point. For example, please refer to... Figure 4 When the user drags the left panel, if the distance between the end position of the drag and the overlap point (-10, 7.5) is less than the preset distance, the lower right corner of the left panel will automatically become (-10, 7.5).
[0073] The overlapping relationship includes the layout reference point, the overlapping information of the left side plate and the overlapping information of the right side plate. The overlapping information includes the distance from the building surface, the distance from the target line and the direction.
[0074] In one possible embodiment, the obtained overlapping relationship is as follows:
[0075] A. The reference point for laying out the line is: coordinate (0,0), direction is the positive y-axis direction (0,1);
[0076] B. Overlap information between the line and the left panel: 7.5 units from the building surface, 10 units from the line layout reference point. Data collected is in coordinates (-10, 7.5) and direction (-1, 0).
[0077] C. Overlap information between the line and the right panel: 7.5 units from the building surface, 10 units from the line layout reference point. Data collected is in coordinates (10, 7.5), direction (1, 0).
[0078] If there is no target overlap point among the candidate overlap points whose distance to the end of the drag is less than a preset distance, then the overlap relationship is determined based on the end of the drag and the layout reference point.
[0079] When the setting command is a coordinate setting command, the overlap relationship can be set using a similar calculation method as described above. Specifically, the distance between the set coordinate position of the plate and the candidate overlap point is calculated, and the overlap relationship is obtained based on the obtained distances and the layout reference point.
[0080] Step 105: Associate and store the overlap relationship with the target line, and upload the target line to the line library. When the target line in the line library is selected, the overlap between the target line and the adjacent board is set according to the overlap relationship corresponding to the target line.
[0081] In summary, by loading the line file of the target line; displaying a two-dimensional cross-section of the target line based on the line file; receiving setting instructions for setting panels on both sides of the target line in the two-dimensional cross-section; obtaining the overlap relationship between the target line and the panels on both sides based on the setting instructions; associating and storing the overlap relationship with the target line; and uploading the target line to the line library, the overlap between the target line and adjacent panels is set according to the overlap relationship corresponding to the target line when the target line in the line library is selected. This solves the problem of low efficiency in decoration design in the prior art, achieving the effect of associating the overlap relationship with the line and uploading it to the line library after designing the overlap relationship of the target line once, and then directly setting the relationship between the line and the panel based on the overlap relationship of the lines in the line library, thereby improving design efficiency.
[0082] Please refer to Figure 5 It illustrates a flowchart of a decoration design method provided in one embodiment of this application, such as... Figure 5 As shown, the method includes:
[0083] Step 501: Display an interface that includes at least two panels;
[0084] During the interior design process, users can place at least two panels at the target locations on the building surface. For example, when placing two panels on the left and right, please refer to... Figure 6 It shows a possible placement diagram. For example... Figure 6 As shown, the position information of the two panels is as follows:
[0085] A. The center of the left panel is located at (-20, 30), and its back is flush with the building surface, meaning the distance from the building surface is 0.
[0086] B. The center of the right panel is located at (20,30), and its back is flush with the building surface, meaning the distance from the building surface is 0.
[0087] The above example only uses two boards. In actual implementation, depending on the application scenario, it may include three or more boards. This application does not limit this.
[0088] Step 502: Receive a placement instruction to place the target line in the at least two plates;
[0089] When a user needs to set a line between two adjacent panels, the user can select the desired target line from the line library. The line library includes lines designed using the methods described above, and the target line described in this application is... Figure 1The method described above produces lines. After receiving a selection command, the user can trigger a placement command to place the target line in both panels.
[0090] In practice, users can directly drag the target line from the line library to between two boards. In this case, the placement command described in this step is the drag command to drag the target line from the line library to between the two boards.
[0091] Optionally, after receiving the placement instruction, please refer to Figure 7 The lofting reference point of the line will be automatically aligned with x=0, and the lofting path is the line segment: from point (0,0) to point (0,60).
[0092] Step 503: Based on the overlapping relationship corresponding to the target line, set the overlap between the target line and the at least two plates.
[0093] Optionally, the terminal automatically adjusts the positional relationship between the panels and the target lines. Optionally, based on the overlap relationship of the target lines in the line library, the left panel is 7.5 units from the building surface and 10 units from the line layout reference point; the right panel is 7.5 units from the building surface and 10 units from the line layout reference point. Therefore, please refer to... Figure 8 After automatic adjustment, the position information of the two panels is as follows:
[0094] A. The center of the left panel is located at (-30, 30), and its back is 7.5 units away from the building surface;
[0095] B. The center of the right panel is located at (-30, 30), and its back is 7.5 units away from the building surface;
[0096] At this point, the panels and lines can be correctly aligned according to the overlap relationship uploaded by the designer, without the designer needing to calculate the position of the panels and manually adjust them, thus improving design efficiency.
[0097] In summary, by displaying a presentation interface comprising at least two panels; receiving a placement instruction to place a target line within the at least two panels, wherein the target line is a line designed using the methods described above; and setting the overlap between the target line and the at least two panels based on the overlap relationship corresponding to the target line, this invention solves the problem of low efficiency in existing interior design technologies. It achieves the effect of improving design efficiency by allowing direct setting of the relationship between lines and panels based on the overlap relationships of lines in a line library during interior design.
[0098] This application provides a design apparatus including a memory and a processor, wherein the memory stores at least one program instruction, and the processor loads and executes the at least one program instruction to implement the method described above.
[0099] This application provides a computer storage medium storing at least one program instruction, which is loaded and executed by a processor to implement the method described above.
[0100] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above 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.
[0101] The embodiments described above are merely illustrative of several implementations of the present invention, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of the present invention, and these all fall within the protection scope of the present invention. Therefore, the protection scope of this invention patent should be determined by the appended claims.
Claims
1. A line design method, characterized in that, The method includes: Load the line file for the target line; Display a two-dimensional cross-section of the target line based on the line file; The two-dimensional cross-section receives a setting instruction for setting plates on both sides of the target line; The overlap relationship between the target line and the plates on both sides is obtained according to the setting instructions; The overlapping relationship and the target line are associated and stored, and the target line is uploaded to the line library. When the target line in the line library is selected, the overlapping relationship between the target line and the adjacent plate is set according to the overlapping relationship corresponding to the target line. The setting command is a drag command for dragging the panel, and the step of obtaining the overlap relationship between the target line and the panels on both sides according to the setting command includes: Identify candidate overlap points and lofting reference points in the two-dimensional profile, wherein the candidate overlap points include at least one; Identify the end position of the drag command; The overlapping relationship is obtained based on the candidate overlapping points, the layout reference points, and the drag end position.
2. The method according to claim 1, characterized in that, The step of obtaining the overlap relationship based on the candidate overlap point, the layout reference point, and the drag end position includes: Obtain the distance between the drag end position and each candidate overlap point; The overlapping relationship is obtained based on the acquired distances and the layout reference points.
3. The method according to claim 2, characterized in that, The step of obtaining the overlapping relationship based on the acquired distances and the layout reference points includes: If there is a target overlap point among the candidate overlap points whose distance from the end of the dragging position is less than a preset distance, then the overlap relationship is determined based on the position of the target overlap point and the layout reference point.
4. The method according to claim 3, characterized in that, The method further includes: The plate being dragged by the drag command is placed at the target overlap point.
5. The method according to claim 2, characterized in that, The step of obtaining the overlapping relationship based on the acquired distances and the layout reference points includes: If there is no target overlap point among the candidate overlap points whose distance to the end of the drag is less than a preset distance, then the overlap relationship is determined based on the end of the drag and the layout reference point.
6. The method according to any one of claims 1 to 5, characterized in that, The overlapping relationship includes the layout reference point, the overlapping information of the left side plate and the overlapping information of the right side plate. The overlapping information includes the distance between the plate and the building surface, the distance from the target line and the direction.
7. A decoration design method, characterized in that, The method includes: The display includes a presentation interface with at least two panels; Receive a placement instruction to place a target line in the at least two plates, the target line being a line designed by the method described in any one of claims 1 to 6; Based on the overlapping relationship corresponding to the target line, the overlap between the target line and the at least two plates is set.
8. A design device, characterized in that, The device includes a memory and a processor, the memory storing at least one program instruction, and the processor loading and executing the at least one program instruction to implement the method as described in any one of claims 1 to 7.
9. A computer storage medium, characterized in that, The computer storage medium stores at least one program instruction, which is loaded and executed by a processor to implement the method as described in any one of claims 1 to 7.
Citation Information
Patent Citations
System and method for automated layout of buildings
US20190258750A1
Method and system for identifying conflicts between building frame structure and plumbing systems
US20210141812A1