Cabinet panel generation method and device, equipment and storage medium
By dividing the internal space of the cabinet in the interactive interface and determining the panel configuration information, and generating drawer panels and door panels, the cumbersome and consistency problems in the existing technology are solved, and the automatic generation and design efficiency of cabinet panels are achieved.
Patent Information
- Application Number
- CN202411033860.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-30
- Publication Date
- 2024-11-29
AI Technical Summary
When designing cabinet panels, the existing technology requires repeated configuration of the parameters of each panel. The process is cumbersome and the consistency of the design cannot be guaranteed. The partitioning of door panels and the placement of drawers are carried out separately, so the automatic generation of cabinet panels cannot be achieved.
By displaying the target cabinet in the interactive interface, dividing the internal space into multiple sub-regions, determining the board configuration information and local masking parameters, generating drawer panels and/or door panels, simplifying the design process and improving operational efficiency.
The automatic generation of cabinet panels is realized, and the design process is focused on the canvas, which improves operational efficiency and user experience, simplifies the design process, and ensures the consistency of the design.
Smart Images

Figure CN119045707A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to the field of computer-aided design, home decoration design, and cabinet panel generation technology. Background Art
[0002] Door panels and drawer panels are both cabinet panels in the design elements, and the aesthetics and structure of the entire cabinet need to be considered uniformly. When designing and generating cabinet panels, designers usually need to draw the internal components first, calculate the spacing between the partitions, and then determine the cover and gap of each door based on the overall layout and process, and determine the size of the panel to separate the door panels and drawers. The whole process requires repeatedly configuring the parameters of each panel in the operation panel, which is cumbersome and the door panel cutting and drawer placement are done separately, which cannot guarantee the consistency of the design. Summary of the invention
[0003] The present disclosure provides a cabinet panel generation method, device, equipment and storage medium to solve or alleviate one or more technical problems in the prior art.
[0004] In a first aspect, the present disclosure provides a cabinet panel generation method, comprising:
[0005] Display the target cabinet in the canvas of the interactive interface;
[0006] According to the first interactive operation generated in the canvas, the interior space of the target cabinet is divided into a plurality of sub-areas;
[0007] Determining panel configuration information of the plurality of sub-areas according to the second interactive operation for the plurality of sub-areas;
[0008] Determining local masking parameters of the plurality of sub-areas according to the panel configuration information; and
[0009] Generate drawer panels and / or door panels on the target cabinet according to panel configuration information and local masking parameters.
[0010] In a second aspect, the present disclosure provides a cabinet panel generating device, comprising:
[0011] A display module, used to display the target cabinet in the canvas of the interactive interface;
[0012] A division module, used for dividing the internal space of the target cabinet into a plurality of sub-areas according to the first interactive operation generated in the canvas;
[0013] A configuration module, configured to determine panel configuration information of the plurality of sub-areas according to a second interaction operation for the plurality of sub-areas;
[0014] A determination module, used to determine local masking parameters of multiple sub-areas according to the panel configuration information; and
[0015] The generation module is used to generate drawer panels and / or door panels on the target cabinet according to the panel configuration information and local masking parameters.
[0016] In a third aspect, an electronic device is provided, including:
[0017] at least one processor; and
[0018] a memory communicatively connected to the at least one processor; wherein,
[0019] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute any method in the embodiments of the present disclosure.
[0020] In a fourth aspect, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause the computer to execute any method according to the embodiments of the present disclosure.
[0021] In a fifth aspect, a computer program product is provided, comprising a computer program, which implements any method according to the embodiments of the present disclosure when executed by a processor.
[0022] The beneficial effects of the technical solution provided by the present disclosure include at least: by dividing and simply configuring the internal space of the cabinet through scenario-based interactive operations, the cabinet panel can be automatically generated, and the design process is focused on the canvas, thereby improving operational efficiency and user experience.
[0023] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In the accompanying drawings, unless otherwise specified, the same reference numerals throughout the multiple drawings represent the same or similar parts or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings only depict some embodiments provided according to the present disclosure and should not be regarded as limiting the scope of the present disclosure.
[0025] Figure 1 is a flow chart of a cabinet panel generation method provided according to an embodiment of the present disclosure;
[0026] Figures 2A to 2D is a schematic diagram of the division of the internal space of a cabinet provided according to an embodiment of the present disclosure;
[0027] Figures 3A to 3D is a schematic diagram of the increase or decrease of the internal space of a cabinet according to an embodiment of the present disclosure;
[0028] Figure 4 is a schematic diagram of partition dependency provided according to an embodiment of the present disclosure;
[0029] Figure 5 is a structural schematic diagram of a cabinet panel generating device provided according to an embodiment of the present disclosure;
[0030] Figure 6 is a block diagram of an electronic device for implementing an embodiment of the present disclosure. DETAILED DESCRIPTION
[0031] The present disclosure will be further described in detail below with reference to the accompanying drawings. The same reference numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise specified.
[0032] In addition, in order to better illustrate the present disclosure, numerous specific details are given in the following specific embodiments. It should be understood by those skilled in the art that the present disclosure can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the main purpose of the present disclosure.
[0033] Figure 1 The following is a flow chart of a cabinet panel generation method provided by an embodiment of the present disclosure. Figure 1 As shown, the method comprises at least the following steps:
[0034] S101: Display the target cabinet on a canvas of an interactive interface.
[0035] The disclosed embodiments can be applied to design software such as interior design and home decoration design. The relevant functions and environment of door drawer design can be called by clicking a preset button (such as a door drawer design entry button) in the interactive interface. In one example, first, click the door drawer design entry button to enter the door drawer design internal space (referred to as internal space) selection environment, and take the cabinet that needs to generate door panels and / or drawer panels as the target cabinet. Select the internal space of the target cabinet and confirm it to enter the independent door drawer design environment. The design environment may include several top bars, side bars, and 2D canvases.
[0036] S102: Divide the interior space of the target cabinet into a plurality of sub-areas according to the first interactive operation generated in the canvas.
[0037] The first interactive operation can be understood as an operation of dividing the internal space of the target cabinet by clicking. The division operation may include: adding or reducing an area in the horizontal direction, that is, adding or reducing a column in the horizontal division area; adding or reducing an area in the vertical direction, that is, adding or reducing a row in the vertical division area. The object of the division operation may be the entire internal space of the target cabinet, or one or a group of sub-areas obtained by dividing the internal space.
[0038] After multiple first interactive operations, the internal space of the target cabinet can be divided into the form required by the designer. The sub-area can be understood as the smallest division unit of the internal space of the cabinet obtained through the division operation. Each sub-area of the internal space can be designed for different functions. Through reasonable area division, the storage space can be maximized to meet the needs of different users. For a wardrobe, the different sub-areas obtained can be used as stacking areas, hanging areas, drawer areas, shoe areas, accessories areas, luggage areas, hanging racks or adjustable partitions, etc.
[0039] S103: Determine panel configuration information of the multiple sub-areas according to the second interactive operation for the multiple sub-areas.
[0040] After obtaining multiple sub-regions, it is necessary to configure whether the sub-region has a cabinet panel and the panel type. The cabinet panel includes a door panel and a drawer panel, that is, each sub-region is configured as a door panel or a drawer panel or no panel. Thus, the panel configuration information is obtained. The panel configuration information includes the position, size and panel type of each sub-region.
[0041] S104: Determine local masking parameters of multiple sub-areas according to the panel configuration information.
[0042] Since the cabinet panels usually have a decorative function, the cabinet panels need to cover the partitions behind them or other panels such as the outer frame of the cabinet. Therefore, it is necessary to keep a certain gap between the cabinet panels so that each cabinet panel can be pushed, pulled, opened and closed normally, and to increase the proportion of the cabinet panels on the front of the cabinet as much as possible. This means that when calculating the size of the cabinet panels in each sub-area, it is necessary to consider how to cover the gaps between the cabinet panels in the adjacent sub-areas. In other words, the cabinet panels of at least some sub-areas need to be set with masking parameters and gap parameters based on the size of their corresponding sub-areas, so that they can cover possible partitions. The masking parameters are used to adjust the size of the cabinet panels to cover the rear panels, and the gap parameters are used to ensure that adjacent cabinet panels do not interfere with each other.
[0043] S105: Generate a drawer panel and / or door panel on the target cabinet according to the panel configuration information and the local masking parameters.
[0044] Usually, the width of the cabinet panel = the width value of the sub-area + the left mask value + the right mask value - the left gap value - the right gap value. The height of the cabinet panel = the height value of the sub-area + the upper mask value + the lower mask value - the upper gap value - the lower gap value. The left mask value, the right mask value, the upper mask value, and the lower mask value belong to the local masking parameters of the sub-area. The width and height values of the sub-area belong to the panel configuration information. After obtaining the size of the cabinet panel, the drawer panel or door panel is generated on the target cabinet according to the position of the sub-area.
[0045] According to the solution of the embodiment of the present disclosure, the internal space of the cabinet is divided and simply configured through scenario-based interactive operations, so that the cabinet panel can be automatically generated. There is no need to manually calculate the size of each cabinet panel one by one, and the traditional panel-based interaction method is abandoned, so that the design process is focused on the canvas, improving operational efficiency and user experience.
[0046] In a possible implementation, S101 displays the target cabinet in a canvas of the display interface, further comprising the steps of:
[0047] In response to an operation of selecting a target cabinet in the interactive interface for panel generation, switching the canvas of the interactive interface to a two-dimensional perspective;
[0048] The front view direction of the target cabinet is used as the direction of the two-dimensional perspective, and the area formed by the internal space of the target cabinet is tiled in the center of the canvas.
[0049] In the disclosed embodiment, although the cabinet is three-dimensional, the partitions of the cabinet are usually horizontal or vertical, so the internal space of the cabinet can be divided on a plane. Therefore, when starting to design the cabinet panel, the canvas is switched to a two-dimensional perspective, and the internal space of the target cabinet is displayed horizontally and centered by default. The area formed by the internal space is the top layer area.
[0050] According to the solution of the embodiment of the present disclosure, the inner space of the cabinet is centered and laid out on the canvas, so as to improve the operation efficiency.
[0051] In a possible implementation, the cabinet panel generation method of the embodiment of the present disclosure further includes the steps of:
[0052] Generate interactive components on the canvas on either side of the internal space, wherein the interactive components are used to adjust the division method of the internal space;
[0053] Generating a first sidebar on the display interface, wherein the first sidebar is used to configure at least one of a global masking parameter, a global gap parameter, or a component style of the target cabinet;
[0054] A second sidebar is generated on the display interface, wherein the second sidebar is used to display the hierarchical relationship formed by the division method of the internal space of the target cabinet.
[0055] In the disclosed embodiment, the interactive component is configured to be displayed on a canvas on the side of the internal space and close to the internal space. In one example, the interactive component can be a pair of increase and decrease buttons, and the way to adjust the division of the internal space can be to increase or decrease the number of sub-areas by clicking the increase and decrease buttons.
[0056] The first sidebar can be used to set various parameters and component styles in detail. Various parameters include but are not limited to: global masking parameters, global gap parameters, indentation parameters, and specific masking values and masking methods for each edge of each sub-area. Component styles include styles of horizontal partitions, vertical partitions, drawer panels, and door panels. Global masking parameters are used to set the masking values of sub-areas related to the outer frame of the cabinet. Global gap parameters are used to set the gap size between each panel. Usually, the gap parameters of each panel are unified, and there is no need to set the gap parameters of each panel separately without special needs.
[0057] In one example, a left column is provided on the left side of the canvas, which displays the hierarchical relationship of the areas formed by the current internal space division and is used for selecting and deleting areas, and is mainly used for modifying the parent area division configuration.
[0058] According to the solution of the embodiment of the present disclosure, the interactive components are configured on the side of the internal space. The division method of the internal space can be quickly adjusted by increasing or decreasing the number of sub-areas by clicking, so that the design process is focused on the canvas. There is no need to input parameters through operation panels such as sidebars or dialog boxes, thereby improving operational efficiency and user experience.
[0059] In a possible implementation, S102 divides the internal space of the target cabinet into a plurality of sub-areas according to the first interactive operation generated in the canvas, further comprising the steps of:
[0060] According to a first interactive operation generated on the interactive component on the canvas, the interior space of the target cabinet is divided into a plurality of sub-areas;
[0061] Among them, the interactive component is configured on the canvas close to either side of the selected area, and the interactive component includes at least one of an area increase button, an area decrease button, an area deletion button or an area size adjustment component; the selected area is the area in the internal space of the target cabinet that is in a selected state.
[0062] In the disclosed embodiment, the first interactive operation can be understood as a click operation on any one of the area increase button, area decrease button, and area delete button, which are used to change the number of sub-areas, and the area size adjustment component is used to change the size of the sub-area. The area increase button and the area decrease button are two groups, which are used to change the number of sub-areas in the horizontal direction and in the vertical direction respectively. The button for changing the number of sub-areas in the horizontal direction can be displayed on the left or right side of the internal space, and the button for changing the number of sub-areas in the vertical direction can be displayed on the upper side or the lower side of the internal space.
[0063] By adjusting the number of sub-areas in the horizontal and vertical directions, a parent-child hierarchy can be formed. For example, by clicking the horizontal area increase button twice, three vertically parallel areas can be obtained, which are recorded as area 1, area 2, and area 3. When all three areas are selected, click the vertical area increase button again, and the three areas can be divided into upper and lower sub-areas at the same time, obtaining areas 1-1 and 1-2, areas 2-1 and 2-2, and areas 3-1 and 3-2. If area 1 is selected, click the vertical area increase button again, and area 1 can be divided into upper and lower sub-areas separately, obtaining areas 1-1 and 1-2. In the above example, area 1 is the parent, and areas 1-1 and 1-2 are the children of the former. The area deletion button is used to delete the area in the selected state. At the same time, the remaining sub-areas of the same level re-divide the inner space occupied by their parent areas.
[0064] According to the solution of the embodiment of the present disclosure, the internal space of the cabinet can be divided by using an area increase button, an area decrease button, an area deletion button or an area size adjustment component, which is easy to operate.
[0065] In a possible implementation, S102 divides the internal space of the target cabinet into a plurality of sub-areas according to the first interactive operation generated in the canvas, further comprising the steps of:
[0066] In response to clicking an area add button in the first direction in the canvas, if the selected area is a single area or the selected area includes multiple parent areas and the sub-area division configuration of each parent area is consistent, the selected area is re-divided into N+1 sub-areas in the first direction; wherein N is the number of areas of the selected area in the first direction; or
[0067] In response to clicking an add button in the first direction in the canvas, if the selected area includes multiple parent areas and the sub-area division configurations of each parent area are inconsistent, clear the sub-area division configurations of the multiple parent areas and re-divide them into two sub-areas in the first direction; or
[0068] In response to clicking the area reduction button in the second direction in the canvas, when the selected area contains only one parent area or contains multiple parent areas with the same sub-area division configuration, each parent area is re-divided into N-1 sub-areas in the second direction; wherein N is the number of areas in the selected area in the second direction; or
[0069] In response to clicking the area reduction button in the second direction in the canvas, when the selected area contains multiple parent areas and the sub-area division configuration of each parent area is inconsistent, for areas in the multiple parent areas with no less than 2 sub-areas in the second direction, the number of sub-areas is reduced by 1 and then re-divided; where N is the number of areas of the selected area in the second direction.
[0070] In the disclosed embodiment, the first direction and the second direction may be horizontal or vertical. Each region supports horizontal and vertical division, and the order of adding regions is usually from top to bottom and from left to right. When the region add button (the "+" button) is clicked, a sub-region is added to the rightmost / bottommost side of the corresponding direction.
[0071] like Figure 2A As shown in the figure, click the "+" button on the right side of the internal space of the target cabinet to add a sub-area in the horizontal direction. Figure 2B As shown in the figure, click the "+" button again to add another column and get 3 columns of sub-areas, such as Figure 2C As shown, they are recorded as area 1, area 2, and area 3. At this time, click the "+" button above the internal space to add a sub-area to the above three sub-areas in the vertical direction, that is, the original three vertical areas are divided into upper and lower sub-areas, respectively, to obtain areas 1-1, 1-2, 2-1, 2-2, 3-1, and 3-2, as shown in the figure. Figure 2D As shown in the figure, Region 1, Region 2, and Region 3 are parents, and Regions 1-1, 1-2, 2-1, 2-2, 3-1, and 3-2 are children of the former.
[0072] When the selected area is divided into sub-areas, if the division configuration of each sub-area is consistent, click the "+" button of the selected area to add a sub-area with the same division configuration in the corresponding direction. Figure 3A As shown in the figure, the left area has no sub-areas, and the right area has 3 sub-areas. At this time, click the "+" button of the selected area, and add sub-areas as blank areas. That is, clear the sub-area division configuration of multiple parent areas, and re-divide them into 2 sub-areas in the first direction, such as Figure 3B shown.
[0073] When the number of sub-regions in the selected region exceeds 1, the region reduction button (“-” button) in the interactive component becomes available. Click the “-” button to reduce the sub-regions of the region. There are also two situations:
[0074] If the division configuration of each sub-area is consistent, click the "-" button of the selected area to reduce a sub-area in the corresponding direction.
[0075] If the division configuration of each sub-area is inconsistent, such as Figure 3C As shown, click the "-" button of the selected area, and each parent area will reduce one child area in the corresponding direction. If one of the parent areas does not have multiple child areas, there is no need to change it. The obtained area is as follows Figure 3D shown.
[0076] According to the solution of the embodiment of the present disclosure, when the sub-region division configurations of multiple parent regions are inconsistent, different processing methods are used for region addition and subtraction operations, thereby improving operation efficiency.
[0077] In a possible implementation, S103 determines the panel configuration information of the multiple sub-areas according to the second interaction operation for the multiple sub-areas, further comprising the steps of:
[0078] According to the target panel button selected by the second interactive operation and the target element selected from the multiple sub-areas, the target element is configured as a panel type corresponding to the target panel button; wherein the panel type corresponding to the target panel button includes at least one of a drawer panel, a door panel or a partition, and the target element includes an internal area surrounded by any one side or any four sides of each sub-area;
[0079] According to the panel type of each sub-region, panel configuration information of the plurality of sub-regions is determined.
[0080] In the disclosed embodiment, the second interactive operation includes two parts: clicking on the target panel button and clicking on the target element. By clicking the target panel button from multiple panel buttons, the panel type is determined, and by selecting the target element from multiple elements in multiple sub-areas, the panel to be configured is determined. For example, after clicking the panel button of the drawer panel, one or more sub-areas designed as drawer panels are selected, assuming they are areas 1-1, 2-1, 5-2, and 6-2, then the panel types of areas 1-1, 2-1, 5-2, and 6-2 are configured as drawer panels. For another example, after clicking the panel button of the partition, the edge between areas 4-1 and 4-2 is selected, and a partition is added at this position. The above operation can also be to select the target element first and then select the target panel button.
[0081] According to the solution of the embodiment of the present disclosure, the configuration of the drawer panel, door panel and partition can be achieved by simply clicking on the canvas, further focusing the design process on the canvas area.
[0082] In a possible implementation, the cabinet panel generation method of the embodiment of the present disclosure further includes the steps of:
[0083] When the sub-region of the panel type being the door panel is selected, a floating drop-down component is generated on the canvas next to the sub-region;
[0084] According to the selection operation on the floating drop-down component, the door opening direction information of the door panel of the sub-area is determined.
[0085] In the disclosed embodiment, when a sub-region configured as a door panel is selected, a floating drop-down component can be generated on the canvas next to the region, and the desired option can be selected from a variety of door opening directions provided, including: left-opening, right-opening, top-opening, bottom-opening, and none. None means that the door panel is fixed, and usually, at least one side of the corresponding internal space does not have a partition, so that it is connected to other spaces inside the cabinet.
[0086] According to the solution of the embodiment of the present disclosure, the opening direction of the cabinet door is also configured by clicking on the canvas, which is simple and efficient.
[0087] In a possible implementation, the cabinet panel generation method of the embodiment of the present disclosure further includes the steps of:
[0088] According to the proportional parameter or numerical parameter input in the size adjustment component corresponding to the target sub-region, the size parameters of each sub-region under the same parent level as the target sub-region are adjusted; wherein the size adjustment component can be switched between the numerical parameter mode and the proportional parameter mode;
[0089] Update the panel configuration information of multiple sub-areas according to the size parameters of all sub-areas.
[0090] In the present disclosure, Figures 2B to 2DAs shown, the size adjustment component can be displayed at the edge of each sub-area. The size adjustment component includes two parts. The first part can be switched between the numerical parameter mode and the proportional parameter mode after clicking, and the name of the current mode is displayed. The second part is used to display and edit parameters. For example, if there are 4 sub-areas of the same level and the default size is the same, the parameters displayed in the proportional parameter mode are 1:1:1:1. At this time, the ratio can be modified in any size adjustment component to quickly adjust the proportional relationship of each area. You can also click the first part of the component to switch to the numerical parameter mode. After switching, the second part displays the current size value of the sub-area in an editable state. For example, the initial height of the 4 sub-areas of the same level is 600mm, and each sub-area is 150mm high. After the height of one sub-area is changed to 300mm, the other 3 sub-areas automatically allocate the remaining height according to the proportional parameter, that is, the height of the other 3 sub-areas becomes 100mm. After the size parameters of the sub-areas change, the panel configuration information of multiple sub-areas is updated.
[0091] According to the solution of the embodiment of the present disclosure, the size of the sub-region can be adjusted proportionally through a size adjustment component, and the size of the sub-region can also be adjusted using actual physical values, and the switching is efficient and convenient.
[0092] In a possible implementation, S104 determines local masking parameters of multiple sub-areas according to the panel configuration information, further comprising the steps of:
[0093] Determine a masking method for each edge of the plurality of sub-areas according to the type of the plate in each adjacent area in the plate configuration information;
[0094] According to the masking mode, the masking value of each edge is determined to obtain local masking parameters of multiple sub-regions.
[0095] In the disclosed embodiment, when determining the masking values of the four sides of each sub-area, it is necessary to determine the masking method by considering whether the edge has a partition that needs to be covered, whether the edge has other adjacent sub-areas, and whether the adjacent sub-area has a cabinet panel, etc. through the panel configuration information. For example, if an edge does not have a corresponding partition, there is no object that needs to be covered, and the masking method is embedded. If an edge has a corresponding partition, and the adjacent sub-area has a cabinet panel, the partition is jointly covered by two or more adjacent partitions, and the masking method is half-covering. If the edge has a corresponding partition, but only one side of the sub-area has a cabinet panel, the partition is covered by the cabinet panel on this side, and the masking method is full-covering.
[0096] In a possible implementation, the mask value of each edge is determined according to the masking mode, including:
[0097] When the masking mode is full cover, the masking value is determined according to the global masking parameters;
[0098] When the covering method is half covering, the covering value is half of the corresponding partition thickness;
[0099] When the masking mode is embedded, the masking value is 0;
[0100] Among them, the covering method of the edge related to the outer frame of the target cabinet is full coverage; the covering method of the edge related to the partition whose two sides are completely covered by drawer panels or door panels is half coverage; the covering method of the edge unrelated to the outer frame of the target cabinet or unrelated to the partition is embedded.
[0101] In a possible implementation, the cabinet panel generation method of the embodiment of the present disclosure further includes the steps of:
[0102] When one side of the target partition is not completely covered by the drawer panel or door panel, the target partition is offset toward the fully covered side by half the thickness of the partition;
[0103] Change the masking mode of the relevant side of the fully covered side to full cover;
[0104] Change the masking mode of the relevant edges on the side that is not fully covered to inline.
[0105] In the disclosed embodiment, for a partition with a cabinet panel on one side and no cabinet panel on the other side, that is, a sub-area of the cabinet is a hollow area without a cabinet panel. In this case, half of the partition of one or more sides of the sub-area is covered, and the other half is not covered, resulting in not being completely covered by the cabinet panel. The processing method is to move the partition to the side with the cabinet panel, and then change the covering method of the edges of the sub-areas on both sides to full cover and embedded respectively.
[0106] According to the solution of the embodiment of the present disclosure, for the hollow internal space without a cabinet panel, the position of the partition and the covering method of the related edges are automatically adjusted.
[0107] In a possible implementation, S105 generates a drawer panel and / or a door panel on the target cabinet according to the panel configuration information and the local masking parameters, further comprising the steps of:
[0108] S1051, generating partitions for each area in batches from parent level to child level according to the hierarchical relationship between the areas included in the internal space of the target cabinet;
[0109] S1052: when the panel type of any area in each area is a drawer, generate drawer panels in batches according to the preset drawer style, panel configuration information and local masking parameters;
[0110] S1053: Generate a door panel according to a preset door panel style, panel configuration information and local masking parameters.
[0111] In the disclosed embodiment, since the drawer panels and door panels may need to rely on partitions for normal installation, the partitions are generated first, then the drawers, and finally the door panels. When generating partitions, the partitions of each area are generated in batches from parent to child according to the hierarchical relationship of each sub-area. When generating partitions, the partitions with the same size in the same direction are grouped together and generated according to the logic of evenly distributed panels. There is a sequence of dependency when generating, and the ones that are divided first are generated first. If the size of the target cabinet changes, the current configuration is maintained and the adaptation continues during the process of the partitions re-adapting to the size of the target cabinet.
[0112] like Figure 4 As shown in the figure, partitions 1 and 2 shown by thick lines are a group of evenly distributed plates, and partitions 3 and 4 are a group of evenly distributed plates. Since the areas corresponding to partitions 1 and 2 are divided earlier than the areas corresponding to partitions 3 and 4, the order of generating the partitions is to generate partitions 1 and 2 first, and then generate partitions 3 and 4.
[0113] Similarly, when generating drawers, the drawers are generated according to the drawer filling logic, that is, for a sub-area designated as a drawer panel, a corresponding number of drawer panels of the same size are generated according to the set number of drawers to fill the sub-area. In the subsequent re-adaptation process, the current configuration is also maintained for continued adaptation.
[0114] According to the solution of the embodiment of the present disclosure, after completing the division of sub-areas and configuring the panel type of each sub-area, the panel of the target cabinet can be automatically generated in the order of partitions, drawer panels, and door panels.
[0115] In a possible implementation, before executing S1051, the step of: adding a partition according to the verification rule and updating the panel configuration information when the partition configuration in the panel configuration information does not meet the verification rule is further included;
[0116] The verification rules include:
[0117] Partitions must be provided on the left and right sides of any drawer;
[0118] The side of any door panel where the door hinge is installed must be equipped with a partition;
[0119] When the adjacent area on one side of any door panel is not a door panel, a partition must be provided on that side;
[0120] When there is no connected plate at the end of any partition, a partition must be configured.
[0121] In the disclosed embodiment, before generating the cabinet panel, it is necessary to first perform compliance verification of the door panels, drawers, and partitions, which is specifically manifested in the following two aspects:
[0122] When a region is configured with doors, drawers, or partitions, but the component style is not configured, the global configuration panel pops up and the corresponding item is marked in red.
[0123] If the component configuration is compliant but the partition configuration is not compliant, the required partition will be automatically added and a confirmation box will be displayed.
[0124] In a possible implementation, when the panel type of any area in each area is a drawer, the drawer panels are generated in batches according to the preset drawer style, panel configuration information and local masking parameters, further comprising the steps of:
[0125] If multiple horizontally arranged sub-areas in the same level are all drawers, or if multiple vertically arranged sub-areas in the same level are drawers and there are no partitions between the multiple drawers, the multiple drawers are considered as the same group of drawers;
[0126] Determine the drawer panel size of a group of drawers according to the area size, local masking parameters and global gap parameters in the panel configuration information;
[0127] Generates a set of drawer fronts.
[0128] In the embodiment of the present disclosure, the generation of a drawer includes the following two situations:
[0129] If an area is entirely vertical drawers, and there are no partitions or blank areas between the drawers: fill the drawers according to the configuration of the area division. If there is a scenario where the area is divided twice, the corresponding ratio conversion is required, and multiple drawers are generated as a group of drawer filling.
[0130] If all drawers are vertical, and there are no partitions between the drawers but there are blank areas (no cabinet panels): the drawers are filled according to the configuration of the area division. If there is a scenario where the area is divided twice, the corresponding ratio conversion is required. The drawers on both sides of the blank area are still generated as a group of drawer filling.
[0131] In a possible implementation, when the panel type of any area in each area is a drawer, the drawer panels are generated in batches according to the preset drawer style, panel configuration information and local masking parameters, further comprising the steps of:
[0132] When multiple vertically arranged sub-areas in the same level are drawers and there is at least one partition between the multiple drawers, the drawers on one side of any partition are regarded as a group of drawers;
[0133] Determine the drawer panel size of each group of drawers according to the area size, local masking parameter and global gap parameter in the panel configuration information;
[0134] Generate drawer panels for each group of drawers separately.
[0135] In the embodiment of the present disclosure, the generation of a drawer also includes the following two situations:
[0136] If all drawers are vertical but there are dividers between them: group the drawers by the area separated by the dividers, then convert the drawer filling ratios, and treat the drawers on either side of the divider as a group of drawers.
[0137] If all are horizontal drawers: each drawer is generated as a set of drawer fills.
[0138] In a possible implementation, generating a door panel according to a preset door panel style, panel configuration information and masking parameters further includes the steps of:
[0139] If the rectangular area corresponding to the multiple door panels is full of door panels and there is no partition between the door panels, the multiple door panels are regarded as a whole, and the overall size is determined according to the area size and masking parameters included in the panel configuration information, and then the sizes of the multiple door panels are obtained by segmentation; otherwise
[0140] Determine the door panel sizes independently for the plurality of door panels according to the area sizes and masking parameters included in the panel configuration information;
[0141] Generates door panels based on the door panel dimensions of multiple door panels.
[0142] In the embodiment of the present disclosure, when generating a door panel, there are two situations: generating a single door panel and cutting the door panel. The specific situations are as follows:
[0143] Door panel segmentation: When the rectangular area is full of door panels and there are no partitions between the door panels, it is generated according to a set of door panel segmentation logic. For example, the following types are all generated according to a set of door panel segmentation logic:
[0144] Single door panel: The door panel that cannot be generated according to the door panel segmentation logic follows the single door panel generation logic.
[0145] When calculating the coverage of door panels and drawers, by default, the corresponding side is the cabinet frame's coverage mode and the coverage value is the global preset value, the corresponding side is the partition's coverage mode and the coverage value is half of the partition's thickness, otherwise it is processed as embedded and the coverage value is 0.
[0146] Figure 5 Schematic diagram of the structure of a cabinet panel generating device provided by an embodiment of the present disclosure. Figure 5 As shown, the device comprises:
[0147] Display module 501, used to display the target cabinet in the canvas of the interactive interface;
[0148] A division module 502, configured to divide the internal space of the target cabinet into a plurality of sub-areas according to the first interaction operation generated in the canvas;
[0149] A configuration module 503, configured to determine panel configuration information of the plurality of sub-areas according to the second interaction operation for the plurality of sub-areas;
[0150] A determination module 504, configured to determine local masking parameters of the plurality of sub-areas according to the panel configuration information; and
[0151] The generating module 505 is used to generate a drawer panel and / or a door panel on the target cabinet according to the panel configuration information and the local masking parameters.
[0152] In a possible implementation, the display module 501 is used to:
[0153] In response to an operation of selecting a target cabinet for panel generation in the interactive interface, switching the canvas of the interactive interface to a two-dimensional perspective;
[0154] The front view direction of the target cabinet is used as the direction of the two-dimensional viewing angle, and the area formed by the internal space of the target cabinet is tiled at the center of the canvas.
[0155] In a possible implementation, the device further includes an interaction module, which is used to:
[0156] generating an interactive component on a canvas on either side of the internal space, wherein the interactive component is used to adjust the division manner of the internal space;
[0157] Generating a first sidebar on the display interface, wherein the first sidebar is used to configure at least one of a global masking parameter, a global gap parameter, or a component style of the target cabinet;
[0158] A second sidebar is generated on the display interface, wherein the second sidebar is used to display a hierarchical relationship formed by a division method of an internal space of the target cabinet.
[0159] In a possible implementation, the partitioning module 502 is used to:
[0160] According to a first interactive operation generated on the interactive component on the canvas, the interior space of the target cabinet is divided into a plurality of sub-areas;
[0161] Among them, the interactive component is configured on the canvas close to either side of the selected area, and the interactive component includes at least one of an area increase button, an area decrease button, an area deletion button or an area size adjustment component; the selected area is the area in the internal space of the target cabinet that is in a selected state.
[0162] In a possible implementation, the partitioning module 502 is used to:
[0163] In response to clicking an area adding button in a first direction in the canvas, if the selected area is a single area or the selected area includes multiple parent areas and the sub-area division configuration of each parent area is consistent, the selected area is re-divided into N+1 sub-areas in the first direction; wherein N is the number of areas of the selected area in the first direction; or
[0164] In response to clicking a region adding button in a first direction in the canvas, if the selected region includes multiple parent regions and the sub-region division configurations of each parent region are inconsistent, clearing the sub-region division configurations of the multiple parent regions and re-dividing the region into two sub-regions in the first direction; or
[0165] In response to clicking an area reduction button in the second direction in the canvas, when the selected area includes only one parent area or includes multiple parent areas with the same sub-area division configuration, each parent area is re-divided into N-1 sub-areas in the second direction; wherein N is the number of areas of the selected area in the second direction; or
[0166] In response to clicking an area reduction button in the second direction in the canvas, when the selected area contains multiple parent areas and the sub-area division configuration of each parent area is inconsistent, for an area in the multiple parent areas with no less than 2 sub-areas in the second direction, the number of sub-areas is reduced by 1 and then re-divided; wherein N is the number of areas of the selected area in the second direction.
[0167] In a possible implementation, the configuration module 503 is used to:
[0168] According to the target panel button selected by the second interactive operation and the target element selected from the multiple sub-areas, the target element is configured as a panel type corresponding to the target panel button; wherein the panel type corresponding to the target panel button includes at least one of a drawer panel, a door panel or a partition, and the target element includes an internal area surrounded by any one side or any four sides of each sub-area;
[0169] According to the panel type of each of the sub-areas, panel configuration information of the multiple sub-areas is determined.
[0170] In a possible implementation, the device further includes a selection module, which is used to:
[0171] When the sub-region whose panel type is a door panel is in a selected state, a floating drop-down component is generated on the canvas next to the sub-region;
[0172] According to the selection operation of the suspended pull-down component, the door opening direction information of the door panel of the sub-area is determined.
[0173] In a possible implementation, the device further includes a size adjustment module, which is used to:
[0174] According to the proportional parameter or numerical parameter input in the size adjustment component corresponding to the target sub-region, the size parameters of each sub-region under the same parent level as the target sub-region are adjusted; wherein the size adjustment component can be switched between the numerical parameter mode and the proportional parameter mode;
[0175] The panel configuration information of the plurality of sub-areas is updated according to the size parameters of all the sub-areas.
[0176] In a possible implementation, the determination module 504 is used to:
[0177] Determining a masking method for each edge of the plurality of sub-areas according to the panel type of each adjacent area in the panel configuration information;
[0178] According to the masking mode, a masking value of each edge is determined to obtain local masking parameters of multiple sub-regions.
[0179] In a possible implementation, the determination module 504 is used to:
[0180] When the masking mode is full cover, the masking value is determined according to the global masking parameters;
[0181] When the covering method is half covering, the covering value is half of the corresponding partition thickness;
[0182] When the masking mode is embedded, the masking value is 0;
[0183] Among them, the covering method of the edges related to the outer frame of the target cabinet is full covering; the covering method of the edges related to the partitions whose sides are completely covered by drawer panels or door panels is half covering; the covering method of the edges unrelated to the outer frame of the target cabinet or unrelated to the partitions is embedded.
[0184] In a possible implementation, the determining module 504 is further configured to:
[0185] When one side of the target partition is not completely covered by the drawer panel or the door panel, the target partition is offset toward the completely covered side by half the thickness of the partition;
[0186] Change the masking mode of the relevant side of the fully covered side to full cover;
[0187] Change the masking mode of the relevant edges on the side that is not fully covered to inline.
[0188] In a possible implementation, the generating module 505 is used to:
[0189] According to the hierarchical relationship between the areas contained in the internal space of the target cabinet, partitions of each area are generated in batches from the parent level to the child level;
[0190] When the panel type of any of the regions is a drawer, generating drawer panels in batches according to a preset drawer style, the panel configuration information and the local masking parameters;
[0191] A door panel is generated according to a preset door panel style, the panel configuration information and the local masking parameters.
[0192] In a possible implementation, the generating module 505 is used to:
[0193] If multiple horizontally arranged sub-areas in the same level are all drawers, or if multiple vertically arranged sub-areas in the same level are drawers and there are no partitions between the multiple drawers, the multiple drawers are considered as the same group of drawers;
[0194] Determining the drawer panel size of the set of drawers according to the area size, local masking parameter and global gap parameter in the panel configuration information;
[0195] A drawer front is generated for the set of drawers.
[0196] In a possible implementation, the generating module 505 is used to:
[0197] When multiple vertically arranged sub-areas in the same level are drawers and there is at least one partition between the multiple drawers, the drawers on one side of any partition are regarded as a group of drawers;
[0198] Determine the drawer panel size of each group of drawers according to the area size, local masking parameter and global gap parameter in the panel configuration information;
[0199] Drawer panels of each group of drawers are generated respectively.
[0200] In a possible implementation, the generating module 505 is used to:
[0201] If the rectangular area corresponding to the multiple door panels is full of door panels and there is no partition between the door panels, the multiple door panels are taken as a whole, the overall size is determined according to the area size and masking parameters included in the panel configuration information, and then the sizes of the multiple door panels are obtained by cutting; otherwise
[0202] Determine the door panel sizes of the plurality of door panels independently according to the area sizes and masking parameters included in the panel configuration information;
[0203] A door panel is generated according to the door panel sizes of the plurality of door panels.
[0204] In a possible implementation, the generating module 505 is further used to: if the partition configuration in the panel configuration information does not meet the verification rule, add a partition according to the verification rule and update the panel configuration information;
[0205] The verification rules include:
[0206] Partitions must be provided on the left and right sides of any drawer;
[0207] The side of any door panel where the door hinge is installed must be equipped with a partition;
[0208] When the adjacent area on one side of any door panel is not a door panel, a partition must be provided on that side;
[0209] When there is no connected plate at the end of any partition, a partition must be configured.
[0210] For the description of specific functions and examples of each module and submodule of the device in the embodiment of the present disclosure, reference can be made to the relevant description of the corresponding steps in the above method embodiment, which will not be repeated here.
[0211] Figure 6 FIG. 1 is a structural block diagram of an electronic device according to an embodiment of the present disclosure. Figure 6 As shown, the electronic device includes: a memory 610 and a processor 620, and the memory 610 stores a computer program that can be run on the processor 620. The number of the memory 610 and the processor 620 can be one or more. The memory 610 can store one or more computer programs. When the one or more computer programs are executed by the electronic device, the electronic device executes the method provided by the above method embodiment. The electronic device may also include: a communication interface 630, which is used to communicate with external devices and perform data exchange transmission.
[0212] If the memory 610, the processor 620 and the communication interface 630 are implemented independently, the memory 610, the processor 620 and the communication interface 630 can be connected to each other through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0213] Optionally, in a specific implementation, if the memory 610, the processor 620 and the communication interface 630 are integrated on a chip, the memory 610, the processor 620 and the communication interface 630 can communicate with each other through an internal interface.
[0214] It should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. It is worth noting that the processor may be a processor supporting the Advanced RISC Machines (ARM) architecture.
[0215] Further, optionally, the above-mentioned memory may include a read-only memory and a random access memory, and may also include a non-volatile random access memory. The memory may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may include a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may include a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available. For example, static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct memory bus random access memory (DR RAM).
[0216] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, the process or function described in the embodiment of the present disclosure is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (for example: coaxial cable, optical fiber, data subscriber line (Digital Subscriber Line, DSL)) or wireless (for example: infrared, Bluetooth, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access, or a data storage device such as a server or data center that includes one or more available media integrations. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a digital versatile disc (DVD)), or a semiconductor medium (e.g., a solid state disk (SSD)), etc. It is worth noting that the computer-readable storage medium mentioned in the present disclosure may be a non-volatile storage medium, in other words, a non-transient storage medium.
[0217] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0218] In the description of the embodiments of the present disclosure, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present disclosure. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.
[0219] In the description of the embodiments of the present disclosure, unless otherwise specified, " / " means or, for example, A / B can mean A or B. "And / or" in this article is only a way to describe the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.
[0220] In the description of the embodiments of the present disclosure, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present disclosure, unless otherwise specified, "plurality" means two or more.
[0221] The above description is only an exemplary embodiment of the present disclosure and is not intended to limit the present disclosure. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A cabinet panel generation method, comprising: Display the target cabinet in the canvas of the interactive interface; According to the first interactive operation generated in the canvas, the interior space of the target cabinet is divided into a plurality of sub-areas; Determining panel configuration information of the plurality of sub-areas according to a second interactive operation on the plurality of sub-areas; determining local masking parameters of the plurality of sub-areas according to the panel configuration information; as well as A drawer panel and / or a door panel is generated on the target cabinet according to the panel configuration information and the local masking parameters.
2. The method according to claim 1, wherein: Display the target cabinet on the canvas of the display interface, including: In response to an operation of selecting a target cabinet for panel generation in the interactive interface, switching the canvas of the interactive interface to a two-dimensional perspective; The front view direction of the target cabinet is used as the direction of the two-dimensional viewing angle, and the area formed by the internal space of the target cabinet is tiled at the center of the canvas.
3. The method according to claim 2, further comprising: generating an interactive component on a canvas on either side of the internal space, wherein the interactive component is used to adjust the division manner of the internal space; Generating a first sidebar on the display interface, wherein the first sidebar is used to configure at least one of a global masking parameter, a global gap parameter, or a component style of the target cabinet; A second sidebar is generated on the display interface, wherein the second sidebar is used to display a hierarchical relationship formed by a division method of an internal space of the target cabinet.
4. The method according to claim 1 or 3, wherein: According to the first interactive operation generated in the canvas, the internal space of the target cabinet is divided into a plurality of sub-areas, including: According to a first interactive operation generated on the interactive component on the canvas, the interior space of the target cabinet is divided into a plurality of sub-areas; Among them, the interactive component is configured on the canvas close to either side of the selected area, and the interactive component includes at least one of an area increase button, an area decrease button, an area deletion button or an area size adjustment component; the selected area is the area in the internal space of the target cabinet that is in a selected state.
5. The method according to claim 1, wherein: According to the first interactive operation generated in the canvas, the internal space of the target cabinet is divided into a plurality of sub-areas, including: In response to clicking an area adding button in a first direction in the canvas, if the selected area is a single area or the selected area includes multiple parent areas and the sub-area division configuration of each parent area is consistent, the selected area is re-divided into N+1 sub-areas in the first direction; wherein N is the number of areas of the selected area in the first direction; or In response to clicking a region adding button in a first direction in the canvas, if the selected region includes multiple parent regions and the sub-region division configurations of each parent region are inconsistent, clearing the sub-region division configurations of the multiple parent regions and re-dividing the region into two sub-regions in the first direction; or In response to clicking an area reduction button in the second direction in the canvas, when the selected area includes only one parent area or includes multiple parent areas with the same sub-area division configuration, each parent area is re-divided into N-1 sub-areas in the second direction; wherein N is the number of areas of the selected area in the second direction; or In response to clicking an area reduction button in the second direction in the canvas, when the selected area contains multiple parent areas and the sub-area division configuration of each parent area is inconsistent, for an area in the multiple parent areas with no less than 2 sub-areas in the second direction, the number of sub-areas is reduced by 1 and then re-divided; wherein N is the number of areas of the selected area in the second direction.
6. The method according to claim 1, wherein: Determining panel configuration information of the plurality of sub-areas according to the second interaction operation on the plurality of sub-areas includes: According to the target panel button selected by the second interactive operation and the target element selected from the multiple sub-areas, the target element is configured as a panel type corresponding to the target panel button; wherein the panel type corresponding to the target panel button includes at least one of a drawer panel, a door panel or a partition, and the target element includes an internal area surrounded by any one side or any four sides of each sub-area; According to the panel type of each of the sub-areas, panel configuration information of the multiple sub-areas is determined.
7. The method according to claim 6, further comprising: When the sub-region whose panel type is a door panel is in a selected state, a floating drop-down component is generated on the canvas next to the sub-region; According to the selection operation of the suspended pull-down component, the door opening direction information of the door panel of the sub-area is determined.
8. The method according to claim 4, wherein: Also includes: According to the proportional parameter or numerical parameter input in the size adjustment component corresponding to the target sub-region, the size parameters of each sub-region under the same parent level as the target sub-region are adjusted; wherein the size adjustment component can be switched between the numerical parameter mode and the proportional parameter mode; The panel configuration information of the plurality of sub-areas is updated according to the size parameters of all the sub-areas.
9. The method according to claim 1, wherein: Determining local masking parameters of the plurality of sub-areas according to the panel configuration information includes: Determining a masking method for each edge of the plurality of sub-areas according to the panel type of each adjacent area in the panel configuration information; According to the masking mode, a masking value of each edge is determined to obtain local masking parameters of multiple sub-regions.
10. The method according to claim 9, wherein: Determining the mask value of each edge according to the masking mode includes: When the masking mode is full cover, the masking value is determined according to the global masking parameters; When the covering method is half covering, the covering value is half of the corresponding partition thickness; When the masking mode is embedded, the masking value is 0; Among them, the covering method of the edges related to the outer frame of the target cabinet is full covering; the covering method of the edges related to the partitions whose sides are completely covered by drawer panels or door panels is half covering; the covering method of the edges unrelated to the outer frame of the target cabinet or unrelated to the partitions is embedded.
11. The method according to claim 10, further comprising: When one side of the target partition is not completely covered by the drawer panel or the door panel, the target partition is offset toward the completely covered side by half the thickness of the partition; Change the masking mode of the relevant side of the fully covered side to full cover; Change the masking mode of the relevant edges on the side that is not fully covered to inline.
12. The method according to claim 1, wherein: Generating a drawer panel and / or a door panel on the target cabinet according to the panel configuration information and the local masking parameter includes: According to the hierarchical relationship between the areas contained in the internal space of the target cabinet, partitions of each area are generated in batches from the parent level to the child level; When the panel type of any of the regions is a drawer, generating drawer panels in batches according to a preset drawer style, the panel configuration information and the local masking parameters; A door panel is generated according to a preset door panel style, the panel configuration information and the local masking parameters.
13. The method according to claim 12, wherein: In the case where the panel type of any of the regions is a drawer, generating drawer panels in batches according to a preset drawer style, the panel configuration information and the local masking parameter, including: If multiple horizontally arranged sub-areas in the same level are all drawers, or if multiple vertically arranged sub-areas in the same level are drawers and there are no partitions between the multiple drawers, the multiple drawers are considered as the same group of drawers; Determining the drawer panel size of the set of drawers according to the area size, local masking parameter and global gap parameter in the panel configuration information; A drawer front is generated for the set of drawers.
14. The method according to claim 12, wherein: In the case where the panel type of any of the regions is a drawer, generating drawer panels in batches according to a preset drawer style, the panel configuration information and the local masking parameter, including: When multiple vertically arranged sub-areas in the same level are drawers and there is at least one partition between the multiple drawers, the drawers on one side of any partition are regarded as a group of drawers; Determine the drawer panel size of each group of drawers according to the area size, local masking parameter and global gap parameter in the panel configuration information; Drawer panels of each group of drawers are generated respectively.
15. The method according to claim 12, wherein: Generate a door panel according to a preset door panel style, the panel configuration information and the masking parameters, including: If the rectangular area corresponding to the multiple door panels is full of door panels and there is no partition between the door panels, the multiple door panels are taken as a whole, the overall size is determined according to the area size and masking parameters included in the panel configuration information, and then the sizes of the multiple door panels are obtained by cutting; otherwise Determine the door panel sizes of the plurality of door panels independently according to the area sizes and masking parameters included in the panel configuration information; A door panel is generated according to the door panel sizes of the plurality of door panels.
16. The method according to claim 1 or 12, further comprising: When the partition configuration in the panel configuration information does not conform to the verification rule, adding a partition according to the verification rule and updating the panel configuration information; The verification rules include: Partitions must be provided on the left and right sides of any drawer; The side of any door panel where the door hinge is installed must be equipped with a partition; When the adjacent area on one side of any door panel is not a door panel, a partition must be provided on that side; When there is no connected plate at the end of any partition, a partition must be configured.
17. A cabinet panel generating device, comprising: A display module, used to display the target cabinet in the canvas of the interactive interface; A division module, configured to divide the internal space of the target cabinet into a plurality of sub-areas according to the first interaction operation generated in the canvas; A configuration module, configured to determine panel configuration information of the plurality of sub-areas according to a second interaction operation on the plurality of sub-areas; A determination module, configured to determine local masking parameters of the plurality of sub-areas according to the panel configuration information; as well as A generating module is used to generate a drawer panel and / or a door panel on the target cabinet according to the panel configuration information and the local masking parameters.
18. An electronic device comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 16.
19. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-16.
20. A computer program product comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 16.
