3D printing method and apparatus, electronic device, storage medium and program product
By displaying part views and generating selective printing instructions in 3D printing technology, the problem of selective printing of parts under the whole-disc printing method is solved, achieving resource saving and efficiency improvement.
Patent Information
- Application Number
- PCT/CN2024/093961
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-05-18
- Filing Date
- 2024-05-17
- Publication Date
- 2024-11-21
AI Technical Summary
In existing 3D printing technologies, the whole-disc printing method cannot effectively handle parts that fail to print, resulting in resource waste and low efficiency.
By displaying a view of each part in the target disk on a terminal or cloud server, users can select the parts that need to be printed or skipped, generate corresponding print instructions, and the cloud server or terminal will perform slicing processing, slicing only the required parts and skipping the parts that do not need to be printed.
It enables selective printing of parts that fail to print, saving part slicing resources, reducing computational complexity and slicing result file size, and improving slicing and transmission efficiency.
Smart Images

Figure CN2024093961_21112024_PF_FP_ABST
Abstract
Description
3D printing method, device, electronic device, storage medium and program product
[0001] This application claims priority to the Chinese invention patent application with application number "202310566904X", application date "May 18, 2023", and invention name "3D printing method, device, electronic device, storage medium and program product", all contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of 3D printing technology, and in particular to a 3D printing method, a 3D printing device, a corresponding electronic device, a corresponding computer-readable storage medium, and a corresponding computer program product. Background Art
[0003] 3D printing technology uses a digital model (3D design file) as a foundation, constructing objects layer by layer using a 3D printer using bondable materials such as powdered metal or plastic. 3D printing typically prints all parts within a tray, making this whole-tray printing method difficult to recover from failed parts.
[0004] Summary of the Invention
[0005] In view of the above problems, embodiments of the present application are proposed to provide a 3D printing method, a 3D printing device, a corresponding electronic device, a corresponding computer-readable storage medium, and a corresponding computer program product that overcome the above problems or at least partially solve the above problems.
[0006] The present application discloses a 3D printing method, which is executed by a terminal and includes:
[0007] Displaying a view of each part in the target sub-plate; the view is used to present the corresponding position of each part in the target sub-plate;
[0008] In response to a user selection operation on a view, obtaining position information of the selection operation on the view;
[0009] generating a printing instruction according to the position information, wherein the printing instruction is used to instruct to print or skip the printing operation of the target part corresponding to the position information;
[0010] The printing instruction is sent to the cloud server, and the printing instruction is used by the cloud server to trigger the 3D printer to execute model printing, wherein the cloud server slices the target part to obtain a first slicing result, and the first slicing result is used to be executed by the 3D printer to complete the printing of the target part, or the cloud server slices other parts in the target disk except the target part to obtain a second slicing result, and the second slicing result is used to be executed by the 3D printer to complete the printing of the other parts.
[0011] Optionally, the view includes a color image; and in response to a user selection operation on the view, obtaining position information of the selection operation on the view includes:
[0012] Detecting a user's click operation on the color image, and obtaining a click position of the click operation on the color image as position information of the selection operation on the view;
[0013] And / or, detecting a user's selection operation on the color image, and obtaining a selection range of the selection operation on the color image as position information of the selection operation on the view.
[0014] Optionally, the position information includes a click position; and generating a print instruction according to the position information includes:
[0015] Obtaining an ID map corresponding to the color map, wherein a pixel value at a color pixel position of the color map is used to represent a color value of any part at the color pixel position, and a pixel value at an ID pixel position of the ID map is used to represent a part ID value of the part at the ID pixel position, wherein the color pixel position corresponds to the ID pixel position;
[0016] Based on the clicked position, a pixel value of a corresponding position of the position information is read from the ID map as a part ID value of the target part;
[0017] The printing instruction is generated, wherein the printing instruction includes the part ID value of the target part.
[0018] Optionally, the position information includes a selection range; and generating a print instruction according to the position information includes:
[0019] Obtaining a top-view ID image corresponding to the color image, wherein a pixel value at a color pixel position of the color image is used to represent the color value of any part at the color pixel position, and a pixel value at an ID pixel position of the ID image is used to represent the part ID value of the part at the ID pixel position, wherein the color pixel position corresponds to the ID pixel position;
[0020] Based on the frame selection range, reading pixel values within a corresponding range of the position information from the ID map as a part ID value of the target part;
[0021] The printing instruction is generated, wherein the printing instruction includes the part ID value of the target part.
[0022] Optionally, the color pixel position and the ID pixel position correspond to each other, including: the color pixel position and the ID pixel position are the same.
[0023] Optionally, the method further includes:
[0024] Sending a request for obtaining the view to a cloud server;
[0025] The view is received from the cloud server.
[0026] Optionally, the view comprises a top view.
[0027] The present application also discloses a 3D printing method, which is executed by a cloud server and includes:
[0028] Sending a view to the terminal, wherein the view is used to present the corresponding position of each part in the target divided disk;
[0029] Receiving a print instruction sent by a terminal; the print instruction is generated based on location information of a selection operation performed by a user on the view;
[0030] Slicing the target part corresponding to the position information to obtain a first slicing result, where the first slicing result is used to be executed by a 3D printer to complete printing of the target part;
[0031] And / or, slicing other parts in the target plate except the target part to obtain a second slicing result, and the second slicing result is used to be executed by a 3D printer to complete the printing of the other parts.
[0032] Optionally, the method further includes:
[0033] The target part is determined based on the position information.
[0034] Optionally, the printing instruction includes a part ID value of the target part, and the part ID value is obtained according to the position information.
[0035] Optionally, the position information includes a click position; and obtaining a corresponding target part based on the position information includes:
[0036] Obtaining coordinate information of the click position;
[0037] According to the coordinate information, the part in the target disk and located at the click position is used as the target part.
[0038] Optionally, the position information includes a selection range; and obtaining a corresponding target part based on the position information includes:
[0039] Obtaining the coordinate information of the selected area;
[0040] According to the area coordinate information, the parts in the target disk that are at least partially located within the selected range are taken as target parts.
[0041] Optionally, the method further includes:
[0042] The first slicing result or the second slicing result is sent to a 3D printer, so that the 3D printer prints the target part corresponding to the position information or skips the printing operation, thereby completing 3D printing.
[0043] The present application also discloses a 3D printing device, which is applied to a terminal. The device includes:
[0044] A view display module, configured to display a view of each component in the target partition; the view is configured to present the corresponding position of each component in the target partition;
[0045] a printing instruction generating module, configured to, in response to a user's selection operation on the view, obtain position information of the selection operation on the view; and generate a printing instruction based on the position information, the printing instruction being used to instruct to print or skip the printing operation on the target part corresponding to the position information;
[0046] A printing instruction sending module is used to send the printing instruction to the cloud server, and the printing instruction is used by the cloud server to trigger the 3D printer to execute model printing, wherein the cloud server slices the target part to obtain a first slicing result, and the first slicing result is used to be executed by the 3D printer to complete the printing of the target part, or the cloud server slices other parts in the target disk except the target part to obtain a second slicing result, and the second slicing result is used to be executed by the 3D printer to complete the printing of the other parts.
[0047] The present application also discloses a 3D printing device, which is applied to a cloud server. The device includes:
[0048] A view sending module, used for sending a view to the terminal, wherein the view is used for presenting the corresponding position of each part in the target disk;
[0049] A print instruction receiving module, configured to receive a print instruction sent by a terminal; the print instruction is generated based on location information of a selection operation performed by a user on the view;
[0050] A printing instruction response module is used to slice the target part corresponding to the position information to obtain a first slicing result, and the first slicing result is used to be executed by the 3D printer to complete the printing of the target part; and / or, to slice other parts in the target plate except the target part to obtain a second slicing result, and the second slicing result is used to be executed by the 3D printer to complete the printing of the other parts.
[0051] An embodiment of the present application further discloses an electronic device, comprising: a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program implements any one of the 3D printing methods when executed by the processor.
[0052] An embodiment of the present application further discloses a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, any one of the 3D printing methods is implemented.
[0053] An embodiment of the present application further discloses a computer program product, which includes a computer program. When the computer program is executed by a processor, it implements any one of the 3D printing methods.
[0054] The embodiments of the present application include the following advantages:
[0055] In an embodiment of the present application, after a print instruction generated based on position information triggers a 3D printer to execute model printing, the target part or parts other than the target part can be sliced. By slicing only the parts that need to be printed, slicing of parts that do not need to be printed can be skipped. This allows the printing of parts that do need to be printed to be completed while skipping the printing of parts that do not need to be printed. This can save part slicing resources while facilitating the selective printing of parts that failed to print. Furthermore, skipping the slicing operation reduces the computational complexity and the file size of the slicing results, further improving the efficiency of slicing and the efficiency of transmitting the slicing results. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] FIG1 is a flowchart of a 3D printing method embodiment of the present application;
[0057] FIG2 is a schematic diagram of a color image and an ID image provided in an embodiment of the present application;
[0058] FIG3 is a flowchart of another embodiment of a 3D printing method of the present application;
[0059] FIG4 is a schematic diagram of an application scenario of 3D printing provided in an embodiment of the present application;
[0060] FIG5 is a structural block diagram of an embodiment of a 3D printing device of the present application;
[0061] FIG6 is a structural block diagram of another embodiment of a 3D printing device of the present application. DETAILED DESCRIPTION
[0062] In order to make the above-mentioned purposes, features and advantages of the present application more obvious and easy to understand, the present application is further described in detail below with reference to the accompanying drawings and specific implementation methods.
[0063] In 3D printing technology, users can use a parts list to select which parts to print and which not to print, enabling selective printing of parts to be printed. However, the parts list provided in related technologies presents users with a list of all parts on the entire disk, with each part listed in a row. While users can identify the corresponding parts on the print disk based on relevant part information such as thumbnails, they cannot determine the specific location of the parts on the disk based on the parts displayed in the parts list. Consequently, in the event of a print failure, it is impossible to intuitively select the part to be reprinted.
[0064] In an embodiment of the present application, 3D printing technology prints models through a terminal, meaning that ordinary users can retrieve the model uploaded by the model creator through the terminal and print the parts according to the relevant information for model printing configured by the model creator, such as the model's printing parameters, the orientation of each part, the placement of the parts on the tray, etc. Specifically, the model creator can process the model's printing parameters, the orientation of each part, the placement of the parts on the tray, etc. using the computer's slicing software, and then save the relevant content to a project file and upload it to the model website, so that ordinary users can load the uploaded model through the terminal for printing.
[0065] In order to facilitate understanding of the embodiments of the present application, the technical features that may be involved in the technical solutions provided in the embodiments of the present application are first described.
[0066] The 3D printing process typically involves: 1) acquiring a 3D model; 2) slicing the 3D model using slicing software; and 3) sending the slicing results to a 3D printer, which then prints the 3D model based on the slicing results. The slicing software typically runs on a terminal connected to the printer, such as a PC or mobile phone. The slicing software can also run on a 3D printer with a controllable screen, and the terminal can also include a 3D printer with a controllable screen. Specifically, it can include a 3D printer with a controllable screen running the slicing software.
[0067] Slicing software is a software that generates control codes (e.g., gcode) for controlling the processor of a 3D printer based on a digital three-dimensional model. These slicing software typically provide a graphical user interface on which users perform operations, such as loading model files, setting printing parameters, etc. Slicing software can provide a graphical user interface (GUI) to allow users to select or adjust layout information representing the position and orientation of the 3D model on the hot bed. The slicing software can slice the loaded three-dimensional model (STL, DAE, or OBJ format) to generate slicing data (e.g., the number of slices, the height of each slice layer, etc.), and then generate control codes for controlling the print head of the 3D printer to move along the print path to print each layer of slices as the slicing result based on the slicing data. Such control codes typically include gcode. The control codes are downloaded to the 3D printer for execution by at least one processor. For this purpose, the 3D printer 100 may also include at least one memory for storing programs and / or data.
[0068] The slicing operation of the slicing software on a 3D model (usually a file in stl or 3mf format) includes cutting the 3D model into multiple layers according to the set slicing requirements, determining the printing path of each layer of slices, and generating a control code including the printing path of each layer. Before performing the slicing operation, the slicing software can also perform some auxiliary printing operations, which may include but are not limited to: determining the printing orientation of the 3D model, determining the placement of the 3D model, determining whether the 3D model requires support and the position of the support, determining the slicing layer height, determining at least one of the flushing amount when switching between different material lines, etc. The above auxiliary printing operations can be automatically determined by the slicing software, or determined based on preset parameters, or specified by the user of the 3D printer by operating the slicing software. Generally speaking, the slicing process of the slicing software includes the following steps:
[0069] Step 1: Model loading. Read model data from the outside and convert the 3D model into a triangle combination represented by the data structure inside the slicing software.
[0070] Step 2: Plating. In slicing software, plating refers to placing the three-dimensional model in a specified position on the virtual printing platform with a certain orientation. Therefore, the orientation and placement of the three-dimensional model need to be determined during the plating process. Plating can be performed on one three-dimensional model or on multiple three-dimensional models, where the multiple three-dimensional models can be multiple parts of a three-dimensional model. The 3D printer will then print the three-dimensional model according to the layout during plating. The plating process sometimes requires separating multiple three-dimensional models into separate plates. For example, when there are many three-dimensional models that need to be printed and they cannot be completed in one go, the multiple three-dimensional models can be divided into multiple batches for printing. This process is called plate printing, which means that multiple three-dimensional models are divided into multiple plates (or plates) for printing, where the three-dimensional models in the same batch belong to the same plate (or plate).
[0071] Step 3: Layering. Layering involves intersecting the 3D model with an XY plane at regular intervals, creating stacked slices. The distance between layers is called the layer height. Layering essentially converts a 3D model into a series of 2D planes.
[0072] Step 4: Path Generation. In this step, the nozzle's movement path is planned for each component. An independent path can be generated for each component, and the printing order of each component can be determined.
[0073] Step 5: Gcode generation. After the path is generated, the nozzle movement path needs to be translated into Gcode code that can be executed by the 3D printer's processor.
[0074] 1 , a flowchart of a 3D printing method embodiment of the present application is shown. The 3D printing method proposed in the embodiment of the present application is executed by a terminal and may specifically include the following steps:
[0075] Step 101, displaying a view of each part in a target disk;
[0076] In an embodiment of the present application, the model is printed through the terminal. Specifically, after the model creator processes the printing parameters of the model, the orientation of each part, the placement of the parts on the tray, etc. through the slicing software on the PC, the cut data can be saved to the model project file, so that the terminal can retrieve the model project file of the corresponding model and print the parts in the tray according to the configuration information in the model project file, such as the part tray.
[0077] In order to intuitively present the specific location of each part in the target tray to the user, and facilitate the user to directly click and select the parts to be printed on the tray, a view of each part in the target tray can be displayed on the terminal, and the corresponding position of each part in the target tray can be presented to the user based on the view.
[0078] Specifically, if the cloud server has already loaded the model project file, the terminal can send a request to the cloud server to obtain the top view, and then receive the top view from the cloud server. In this case, since the cloud server has already loaded the model project file, the cloud server can directly obtain the top view. If the cloud server has not loaded the model project file, the terminal can generate a loading instruction for the model project file, send the loading instruction to the cloud server, and then receive the top view from the model project file by receiving the cloud server's response to the loading instruction.
[0079] Specifically, it can be displayed on the operating software of the terminal. The operating software of the terminal can be the printer itself with a screen, a mobile phone APP, or a web page of a model website. The operating software may include slicing software or may not include slicing software. The embodiment of the present application does not limit this.
[0080] Regarding the generation of views, in actual applications, the model project file uploaded by the model creator can reflect the configuration information of the model's printing parameters, the orientation of each part, the placement of the parts on the tray, etc., that is, the model project file can be used to indicate the placement information of each part in the target tray. At this time, the generation and preservation of the model project file does not involve slicing. Usually, the model creator can save the relevant information of the model project, that is, when the model project file is generated, the PC-based slicing software generates a view and ID map for presenting the corresponding positions of each part in the target tray. In some embodiments of the present application, in the process of configuring the relevant information of the model project, a top view can be generated based on the relevant information input by the model creator. The embodiments of the present application do not limit the timing of generating the top view.
[0081] Then, when the model creator uploads the model project file, while uploading the aforementioned configuration information related to the model, he can also save the view in the model project file and upload it to the model website, that is, the cloud server; when the terminal obtains the view, it is specifically obtained based on the cloud server, and then the terminal receives the overhead view of the cloud server.
[0082] Among them, the view can be generated by the slicing software on the PC or terminal to enable users to intuitively view the specific positions of parts in the tray; the ID map is generated by the slicing software on the PC to achieve logical correspondence with the view, and is mainly provided for program code search implementation.
[0083] Views can be displayed as color images. In addition to displaying the geometric information of parts and the position information of each part in the current partition, they can also be used to present the appearance color of the parts. The appearance color mainly refers to the color used to render the parts in the build space.
[0084] In practical applications, the view generation process is specifically to generate a top view. For example, the slicing software can be used to adjust the 3D scene camera angle to achieve the effect of looking down on the entire build space of the printer. Then, while maintaining the aforementioned top view angle, all parts in the build space are rendered at a certain resolution (e.g., 1280x1280). The color used for rendering (RGB888 format) can be the appearance color configured for each part in the slicing software. Then, while maintaining the aforementioned top view angle, all parts in the build space can be rendered again at a certain resolution (e.g., 1280x1280). The color value used for this rendering can be used as the pixel value of the part in the top view color image, and all parts in the build space can be regarded as the parts of the current partition, which can reflect the corresponding position of each part in the partition based on the top view of the build space. It should be noted that the generated view can also be a view generated based on different angles according to actual needs. Then, when generating views of other angles, the slicing software can adjust the angle of the 3D scene camera to match the corresponding angle to generate views of the corresponding angle. This embodiment of the application is not limited to this.
[0085] The color map can be used to represent the pixel values of each part on the tray, providing users with part placement viewing and part-clicking capabilities. The ID map can be used to represent the part ID values of each part on the tray, used to find the part ID values and inform the cloud slicing service which parts to select or skip for GCode generation. Each part is associated with the color map and the ID map. Specifically, the pixel value at the color pixel position of the color map is used to represent the color value of any part at that color pixel position, and the pixel value at the ID pixel position of the ID map is used to represent the part ID value of the part at that ID pixel position. The color pixel position corresponds to the ID pixel position, and the part ID value serves as the unique identifier of the part.
[0086] The color pixel position corresponds to the ID pixel position, and the color pixel position and the ID pixel position are the same. For example, as shown in FIG2 , assuming that the generated view is a top view, the top view may include a top color image, and the ID image corresponding to the top color image may be represented as a top ID image. In this case, a color pixel position in the top color image can be made to have the same ID pixel position on the top ID image, and the part ID corresponding to the same color pixel position and ID pixel position can be determined. In other words, the part ID value on the top ID image can be indexed from the color pixel position in the top color image.
[0087] It should be noted that, in order to facilitate the complete presentation of all parts in the entire sub-disk on the terminal, the displayed view can be presented in the form of thumbnails, that is, the color image can be presented as a color thumbnail, and the ID image generated corresponding to the thumbnail can be presented as an ID thumbnail. For example, assuming that the generated view is a top view, the color thumbnail can be a top-view color thumbnail, and the ID thumbnail can be a top-view ID thumbnail. This embodiment of the present application is not limited to this.
[0088] Step 102: In response to a user's selection operation on a view, obtain location information of the selection operation on the view;
[0089] Based on the view, all parts located in the target partition and the specific locations of all parts are intuitively presented to the user on the terminal. The user can conveniently select the parts presented on the view through the terminal operating software. At this time, the position information selected on the view can be obtained based on the user's selection operation, so that the corresponding target parts can be selected based on the position information.
[0090] The selection operation performed by the user may include a point selection operation and a frame selection operation, etc. The part selected by the user is used as the target part. Specifically, step 102 may include the following sub-steps:
[0091] Sub-step S1021 , detecting a user's click operation on the color image, and obtaining a click position on the color image as position information of the selection operation on the view.
[0092] In one embodiment, a user's click operation on a color image can be detected, and location information of the corresponding selection can be obtained based on the click operation. Specifically, assuming that the color image is a top-down color image from a top-down angle, the click location of the click operation on the top-down color image can be obtained. For example, (x, y) as the location information of the selection operation on the top-down image can generally be represented as the color pixel position corresponding to (x, y), which can correspond to the ID pixel position corresponding to (x, y) on the top-down ID image.
[0093] Sub-step S1022 , detecting the user's selection operation on the overhead color image, and obtaining the selection range of the selection operation on the overhead color image as position information of the selection operation on the overhead view.
[0094] In another case, the user's frame selection operation on the color image can be detected, and the position information of the corresponding selection can be obtained based on the frame selection operation. Specifically, assuming that the color image is a top-down color image at a top-down angle, the frame selection range of the frame selection operation on the top-down color image can be obtained. For example, (x1, y1, x2, y2) is the position information of the selection operation on the top view, which can usually be expressed as a regular or irregular area formed based on the color pixel position of (x1, y1, x2, y2), which can correspond to a regular or irregular area formed based on the ID pixel position of (x1, y1, x2, y2) on the top-down ID image. It should be noted that its frame selection range is not limited to the area formed based on the four pixel positions of (x1, y1, x2, y2), but can also be a regular or irregular geometric area presented based on more than four pixel positions. The embodiment of the present application is not limited to this.
[0095] Step 103: Generate a printing instruction based on the position information, where the printing instruction is used to instruct to print the target part corresponding to the position information or to skip the printing operation;
[0096] In actual applications, when printing a model on a terminal, the terminal's operating software can generate a print instruction for the target part based on the location information, and send the print instruction to the 3D printer so that the 3D printer prints the target part or skips the print operation. In a specific implementation, the terminal itself runs slicing software, and the terminal can trigger the 3D printer to print the model based on the print instruction. In actual applications, a print instruction can also be sent to a cloud server so that the cloud server triggers the 3D printer to print the model based on the print instruction. In actual applications, a print instruction can also be sent to a PC running slicing software so that the slicing software triggers the 3D printer to print the model based on the print instruction.
[0097] Triggering the 3D printer to print the model based on the print instruction may include: slicing the target part to obtain a first slicing result, the first slicing result being executed by the 3D printer to complete printing of the target part, or slicing parts other than the target part in the target tray to obtain a second slicing result, the second slicing result being executed by the 3D printer to complete printing of the other parts. Sending the first slicing result or the second slicing result to the 3D printer causes the 3D printer to print the target part corresponding to the position information or skip printing.
[0098] It should be noted that if the terminal itself runs slicing software and includes a 3D printer, the terminal does not need to send the first slicing result or the second slicing result to the 3D printer. The terminal can directly print the target part corresponding to the position information based on the first slicing result or the second slicing result, or skip the printing operation, thereby completing the printing.
[0099] The position information of the selection operation on the view may include the click position on the color map for the point selection operation, and may also include the selection range on the color map for the frame selection operation.
[0100] In one embodiment of the present application, step 103 may include the following sub-steps:
[0101] Sub-step S1031, obtaining an ID image corresponding to the color image;
[0102] The pixel value at a color pixel position in the color image can be used to represent the color value of any part at the color pixel position, and the pixel value at an ID pixel position in the ID image can be used to represent the part ID value of the part at the ID pixel position. The color pixel position and the ID pixel position correspond to each other. The color pixel position and the ID pixel position correspond to each other, including: the color pixel position and the ID pixel position are the same.
[0103] Sub-step S1032, based on the clicked position, reading the pixel value of the corresponding position of the position information from the ID map as the part ID value of the target part;
[0104] The position information can be used to determine the target part selected by the user on the target disk, and specifically can be used to determine the part ID value of the target part.
[0105] The click position of the selection operation on the color map, for example (x, y) as the position information of the selection operation on the top view, can usually be expressed as the color pixel position corresponding to (x, y), which can correspond to the ID pixel position corresponding to (x, y) on the ID map.
[0106] At this time, based on the click position, the pixel value of the corresponding position of the position information can be read from the overhead ID map as the part ID value of the target part.
[0107] Sub-step S1033: Generate a printing instruction, which includes the part ID value of the target part.
[0108] In actual applications, after obtaining the part ID value of the target part, the terminal's operating software can generate a print instruction for the target part based on the location information. The generated print instruction can include the part ID value of the target part and send the print instruction to the 3D printer, so that the 3D printer can print the target part or skip the printing operation. In a specific implementation, the terminal can send the print instruction to the cloud server, so that the cloud server triggers the 3D printer to execute the model printing based on the print instruction.
[0109] In another embodiment of the present application, step 103 may include the following sub-steps:
[0110] Sub-step S1034, obtaining an ID image corresponding to the color image;
[0111] The pixel value at a color pixel position in the color image can be used to represent the color value of any part at the color pixel position, and the pixel value at an ID pixel position in the ID image can be used to represent the part ID value of the part at the ID pixel position. The color pixel position and the ID pixel position correspond to each other. The color pixel position and the ID pixel position correspond to each other, including: the color pixel position and the ID pixel position are the same.
[0112] Sub-step S1035 , based on the frame selection range, reading the pixel values within the corresponding range of the position information from the ID map as the part ID value of the target part;
[0113] The position information can be used to determine the target part selected by the user on the target disk, and specifically can be used to determine the part ID value of the target part.
[0114] The selection range of the selection operation on the color map, for example, (x1, y1, x2, y2) as the position information of the selection operation on the view, can usually be expressed as a regular or irregular area formed based on the color pixel position of (x1, y1, x2, y2), which can correspond to a regular or irregular area formed based on the ID pixel position of (x1, y1, x2, y2) on the top-view ID map.
[0115] At this time, based on the frame selection range, the pixel values within the corresponding range of the position information can be read from the top view ID image as the part ID value of the target part.
[0116] Sub-step S1036: Generate a printing instruction, which includes the part ID value of the target part.
[0117] In actual applications, after obtaining the part ID value of the target part, the terminal's operating software can generate a print instruction for the target part based on the location information. The generated print instruction can include the part ID value of the target part and send the print instruction to the 3D printer, so that the 3D printer can print the target part or skip the printing operation. In a specific implementation, the terminal can send the print instruction to the cloud server, so that the cloud server triggers the 3D printer to execute the model printing based on the print instruction.
[0118] It should be noted that the solution of sub-steps S1031 to S1033 and the solution of sub-steps S1034 to S1036 are parallel solutions.
[0119] In a preferred embodiment of the present application, the target part based on user clicking or framing only indicates the user's selection, and the specific operation of the target part also needs to be determined in combination with the current selection mode. It can also usually default to a certain selection mode when the terminal selects the target part.
[0120] Specifically, the selection mode may include selecting a print mode and selecting a skip mode. Selecting a print mode may refer to performing subsequent printing operations on the target part selected by the user; selecting a skip mode may refer to performing subsequent skip printing operations on the target part selected by the user. The skip printing operation on the target part in selecting the skip mode may also be specifically manifested as performing subsequent printing operations on other parts in the target disk except the target part.
[0121] The model printing performed by the 3D printer depends on the slicing results. Usually, only the target part to be printed needs to be sliced, that is, the 3D printer performs the corresponding model printing operation on the corresponding target part based on the slicing results.
[0122] Step 104: Send a print instruction to the cloud server. The print instruction is used by the cloud server to trigger the 3D printer to execute model printing.
[0123] The cloud server may slice the target part to obtain a first slicing result, or the cloud server may slice other parts in the target partition except the target part to obtain a second slicing result.
[0124] In one embodiment of the present application, the cloud server may slice the target part in a print mode to obtain a first slicing result, which may be executed by a 3D printer to print the target part. Alternatively, the cloud server may slice other parts of the target tray except the target part in a skip mode to obtain a second slicing result, which may be executed by the 3D printer to print other parts. The print mode or skip mode may be set by default by the cloud server and the terminal, or may be selected or set by the user.
[0125] In some preferred embodiments of the present application, the slicing processing operation can also be performed at the terminal. After the terminal triggers the 3D printer to execute model printing, or the terminal sends a printing instruction to the cloud server, the terminal can obtain a part ID set generated based on the part ID values of all target parts generated by the user's operating software of the terminal. The part ID set is based on the current selection mode, which can be a part ID set in the selected printing mode or a part ID set in the skip printing mode.
[0126] The terminal can slice the target part according to the part ID value to obtain a first slicing result, and the first slicing result can be used to be executed by the 3D printer to complete the printing of the target part, or slice the other parts in the target tray except the target part according to the part ID value to obtain a second slicing result, and the second slicing result can be used to be executed by the 3D printer to complete the printing of other parts. Specifically, when slicing the target tray, all parts of the current tray can be checked one by one, and in response to the part ID value being in the part ID set to be printed in the selected printing mode, the target part corresponding to the part ID value can be sliced, or in response to the part ID value being in the part ID set in the skip printing mode, the other parts except the target part corresponding to the part ID value can be sliced. Then, the terminal can send the slicing result to the 3D printer so that the 3D printer can complete the corresponding model printing operation.
[0127] In an embodiment of the present application, after a print instruction generated based on positional information triggers a 3D printer to print a model, the target part or parts other than the target part can be sliced. Slicing only the parts required to be printed, i.e., skipping slicing of parts that do not need to be printed, allows the printing of the required parts to be completed while skipping printing of parts that do not need to be printed. This can save part slicing resources while facilitating the selective printing of parts that failed to print. Furthermore, skipping slicing reduces computational complexity and the file size of the slicing results, further improving the efficiency of slicing and transmitting the slicing results.
[0128] 3 , there is shown a flowchart of another embodiment of a 3D printing method of the present application. The 3D printing method proposed in the embodiment of the present application is executed by a cloud server and may specifically include the following steps:
[0129] Step 301: Send a view to the terminal, where the view is used to present the corresponding position of each part in the target disk;
[0130] In an embodiment of the present application, the model can be printed through the terminal. Specifically, after the model creator processes the printing parameters of the model, the orientation of each part, the placement of the parts on the tray, etc. through the slicing software on the PC, the sliced data can be saved to the model project file, so that the terminal can retrieve the model project file of the corresponding model and print the parts in the tray according to the configuration information in the model project file, such as the part tray.
[0131] Typically, when a model creator generates a model project file or saves relevant information about the model project, PC-based slicing software generates views and ID diagrams for displaying the corresponding positions of each part in the target partition. Therefore, when uploading the model project file, the model creator can also save the top view in the model project file and upload it to the model website, i.e., the cloud server, along with the aforementioned configuration information related to the model. When the terminal obtains the top view, it is specifically obtained based on the cloud server and sent by the cloud server to the terminal.
[0132] In actual applications, if the cloud server has already loaded the model project file, a request for obtaining a view can be sent to the cloud server through the terminal to receive the top view from the cloud server. In this case, since the cloud server has already loaded the model project file in advance, the cloud server can directly obtain the view. If the cloud server has not loaded the model project file, the terminal can generate a loading instruction for the model project file and send the loading instruction to the cloud server. When responding to the loading instruction, the cloud server can obtain the generated view from the model project file and send the view to the terminal, so that the terminal can present the user with a view of each part in the target partition, intuitively displaying the geometric information of all parts in the current partition and the position information of all parts in the current partition.
[0133] In some embodiments of the present application, the terminal can respond to the user's selection operation on the view, obtain the location information of the selection operation on the view, generate a printing instruction based on the location information, and then send the printing instruction to the cloud server to facilitate the printing of the target parts corresponding to the location information or skip the printing operation.
[0134] Step 302: receiving a print instruction sent by the terminal, where the print instruction is generated based on the position information corresponding to the position selected by the user on the view;
[0135] In actual applications, the cloud server can receive the printing instructions sent by the terminal and trigger the 3D printer to execute model printing based on the printing instructions.
[0136] Among them, the received printing instruction may include location information, and the location information may include the click position and / or selection range of the user on the view displayed on the terminal. The location information can be used to determine the target part selected by the user on the target disk, and it can specifically be used to determine the part ID value of the target part. Then, the received printing instruction may also directly include the part ID value of the target part, and the embodiment of the present application does not limit this.
[0137] Step 303: Slice the target part to obtain a first slicing result, or slice the other parts in the target partition except the target part to obtain a second slicing result.
[0138] The cloud server can slice the target part to obtain a first slicing result, or it can slice other parts in the target partition except the target part to obtain a second slicing result. The first slicing result is used by the 3D printer to complete the printing of the target part, and the second slicing result is used by the 3D printer to complete the printing of other parts, thereby printing the target part corresponding to the position information or skipping the printing operation.
[0139] The model printing performed by the 3D printer depends on the slicing results. The cloud server can be expressed as the end side of the cloud slicing service. The cloud slicing service can refer to the related services provided for cloud slicing. The cloud server prints the target parts corresponding to the location information or skips the printing operation. Specifically, the cloud server slices the parts to be printed and sends the slicing results to the 3D printer so that the 3D printer can perform the corresponding model printing operation on the corresponding target parts based on the slicing results.
[0140] In an embodiment of the present application, when slicing is performed using the position information included in the printing instruction, step 303 may include the following sub-steps:
[0141] Sub-step S3031, obtaining a target part based on the position information;
[0142] The position information can be used to determine the target part selected by the user on the target tray.
[0143] In one case, the location information may include the click location of the user on the view displayed on the terminal. In this case, the coordinate information of the click location can be obtained, and the part located at the click location in the target disk can be used as the target part based on the coordinate information.
[0144] Among them, the coordinate information of the click position obtained may include a first horizontal coordinate and a first vertical coordinate. At this time, a ray can be constructed with the first horizontal coordinate, the first vertical coordinate and the preset first vertical coordinate as the starting point, and then the part intersecting with the ray in the target disk can be used as the target part.
[0145] For example, assuming that the coordinate information of the click position is (x1, y1), a ray ray1 can be constructed at this time, the starting point can be (x1, y1, z1), and the direction is perpendicular to the xy plane pointing to the negative direction of the z axis (0, 0, -1), where the preset first vertical coordinate of z1 can be any constant greater than the maximum height of the current printer; then it can be calculated which part in the current disk intersects with the ray ray1, and the part in the target disk that intersects with the ray is selected as the target part.
[0146] In another case, the location information may include the user's selection range on the view displayed on the terminal. At this time, the regional coordinate information of the selection range can be obtained, and the part in the target disk that is at least partially within the selection range can be selected as the target part based on the regional coordinate information.
[0147] Among them, the obtained area coordinate information of the selected range may include the second horizontal coordinate, the second vertical coordinate, the third horizontal coordinate, and the third vertical coordinate. At this time, a cube can be constructed with the second horizontal coordinate, the second vertical coordinate, and the preset second vertical coordinate, the third horizontal coordinate, the third vertical coordinate, and the preset third vertical coordinate as the starting point, and the parts located in the cube in the target partition can be used as target parts.
[0148] For example, assuming that the area coordinate information of the selection range is (x1, y1, x2, y2), a cube box1 can be constructed at this time, and the starting point can be (x1, y1, z1, x2, y2, z2), where the preset second vertical coordinate z1 can be any constant less than 0, and the preset third vertical coordinate z2 can be any constant greater than the maximum height of the current printer; then each part of the current disk can be judged, and if the part is contained in box1, it can be represented as the selected target part.
[0149] It should be noted that the view may include a top view, which is achieved by adjusting the viewing angle of the 3D scene camera through the slicing software to achieve the effect of overlooking the entire construction space of the printer, and then generating the view while maintaining the aforementioned top-down viewing angle; the generated view may also be a view generated based on different angles according to actual needs, so the slicing software can generate views of corresponding angles by adjusting the viewing angle of the 3D scene camera to match the corresponding angle during the process of generating views of other angles. This is not limited in the embodiments of the present application.
[0150] Also, assuming that the generated view is a top view, the top view can include a top view color image, and the ID image corresponding to the top view color image can be displayed as a top view ID image. In order to facilitate the complete presentation of all parts in the entire sub-disk on the terminal, the displayed view can be embodied in the form of a thumbnail. When the color image can be displayed as a color thumbnail, and the ID image generated corresponding to the thumbnail can be presented as an ID thumbnail, assuming that the generated view is a top view, the color thumbnail can adopt a top view color thumbnail, and the ID thumbnail can adopt a top view ID thumbnail. The embodiment of the present application does not limit this.
[0151] Sub-step S3032, slicing the target part to obtain a first slicing result;
[0152] The target part based on user click or box selection only indicates the user's selection. The specific operation of the target part also needs to be determined in combination with the current selection mode. It can also usually default to a certain selection mode when the terminal selects the target part.
[0153] Specifically, the selection mode may include selecting a print mode and selecting a skip mode. Selecting the print mode may refer to performing subsequent model printing operations on the target part selected by the user; selecting the skip mode may refer to performing subsequent skip printing operations on the target part selected by the user. The skip printing operation on the target part in the skip mode may also be specifically manifested as performing subsequent model printing operations on other parts in the target disk except the target part.
[0154] In one embodiment of the present invention, the cloud server can slice the target part in a selected printing mode to obtain a first slicing result, and the first slicing result can be used to be executed by a 3D printer to complete the printing of the target part.
[0155] Sub-step S3033, and / or, slicing the other parts in the target partition except the target part to obtain a second slicing result.
[0156] In another embodiment of the present invention, the cloud server can slice other parts in the target plate except the target part in the selected skip mode to obtain a second slicing result, and the second slicing result can be used to be executed by the 3D printer to complete the printing of other parts.
[0157] In actual applications, the cloud server can send the aforementioned first slicing result or the second slicing result to the 3D printer, so that the 3D printer prints the target part corresponding to the position information or skips the printing operation.
[0158] In some embodiments of the present application, the position information may be used to determine the part ID value of the target part. When the part ID value of the target part included in the printing instruction is used for slicing, step 303 may include the following sub-steps:
[0159] Sub-step S3034, slicing the target part according to the part ID value to obtain a first slicing result;
[0160] The target part based on user click or box selection only indicates the user's selection. The specific operation of the target part also needs to be determined in combination with the current selection mode. It can also usually default to a certain selection mode when the terminal selects the target part.
[0161] Specifically, the selection mode may include selecting a print mode and selecting a skip mode. Selecting the print mode may refer to performing subsequent model printing operations on the target part selected by the user; selecting the skip mode may refer to performing subsequent skip printing operations on the target part selected by the user. The skip printing operation on the target part in the skip mode may also be specifically manifested as performing subsequent model printing operations on other parts in the target disk except the target part.
[0162] In one embodiment of the present application, the cloud server can slice the target part according to the part ID value in the selected printing mode to obtain a first slicing result, and the first slicing result can be used to be executed by the 3D printer to complete the printing of the target part.
[0163] Specifically, the terminal can obtain a part ID set generated based on the part ID values of all target parts generated by the user's operating software on the terminal, which can be a part ID set in the selected printing mode, and send the part ID set to the cloud server.
[0164] When the cloud server slices the target disk, it can check all parts of the current disk one by one, and slice the target part corresponding to the part ID value in the part ID set to be printed in the selected printing mode.
[0165] Sub-step S3035, and / or, based on the part ID value, slicing the other parts in the target disk except the target part to obtain a second slicing result.
[0166] In another embodiment of the present invention, the cloud server can slice other parts in the target tray except the target part according to the part ID in the skip mode to obtain a second slicing result, and the second slicing result can be used to be executed by the 3D printer to complete the printing of other parts.
[0167] Specifically, the terminal can obtain a part ID set generated based on the part ID values of all target parts generated by the user's operating software on the terminal, which can be a part ID set in skip printing mode, and send the part ID set to the cloud server.
[0168] When the cloud server slices the target disk, it can check all parts of the current disk one by one, and slice the parts except the target part corresponding to the part ID value in the part ID set in the skip printing mode.
[0169] For example, assuming that the part ID set received by the cloud server is a part ID set in skip printing mode, which only contains the target part with a part ID value of 1, when the cloud server checks all the parts of the current tray one by one, when it detects the target part with a part ID value of 1, it can skip the slicing operation of the part with a part ID value of 1 and slice the parts on the target tray except for the part with an ID value of 1.
[0170] In actual applications, the cloud server can send the aforementioned first slicing result or the second slicing result to the 3D printer, so that the 3D printer prints the target part corresponding to the position information or skips the printing operation.
[0171] It should be noted that the above-mentioned scheme of sub-steps S3031 to S3033 and the scheme of sub-steps S3034 to S3035 are parallel schemes.
[0172] In some preferred embodiments of the present application, the slicing processing operation can also be performed at the terminal. After the terminal triggers the 3D printer to execute model printing, that is, after the terminal sends a printing instruction to the cloud server, the terminal can obtain a part ID set generated based on the part ID values of all target parts generated by the user's operating software of the terminal. The part ID set can be a part ID set in the selected printing mode or a part ID set in the skip printing mode based on the selection mode.
[0173] The terminal can slice the target part according to the part ID value to obtain a first slicing result, and the first slicing result can be used to be executed by the 3D printer to complete the printing of the target part, or slice the other parts in the target tray except the target part according to the part ID value to obtain a second slicing result, and the second slicing result can be used to be executed by the 3D printer to complete the printing of other parts. Specifically, when slicing the target tray, all parts of the current tray can be checked one by one, and in response to the part ID value being in the part ID set to be printed in the selected printing mode, the target part corresponding to the part ID value can be sliced, or in response to the part ID value being in the part ID set in the skip printing mode, the other parts except the target part corresponding to the part ID value can be sliced. Then, the terminal can send the slicing result to the 3D printer so that the 3D printer can complete the corresponding printing operation.
[0174] It should be noted that the equipment actually performing slicing processing in practical applications is selected based on actual conditions, and the embodiments of the present application do not impose any restrictions on this.
[0175] In an embodiment of the present application, after a print instruction generated based on position information triggers a 3D printer to execute model printing, the target part or parts other than the target part can be sliced. By slicing only the parts that need to be printed, slicing of parts that do not need to be printed can be skipped. This allows the printing of parts that do need to be printed to be completed while skipping the printing of parts that do not need to be printed. This can save part slicing resources while facilitating the selective printing of parts that failed to print. Furthermore, skipping the slicing operation reduces the computational complexity and the file size of the slicing results, further improving the efficiency of slicing and the efficiency of transmitting the slicing results.
[0176] When ordinary users perform actual printing, the following phenomena may occur: (1) The parts are not well bonded to the hot bed and fall off during printing; (2) The support of the parts is improperly generated or the support is not turned on during slicing, resulting in some areas being printed in the air or shaking during printing; (3) Parts are lifted up during printing, and the nozzle knocks down the parts, resulting in part printing failure. Based on the aforementioned phenomena that may occur during the printing process, some parts in the entire tray may fail to print. For example, there are 15 parts on a tray, and 3 of them fail to print. At this time, the user needs to reprint the parts that failed to print.
[0177] In related 3D printing technologies, users can use a parts list to select which parts to print and which not to print, enabling selective printing of parts to be printed. However, the parts list provided in related technologies only presents a list of all parts to the user, making it difficult to intuitively select the part to reprint in the event of a print failure, and even when skipping the printing of a part, slicing is still performed.
[0178] 4 , a schematic diagram of an application scenario of 3D printing provided in an embodiment of the present application is shown, involving a PC 410 , a terminal 411 , a cloud server 412 , and a 3D printer 413 .
[0179] During the 3D printing process, terminal 411 can generate a print instruction and send the generated print instruction to cloud server 412, instructing cloud server 412 to trigger 3D printer 413 to execute a model printing operation. Triggering the 3D printer to execute model printing based on the print instruction can include: slicing a target part to obtain a first slicing result, which is executed by the 3D printer to complete printing of the target part, or slicing other parts in the target tray other than the target part to obtain a second slicing result, which is executed by the 3D printer to complete printing of other parts. Sending the first slicing result or the second slicing result to the 3D printer causes the 3D printer to print the target part corresponding to the position information, or skipping the printing operation.
[0180] It should be noted that if the terminal itself runs slicing software and includes a 3D printer, the terminal does not need to send the first slicing result or the second slicing result to the 3D printer. The terminal directly prints the target part corresponding to the position information based on the first slicing result or the second slicing result, or skips the printing operation, thereby completing the printing.
[0181] Specifically, the PC end 410 can be deployed with slicing software, which can provide model creators with the configuration function of the model's printing parameters, the orientation of each part, the placement of parts on the disk, etc. in the computer's slicing software, as well as the ability to save relevant configuration information to the corresponding model project file and upload it to the model website; the terminal 411 can be used to provide ordinary users with retrieval of models uploaded by model creators, and control the printing of parts according to the disk configured by the model creator, wherein the terminal 411 can be deployed with operating software, and the terminal's operating software can be the printer itself with a screen, a mobile phone APP, or a web page of the model website, wherein the operating software may include slicing software or may not include slicing software; the cloud server 412 can be used to store the model uploaded by the PC end 410, specifically for storing model project files. The cloud server 412 can also be the end side of the cloud slicing service. The cloud slicing service can refer to the related services provided for cloud slicing, which is used to slice the model; the 3D printer 413 can be used to print parts or skip printing operations. The skipping printing operation on parts is mainly manifested as model printing operations on other parts except the skipped printing parts. Among them, the slicing software of the PC terminal 410 uploads the model to the cloud server 412, and the terminal 411 can access the model uploaded by the cloud server 412. The data of the slicing software does not need to be transmitted to the cloud server through the terminal.
[0182] When ordinary users perform actual printing, some parts usually fail to print. At this time, the user needs to reprint the parts that failed to print. In the embodiment of the present application, in order to print only the selected parts and reprint some parts that failed to print, the slicing software of the PC end 410 can generate a color image and an ID image in the model. Specifically, it can be generated when the model creator saves the model project file, specifically in the slicing software.
[0183] Among them, the view can include a top view, and the slicing software adjusts the 3D scene camera angle of view to achieve the effect of overlooking the entire build space of the printer, and then generates it while maintaining the aforementioned top view angle; the generated view can also be a view generated based on different angles according to actual needs, so the slicing software can adjust the 3D scene camera angle of view to match the corresponding angle to generate views of corresponding angles during the generation of views of other angles. This embodiment of the present application is not limited to this. Assuming that the generated view is a top view, the top view can include a top view color image, and the ID image corresponding to the top view color image can be displayed as a top view ID image. In order to facilitate the complete presentation of all parts in the entire sub-disk on the terminal, the displayed view can be embodied in the form of a thumbnail. When the color image can be displayed as a color thumbnail and the ID image generated corresponding to the thumbnail can be presented as an ID thumbnail, assuming that the generated view is a top view, the color thumbnail can be a top view color thumbnail, and the ID thumbnail can be a top view ID thumbnail. This embodiment of the present application is not limited to this.
[0184] After the model creator uploads the model, specifically the model project file, to the cloud server (via a web page, PC slicing software, or other methods), the cloud server can then reload the model project file of the target tray that failed to print last time at terminal 411. The cloud server then obtains a top-down color image of each part in the target tray and displays the top-down color image on the operating software of terminal 411. At this point, the cloud server can respond to the user's selection operation on the top-down color image of the current tray, obtain the position information of the selection operation on the top-down thumbnail, and perform subsequent printing or print skipping operations on the corresponding selected target parts based on the position information. Specifically, this can be manifested as responding to the user's click operation or box selection operation on the top-down color image, and performing subsequent printing or print skipping operations on the corresponding selected target parts based on the click position or box selection range on the top-down color image. Position information makes the selection operation simpler and more intuitive. In addition, the specified parts can be accurately reprinted without having to reprint the entire tray of parts, while reducing printing time and consumables costs.
[0185] In the scenario of reprinting a part that failed to print, the target part selected by the user can generally be a part that failed to print last time and needs to be reprinted, or a part that successfully printed last time and does not need to be reprinted.
[0186] The printing of parts depends on the slicing results, and the slicing results can be used by a 3D printer to perform a model printing operation, wherein the object / subject performing the slicing operation can be a terminal 411 or a cloud server 412, and the first slicing result obtained can be used to be executed by the 3D printer to complete the printing of the target part, or the second slicing result can be used to be executed by the 3D printer to complete the printing of other parts.
[0187] In an embodiment of the present application, after a print instruction generated based on position information triggers a 3D printer to execute model printing, the target part or parts other than the target part can be sliced. By slicing only the parts that need to be printed, slicing of parts that do not need to be printed can be skipped. This allows the printing of parts that do need to be printed to be completed while skipping the printing of parts that do not need to be printed. This can save part slicing resources while facilitating the selective printing of parts that failed to print. Furthermore, skipping the slicing operation reduces the computational complexity and the file size of the slicing results, further improving the efficiency of slicing and the efficiency of transmitting the slicing results.
[0188] It should be noted that for the method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present application are not limited by the order of the actions described, because according to the embodiments of the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present application.
[0189] 5 , a block diagram of a 3D printing device according to an embodiment of the present invention is shown. The device is applied to a terminal and may include the following modules:
[0190] The view display module 501 is used to display a view of each part in the target partition; the view is used to present the corresponding position of each part in the target partition;
[0191] The printing instruction generating module 502 is configured to, in response to a user's selection operation on the thumbnail image, obtain location information of the selection operation on the thumbnail image; and generate a printing instruction based on the location information, the printing instruction being used to instruct to print or skip the printing operation of the target part corresponding to the location information;
[0192] The printing instruction sending module 503 is used to send the printing instruction to the cloud server, and the printing instruction is used by the cloud server to trigger the 3D printer to execute model printing, wherein the cloud server slices the target part to obtain a first slicing result, and the first slicing result is used to be executed by the 3D printer to complete the printing of the target part, or the cloud server slices other parts in the target disk except the target part to obtain a second slicing result, and the second slicing result is used to be executed by the 3D printer to complete the printing of the other parts.
[0193] In one embodiment of the present application, the view includes a color image; the print instruction generation module 502 may include the following submodules:
[0194] The position information acquisition submodule is used to detect the user's point selection operation on the color image, obtain the click position of the point selection operation on the color image, and use it as the position information of the selection operation on the view; and / or detect the user's frame selection operation on the color image, obtain the frame selection range of the frame selection operation on the color image, and use it as the position information of the selection operation on the view.
[0195] In one embodiment of the present application, the location information includes the click location; the print instruction generation module 502 may include the following submodules:
[0196] A printing instruction generation submodule is used to obtain an ID image corresponding to the color image, the pixel value of the color pixel position of the color image is used to represent the color value of any part at the color pixel position, the pixel value of the ID pixel position of the ID image is used to represent the part ID value of the part at the ID pixel position, and the color pixel position and the ID pixel position correspond to each other; based on the click position, the pixel value of the corresponding position of the position information is read from the ID image as the part ID value of the target part; and the printing instruction is generated, and the printing instruction includes the part ID value of the target part.
[0197] In one embodiment of the present application, the location information includes a selection range; the print instruction generation module 502 may include the following submodules:
[0198] A printing instruction generation submodule is used to obtain a top-view ID image corresponding to the color image, the pixel value of the color pixel position of the color image is used to represent the color value of any part at the color pixel position, the pixel value of the ID pixel position of the ID image is used to represent the part ID value of the part at the ID pixel position, and the color pixel position and the ID pixel position correspond to each other; based on the frame selection range, the pixel value within the corresponding range of the position information is read from the ID image as the part ID value of the target part; and the printing instruction is generated, and the printing instruction includes the part ID value of the target part.
[0199] In one embodiment of the present application, the 3D printing device provided in the embodiment of the present application may further include the following modules:
[0200] A request sending module, configured to send a request for obtaining the view to the cloud server;
[0201] The view receiving module is configured to receive the view from the cloud server.
[0202] In one embodiment of the present application, the view includes a top view.
[0203] In an embodiment of the present application, the 3D printing device proposed in the embodiment of the present application can slice the target part or other parts except the target part after the printing instruction generated based on the position information triggers the 3D printer to execute model printing. Based on slicing only the parts that need to be printed, that is, skipping the slicing of the parts that do not need to be printed, thereby completing the printing operation of the parts that need to be printed while skipping the printing operation of the parts that do not need to be printed. It can save part slicing resources while facilitating the selective printing of some parts that failed to print. Furthermore, the skipped slicing operation also reduces the computational complexity and the file size of the slicing result, further improving the efficiency of slicing and the efficiency of transmitting the slicing results.
[0204] 6 , a block diagram of a 3D printing device according to an embodiment of the present invention is shown. The device is applied to a cloud server and may include the following modules:
[0205] A view sending module 601 is used to send a view to a terminal, wherein the view is used to present the corresponding position of each part in the target disk;
[0206] The print instruction receiving module 602 is configured to receive a print instruction sent by a terminal; the print instruction is generated based on the position information of the user's selection operation on the view;
[0207] The printing instruction response module 603 is used to slice the target part corresponding to the position information to obtain a first slicing result, and the first slicing result is used to be executed by the 3D printer to complete the printing of the target part; and / or, to slice other parts in the target plate except the target part to obtain a second slicing result, and the second slicing result is used to be executed by the 3D printer to complete the printing of the other parts.
[0208] In one embodiment of the present application, the printing instruction includes the location information; the 3D printing device provided in the embodiment of the present application may further include the following modules:
[0209] A target part determination module is used to determine the target part based on the position information.
[0210] In one embodiment of the present application, the printing instruction includes a part ID value of the target part, and the part ID value is obtained according to the position information.
[0211] In one embodiment of the present application, the position information includes the click position; the target part determination module may include the following submodules:
[0212] The target part determination submodule is used to obtain the coordinate information of the click position; the first target part selection unit is used to select the part in the target disk located at the click position as the target part based on the coordinate information.
[0213] In one embodiment of the present application, the position information includes a frame selection range; the target part determination module may include the following submodules:
[0214] The target part determination submodule is configured to obtain the regional coordinate information of the frame selection range; and according to the regional coordinate information, select the part of the target disk that is at least partially located within the frame selection range as the target part.
[0215] In one embodiment of the present application, the 3D printing device proposed in the embodiment of the present application may further include the following modules:
[0216] The slicing result sending module is used to send the first slicing result or the second slicing result to the 3D printer, so that the 3D printer prints the target part corresponding to the position information or skips the printing operation, thereby completing 3D printing.
[0217] In an embodiment of the present application, the 3D printing device proposed in the embodiment of the present application can slice the target part or other parts except the target part after the printing instruction generated based on the position information triggers the 3D printer to execute model printing. Based on slicing only the parts that need to be printed, that is, skipping the slicing of the parts that do not need to be printed, thereby completing the printing operation of the parts that need to be printed while skipping the printing operation of the parts that do not need to be printed. It can save part slicing resources while facilitating the selective printing of some parts that failed to print. Furthermore, the skipped slicing operation also reduces the computational complexity and the file size of the slicing result, further improving the efficiency of slicing and the efficiency of transmitting the slicing results.
[0218] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0219] The present application also provides an electronic device, including a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program implements the above-mentioned 3D printing method when executed by the processor. The method is executed by a terminal, and the method includes:
[0220] Display a view for each part in the target partition; the view is used to present the corresponding position of each part in the target partition; in response to the user's selection operation on the view, obtain the position information of the selection operation on the view; generate a printing instruction according to the position information, the printing instruction is used to instruct to print the target part corresponding to the position information or skip the printing operation; send the printing instruction to the cloud server, the printing instruction is used by the cloud server to trigger the 3D printer to execute model printing, wherein the cloud server slices the target part to obtain a first slicing result, and the first slicing result is used to be executed by the 3D printer to complete the printing of the target part, or the cloud server slices other parts in the target partition except the target part to obtain a second slicing result, and the second slicing result is used to be executed by the 3D printer to complete the printing of the other parts.
[0221] Optionally, the view includes a top-down color map; and the responding to the user's selection operation on the view, obtaining the position information of the selection operation on the view, includes: detecting the user's point selection operation on the color map, obtaining the click position of the point selection operation on the color map, as the position information of the selection operation on the view; and / or detecting the user's frame selection operation on the color map, obtaining the frame selection range of the frame selection operation on the color map, as the position information of the selection operation on the view.
[0222] Optionally, the position information includes a click position; generating a printing instruction based on the position information includes: obtaining an ID image corresponding to the color image, the pixel value of the color pixel position of the color image is used to represent the color value of any part at the color pixel position, the pixel value of the ID pixel position of the ID image is used to represent the part ID value of the part at the ID pixel position, and the color pixel position and the ID pixel position correspond to each other; based on the click position, reading the pixel value of the corresponding position of the position information from the ID image as the part ID value of the target part; generating the printing instruction, the printing instruction including the part ID value of the target part.
[0223] Optionally, the position information includes a frame selection range; generating a printing instruction based on the position information includes: obtaining an ID image corresponding to the color image, the pixel value of the color pixel position of the color image is used to represent the color value of any part at the color pixel position, the pixel value of the ID pixel position of the ID image is used to represent the part ID value of the part at the ID pixel position, and the color pixel position and the ID pixel position correspond to each other; based on the frame selection range, reading the pixel value within the corresponding range of the position information from the ID image as the part ID value of the target part; generating the printing instruction, the printing instruction including the part ID value of the target part.
[0224] Optionally, the color pixel position and the ID pixel position correspond to each other, including: the color pixel position and the ID pixel position are the same.
[0225] Optionally, the method further includes: sending a request for obtaining the view to a cloud server; and receiving the view from the cloud server.
[0226] Optionally, the view comprises a top view.
[0227] When the computer program is executed by a processor, the above-mentioned 3D printing method is implemented, and the method is executed by a cloud server. The method includes: sending a view to a terminal, wherein the view is used to present the corresponding positions of each part in the target partition; receiving a printing instruction sent by the terminal; the printing instruction is generated based on the position information of the user's selection operation on the view; slicing the target part corresponding to the position information to obtain a first slicing result, wherein the first slicing result is used to be executed by a 3D printer to complete the printing of the target part; and / or slicing other parts in the target partition except the target part to obtain a second slicing result, wherein the second slicing result is used to be executed by the 3D printer to complete the printing of the other parts.
[0228] Optionally, the printing instruction includes the position information, and the method further includes: determining the target part based on the position information.
[0229] Optionally, the printing instruction includes a part ID value of the target part, and the part ID value is obtained according to the position information.
[0230] Optionally, the position information includes a click position; obtaining the corresponding target part based on the position information includes: obtaining coordinate information of the click position; and according to the coordinate information, taking the part in the target disk and located at the click position as the target part.
[0231] Optionally, the position information includes a selection range; obtaining the corresponding target part based on the position information includes: obtaining regional coordinate information of the selection range; and according to the regional coordinate information, taking the part in the target disk that is at least partially within the selection range as the target part.
[0232] Optionally, the method further includes: sending the first slicing result or the second slicing result to a 3D printer, so that the 3D printer prints the target part corresponding to the position information or skips the printing operation, thereby completing 3D printing.
[0233] The present application also provides a computer-readable storage medium storing a computer program, which implements the above-mentioned 3D printing method when executed by a processor. The method is executed by a terminal, and the method includes:
[0234] Display a view for each part in the target partition; the view is used to present the corresponding position of each part in the target partition; in response to the user's selection operation on the view, obtain the position information of the selection operation on the view; generate a printing instruction according to the position information, the printing instruction is used to instruct to print the target part corresponding to the position information or skip the printing operation; send the printing instruction to the cloud server, the printing instruction is used by the cloud server to trigger the 3D printer to execute model printing, wherein the cloud server slices the target part to obtain a first slicing result, and the first slicing result is used to be executed by the 3D printer to complete the printing of the target part, or the cloud server slices other parts in the target partition except the target part to obtain a second slicing result, and the second slicing result is used to be executed by the 3D printer to complete the printing of the other parts.
[0235] Optionally, the view includes a top-down color map; and the responding to the user's selection operation on the view, obtaining the position information of the selection operation on the view, includes: detecting the user's point selection operation on the color map, obtaining the click position of the point selection operation on the color map, as the position information of the selection operation on the view; and / or detecting the user's frame selection operation on the color map, obtaining the frame selection range of the frame selection operation on the color map, as the position information of the selection operation on the view.
[0236] Optionally, the position information includes a click position; generating a printing instruction based on the position information includes: obtaining a top-view ID image corresponding to the color image, the pixel value of the color pixel position of the color image is used to represent the color value of any part at the color pixel position, the pixel value of the ID pixel position of the ID image is used to represent the part ID value of the part at the ID pixel position, and the color pixel position and the ID pixel position correspond to each other; based on the click position, reading the pixel value of the corresponding position of the position information from the ID image as the part ID value of the target part; generating the printing instruction, the printing instruction including the part ID value of the target part.
[0237] Optionally, the position information includes a frame selection range; generating a printing instruction based on the position information includes: obtaining a top-view ID image corresponding to the color image, the pixel value of the color pixel position of the color image is used to represent the color value of any part at the color pixel position, the pixel value of the ID pixel position of the ID image is used to represent the part ID value of the part at the ID pixel position, and the color pixel position and the ID pixel position correspond to each other; based on the frame selection range, reading the pixel value within the corresponding range of the position information from the ID image as the part ID value of the target part; generating the printing instruction, the printing instruction including the part ID value of the target part.
[0238] Optionally, the color pixel position and the ID pixel position correspond to each other, including: the color pixel position and the ID pixel position are the same.
[0239] Optionally, the method further includes: sending a request for obtaining the view to a cloud server; and receiving the view from the cloud server.
[0240] Optionally, the view comprises a top view.
[0241] When the computer program is executed by a processor, the above-mentioned 3D printing method is implemented, and the method is executed by a cloud server. The method includes: sending a view to a terminal, wherein the view is used to present the corresponding positions of each part in the target partition; receiving a printing instruction sent by the terminal; the printing instruction is generated based on the position information of the user's selection operation on the view; slicing the target part corresponding to the position information to obtain a first slicing result, wherein the first slicing result is used to be executed by a 3D printer to complete the printing of the target part; and / or slicing other parts in the target partition except the target part to obtain a second slicing result, wherein the second slicing result is used to be executed by the 3D printer to complete the printing of the other parts.
[0242] Optionally, the printing instruction includes the position information, and the method further includes: determining the target part based on the position information.
[0243] Optionally, the printing instruction includes a part ID value of the target part, and the part ID value is obtained according to the position information.
[0244] Optionally, the position information includes a click position; obtaining the corresponding target part based on the position information includes: obtaining coordinate information of the click position; and according to the coordinate information, taking the part in the target disk and located at the click position as the target part.
[0245] Optionally, the position information includes a selection range; obtaining the corresponding target part based on the position information includes: obtaining regional coordinate information of the selection range; and according to the regional coordinate information, taking the part in the target disk that is at least partially within the selection range as the target part.
[0246] Optionally, the method further includes: sending the first slicing result or the second slicing result to a 3D printer, so that the 3D printer prints the target part corresponding to the position information or skips the printing operation, thereby completing 3D printing.
[0247] The present application also provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the computer program implements the above-mentioned 3D printing method. The method is executed by a terminal, and the method includes:
[0248] Display a view for each part in the target partition; the view is used to present the corresponding position of each part in the target partition; in response to the user's selection operation on the view, obtain the position information of the selection operation on the view; generate a printing instruction according to the position information, the printing instruction is used to instruct to print the target part corresponding to the position information or skip the printing operation; send the printing instruction to the cloud server, the printing instruction is used by the cloud server to trigger the 3D printer to execute model printing, wherein the cloud server slices the target part to obtain a first slicing result, and the first slicing result is used to be executed by the 3D printer to complete the printing of the target part, or the cloud server slices other parts in the target partition except the target part to obtain a second slicing result, and the second slicing result is used to be executed by the 3D printer to complete the printing of the other parts.
[0249] Optionally, the view includes a top-down color map; and the responding to the user's selection operation on the view, obtaining the position information of the selection operation on the view, includes: detecting the user's point selection operation on the color map, obtaining the click position of the point selection operation on the color map, as the position information of the selection operation on the view; and / or detecting the user's frame selection operation on the color map, obtaining the frame selection range of the frame selection operation on the color map, as the position information of the selection operation on the view.
[0250] Optionally, the position information includes a click position; generating a printing instruction based on the position information includes: obtaining a top-view ID image corresponding to the color image, the pixel value of the color pixel position of the color image is used to represent the color value of any part at the color pixel position, the pixel value of the ID pixel position of the ID image is used to represent the part ID value of the part at the ID pixel position, and the color pixel position and the ID pixel position correspond to each other; based on the click position, reading the pixel value of the corresponding position of the position information from the ID image as the part ID value of the target part; generating the printing instruction, the printing instruction including the part ID value of the target part.
[0251] Optionally, the position information includes a frame selection range; generating a printing instruction based on the position information includes: obtaining a top-view ID image corresponding to the color image, the pixel value of the color pixel position of the color image is used to represent the color value of any part at the color pixel position, the pixel value of the ID pixel position of the ID image is used to represent the part ID value of the part at the ID pixel position, and the color pixel position and the ID pixel position correspond to each other; based on the frame selection range, reading the pixel value within the corresponding range of the position information from the ID image as the part ID value of the target part; generating the printing instruction, the printing instruction including the part ID value of the target part.
[0252] Optionally, the color pixel position and the ID pixel position correspond to each other, including: the color pixel position and the ID pixel position are the same.
[0253] Optionally, the method further includes: sending a request for obtaining the view to a cloud server; and receiving the view from the cloud server.
[0254] Optionally, the view comprises a top view.
[0255] When the computer program is executed by a processor, the above-mentioned 3D printing method is implemented, and the method is executed by a cloud server. The method includes: sending a view to a terminal, wherein the view is used to present the corresponding positions of each part in the target partition; receiving a printing instruction sent by the terminal; the printing instruction is generated based on the position information of the user's selection operation on the view; slicing the target part corresponding to the position information to obtain a first slicing result, wherein the first slicing result is used to be executed by a 3D printer to complete the printing of the target part; and / or slicing other parts in the target partition except the target part to obtain a second slicing result, wherein the second slicing result is used to be executed by the 3D printer to complete the printing of the other parts.
[0256] Optionally, the printing instruction includes the position information, and the method further includes: determining the target part based on the position information.
[0257] Optionally, the printing instruction includes a part ID value of the target part, and the part ID value is obtained according to the position information.
[0258] Optionally, the position information includes a click position; obtaining the corresponding target part based on the position information includes: obtaining coordinate information of the click position; and according to the coordinate information, taking the part in the target disk and located at the click position as the target part.
[0259] Optionally, the position information includes a selection range; obtaining the corresponding target part based on the position information includes: obtaining regional coordinate information of the selection range; and according to the regional coordinate information, taking the part in the target disk that is at least partially within the selection range as the target part.
[0260] Optionally, the method further includes: sending the first slicing result or the second slicing result to a 3D printer, so that the 3D printer prints the target part corresponding to the position information or skips the printing operation, thereby completing 3D printing.
[0261] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0262] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, devices, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0263] The present application embodiment is described with reference to the flow chart and / or block diagram of the method, terminal device (system), and computer program product according to the embodiment of the present application. It should be understood that each process and / or box in the flow chart and / or block diagram and the combination of the process and / or box in the flow chart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing terminal device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device produce a device for realizing the function specified in one process or multiple processes and / or one box or multiple boxes of the flow chart.
[0264] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0265] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce computer-implemented processing, so that the instructions executed on the computer or other programmable terminal device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0266] Although preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they become aware of the basic inventive concepts. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.
[0267] Finally, it should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation portals for users to choose to authorize or refuse. In addition, the relevant embodiments provided in the embodiments of this application are implemented on the basis of compliance with the relevant laws, regulations and standards of the relevant countries and regions.
[0268] It should also be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "includes," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal device that includes a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or terminal device. In the absence of further limitations, an element defined by the phrase "comprises a ..." does not exclude the presence of additional identical elements in the process, method, article, or terminal device that includes the element.
[0269] The above describes in detail a 3D printing method, a 3D printing device, a corresponding electronic device, a corresponding computer-readable storage medium, and a corresponding computer program product provided by the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only intended to help understand the method and core ideas of the present application. At the same time, for those skilled in the art, according to the ideas of the present application, there may be changes in the specific implementation methods and application scopes. In summary, the contents of this specification should not be understood as limiting the present application.
Claims
1. A 3D printing method, characterized in that: The method is executed by a terminal, and includes: Displaying views for each part in the target sub-disk; the views are used to present the corresponding positions of each part in the target sub-disk; In response to a selection operation of the user on the view, obtaining position information of the selection operation on the view; Generate a printing instruction according to the position information, wherein the printing instruction is used to instruct to print or skip the printing operation of the target part corresponding to the position information; The printing instruction is sent to the cloud server, and the printing instruction is used by the cloud server to trigger the 3D printer to execute model printing, wherein the cloud server slices the target part to obtain a first slicing result, and the first slicing result is used to be executed by the 3D printer to complete the printing of the target part, or the cloud server slices other parts in the target disk except the target part to obtain a second slicing result, and the second slicing result is used to be executed by the 3D printer to complete the printing of the other parts.
2. The method according to claim 1, characterized in that The view includes a color image; and in response to a user's selection operation on the view, obtaining position information of the selection operation on the view includes: Detecting a user's point selection operation on a color image, and obtaining the click position of the point selection operation on the color image as position information of the selection operation on the view; and / or detecting a user's frame selection operation on the color image, and obtaining the frame selection range of the frame selection operation on the color image as position information of the selection operation on the view.
3. The method according to claim 2, characterized in that The position information includes the click position; the generating of the printing instruction according to the position information includes: obtaining an ID image corresponding to the color image, the pixel value of the color pixel position of the color image is used to represent the color value of any part at the color pixel position, the pixel value of the ID pixel position of the ID image is used to represent the part ID value of the part at the ID pixel position, and the color pixel position corresponds to the ID pixel position; Based on the click position, the pixel value of the corresponding position of the position information is read from the ID map as the part ID value of the target part; and the printing instruction is generated, and the printing instruction includes the part ID value of the target part.
4. The method according to claim 2, characterized in that: The position information includes a selection range; and generating a print instruction according to the position information includes: Acquire an ID map corresponding to the color map, wherein the pixel value of a color pixel position of the color map is used to represent the color value of any part at the color pixel position, and the pixel value of an ID pixel position of the ID map is used to represent the part ID value of the part at the ID pixel position, and the color pixel position corresponds to the ID pixel position; Based on the frame selection range, pixel values within a corresponding range of the position information are read from the ID map as the part ID value of the target part; and the printing instruction is generated, wherein the printing instruction includes the part ID value of the target part.
5. The method according to claim 3 or 4, characterized in that: The color pixel position and the ID pixel position correspond to each other, including: the color pixel position and the ID pixel position are the same.
6. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: A request for obtaining the view is sent to a cloud server; and the view is received from the cloud server.
7. The method according to any one of claims 1 to 6, characterized in that: The views include top views.
8. A 3D printing method, characterized in that: The method is performed by a cloud server, and includes: Sending a view to the terminal, wherein the view is used to present the corresponding position of each part in the target disk; Receiving a print instruction sent by a terminal; the print instruction is generated based on position information corresponding to a position where a user performs a selection operation on the view; Slicing the target part corresponding to the position information to obtain a first slicing result, where the first slicing result is used to be executed by a 3D printer to complete printing of the target part; And / or, slicing other parts in the target sub-disk except the target part to obtain a second slicing result, wherein the second slicing result is used to be executed by a 3D printer to complete printing of the other parts.
9. The method according to claim 8, characterized in that The printing instruction includes the location information, and the method further includes: The target part is determined based on the position information.
10. The method according to claim 8, characterized in that The printing instruction includes a part ID value of the target part, and the part ID value is obtained according to the position information.
11. The method according to claim 9, characterized in that The position information includes a click position; obtaining the corresponding target part based on the position information includes: obtaining coordinate information of the click position; and according to the coordinate information, taking the part in the target disk and located at the click position as the target part.
12. The method according to claim 9, characterized in that The position information includes a selection range; obtaining the corresponding target part based on the position information includes: obtaining regional coordinate information of the selection range; and according to the regional coordinate information, taking a part in the target disk that is at least partially located in the selection range as a target part.
13. The method according to any one of claims 8 to 12, characterized in that: The method further comprises: The first slicing result or the second slicing result is sent to a 3D printer, so that the 3D printer prints the target part corresponding to the position information or skips the printing operation, thereby completing 3D printing.
14. A 3D printing device, characterized in that: Applied to a terminal, the device comprises: A view display module, used to display views of each part in the target partition; the views are used to present the corresponding positions of each part in the target partition; a printing instruction generating module, configured to obtain position information of the selection operation on the view in response to the user's selection operation on the view; and to generate a printing instruction according to the position information, wherein the printing instruction is used to instruct to print or skip the printing operation on the target part corresponding to the position information; A printing instruction sending module is used to send the printing instruction to the cloud server, and the printing instruction is used by the cloud server to trigger the 3D printer to execute model printing, wherein the cloud server slices the target part to obtain a first slicing result, and the first slicing result is used to be executed by the 3D printer to complete the printing of the target part, or the cloud server slices other parts in the target disk except the target part to obtain a second slicing result, and the second slicing result is used to be executed by the 3D printer to complete the printing of the other parts.
15. A 3D printing device, characterized in that: Applied to a cloud server, the device comprises: A view sending module, used for sending a view to a terminal, wherein the view is used for presenting the corresponding position of each part in the target disk; A print instruction receiving module, used for receiving a print instruction sent by a terminal; the print instruction is generated based on the position information of the position corresponding to the selection operation performed by the user on the view; A printing instruction response module is used to slice the target part corresponding to the position information to obtain a first slicing result, and the first slicing result is used to be executed by the 3D printer to complete the printing of the target part; and / or, to slice other parts in the target plate except the target part to obtain a second slicing result, and the second slicing result is used to be executed by the 3D printer to complete the printing of the other parts.
16. An electronic device, characterized in that: include: A processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein when the computer program is executed by the processor, the 3D printing method according to any one of claims 1 to 7 or claims 8 to 13 is implemented.
17. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the 3D printing method according to any one of claims 1 to 7 or claims 8 to 13 is implemented.
18. A computer program product, characterized in that The computer program product comprises a computer program, wherein the computer program implements the 3D printing method according to any one of claims 1 to 7 or claims 8 to 13 when executed by a processor.
Citation Information
Patent Citations
A part manufacturing method and device based on modularization
CN109445725A
Printing method and device and electronic equipment
CN112650456A
Method for 3D printing, computing equipment, storage medium and program product
CN114013044A
Method, device and equipment for 3D printing, storage medium and program product
CN114750410A
Method and device for 3D printer, 3D printer and storage medium
CN114789555A
