A wine rack model generation method, device, equipment and storage medium
By obtaining the type and process parameter information of the wine grid, the problem of time-consuming and inaccurate installation of the wine grid in the existing technology is solved, and efficient and precise installation and production of the wine grid is achieved.
Patent Information
- Application Number
- CN202110731650.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-30
- Publication Date
- 2024-12-27
- Estimated Expiration
- 2041-06-30
AI Technical Summary
The existing furniture design software takes a long time to make wine grids and is difficult to install accurately. The automatic generation method on the market cannot set processing errors, resulting in installation errors and high rework rates.
By obtaining the type information and process parameter information of the wine grid, a parameterized wine grid model is generated, including generating board data and models, supporting designers to customize parameters, export CAD diagrams, and setting processing errors according to the process to ensure accuracy Install.
It improves the generation efficiency and production efficiency of the wine grid model, reduces the rework rate, ensures the precise installation of the wine grid, and simplifies the design and production process.
Smart Images

Figure CN113297664B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of furniture design, and in particular to a wine rack model generation method, device, equipment and storage medium. Background Art
[0002] At present, with the development of home decoration, more and more people are improving their taste. Many people have begun to design a wine rack in their cabinets to display wine. Whether it is for decoration, collection, or drinking, it is a good home function. Therefore, the wine rack function in home design software has also appeared in due time.
[0003] In the current furniture industry design software, when making a wine rack, the designer needs to make it piece by piece according to his own craftsmanship, and finally manually arrange the pieces into a wine rack. In order to make different types of wine racks, a lot of different panels need to be made. In other words, it is very time-consuming and difficult for designers of current design software to make a wine rack. Another production method on the market is to automatically generate it according to the space inside the cabinet, but it is impossible to set the processing error, giving users a false impression that it can be produced. Before production and installation, it is impossible to find out whether the wine rack can be accurately installed. When installing, errors often occur, and various problems such as inability to install and loose installation emerge in an endless stream. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a method, device, equipment and storage medium for generating a wine rack model, which can achieve the technical effect of ensuring the precise installation of the wine rack while improving the efficiency of generating the wine rack model, thereby improving the production efficiency of the wine rack.
[0005] In a first aspect, an embodiment of the present application provides a method for generating a wine rack model, comprising:
[0006] Obtain the type information and process parameter information of the wine rack;
[0007] Generate plate data of the wine rack according to the type information and process parameter information of the wine rack;
[0008] A wine rack model is generated according to the panel data.
[0009] In the above implementation process, the wine rack model generation method can realize the generation of a parametric wine rack model by acquiring type information and process parameter information, wherein the type information and process parameter information are customized by the designer; in other words, the designer directly generates a wine rack model by setting parameters, and the wine rack model can export a CAD drawing, and the generated data in the wine rack model can be directly transferred to the production link; thus, the wine rack model generation method is time-saving and convenient, and the wine rack model can set processing errors according to the factory process to solve the installation results caused by errors after production; at the same time, the convenience is greatly increased, and the production rework rate is greatly reduced, which can achieve the technical effect of ensuring the precise installation of the wine rack while improving the efficiency of generating the wine rack model, thereby improving the production efficiency of the wine rack.
[0010] Furthermore, the step of generating the plate data of the wine rack according to the type information and process parameter information of the wine rack comprises:
[0011] Generate a plate distribution center line according to the type information and process parameter information of the wine rack;
[0012] Generate a wine rack distribution image according to the plate thickness information and the plate distribution center line;
[0013] Traversing the intersection points of each plate in the wine rack distribution image with the plates in another direction, and calculating the card slot information of the wine rack;
[0014] The plate data of the wine rack is generated according to the wine rack distribution image and the card slot information.
[0015] In the above implementation process, according to the type information, process parameter information and plate thickness information of the wine rack, the plate distribution center line, the wine rack distribution image and the slot information of the wine rack are gradually generated and calculated, thereby finally generating the plate data of the wine rack.
[0016] Furthermore, the step of generating a plate distribution center line according to the type information and process parameter information of the wine rack comprises:
[0017] Calculate the grid parameters and grid width parameters of the wine grid rack according to the process parameter information;
[0018] Determine whether the type information is a half-grid wine rack. If so, take the center point of the inner space as the center point of the board or the center point of the board spacing, start from the middle and arrange the boards in intervals to the four sides, and generate the board distribution center line according to the out-of-grid parameters and the grid width parameters; if not, arrange the boards from left to right and from top to bottom, and generate the board distribution center line according to the out-of-grid parameters and the grid width parameters.
[0019] In the above implementation process, different strategies are adopted to generate the plate distribution center line according to different types of information of the wine rack, so as to optimize the process of generating the plate distribution center line and improve the generation efficiency.
[0020] Furthermore, before the step of traversing the intersection points of each plate in the wine rack distribution image with the plates in another direction to calculate the card slot information of the wine rack, the method further includes:
[0021] The wine rack distribution image is subjected to board edge and corner processing.
[0022] In the above implementation process, the wine rack distribution image is processed at the edges and corners before the card slot information of the wine rack is calculated, so that the wine rack model can achieve richer visual effects.
[0023] Furthermore, the step of performing board corner processing on the wine rack distribution image comprises:
[0024] The wine rack distribution image is subjected to a wraparound or left-falling, right-falling, or right-falling board edge processing.
[0025] In a second aspect, the present application also provides a wine rack model generation device, comprising:
[0026] An acquisition module is used to obtain type information and process parameter information of the wine rack;
[0027] A plate component generating module, used for generating plate component data of the wine rack according to the type information and process parameter information of the wine rack;
[0028] The wine rack generation module is used to generate a wine rack model according to the panel data.
[0029] Furthermore, the panel generation module also includes:
[0030] A distribution center line unit, used for generating a plate distribution center line according to the type information and process parameter information of the wine rack;
[0031] A distribution image unit, used for generating a wine rack distribution image according to the plate thickness information and the plate distribution center line;
[0032] A card slot unit, used for traversing the intersection of each plate in the wine rack distribution image with the plate in another direction, and calculating the card slot information of the wine rack;
[0033] The wine rack generating unit is used to generate the plate data of the wine rack according to the wine rack distribution image and the card slot information.
[0034] Furthermore, the panel generation module also includes:
[0035] A grid-out / grid-width unit, used for calculating the grid-out parameters and grid-width parameters of the wine grid rack according to the process parameter information;
[0036] A judgment unit is used to judge whether the type information is a half-grid wine rack. If so, the boards are arranged in intervals from the middle to the four sides with the center point of the inner space as the center point of the board or the center point of the board interval, and the board distribution center line is generated according to the out-of-grid parameters and the grid width parameters; if not, the boards are arranged in intervals from left to right and from top to bottom, and the board distribution center line is generated according to the out-of-grid parameters and the grid width parameters.
[0037] Furthermore, the panel generation module also includes: a panel edge processing unit, which is used to perform panel edge processing on the wine rack distribution image.
[0038] Furthermore, the board edge processing unit is also used to perform surrounding or left-falling, right-falling and right-falling board edge processing on the wine rack distribution image.
[0039] In a third aspect, an embodiment of the present application provides a device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method described in any one of the first aspects when executing the computer program.
[0040] In a fourth aspect, an embodiment of the present application provides a storage medium, on which instructions are stored. When the instructions are executed on a computer, the computer executes the method as described in any one of the first aspects.
[0041] In a fifth aspect, an embodiment of the present application provides a computer program product, which, when running on a computer, enables the computer to execute the method as described in any one of the first aspects.
[0042] Other features and advantages disclosed in the present application will be described in the following description, or some features and advantages can be inferred or determined without doubt from the description, or can be learned by implementing the above-mentioned technology disclosed in the present application.
[0043] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0045] Figure 1 A schematic diagram of a flow chart of a wine rack model generation method provided in an embodiment of the present application;
[0046] Figure 2a A schematic diagram of the structure of a tic-tac-toe wine rack provided in an embodiment of the present application;
[0047] Figure 2b A schematic diagram of the structure of a full-grid wine rack provided in an embodiment of the present application;
[0048] Figure 2c A schematic diagram of the structure of a half-grid wine rack provided in an embodiment of the present application;
[0049] Figure 3 A schematic diagram of a process for generating plate data for a wine rack provided in an embodiment of the present application;
[0050] Figure 4 A schematic diagram of a process for generating a plate distribution centerline provided in an embodiment of the present application;
[0051] Figure 5 A schematic diagram of the midline distribution of the plates of a half-grid wine rack provided in an embodiment of the present application;
[0052] Figure 6 A schematic diagram of the distribution image of a wine rack of a half-grid wine rack provided in an embodiment of the present application;
[0053] Figure 7 A schematic diagram of a wine rack distribution image after the corners of a half-grid wine rack provided in an embodiment of the present application have been processed;
[0054] Figure 8 A schematic diagram of the structure of a wine rack panel provided in an embodiment of the present application;
[0055] Fig. 9 A schematic diagram of the structure of a wine rack model provided in an embodiment of the present application;
[0056] Fig.10 A schematic diagram of the structure of a wine rack model generation device provided in an embodiment of the present application;
[0057] Fig.11 A structural block diagram of a device provided in an embodiment of the present application.
[0058] Icons: 100 - acquisition module; 200 - board generation module; 300 - wine rack generation module; 510 - processor; 520 - communication interface; 530 - memory; 540 - communication bus. DETAILED DESCRIPTION
[0059] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.
[0060] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0061] A wine rack model generation method, device, equipment and storage medium provided in the embodiments of the present application can be applied to the generation of wine rack models and then the production of wine racks; the wine rack model generation method can realize the generation of parameterized wine rack models by acquiring type information and process parameter information, wherein the type information and process parameter information are customized by the designer (the type information includes tic-tac-toe wine rack, full-grid wine rack and half-full-grid wine rack, etc.); in other words, the designer directly generates the wine rack model by setting parameters, and the wine rack model can export CAD drawings, and the generated data in the wine rack model can be directly used in the production link; thus, the wine rack model generation method is time-saving and convenient, and the wine rack model can set processing errors according to the factory process to solve the installation results caused by errors after production; at the same time, the convenience is greatly increased, and the production rework rate is greatly reduced, which can achieve the technical effect of ensuring the precise installation of the wine rack while improving the efficiency of generating the wine rack model, thereby improving the production efficiency of the wine rack.
[0062] See also Figure 1 , Figure 1 The flowchart of the wine rack model generation method provided in the embodiment of the present application includes the following steps:
[0063] S100: Acquire type information and process parameter information of the wine rack.
[0064] Exemplarily, the type information of the wine rack includes a tic-tac-toe wine rack, a full-grid wine rack, a half-full-grid wine rack, etc.; the process parameter information includes the material information, assembly method, processing method, etc. of the wine rack.
[0065] Exemplarily, the material information of the wine rack is the material information of the wine rack panels.
[0066] Exemplarily, the assembly method is the connection method of the edges and corners of the wine rack panels, including the left-falling, right-falling, and wrap-around types.
[0067] S200: Generate plate data of the wine rack according to the type information and process parameter information of the wine rack.
[0068] S300: Generate a wine rack model according to the panel data.
[0069] For example, with the advancement of modern technology, the development of customized home furnishings is getting faster and faster, and the home furnishing industry has also shifted from manual design to software design. Designers start with software design, obtain relevant production data, and then take it to the factory for production. Among them, the wine rack is produced separately, mainly produced as panels, which are assembled by slotting two boards in opposite directions (board A and board B) and snapping them together. Then install it in the cabinet. The two boards are stuck together, and the two boards in different directions, A and B, are stuck together. Generally, board A and board B are perpendicular to each other.
[0070] In some embodiments, the wine rack model generation method can produce different corner treatments according to needs, such as a left-falling, right-falling, or wrap-around style.
[0071] For example, there are usually two ways to implement design software on the market: first, the designer gets the size and type of the customized wine rack, and then uses the design software to design all the panels that make up the wine rack, calculates the size of the panels, slots, and seals the edges one by one, and then designs the panels one by one based on the data obtained, and finally manually arranges the panels one by one into an integrated wine rack according to the arrangement of the wine rack panels, and finally produces it and installs it in the cabinet; second, the designer gets the size and type of the wine rack. The software automatically generates a specific type of wine rack, without detail processing and no art parameters to adjust, and then directly exports the panel data, and finally produces it and installs it in the cabinet.
[0072] See also Figure 2a to Figure 2c , Figure 2a This is a schematic diagram of the structure of the tic-tac-toe wine rack provided in the embodiment of the present application. Figure 2b This is a schematic diagram of the structure of a full-grid wine rack provided in an embodiment of the present application. Figure 2c This is a schematic diagram of the structure of a half-grid wine rack provided in an embodiment of the present application.
[0073] In some embodiments, the design software produced according to the wine rack model generation method provided in the embodiments of the present application includes the following functional modules:
[0074] Warehousing function module:
[0075] 1) Type selection (type of wine rack, including tic-tac-toe, full grid, half grid, etc.);
[0076] 2) Material selection of wine rack panels, process parameters can be set, including the overall reserved width and height of the wine rack (to prevent production errors from causing installation failure), and the slot width and depth of the wine rack panels (to prevent the two panels from not being able to fit in);
[0077] 3) Choose the corner style (left-falling, right-falling, wrap-around, etc.) to achieve a rich visual effect;
[0078] 4) Click Generate to generate a complete wine rack model.
[0079] Front-end editing function module:
[0080] Perform front-end editing according to the actual size required for production, and place the wine rack model in the cabinet. You can manually set the size of the wine rack model or adapt the size to generate a wine rack model that can be directly applied to production. The data of the exported wine rack model can be taken to the factory for production.
[0081] In some embodiments, the wine rack model generation method can realize the generation of a parameterized wine rack model by acquiring type information and process parameter information, wherein the type information and process parameter information are customized by the designer (type information includes tic-tac-toe wine rack, full-grid wine rack and half-full-grid wine rack, etc.); in other words, the designer directly generates a wine rack model by setting parameters, and the wine rack model can export a CAD drawing, and the generated data in the wine rack model can be directly transferred to the production link; thus, the wine rack model generation method is time-saving and convenient, and the wine rack model can set processing errors according to the factory process to solve the installation results caused by errors after production; at the same time, the convenience is greatly increased, and the production rework rate is greatly reduced, which can achieve the technical effect of ensuring the precise installation of the wine rack while improving the efficiency of generating the wine rack model, thereby improving the production efficiency of the wine rack.
[0082] See also Figure 3 , Figure 3 A schematic diagram of a process for generating plate data for a wine rack provided in an embodiment of the present application.
[0083] Exemplarily, S200: the step of generating plate data of the wine rack according to the type information and process parameter information of the wine rack includes:
[0084] S210: generating a plate distribution center line according to the type information and process parameter information of the wine rack;
[0085] S220: Generate a wine rack distribution image according to the plate thickness information and the plate distribution center line;
[0086] S230: traversing the intersection points between each plate in the wine rack distribution image and the plates in another direction, and calculating the card slot information of the wine rack;
[0087] S240: Generate plate data of the wine rack according to the wine rack distribution image and the card slot information.
[0088] Exemplarily, based on the type information, process parameter information, and plate thickness information of the wine rack, the plate distribution center line, the wine rack distribution image, and the wine rack slot information are gradually generated and calculated, thereby ultimately generating the plate data of the wine rack.
[0089] See also Figure 4 , Figure 4 A schematic diagram of a process for generating a plate distribution centerline provided in an embodiment of the present application.
[0090] Exemplarily, S210: the step of generating a plate distribution center line according to the type information and process parameter information of the wine rack includes:
[0091] S211: Calculating grid parameters and grid width parameters of the wine rack according to the process parameter information;
[0092] S212: Determine whether the type information is a half-grid wine rack;
[0093] S213: If yes, take the center point of the inner space as the center point of the board or the center point of the board interval, start from the middle and spread out to the four sides to arrange the boards in intervals, and generate the board distribution center line according to the grid parameters and grid width parameters;
[0094] S214: If not, layout is performed from left to right and from top to bottom, and a plate distribution center line is generated according to the grid parameters and the grid width parameters.
[0095] For example, according to different types of information of the wine rack, different strategies are adopted to generate the plate distribution center line, thereby optimizing the process of generating the plate distribution center line and improving the generation efficiency.
[0096] In some embodiments, before the step of S230: traversing the intersection of each plate in the wine rack distribution image with the plate in another direction to calculate the card slot information of the wine rack, the method further includes:
[0097] Perform board corner processing on the wine rack distribution image.
[0098] For example, performing board edge processing on the wine rack distribution image before calculating the card slot information of the wine rack can enable the wine rack model to achieve richer visual effects.
[0099] Optionally, the step of performing board corner processing on the wine rack distribution image includes:
[0100] The wine rack distribution image is processed with a wraparound or up-down style board edge corner treatment.
[0101] Taking the wine rack model of a half-grid wine rack as an example, the specific process of generating the wine rack model is as follows:
[0102] The first step is to process the side of the board: realize the distribution of the board parts and find the center line of the board distribution:
[0103] For half-grid wine racks, under given conditions, the two parameters of grid number and grid width are calculated. According to the parity of the number of grids in the grid width direction and the number of grids in the grid height direction, the center point of the inner space is the center point of the board or the center point of the board interval, and the boards are arranged in intervals from the middle to the four sides.
[0104] like Figure 5 As shown, Figure 5 This is a schematic diagram of the centerline distribution of the plates of the half-grid wine rack provided in an embodiment of the present application.
[0105] The second step is to generate a wine rack distribution image based on the plate distribution centerline and plate thickness information.
[0106] like Figure 6 As shown, Figure 6 A schematic diagram of the wine rack distribution image of a half-grid wine rack provided in an embodiment of the present application.
[0107] The third step is to process each board in the wine rack into a left-falling, right-falling or wrapping style according to the preset rules according to different edge and corner treatments. The wrapping style is to search from the first board of the left-falling to the head and tail directions, and process the corners at intervals (that is, board A is connected to board B, and when connected, board A is indented, and board B is not processed. If board A is not processed, board B is indented) until no connecting board is found. The process ends when each board has been checked.
[0108] like Figure 7 As shown, Figure 7 This is a schematic diagram of the distribution image of the wine rack after the corners of the half-grid wine rack provided in the embodiment of the present application have been processed.
[0109] The fourth step is to process the front side of the board and slot the board.
[0110] According to the arranged two-directional plates, traverse the intersection of each plate with the plate in the other direction, calculate the position of the center point of the slot, and calculate the slot information based on the process parameter information. The slot information includes the width, height, spacing, etc. of the slot.
[0111] like Figure 8 As shown, Figure 8 A schematic diagram of the structure of a wine rack panel provided in an embodiment of the present application.
[0112] The fifth step is to generate the physical panel according to the generated panel data, and finally generate the wine rack model.
[0113] like Fig. 9 As shown, Fig. 9 This is a schematic diagram of the structure of the wine rack model provided in the embodiment of the present application.
[0114] comprehensive Figures 1 to 9 The wine rack model generation method provided in the embodiment of the present application provides a parameterized template for storage (i.e., generating a wine rack template), which can generate a wine rack model for actual production according to installation parameters.
[0115] The wine rack model generation method has the following advantages: simple warehousing, everything is parameter-driven, saving workload; the process can be set, suitable for different factory processes, and improve the success rate of production and installation; the styles are changeable to meet the designer's needs for different styles.
[0116] See also Fig.10 , Fig.10 A schematic diagram of the structure of a wine rack model generation device provided in an embodiment of the present application, wherein the wine rack model generation device comprises:
[0117] An acquisition module 100 is used to acquire type information and process parameter information of a wine rack;
[0118] The plate generating module 200 is used to generate plate data of the wine rack according to the type information and process parameter information of the wine rack;
[0119] The wine rack generation module 300 is used to generate a wine rack model according to the panel data.
[0120] Exemplarily, the board generation module 200 includes:
[0121] The distribution center line unit is used to generate the plate distribution center line according to the type information and process parameter information of the wine rack;
[0122] A distribution image unit, used for generating a wine rack distribution image according to the plate thickness information and the plate distribution center line;
[0123] A card slot unit is used to traverse the intersection of each plate in the wine rack distribution image with the plate in another direction and calculate the card slot information of the wine rack;
[0124] The wine rack generation unit is used to generate the plate data of the wine rack according to the wine rack distribution image and the card slot information.
[0125] Exemplarily, the panel generation module 200 further includes:
[0126] The grid / grid width unit is used to calculate the grid parameters and grid width parameters of the wine grid rack according to the process parameter information;
[0127] The judgment unit is used to judge whether the type information is a half-grid wine rack. If so, the center point of the inner space is used as the center point of the board or the center point of the board interval, and the boards are arranged in intervals from the middle to the four sides, and the board distribution center line is generated according to the grid parameters and grid width parameters; if not, the boards are arranged in intervals from left to right and from top to bottom, and the board distribution center line is generated according to the grid parameters and grid width parameters.
[0128] Exemplarily, the board generation module 200 further includes: a board edge processing unit for performing board edge processing on the wine rack distribution image.
[0129] Exemplarily, the board edge processing unit is also used to perform wraparound or left-falling, right-falling, and right-falling board edge processing on the wine rack distribution image.
[0130] It should be understood that Fig.10 The wine rack model generating device shown is Figures 1 to 9 The method embodiments shown correspond to each other and will not be described again here to avoid repetition.
[0131] This application also provides a device, see Fig.11 , Fig.11 A structural block diagram of a device provided in an embodiment of the present application. The device may include a processor 510, a communication interface 520, a memory 530, and at least one communication bus 540. Among them, the communication bus 540 is used to realize the direct connection and communication of these components. Among them, the communication interface 520 of the device in the embodiment of the present application is used to communicate signaling or data with other node devices. The processor 510 can be an integrated circuit chip with signal processing capabilities.
[0132] The processor 510 mentioned above can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor 510 can also be any conventional processor, etc.
[0133] The memory 530 may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electric erasable programmable read-only memory (EEPROM), etc. The memory 530 stores computer-readable instructions. When the computer-readable instructions are executed by the processor 510, the device may execute the above-mentioned Figures 1 to 9 The method embodiment involves various steps.
[0134] Optionally, the device may further include a storage controller and an input / output unit.
[0135] The memory 530, storage controller, processor 510, peripheral interface, input and output unit components are directly or indirectly electrically connected to each other to achieve data transmission or interaction. For example, these components can be electrically connected to each other via one or more communication buses 540. The processor 510 is used to execute executable modules stored in the memory 530, such as software function modules or computer programs included in the device.
[0136] The input and output unit is used to provide users with the task creation and to create a start optional time period or preset execution time for the task to realize the interaction between the user and the server. The input and output unit can be, but is not limited to, a mouse and a keyboard.
[0137] Understandably, Fig.11 The structure shown is for illustration only, and the device may also include Fig.11 More or fewer components as shown, or with Fig.11 Different configurations are shown. Fig.11 Each component shown in the figure can be implemented by hardware, software or a combination thereof.
[0138] An embodiment of the present application further provides a storage medium having instructions stored thereon. When the instructions are run on a computer, the computer program is executed by a processor to implement the method described in the method embodiment. To avoid repetition, the method will not be described here.
[0139] The present application also provides a computer program product, which, when executed on a computer, enables the computer to execute the method described in the method embodiment.
[0140] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0141] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
[0142] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0143] The above description is only an embodiment of the present application and is not intended to limit the scope of protection of the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application. It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings.
[0144] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0145] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
Claims
1. A wine rack model generation method, characterized in that: include: Obtain the type information and process parameter information of the wine rack; Generate plate data of the wine rack according to the type information and process parameter information of the wine rack; Generate a wine rack model according to the panel data; The step of generating the plate data of the wine rack according to the type information and process parameter information of the wine rack comprises: Generate a plate distribution center line according to the type information and process parameter information of the wine rack; Generate a wine rack distribution image according to the plate thickness information and the plate distribution center line; Traversing the intersection points of each plate in the wine rack distribution image with the plates in another direction, and calculating the card slot information of the wine rack; Generate plate data of the wine rack according to the wine rack distribution image and the card slot information; The step of generating a plate distribution center line according to the type information and process parameter information of the wine rack comprises: Calculate the grid parameters and grid width parameters of the wine grid rack according to the process parameter information; Determine whether the type information is a half-grid wine rack. If so, take the center point of the inner space as the center point of the board or the center point of the board spacing, start from the middle and arrange the boards in intervals to the four sides, and generate the board distribution center line according to the out-of-grid parameters and the grid width parameters; if not, arrange the boards from left to right and from top to bottom, and generate the board distribution center line according to the out-of-grid parameters and the grid width parameters.
2. The wine rack model generation method according to claim 1, characterized in that: Before the step of traversing the intersection points of each plate in the wine rack distribution image with the plate in another direction to calculate the card slot information of the wine rack, the method further includes: The wine rack distribution image is subjected to board edge and corner processing.
3. The wine rack model generation method according to claim 2, characterized in that: The step of performing board corner processing on the wine rack distribution image comprises: The wine rack distribution image is subjected to a wraparound or left-falling, right-falling, or right-falling board edge processing.
4. A wine rack model generation device, characterized in that: include: An acquisition module is used to obtain type information and process parameter information of the wine rack; A plate component generating module, used for generating plate component data of the wine rack according to the type information and process parameter information of the wine rack; A wine rack generation module, used to generate a wine rack model according to the panel data; The panel generation module also includes: A distribution center line unit, used for generating a plate distribution center line according to the type information and process parameter information of the wine rack; A distribution image unit, used for generating a wine rack distribution image according to the plate thickness information and the plate distribution center line; A card slot unit, used for traversing the intersection of each plate in the wine rack distribution image with the plate in another direction, and calculating the card slot information of the wine rack; A wine rack generating unit, used for generating plate data of the wine rack according to the wine rack distribution image and the card slot information; The panel generation module also includes: A grid-out / grid-width unit, used for calculating the grid-out parameters and grid-width parameters of the wine grid rack according to the process parameter information; A judgment unit is used to judge whether the type information is a half-grid wine rack. If so, the boards are arranged in intervals from the middle to the four sides with the center point of the inner space as the center point of the board or the center point of the board interval, and the board distribution center line is generated according to the out-of-grid parameters and the grid width parameters; if not, the boards are arranged in intervals from left to right and from top to bottom, and the board distribution center line is generated according to the out-of-grid parameters and the grid width parameters.
5. A device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the wine rack model generation method as described in any one of claims 1 to 3 when executing the computer program.
6. A storage medium, characterized in that: The storage medium stores instructions, and when the instructions are executed on a computer, the computer executes the wine rack model generation method according to any one of claims 1 to 3.
Citation Information
Patent Citations
Cabinet body modeling method and system and electronic device
CN110866342A