Seat drawing method, device and electronic equipment
Through the stereoscopic simulation object filling technology, the problem of low drawing efficiency of seat areas in the special-shaped venue is solved, automatic seat arrangement and drawing is realized, and drawing efficiency is improved.
Patent Information
- Application Number
- CN202010678211.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-07-15
- Publication Date
- 2024-11-08
- Estimated Expiration
- 2040-07-15
AI Technical Summary
When drawing seating areas of special-shaped venues, the existing technology is inefficient and requires manual adjustment of seat layout, resulting in low drawing efficiency.
By creating a physical simulation object, fill it according to the target seat area and seat size information, automatically arrange the seats, and generate seat drawing diagrams.
It greatly improves the seat drawing efficiency, realizes automatic filling of seats in special-shaped areas, and simplifies the drawing process.
Smart Images

Figure CN113947447B_ABST
Abstract
Description
Technical Field
[0001] The present specification relates to the field of drawing technology, and more specifically, to a seat drawing method, a seat drawing device, an electronic device, and a computer-readable storage medium. Background Art
[0002] When users purchase tickets online, such as movie tickets, drama tickets, and concert tickets, they can see the seat distribution map in the venue on the client and directly select the desired seat based on the seat distribution map displayed on the client, which greatly facilitates users.
[0003] To display the seat distribution map in the venue on the client's display interface, you first need to draw the Scalable Vector Graphics (SVG) base map of the venue, and then draw the number of rows of seats and the number of seats in each row on the SVG base map. In the traditional seat drawing system, each seat drawing area is considered to be a two-dimensional square plan. When drawing, it mainly depends on the manual input of the staff to place the seats in the seat drawing area. For example, there is a seat drawing area A, which can hold 10 rows of seats, with 8 seats in each row. Then the staff needs to draw a 10*8 seat matrix.
[0004] However, in actual venues, the shapes of many seating areas are not rectangular, but irregular, such as trapezoidal or arc-shaped. In such seating areas, the number of seats in each row is different, and the staff needs to draw them row by row. During the drawing process, the seat layout needs to be adjusted many times before it can be finally completed, which will lead to the problem of low seat drawing efficiency. Summary of the invention
[0005] One purpose of the embodiments of this specification is to provide a new technical solution for seat mapping.
[0006] According to a first aspect of the present specification, a seat mapping method is provided, comprising:
[0007] Generate a first three-dimensional simulation object according to first size information of the target drawing seat area; the longitudinal cross-sectional shape of the first three-dimensional simulation object is the same as the shape of the target drawing seat area;
[0008] generating a second three-dimensional simulation object according to the second size information of the seat to be drawn; wherein each of the second three-dimensional simulation objects represents one of the seats to be drawn;
[0009] filling the first three-dimensional simulation object with a plurality of the second three-dimensional simulation objects;
[0010] A seat drawing is obtained based on the filling results.
[0011] Optionally, the filling the first three-dimensional simulation object with a plurality of the second three-dimensional simulation objects comprises:
[0012] specifying a filling direction of the first three-dimensional simulation object;
[0013] Arrange the plurality of the second three-dimensional simulation objects in sequence along the filling direction until the first three-dimensional simulation objects are fully filled.
[0014] Optionally, the second three-dimensional simulation object is a spherical simulation object; the second size information includes the length, width and height of the seat to be drawn;
[0015] The step of generating a second three-dimensional simulation object according to the second size information of the seat to be drawn includes:
[0016] The spherical simulation object is generated by taking the maximum dimension of the length, width and height as the diameter of the spherical simulation object.
[0017] Optionally, the filling result includes at least the total number of rows and the number of the second three-dimensional simulation objects in each row filled in the first three-dimensional simulation object;
[0018] The step of obtaining a seat plot according to the filling result includes:
[0019] Obtaining the total number of the second three-dimensional simulation objects according to the total number of rows and the number of objects in each row;
[0020] The seat drawing diagram is obtained by replacing the second three-dimensional simulation object with the seats to be drawn that are the same in number as the total number of the second three-dimensional simulation objects.
[0021] Optionally, after obtaining the seat plot according to the filling result, the method further comprises:
[0022] The row information and / or column information corresponding to each seat is marked in the seat drawing.
[0023] According to a second aspect of the present specification, there is provided a seat mapping method, comprising:
[0024] Provide a seat drawing interface on the display interface;
[0025] Receive first size information of a target seat drawing area and second size information of seats to be drawn input by a user;
[0026] A seat drawing is generated according to the first size information and the second size information; the seat drawing is generated by generating a first three-dimensional simulation object based on the first size information, generating a second three-dimensional simulation object based on the second size information, and filling the first three-dimensional simulation object with a plurality of the second three-dimensional simulation objects, and then generating the seat drawing according to the filling result; wherein the longitudinal cross-sectional shape of the first three-dimensional simulation object is the same as the shape of the target seat drawing area, and each of the second three-dimensional simulation objects represents one of the seats to be drawn;
[0027] The seat mapping diagram is displayed on the seat mapping interface.
[0028] According to a third aspect of the present specification, a seat mapping device is provided, comprising:
[0029] A first generating module is used to generate a first three-dimensional simulation object according to first size information of the target drawing seat area; the longitudinal cross-sectional shape of the first three-dimensional simulation object is the same as the shape of the target drawing seat area;
[0030] A second generating module is used to generate a second three-dimensional simulation object according to the second size information of the seat to be drawn; wherein each of the second three-dimensional simulation objects represents one of the seats to be drawn;
[0031] A filling module, configured to fill the first three-dimensional simulation object with a plurality of the second three-dimensional simulation objects;
[0032] A drawing module is used to obtain a seat drawing diagram according to the filling result.
[0033] According to a fourth aspect of the present specification, a seat mapping device is provided, comprising:
[0034] A display module, used for providing a seat drawing interface on a display interface;
[0035] A receiving module, used for receiving first size information of a target seat drawing area and second size information of seats to be drawn input by a user;
[0036] a generating module, configured to generate a seat drawing according to the first size information and the second size information; the seat drawing is generated by generating a first three-dimensional simulation object based on the first size information, generating a second three-dimensional simulation object based on the second size information, and filling the first three-dimensional simulation object with a plurality of the second three-dimensional simulation objects, and then generating the seat drawing according to the filling result; wherein the longitudinal cross-sectional shape of the first three-dimensional simulation object is the same as the shape of the target seat drawing area, and each of the second three-dimensional simulation objects represents one of the seats to be drawn;
[0037] The display module is also used to display the seat drawing on the seat drawing interface.
[0038] According to a fifth aspect of the present specification, an electronic device is provided, comprising the seat mapping device according to the third aspect of the present specification, or the electronic device comprises:
[0039] A memory for storing executable commands;
[0040] A processor is used to execute the seat drawing method as described in any one of the first aspects of this specification under the control of the executable command.
[0041] According to a sixth aspect of the present specification, an electronic device is provided, comprising the seat mapping device according to the fourth aspect of the present specification, or the electronic device comprises:
[0042] A memory for storing executable commands;
[0043] A processor is used to execute the seat drawing method as described in the second aspect of this specification under the control of the executable command.
[0044] According to a seventh aspect of the present specification, a computer-readable storage medium is provided, storing executable instructions, and when the executable instructions are executed by a processor, the seat drawing method as described in any one of the first aspect of the present specification is executed; or the seat drawing method as described in the second aspect of the present specification is executed.
[0045] One beneficial effect of the present specification is that the method of the present embodiment generates a first three-dimensional simulation object according to the first size information of the target seat drawing area; the longitudinal cross-sectional shape of the first three-dimensional simulation object is the same as the shape of the target seat drawing area; a second three-dimensional simulation object is generated according to the second size information of the seat to be drawn; wherein each of the second three-dimensional simulation objects represents one seat to be drawn; the first three-dimensional simulation object is filled with a plurality of the second three-dimensional simulation objects; and a seat drawing diagram is obtained according to the filling result. According to an embodiment of the present specification, the seats to be drawn can be automatically filled into the target seat drawing area, which greatly improves the efficiency of seat drawing.
[0046] Other features and advantages of the present specification will become apparent from the following detailed description of exemplary embodiments of the present specification with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the specification and, together with the description, serve to explain the principles of the specification.
[0048] Figure 1 A schematic diagram of the structure of an electronic device to which the seat mapping method according to an embodiment of the present specification can be applied;
[0049] Figure 2 is a flow chart of a seat drawing method according to Embodiment 1 of this specification;
[0050] Figure 3 is a schematic diagram of the venue area distribution according to an embodiment of this specification;
[0051] Figure 4 is a schematic diagram of a filled sector-shaped target drawing area according to an embodiment of the present specification;
[0052] Figure 5 is a schematic diagram of a spherical simulation object filling a target seat area according to an embodiment of the present specification;
[0053] Figure 6 is a schematic block diagram of a seat mapping device according to Embodiment 1 of this specification;
[0054] Figure 7 is a schematic block diagram of an electronic device according to Embodiment 1 of this specification;
[0055] Figure 8 is a flow chart of a seat drawing method according to Embodiment 2 of this specification;
[0056] Fig. 9 is a schematic block diagram of a seat mapping device according to Embodiment 2 of this specification;
[0057] Fig.10 is a schematic block diagram of an electronic device according to Embodiment 2 of this specification;
[0058] Fig.11 is a schematic diagram of a seat drawing interface according to the second embodiment of this specification;
[0059] Fig.12 It is a schematic diagram showing a seat drawing in a seat drawing interface according to the second embodiment of the present specification. DETAILED DESCRIPTION
[0060] Various exemplary embodiments of the present specification will now be described in detail with reference to the accompanying drawings. It should be noted that unless otherwise specifically stated, the relative arrangement of components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present specification.
[0061] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present specification, its application, or uses.
[0062] Technologies, methods, and apparatuses known to persons of ordinary skill in the relevant art may not be discussed in detail, but where appropriate, such technologies, methods, and apparatuses should be considered part of the specification.
[0063] In all examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not limiting. Therefore, other examples of the exemplary embodiments may have different values.
[0064] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0065] <Hardware Configuration>
[0066] In actual venues, the shapes of many seat drawing areas are not square rectangles, but special shapes, such as trapezoidal or arc-shaped. In such special-shaped seat drawing areas, the number of seats in each row is different, and the staff needs to draw them row by row. During the drawing process, the seat layout needs to be adjusted many times before it can be finally completed, which will lead to the problem of low seat drawing efficiency. Based on this, this manual provides a new seat drawing method, which can automatically fill the seats to be drawn into the target seat drawing area, greatly improving the seat drawing efficiency. It can be understood that the method of this manual can not only be used in seat drawing scenarios, but also in some other scenarios where items need to be arranged, such as the arrangement of shelves and goods in warehouses, floor laying and other scenarios.
[0067] Figure 1 The present invention is a schematic diagram of the composition structure of an electronic device to which the seat mapping method according to an embodiment of the present specification can be applied.
[0068] like Figure 1 As shown, the electronic device 1000 of this embodiment may include a processor 1010, a memory 1020, an interface device 1030, a communication device 1040, a display device 1050, an input device 1060, an audio output device 1070, an audio input device 1080, and the like.
[0069] Among them, the processor 1010 can be a central processing unit CPU, a microprocessor MCU, etc. The memory 1020 includes, for example, a ROM (read-only memory), a RAM (random access memory), a non-volatile memory such as a hard disk, etc. The interface device 1030 includes, for example, a USB interface, a headphone interface, etc. The communication device 1040 can, for example, perform wired or wireless communication. The display device 1050 is, for example, a liquid crystal display screen, a touch display screen, etc. The input device 1060 can, for example, include a touch screen, a keyboard, etc. The electronic device 1000 can output audio information through the audio output device 1070, and the audio output device 1070 includes, for example, a speaker.
[0070] The electronic device 1000 may be a smart phone, a portable computer, a desktop computer, a tablet computer, or the like.
[0071] In this embodiment, the electronic device 1000 can generate a first three-dimensional simulation object based on the first size information of the target seat drawing area; the longitudinal cross-sectional shape of the first three-dimensional simulation object is the same as the shape of the target seat drawing area; generate a second three-dimensional simulation object based on the second size information of the seats to be drawn; wherein each of the second three-dimensional simulation objects represents one seat to be drawn; use multiple second three-dimensional simulation objects to fill the first three-dimensional simulation object; and obtain a seat drawing diagram based on the filling results.
[0072] In this embodiment, the memory 1020 of the electronic device 1000 is used to store instructions, and the instructions are used to control the processor 1010 to operate to support the seat mapping method according to any embodiment of this specification. A technician can design instructions according to the scheme disclosed in this specification. How instructions control the processor to operate is well known in the art, so it will not be described in detail here.
[0073] It should be understood by those skilled in the art that although Figure 1 Multiple devices of the electronic device 1000 are shown in the figure, but the electronic device 1000 of the embodiment of this specification may only involve some of the devices, for example, only the processor 1010, the memory 1020, the display device 1050, the input device 1060, etc.
[0074] <First Embodiment>
[0075] <Method>
[0076] This embodiment provides a seat mapping method, which can be implemented by an electronic device, for example. Figure 1 An electronic device 1000 is shown.
[0077] like Figure 2 As shown, the method includes the following steps 2000 to 2200:
[0078] Step 2000: Generate a first three-dimensional simulation object according to first size information of a target drawing base area; the longitudinal section shape of the first three-dimensional simulation object is the same as the shape of the target drawing base area.
[0079] The target seat drawing area refers to the area in the venue area distribution map where seats need to be drawn. The target seat drawing area can be presented in a square, rectangle, trapezoid, ellipse, sector, etc. according to the specific distribution of the venue area.
[0080] In this step, the electronic device 1000 may determine the shape of the target drawing base area according to the first size information of the target drawing base area input by the user, and generate a first three-dimensional simulation object according to the first size information.
[0081] For example, Figure 3 In the venue area distribution diagram shown, the target drawing seat area is, for example, the three areas indicated by the arrows in the figure, and it can be seen that there are two rectangular target drawing seat areas and one fan-shaped target drawing seat area. After the user inputs the first size information of the two rectangular target drawing seat areas and the fan-shaped target drawing seat area respectively, the electronic device 1000 can generate corresponding first three-dimensional simulation objects according to the first size information of each of the three target drawing seat areas, wherein the first three-dimensional simulation object corresponding to the rectangular target drawing seat area is a cube, and the longitudinal section shape of the cube is a rectangle; the first three-dimensional simulation object corresponding to the fan-shaped target drawing seat area is a vertebra, and the longitudinal section shape of the vertebra is a fan.
[0082] Step 2100: Generate a second three-dimensional simulation object according to the second size information of the seat to be drawn; wherein each of the second three-dimensional simulation objects represents one of the seats to be drawn.
[0083] Specifically, the second size information may include the length, width and height of the seat to be drawn. In this step, the electronic device 1000 may generate the second three-dimensional simulation object according to the second size information of the seat to be drawn input by the user. The second three-dimensional simulation object may be a cube simulation object, a cone simulation object, a spherical simulation object, etc., which is not specifically limited in this embodiment.
[0084] It should be noted that the second size information of the seat to be drawn input by the user may be input according to the actual seat size and quantity requirements, or may be input by selecting a pre-set general size of seats in a venue, and this embodiment does not specifically limit this.
[0085] Exemplarily, the second three-dimensional simulation object generated according to the second size information of the seat to be drawn is, for example, a spherical simulation object. Specifically, the electronic device 1000 can generate the spherical simulation object by taking the maximum size of the length, width and height as the diameter of the spherical simulation object.
[0086] Step 2200: fill the first three-dimensional simulation object with a plurality of the second three-dimensional simulation objects.
[0087] In this step, when the electronic device 1000 uses multiple second three-dimensional simulation objects to fill the first three-dimensional simulation object, it can specifically specify the filling direction of the first three-dimensional simulation object; and arrange the multiple second three-dimensional simulation objects in sequence according to the filling direction until the first three-dimensional simulation object is filled.
[0088] Exemplarily, considering that the sphere has better fluidity, in this example, a spherical simulation object is used to fill the first three-dimensional simulation object to complete the automatic arrangement of the seats to be drawn.
[0089] like Figure 4 As shown, assuming that the target seat area is fan-shaped, the first three-dimensional simulation object generated according to the first size information of the target seat area of the fan-shaped is a cone, and the cone can be regarded as a glass cup. The filling direction of the specified cone is from top to bottom, which can be understood as a way of simulating the gravity of the earth. After selecting the spherical simulation object, the electronic device 1000 pours multiple selected spherical simulation objects from the top of the cone, so that the multiple spherical simulation objects are arranged in sequence according to the filling direction until the cone is automatically filled, thereby completing the drawing of the seats in the fan-shaped target seat area.
[0090] Step 2300, obtaining a seat drawing according to the filling result.
[0091] The filling result at least includes the total number of rows and the number of the second stereoscopic simulation objects in each row filled in the first stereoscopic simulation object. The electronic device 1000 can obtain the total number of the second stereoscopic simulation objects according to the total number of rows and the number of the second stereoscopic simulation objects in each row. After obtaining the total number of the second stereoscopic simulation objects, the electronic device 1000 can replace the second stereoscopic simulation objects with the same number of seats to be drawn as the total number of the second stereoscopic simulation objects to obtain the seat drawing. For example, if the total number of second stereoscopic simulation objects is 200, the electronic device 1000 can replace the 200 second stereoscopic simulation objects with the icons of 200 seats to be drawn to obtain a seat drawing, such as Figure 5 shown.
[0092] In one example, after the electronic device 1000 uses a plurality of the second three-dimensional simulation objects to fill the first three-dimensional simulation object and obtains the filling result, it can specifically replace the second three-dimensional simulation object with the same number of the seat matrices to be drawn as the total number of the second three-dimensional simulation objects according to a replacement instruction input by the user to obtain the seat drawing.
[0093] Furthermore, in this embodiment, after obtaining the seat plot according to the filling result, the electronic device 1000 can also mark the row information and / or column information corresponding to each seat in the seat plot. For example, the row information and column information of the seat marked in the seat plot is the third row and the second column; or, only the row information is marked in the seat plot, such as the fifth row, the eighth row, etc.; or, only the column information is marked in the seat plot, such as the first column and the second column. These are not listed here one by one.
[0094] According to the seat drawing method of this embodiment, a first three-dimensional simulation object is generated according to the first size information of the target seat drawing area; the longitudinal section shape of the first three-dimensional simulation object is the same as the shape of the target seat drawing area; a second three-dimensional simulation object is generated according to the second size information of the seat to be drawn; wherein each of the second three-dimensional simulation objects represents one seat to be drawn; the first three-dimensional simulation object is filled with a plurality of the second three-dimensional simulation objects; and a seat drawing diagram is obtained according to the filling result. The seats to be drawn can be automatically filled into the target seat drawing area, greatly improving the efficiency of seat drawing.
[0095] <Device>
[0096] This embodiment provides a seat mapping device, which is, for example, Figure 6 The seat drawing apparatus 6000 shown includes a first generating module 6100 , a second generating module 6200 , a filling module 6300 and a drawing module 6400 .
[0097] The first generating module 6100 is used to generate a first three-dimensional simulation object according to first size information of the target drawing base area; the longitudinal section shape of the first three-dimensional simulation object is the same as the shape of the target drawing base area.
[0098] The second generating module 6200 is used to generate a second three-dimensional simulation object according to the second size information of the seat to be drawn; wherein each of the second three-dimensional simulation objects represents one of the seats to be drawn.
[0099] The filling module 6300 is configured to fill the first three-dimensional simulation object with a plurality of the second three-dimensional simulation objects.
[0100] The drawing module 6400 is used to obtain a seat drawing diagram according to the filling result.
[0101] Specifically, the filling module 6300 is used to specify a filling direction of the first three-dimensional simulation object; and arrange the plurality of second three-dimensional simulation objects in sequence according to the filling direction until the first three-dimensional simulation object is fully filled.
[0102] In one example, the second three-dimensional simulation object is a spherical simulation object; the second size information includes the length, width and height of the seat to be drawn; the second generation module 6200 is specifically used to generate the spherical simulation object using the maximum size of the length, width and height as the diameter of the spherical simulation object.
[0103] In one example, the filling result includes at least the total number of rows of the second stereoscopic simulation objects filled in the first stereoscopic simulation object and the number in each row; the drawing module 6400 is specifically used to obtain the total number of the second stereoscopic simulation objects according to the total number of rows and the number in each row; use the same number of seats to be drawn as the total number of the second stereoscopic simulation objects to replace the second stereoscopic simulation object, and obtain the seat drawing.
[0104] The drawing module 6400 may also be used to mark row information and / or column information corresponding to each seat in the seat drawing.
[0105] The seat drawing device of this embodiment can be used to implement the technical solution of the above method embodiment. Its implementation principle and technical effect are similar and will not be repeated here.
[0106] <Device>
[0107] In this embodiment, an electronic device is also provided, which includes the seat mapping device 6000 described in the device embodiment of this specification; or the electronic device is Figure 7 The electronic device 7000 shown includes:
[0108] Memory 7100 is used to store executable commands.
[0109] The processor 7200 is used to execute the method described in any method embodiment of this specification under the control of the executable instructions stored in the memory 7100.
[0110] The implementation subject of the method embodiment executed in the electronic device may be a terminal device or a server.
[0111] <Computer Readable Storage Medium>
[0112] This embodiment provides a computer-readable storage medium, in which executable commands are stored. When the executable commands are executed by a processor, the method described in any method embodiment of this specification is executed.
[0113] <Second Embodiment>
[0114] <Method>
[0115] This embodiment provides a seat mapping method, which can be implemented by an electronic device, for example. Figure 1 An electronic device 1000 is shown.
[0116] like Figure 8 As shown, the method includes the following steps 8100 to 8400:
[0117] Step 8100, providing a seat drawing interface on the display interface.
[0118] Specifically, Fig.11 As shown, a display box for displaying the area where seats need to be drawn in the venue area distribution map, an input box for inputting first size information of the target seat drawing area, and an input box for inputting second size information of the seats to be drawn can be provided on the display interface.
[0119] Step 8200: receiving first size information of the target seat drawing area and second size information of the seats to be drawn input by the user.
[0120] Step 8300: Generate a seat plot according to the first size information and the second size information.
[0121] The seat drawing diagram is generated by generating a first three-dimensional simulation object based on the first size information, and generating a second three-dimensional simulation object based on the second size information, and filling the first three-dimensional simulation object with multiple second three-dimensional simulation objects, and then generating the seat drawing diagram according to the filling result; wherein the longitudinal cross-sectional shape of the first three-dimensional simulation object is the same as the shape of the target seat drawing area, and each of the second three-dimensional simulation objects represents one of the seats to be drawn.
[0122] Step 8400: display the seat drawing on the seat drawing interface.
[0123] like Fig.12 As shown, after generating the seat map, the electronic device 1000 can display the seat map in a display interface.
[0124] In the seat drawing method of this embodiment, the electronic device provides a seat drawing interface on the display interface, receives the first size information of the target seat drawing area and the second size information of the seat to be drawn input by the user, thereby generating a seat drawing diagram according to the first size information and the second size information, and displays the seat drawing diagram on the seat drawing interface. The seat drawing diagram is generated by generating a first three-dimensional simulation object based on the first size information, and a second three-dimensional simulation object based on the second size information, and filling the first three-dimensional simulation object with a plurality of the second three-dimensional simulation objects, and then generating the seat drawing diagram according to the filling result; wherein the longitudinal section shape of the first three-dimensional simulation object is the same as the shape of the target seat drawing area, and each of the second three-dimensional simulation objects represents one seat to be drawn. Thus, the seats to be drawn are automatically filled into the target seat drawing area, greatly improving the efficiency of seat drawing.
[0125] <Device>
[0126] This embodiment provides a seat mapping device, which is, for example, Fig. 9 The seat mapping device 9000 shown includes a display module 9100 , a receiving module 9200 and a generating module 9300 .
[0127] Among them, the display module 9100 is used to provide a seat drawing interface on the display interface.
[0128] The receiving module 9200 is used to receive first size information of the target seat drawing area and second size information of the seats to be drawn input by the user.
[0129] The generating module 9300 is used to generate a seat plot according to the first size information and the second size information.
[0130] The seat drawing diagram is generated by generating a first three-dimensional simulation object based on the first size information, and generating a second three-dimensional simulation object based on the second size information, and filling the first three-dimensional simulation object with multiple second three-dimensional simulation objects, and then generating the seat drawing diagram according to the filling result; wherein the longitudinal cross-sectional shape of the first three-dimensional simulation object is the same as the shape of the target seat drawing area, and each of the second three-dimensional simulation objects represents one of the seats to be drawn.
[0131] The display module 9100 is also used to display the seat drawing on the seat drawing interface.
[0132] The seat drawing device of this embodiment can be used to implement the technical solution of the above method embodiment. Its implementation principle and technical effect are similar and will not be repeated here.
[0133] <Device>
[0134] In this embodiment, an electronic device is also provided, which includes the seat mapping device 9000 described in the device embodiment of this specification; or the electronic device is Fig.10 The electronic device 100 shown includes:
[0135] The memory 110 is used to store executable commands.
[0136] The processor 120 is used to execute the method described in any method embodiment of this specification under the control of the executable instructions stored in the memory 110.
[0137] The implementation subject of the method embodiment executed in the electronic device may be an electronic device or a server.
[0138] <Computer Readable Storage Medium>
[0139] This embodiment provides a computer-readable storage medium, in which executable commands are stored. When the executable commands are executed by a processor, the method described in any method embodiment of this specification is executed.
[0140] The present specification may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present specification.
[0141] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.
[0142] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.
[0143] The computer program instructions for performing the operation of this specification can be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages-such as Smalltalk, C++, etc., and conventional procedural programming languages-such as "C" language or similar programming languages. Computer-readable program instructions can be executed completely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on the remote computer, or completely on the remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network-including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet). In some embodiments, by using the state information of the computer-readable program instructions to personalize an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA) or a programmable logic array (PLA), the electronic circuit can execute the computer-readable program instructions, thereby realizing various aspects of this specification.
[0144] Various aspects of this specification are described herein with reference to flowcharts and / or block diagrams of methods, devices (systems) and computer program products according to embodiments of this specification. It should be understood that each box in the flowchart and / or block diagram and the combination of boxes in the flowchart and / or block diagram can be implemented by computer-readable program instructions.
[0145] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0146] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0147] The flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the systems, methods and computer program products according to the multiple embodiments of this specification. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of an instruction, and a part of a module, a program segment or an instruction contains one or more executable instructions for realizing the specified logical function. 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 the flowchart, and the combination of the boxes in the block diagram and / or the flowchart can be implemented by a dedicated hardware-based system that performs the specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions. It is well known to those skilled in the art that it is equivalent to implement it by hardware, implement it by software, and implement it by combining software and hardware.
[0148] The embodiments of the present specification have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations are apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements in the marketplace, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein. The scope of this specification is defined by the appended claims.
Claims
1. A seat drawing method, comprising: Generate a first three-dimensional simulation object according to first size information of the target drawing seat area; the longitudinal cross-sectional shape of the first three-dimensional simulation object is the same as the shape of the target drawing seat area; generating a second three-dimensional simulation object according to the second size information of the seat to be drawn; wherein each of the second three-dimensional simulation objects represents one of the seats to be drawn; filling the first three-dimensional simulation object with a plurality of the second three-dimensional simulation objects; A seat drawing is obtained based on the filling results.
2. The method according to claim 1, wherein: The step of filling the first three-dimensional simulation object with a plurality of the second three-dimensional simulation objects comprises: specifying a filling direction of the first three-dimensional simulation object; Arrange the plurality of the second three-dimensional simulation objects in sequence along the filling direction until the first three-dimensional simulation objects are fully filled.
3. The method according to claim 1, wherein: The second three-dimensional simulation object is a spherical simulation object; the second size information includes the length, width and height of the seat to be drawn; The step of generating a second three-dimensional simulation object according to the second size information of the seat to be drawn includes: The spherical simulation object is generated by taking the maximum dimension of the length, width and height as the diameter of the spherical simulation object.
4. The method according to claim 1, wherein: The filling result at least includes the total number of rows and the number of the second three-dimensional simulation objects in each row filled in the first three-dimensional simulation object; The step of obtaining a seat plot according to the filling result includes: Obtaining the total number of the second three-dimensional simulation objects according to the total number of rows and the number of objects in each row; The seat drawing diagram is obtained by replacing the second three-dimensional simulation object with the seats to be drawn that are the same in number as the total number of the second three-dimensional simulation objects.
5. The method according to claim 1, wherein: After obtaining the seat plot according to the filling result, the method further includes: The row information and / or column information corresponding to each seat is marked in the seat drawing.
6. A seat drawing method, comprising: Provide a seat drawing interface on the display interface; Receive first size information of a target seat drawing area and second size information of seats to be drawn input by a user; generating a seat plot according to the first size information and the second size information; The seat drawing diagram is generated by generating a first three-dimensional simulation object based on the first size information, generating a second three-dimensional simulation object based on the second size information, and filling the first three-dimensional simulation object with a plurality of the second three-dimensional simulation objects, and then generating the seat drawing diagram according to the filling result; wherein the longitudinal cross-sectional shape of the first three-dimensional simulation object is the same as the shape of the target seat drawing area, and each of the second three-dimensional simulation objects represents one of the seats to be drawn; The seat mapping diagram is displayed on the seat mapping interface.
7. A seat drawing device, comprising: A first generating module is used to generate a first three-dimensional simulation object according to first size information of the target drawing seat area; the longitudinal cross-sectional shape of the first three-dimensional simulation object is the same as the shape of the target drawing seat area; A second generating module is used to generate a second three-dimensional simulation object according to the second size information of the seat to be drawn; wherein each of the second three-dimensional simulation objects represents one of the seats to be drawn; A filling module, configured to fill the first three-dimensional simulation object with a plurality of the second three-dimensional simulation objects; A drawing module is used to obtain a seat drawing diagram according to the filling result.
8. A seat drawing device, comprising: A display module, used for providing a seat drawing interface on a display interface; A receiving module, used for receiving first size information of a target seat drawing area and second size information of a seat to be drawn input by a user; A generating module, configured to generate a seat plot according to the first size information and the second size information; The seat drawing diagram is generated by generating a first three-dimensional simulation object based on the first size information, generating a second three-dimensional simulation object based on the second size information, and filling the first three-dimensional simulation object with a plurality of the second three-dimensional simulation objects, and then generating the seat drawing diagram according to the filling result; wherein the longitudinal cross-sectional shape of the first three-dimensional simulation object is the same as the shape of the target seat drawing area, and each of the second three-dimensional simulation objects represents one of the seats to be drawn; The display module is also used to display the seat drawing on the seat drawing interface.
9. An electronic device, comprising the seat mapping device according to claim 7, or the electronic device comprising: A memory for storing executable commands; A processor is used to execute the seat drawing method according to any one of claims 1 to 5 under the control of the executable command.
10. An electronic device, comprising the seat mapping device according to claim 8, or the electronic device comprising: A memory for storing executable commands; A processor is used to execute the seat drawing method as claimed in claim 6 under the control of the executable command.
11. A computer-readable storage medium storing executable instructions, wherein when the executable instructions are executed by a processor, the seat drawing method according to any one of claims 1 to 5 is executed; or the seat drawing method according to claim 6 is executed.
