CN117140964A - Model part neglecting method, slicing method and device, electronic equipment and medium - Google Patents

Model part neglecting method, slicing method and device, electronic equipment and medium Download PDF

Info

Publication number
CN117140964A
CN117140964A CN202311082896.8A CN202311082896A CN117140964A CN 117140964 A CN117140964 A CN 117140964A CN 202311082896 A CN202311082896 A CN 202311082896A CN 117140964 A CN117140964 A CN 117140964A
Authority
CN
China
Prior art keywords
model
printing
file
target block
slice
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311082896.8A
Other languages
Chinese (zh)
Inventor
杨源鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Anycubic Technology Co Ltd
Original Assignee
Shenzhen Anycubic Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Anycubic Technology Co Ltd filed Critical Shenzhen Anycubic Technology Co Ltd
Priority to CN202311082896.8A priority Critical patent/CN117140964A/en
Publication of CN117140964A publication Critical patent/CN117140964A/en
Pending legal-status Critical Current

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B29WORKING OF PLASTICS; WORKING OF SUBSTANCES IN A PLASTIC STATE IN GENERAL
    • B29CSHAPING OR JOINING OF PLASTICS; SHAPING OF MATERIAL IN A PLASTIC STATE, NOT OTHERWISE PROVIDED FOR; AFTER-TREATMENT OF THE SHAPED PRODUCTS, e.g. REPAIRING
    • B29C64/00Additive manufacturing, i.e. manufacturing of three-dimensional [3D] objects by additive deposition, additive agglomeration or additive layering, e.g. by 3D printing, stereolithography or selective laser sintering
    • B29C64/30Auxiliary operations or equipment
    • B29C64/386Data acquisition or data processing for additive manufacturing
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B33ADDITIVE MANUFACTURING TECHNOLOGY
    • B33YADDITIVE MANUFACTURING, i.e. MANUFACTURING OF THREE-DIMENSIONAL [3-D] OBJECTS BY ADDITIVE DEPOSITION, ADDITIVE AGGLOMERATION OR ADDITIVE LAYERING, e.g. BY 3-D PRINTING, STEREOLITHOGRAPHY OR SELECTIVE LASER SINTERING
    • B33Y50/00Data acquisition or data processing for additive manufacturing

Landscapes

  • Chemical & Material Sciences (AREA)
  • Engineering & Computer Science (AREA)
  • Materials Engineering (AREA)
  • Manufacturing & Machinery (AREA)
  • Physics & Mathematics (AREA)
  • Mechanical Engineering (AREA)
  • Optics & Photonics (AREA)

Abstract

The application provides a 3D printing model part neglecting method and device, a 3D printing model slicing method and device, a 3D printer, electronic equipment and storage media, and relates to the technical field of three-dimensional printing. The model part neglecting method in 3D printing comprises the steps of obtaining a slice file; displaying a model to be printed; receiving an instruction for canceling printing on a representation of a target block in a plurality of blocks; and according to the front and back identifications of the code segments of the target block, when the 3D printer performs model printing based on the slice file, executing the code segments corresponding to the target block is ignored. In this embodiment, the slice file includes a plurality of blocks, and the code segments of at least some of the blocks have marks in front and back, so that an instruction for canceling printing of a target block can be based on a requirement, and when the 3D printer performs model printing based on the slice file, execution of the code segment corresponding to the target block can be ignored, so that printing of the target block is ignored, printing efficiency can be improved, and printing resources can be saved.

Description

Model part neglecting method, slicing method and device, electronic equipment and medium
Technical Field
The application relates to the technical field of three-dimensional printing, in particular to a method and a device for partially neglecting a 3D printing model, a method and a device for slicing the 3D printing model, a 3D printer, electronic equipment and a storage medium.
Background
When the existing slicing software processes a model, slicing is usually performed according to a preset path, and a generated slicing file (such as a Gcode file) contains path information of all slices, and the information can enable a 3D (three-dimensional) printer to perform printer control operation according to instructions in the slicing file. Taking the Gcode file as an example, the Gcode file contains instructions in G-code format, which is a language for describing how a 3D printer should print a job, and it generally stores instructions in plain text, each line representing a different command such as a printing speed of the printer, a temperature setting, and a moving position of a printing part.
However, the existing slicing software lacks an application scenario of ignoring a certain part model in some models, for example, a Gcode file is composed of a plurality of smaller part models, which are separated from each other, when the 3D printer auto leveling function is defective, a user initiates the model printing, and at this time, the model printed by the 3D printer cannot ensure that all the part models in the Gcode file are printed successfully, so that there may be some part models that are printed successfully, and some part models that are printed fail. In the whole printing process, once the printing fails, a user needs to make a printer calibration again and then reprint the model, so that consumable materials required by parts of the previous printing failure part are wasted, a large amount of printing time is consumed, and a series of safety accidents can be caused. Therefore, there is a need to solve this technical problem.
Disclosure of Invention
The present application has been made in view of the above-mentioned problems, and has as its object to provide a 3D printing model partial neglecting method and apparatus, a 3D printing model slicing method and apparatus, a 3D printer, an electronic device and a storage medium which overcome or at least partially solve the above-mentioned problems. The technical scheme is as follows:
in a first aspect, a method for partially ignoring a model in 3D printing is provided, including:
obtaining a slice file, wherein a model to be printed corresponding to the slice file comprises a plurality of blocks; wherein, the front and the back of the code segments of at least part of the blocks are provided with marks;
displaying the model to be printed;
receiving an instruction for canceling printing of a target block in a plurality of blocks, wherein marks are arranged in front of and behind a code segment corresponding to the target block;
and according to the front and back identification of the code segments of the target block, when the 3D printer performs model printing based on the slice file, neglecting the execution of the code segments corresponding to the target block, so as to neglect the printing of the target block.
In one possible implementation manner, the model to be printed includes a plurality of part models, and one part model corresponds to one block; the displaying the model to be printed comprises the following steps: displaying blocks corresponding to a plurality of part models; or the model to be printed is a part model, and at least one block in the plurality of blocks corresponds to a part of the part model.
In one possible implementation, the receiving an instruction to cancel printing of a representation of a target tile of a number of tiles includes:
in the selected printing mode, receiving an operation of selecting a target block in a plurality of blocks as an instruction for canceling printing of the representation of the target block; or alternatively
In the cancel print mode, a selection operation of a target tile of the plurality of tiles is received as an instruction to cancel printing of the representation of the target tile.
In one possible implementation, the code segments corresponding to the target block have a front-to-back identifier, and the code segments of each print layer including the target block have a front-to-back identifier;
according to the front and back identification of the code segment of the target block, when the 3D printer performs model printing based on the slice file, neglecting the execution of the code segment corresponding to the target block, including:
when the 3D printer performs model printing based on the slice file, and reads the front identifier of the front and rear identifiers of the code segments corresponding to the target block, the execution of the code segments corresponding to the target block is ignored based on the rear identifier of the front and rear identifiers of the code segments corresponding to the target block.
In one possible implementation, the method further includes:
acquiring the outline of the printed model through a camera;
comparing the contour of the printed model with the contour in the slice file, and if the similarity of the comparison is smaller than a set threshold value, suspending printing and/or outputting a prompt;
and in response to an instruction to cancel printing of the corresponding tile, continuing to print the remaining tiles.
In one possible implementation, the method further includes:
if the slice file comprises a plurality of slice files, in the process of model printing by the 3D printer based on the plurality of slice files, if the printing of the block of the target slice file fails, skipping the printing of the block of the target slice file.
In a second aspect, a slicing method of a 3D printing model is provided, including:
acquiring a 3D model file;
responding to a slicing request carrying slicing parameter information, slicing the 3D model corresponding to the 3D model file;
and identifying the independent blocks according to the slice parameter information, and embedding the marks in front of and behind the code segments of at least part of the independent blocks to obtain the slice file.
In one possible implementation, the embedding the identification before and after the code segment of the at least part of the independent block includes embedding the identification before and after the code segment of each print layer of the at least part of the independent block;
The acquiring the 3D model file comprises the following steps: receiving a 3D model file, displaying a 3D model corresponding to the 3D model file, acquiring a local marking instruction aiming at the 3D model and marking a local block;
identifying the independent blocks according to the slice parameter information comprises identifying the independent blocks according to the connection information of each part in the 3D model file; or, identifying independent blocks according to the local block marks in the 3D model file;
the 3D model corresponding to the 3D model file comprises a plurality of part models or a single part model.
In a third aspect, there is provided a 3D printing model part ignoring device comprising:
the first acquisition module is used for acquiring a slice file, and a model to be printed corresponding to the slice file comprises a plurality of blocks; wherein, the front and the back of the code segments of at least part of the blocks are provided with marks;
the display module is used for displaying the model to be printed;
the receiving module is used for receiving an instruction for canceling printing on the representation of a target block in a plurality of blocks, and marks are arranged in front of and behind a code segment corresponding to the target block;
and the neglecting module is used for neglecting the execution of the code segments corresponding to the target block when the 3D printer performs model printing based on the slice file according to the front-back identification of the code segments of the target block, so that the printing of the target block is neglected.
In one possible implementation manner, the model to be printed includes a plurality of part models, and one part model corresponds to one block; the display module is further configured to: displaying blocks corresponding to a plurality of part models; or the model to be printed is a part model, and at least one block in the plurality of blocks corresponds to a part of the part model.
In one possible implementation, the receiving module is further configured to:
in the selected printing mode, receiving an operation of selecting a target block in a plurality of blocks as an instruction for canceling printing of the representation of the target block; or alternatively
In the cancel print mode, a selection operation of a target tile of the plurality of tiles is received as an instruction to cancel printing of the representation of the target tile.
In a possible implementation manner, the code segments corresponding to the target block are provided with the marks at the front and the rear of the code segments of each printing layer comprising the target block, so that the subsequent printing layers can be timely ignored when any layer receives an ignore command after being printed again; furthermore, the arrangement of the marks before and after the code segments of each printed layer has an important role, namely that the neglecting operation is more efficient. Because this neglect is based on the code level and does not need to add monitoring operations to the print position of the print head, i.e. does not need to take care of the external appearance of where the print head actually travels, only needs to be executed according to the code, and because the code is the original source driving the print head to move, it is more efficient to execute the neglect operation from the source, and does not need to wait for the print head to move to a certain position, and then monitor and find it by an external device, which is obviously a bit of lag, and may occur in an untimely situation. The ignore module is further configured to:
When the 3D printer performs model printing based on the slice file, and reads the front identifier of the front and rear identifiers of the code segments corresponding to the target block, the execution of the code segments corresponding to the target block is ignored based on the rear identifier of the front and rear identifiers of the code segments corresponding to the target block.
In one possible implementation, the ignoring module is further configured to:
acquiring the outline of the printed model through a camera;
comparing the contour of the printed model with the contour in the slice file, and if the similarity of the comparison is smaller than a set threshold value, suspending printing and/or outputting a prompt;
and in response to an instruction to cancel printing of the corresponding tile, continuing to print the remaining tiles.
In one possible implementation, the ignoring module is further configured to:
if the slice file comprises a plurality of slice files, in the process of model printing by the 3D printer based on the plurality of slice files, if the printing of the block of the target slice file fails, skipping the printing of the block of the target slice file.
In a fourth aspect, a 3D printer is provided, comprising a 3D printing model part ignoring device as described in any one of the preceding claims.
In a fifth aspect, there is provided a slicing apparatus of a 3D printing model, including:
The second acquisition module is used for acquiring the 3D model file;
the slicing module is used for responding to a slicing request carrying slicing parameter information and slicing the 3D model corresponding to the 3D model file; and identifying the independent blocks according to the slice parameter information, and embedding the marks in front of and behind the code segments of at least part of the independent blocks to obtain the slice file.
In one possible implementation, the embedding the identification before and after the code segment of the at least part of the independent block includes embedding the identification before and after the code segment of each print layer of the at least part of the independent block;
the second acquisition module is further used for receiving a 3D model file, displaying a 3D model corresponding to the 3D model file, acquiring a local marking instruction aiming at the 3D model and marking a local block;
the slicing module is further used for identifying independent blocks according to the connection information of each part in the 3D model file; or, identifying independent blocks according to the local block marks in the 3D model file;
the 3D model corresponding to the 3D model file comprises a plurality of part models or a single part model.
In a sixth aspect, an electronic device is provided, the electronic device comprising a processor and a memory, wherein the memory has stored therein a computer program, the processor being configured to run the computer program to perform the 3D printing model partial neglecting method or the slicing method of the 3D printing model of any of the above.
In a seventh aspect, there is provided a storage medium storing a computer program, wherein the computer program is configured to execute the 3D printing model partial neglecting method or the slicing method of the 3D printing model as described in any one of the above at run time.
By means of the technical scheme, the 3D printing model part neglecting method and device, the slicing method and device of the 3D printing model, the 3D printer, the electronic equipment and the storage medium can acquire slice files, and the model to be printed corresponding to the slice files comprises a plurality of blocks; wherein, the front and the back of the code segments of at least part of the blocks are provided with marks; displaying a model to be printed; receiving an instruction for canceling printing of a target block in a plurality of blocks, wherein the front and the rear of a code segment corresponding to the target block are provided with marks; and according to the front and back identifications of the code segments of the target block, when the 3D printer performs model printing based on the slice file, executing the code segments corresponding to the target block is ignored, so that printing of the target block is ignored. It can be seen that, in the embodiment of the present application, the to-be-printed model corresponding to the slice file includes a plurality of blocks, and at least a part of code segments of the blocks have marks on the front and rear sides, so that an instruction for canceling printing of the target block can be based on a requirement, and when the 3D printer performs model printing based on the slice file, execution of the code segment corresponding to the target block can be ignored, so that printing of the target block is ignored, printing efficiency can be improved, and printing resources can be saved.
Drawings
In order to more clearly illustrate the technical solution of the embodiments of the present application, the drawings that are required to be used in the description of the embodiments of the present application will be briefly described below.
FIG. 1A is a flow chart of a model part ignoring method in 3D printing provided by an embodiment of the application;
FIG. 1B is a flowchart of a slicing method of a 3D printing model provided by an embodiment of the present application;
FIG. 2 is a schematic diagram of embedding annotation information fields before and after code segments of various part models provided by an embodiment of the present application;
FIG. 3 is a block diagram of a model part ignoring device in 3D printing according to an embodiment of the application;
fig. 4 shows a block diagram of a slicing apparatus for a 3D printing model according to an embodiment of the present application;
FIG. 5 shows a block diagram of a 3D printer provided by an embodiment of the present application;
fig. 6 shows a block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present application are shown in the drawings, it should be understood that the present application may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the application to those skilled in the art.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that such use is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "include" and variations thereof are to be interpreted as open-ended terms that mean "include, but are not limited to.
In order to solve the above technical problem, an embodiment of the present application provides a 3D printing model part neglecting method, as shown in fig. 1A, the 3D printing model part neglecting method may include the following steps S101 to S104:
step S101, a slice file is obtained, and a model to be printed corresponding to the slice file comprises a plurality of blocks; wherein, at least part of the code segments of the block are marked in front and behind.
In the step, the model to be printed can be composed of a plurality of part models, and each part model corresponds to each block, namely one part model corresponds to one block; the model to be printed may also be a part model, at least one of the blocks corresponding to a part of the part model.
The slice file includes code segments of one or several part models, i.e. code segments of several blocks, which can be executed to control the 3D printer to print each block. The code segments of at least part of the blocks are provided with marks at the front and the back, so that the printing can be omitted or skipped later.
Step S102, a model to be printed is displayed.
In the step, the model to be printed is displayed, the blocks corresponding to a plurality of part models can be displayed, or the blocks corresponding to one part model can be displayed, namely, a plurality of blocks included in the model to be printed can be displayed, so that a user can conveniently operate the blocks through a human-computer interaction interface, and follow-up neglecting printing or skipping printing is facilitated.
Step S103, receiving an instruction for canceling printing on the representation of a target block in a plurality of blocks, wherein the front and rear of a code segment corresponding to the target block are provided with marks.
In the step, the operation of canceling printing of the representation of the target block in each block displayed by the human-computer interaction interface by the user can be received, namely, the instruction of canceling printing of the representation of the target block in a plurality of blocks is received.
Step S104, according to the front and back identification of the code segments of the target block, when the 3D printer performs model printing based on the slice file, executing the code segments corresponding to the target block is ignored, and printing of the target block is ignored.
The to-be-printed model corresponding to the slice file in the embodiment of the application comprises a plurality of blocks, and the front and the rear of the code segments of at least part of the blocks are provided with the marks, so that the instruction of canceling printing of the target block can be performed based on the requirement, and when the 3D printer performs model printing based on the slice file, the execution of the code segments corresponding to the target block can be ignored, thereby omitting the printing of the target block, improving the printing efficiency and saving the printing resources.
In one possible implementation manner provided in the embodiment of the present application, before the slice file is obtained in the step S101, the method may include the following step A1:
step A1, embedding annotation information fields in the slice file in front of and behind the code segments of at least part of the blocks as front and behind identifications of the code segments of at least part of the blocks.
For example, the model to be printed includes a plurality of part models, each part model corresponding to each block, i.e., one part model corresponds to one block, and the plurality of part models including part models 1 to 10 may be embedded "in front of the code section of part model 1; part1 Start ", embedded" behind the code segment of Part model 1; part1 End "; embedding "in front of the code segment of the part model 2; part2 Start ", embedded" behind the code segment of Part model 2; part2 End "; similarly, insert "in front of the code segment of part model 10; part10 Start ", embedded" behind the code segment of Part model 10; part10 End).
As another example, the plurality of part models including part models a1 to a10 may be embedded "in front of the code segment of part model a 1; p1 Start ", embedded" behind the code segment of part model a 1; p1 End "; embedding "in front of the code segment of the part model a 2; p2 Start ", embedded" behind the code segment of part model a 2; p2 End "; and so on, embedding "in front of the code segment of part model a 10; p10Start ", embedded" behind the code segment of part model a 10; p10 End). This list is illustrative only and is not intended to limit the present embodiment.
In the embodiment of the present application, a possible implementation manner is provided, where step S103 above receives an instruction for canceling printing on a target tile in a plurality of tiles, and specifically may include the following step B1 or step B2:
and step B1, in the selected printing mode, receiving an operation of not selecting a target block in the plurality of blocks as an instruction for canceling printing on the representation of the target block.
In the step, if a user selects a block in the selected printing mode, a code segment corresponding to the block is indicated to be executed; if the user does not select the block, the representation will directly ignore the code segment corresponding to the block.
And step B2, receiving a selection operation of a target block in the plurality of blocks in the printing cancellation mode as an instruction for canceling printing of the target block.
In this step, if the user selects the target block in the cancel print mode, it means that the code segment corresponding to the target block will be directly ignored.
In this embodiment, the user may flexibly perform the operation of canceling printing on the target tile according to the actual requirement, so as to facilitate subsequent neglecting printing or skipping printing.
In the embodiment of the present application, a possible implementation manner is provided, where step S104 above ignores execution of a code segment corresponding to a target block when a 3D printer performs model printing based on a slice file according to front and rear identifiers of the code segment of the target block, so as to ignore printing of the target block, and specifically may include steps C11 and C12 below:
step C11, determining the code segments of the target block according to the front-back identifiers of the code segments of the target block;
and step C12, when the 3D printer performs model printing based on the slice file, executing the code segment corresponding to the target block is ignored.
According to the embodiment, the code segments of the target block can be determined according to the front and rear identifications of the code segments of the target block, and when the 3D printer performs model printing based on the slice file, the execution of the code segments corresponding to the target block is directly ignored or skipped, so that the printing efficiency can be improved, and the printing resources can be saved.
In one possible implementation manner provided in the embodiment of the present application, the front and rear of the code segment corresponding to the target block have identifiers, which may be the front and rear of the code segment of each print layer including the target block. Therefore, model neglect printing can be carried out according to the front and back identifications of the code segments of each printing layer of the target block, and finer model control is achieved.
In the embodiment of the present application, a possible implementation manner is provided, where step S104 above ignores execution of a code segment corresponding to a target block when a 3D printer performs model printing based on a slice file according to a front-back identifier of the code segment of the target block, so as to ignore printing of the target block, and specifically may include the following step C21:
and step C21, when the 3D printer performs model printing based on the slice file, and when the front identifier of the front and rear identifiers of the code segments corresponding to the target block is read, the execution of the code segments corresponding to the target block is ignored based on the rear identifier of the front and rear identifiers of the code segments corresponding to the target block.
According to the embodiment, when the 3D printer performs model printing based on the slice file, and when the front identifier of the front identifier and the rear identifier of the code segment corresponding to the target block are read, the execution of the code segment corresponding to the target block is directly skipped based on the rear identifier of the front identifier and the rear identifier of the code segment corresponding to the target block, so that the printing efficiency can be improved, and the printing resources can be saved.
In the embodiment of the present application, a possible implementation manner is provided, when each part in the model is printed to a certain height, at this time, a user can sense which part in the model is printed successfully and which part is printed failed, but the 3D printer does not know, in order to solve this technical problem, the camera may be combined to realize the advanced sensing of the part with failed printing, and specifically the method may include the following steps D1 to D3:
step D1, acquiring the outline of the printed model through a camera;
step D2, comparing the contour of the printed model with the contour in the slice file, and if the similarity of the comparison is smaller than a set threshold value, suspending printing and/or outputting a prompt;
and D3, responding to the instruction of canceling the printing of the corresponding block, and continuing to print the rest blocks.
In this embodiment, for the failed part model cancelled by the user, skip printing can be directly performed, and the remaining blocks continue to be printed, so that the printing efficiency is improved, and the printing resources are saved.
In the embodiment of the application, a possible implementation manner is provided, if the slice files comprise a plurality of slice files, in the process that the 3D printer performs model printing based on the plurality of slice files, if the printing of the blocks of the target slice files fails, the printing of the blocks of the target slice files is skipped, so that the printing efficiency is improved, and the printing resources are saved.
Based on the same inventive concept, the embodiment of the present application provides a slicing method of a 3D printing model, as shown in fig. 1B, the slicing method of the 3D printing model may include the following steps S111 to S113:
step S111, a 3D model file is acquired.
In this step, the 3D model file may be specifically an online 3D model file of the network, or a local 3D model file uploaded by the user. The 3D model files are acquired in various modes, the acquired model files are richer, and the model acquisition efficiency can be improved.
And step S112, responding to a slicing request carrying slicing parameter information, and slicing the 3D model corresponding to the 3D model file.
In this step, the slice parameter information may be slice block information, such as 9 blocks or 12 blocks, etc., which is only illustrative and not limiting in this embodiment.
If the 3D model corresponding to the 3D model file comprises a plurality of part models, the slice parameter information can comprise connection information of each part model, so that in the subsequent slicing process, marks can be embedded in front of and behind the code segments of each block according to the connection information of each part model, and the slice file is obtained. For example, if one part model is considered independent without any connection to the other parts, then identification may be made.
Step S113, the independent blocks are identified according to the slice parameter information, and the marks are embedded in the front and the back of the code segments of at least part of the independent blocks, so that the slice file is obtained.
According to the embodiment, in the slicing process, the independent blocks can be accurately and efficiently identified according to slice parameter information, and the marks are embedded in the front and the rear of the code segments of at least part of the independent blocks to obtain the slice file, so that the instruction for canceling printing of the target block can be subsequently performed based on the requirement, and when the 3D printer performs model printing based on the slice file, the execution of the code segments corresponding to the target block can be ignored, so that the printing of the target block is ignored, the printing efficiency can be improved, and the printing resources are saved.
In one possible implementation manner, the embedding of the identification before and after the code segment of the at least partial independent block comprises embedding the identification before and after the code segment of each printing layer of the at least partial independent block;
step S111 above obtains a 3D model file, specifically may be receiving the 3D model file, displaying a 3D model corresponding to the 3D model file, obtaining a local marking instruction for the 3D model, and performing local block marking; in one embodiment of the present application, the local marking instruction may refer to that after the 3D model is displayed on the screen, a user defines a dividing line through touch or man-machine interaction of a mouse, so that the 3D model is artificially divided, and the divided boundaries are marked, so that the boundaries can be used as independent blocks and can be independently disposed in a subsequent process, such as neglecting, etc.
Step S113 identifies an independent block according to slice parameter information, specifically, may identify an independent block according to connection information of each part in the 3D model file; or, identifying the independent blocks according to the local block marks in the 3D model file; the 3D model corresponding to the 3D model file herein includes a plurality of part models or a single part model.
The embodiment can identify the independent blocks according to the connection information of each part in the 3D model file, or identify the independent blocks according to the local block marks in the 3D model file, and then embed the marks in the front and back of the code segments of at least part of the independent blocks to obtain the slice file, the to-be-printed model corresponding to the slice file thus obtained comprises a plurality of blocks, the marks are arranged in the front and back of the code segments of at least part of the blocks, the instruction of canceling printing on the target block can be performed on the basis of the requirement subsequently, and when the 3D printer performs model printing on the basis of the slice file, the execution of the code segments corresponding to the target block can be omitted, so that the printing on the target block is omitted, the printing efficiency can be improved, and the printing resources can be saved.
Having described various implementations of the various links of the embodiments shown in fig. 1A and fig. 1B, a method for partially omitting or skipping a model in 3D printing according to an embodiment of the present application will be further described below by using a specific embodiment, where a model to be printed is composed of a plurality of part models, and one part model corresponds to one block.
Existing slicing software lacks application scenarios that ignore or skip a certain part model in some models, which may be made up of several possibilities:
1.1A slice file, such as a Gcode file, is made up of multiple part models, separated from each other.
When the 3D printer automatic leveling function has defects, a user initiates model printing, and at the moment, the model printed by the 3D printer cannot ensure that all part models in the Gcode file are successfully printed, so that part models can be successfully printed, and part models can fail to be printed. In the whole printing process, once the printing fails, a user needs to make a printer calibration again and then reprint the model, so that consumable materials required by parts of the previous printing failure part are wasted, a large amount of printing time is consumed, and a series of safety accidents can be caused.
Part model skip solution: may be implemented in conjunction with slicing software and 3D printer firmware application software.
(1) Slicing software part technology implementation
Annotation information fields corresponding to different parts are embedded in the Gcode file generated by the slicing software, and the model to which the part belongs is identified through the annotation information fields, specifically, the annotation information fields are embedded in the front and the back of the code segments of each part model and used as the front and the back identifications of the code segments of each part model.
For example, see fig. 2, "; part1 Start "identifies the Start of the first Part of the Part,"; part1End "identifies the End of the first portion of the Part; "; part2 Start "identifies the Start of the second Part of the Part,"; part2 End "identifies the End of the second portion of the Part; "; part3 Start "identifies the Start of the third Part of the Part,"; part3 End "identifies the End of the third portion of the Part; and so on, different printing blocks can be distinguished through the identification, so that the 3D printer firmware can be used for identification and information extraction. The examples are illustrative only and are not intended to limit the present embodiments.
(2) 3D printer firmware application software technology implementation
According to the technical implementation of the slice software part in the step (1), the 3D printer firmware end needs to realize the model skip function which is developed by matching with the slice software, namely, a user can operate a man-machine interaction application such as a touch screen to support the selection or cancellation of printing of the blocks corresponding to the Gcode model, and the principle of selecting the printed or cancelled blocks is that the similar blocks in the Gcode model file are matched; part1 Start ","; part1End "in the annotation field.
In the selective printing mode, a certain block is selected, that is, the program executes the Gcode code corresponding to the certain block, otherwise, the block is directly skipped, and the Gcode code of the next block is executed. In the cancel print mode, when a certain block is selected, the block is directly skipped, and the Gcode code of the next block is executed. In this way, a model skip function can be implemented.
(3) Application scenario
(1) The user selects to pause printing, can select the skip function of one or more parts in the model file through the human-computer interaction application, and then resumes printing, triggering the application software logic of the part skip function.
(2) When the 3D printer prints a certain block, the material is broken, at the moment, the equipment is in a material breaking stop state, after the material is re-fed, a user can select the skip function of one or more parts in the model file through man-machine interaction application, and then printing is continuously resumed, and application software logic of the part skip function is triggered.
(3) After the 3D printer is powered off accidentally, a user can select the skip function of one or more parts in the model file through man-machine interaction application after restarting, and then resume printing, and the application software logic of the part skip function is triggered.
1.1.1 multiple part models of the same morphology exist in a single model.
In this scenario, the principle of part skipping is as part 1.1, and will not be described here again.
1.1.2 in combination with the technical scheme in 1.1, and the part model skipping is realized by camera and AI (artificial intelligence) recognition.
Aiming at the problems, the 3D printer needs to combine a camera and an AI technology to realize the advanced perception of the printing failure part, and particularly can combine the current mainstream graphic image recognition algorithm, such as fixed-point shooting of a model in the printing process, binarization of the image, comparison of image data with an original model image (such as a model image in a slice file) and other means to perceive the printing result in advance, feedback the result to a page of a model part skip function, and automatically filter the printing failure option of the part for a user, thereby reducing misoperation of the user.
1.2A 3mf file is composed of a plurality of Gcode files, the files being different from each other.
The 3mf file format is one of the main formats of future 3D printing files, and has the main advantages of small file size, large contained information amount, strong readability, intellectualization and the like. The 3mf file is essentially a compressed package composed of zip (file compression algorithm) formats, so a 3mf file may include multiple Gcode files (i.e., multiple parts, each part being a separate Gcode file) to be sequentially transferred to a 3D printer, and the 3D printer may parse the 3mf file format to obtain multiple Gcode model files. When printing is initiated, there are several solutions that can enable model part skipping:
1.2.1 sequentially opening each Gcode file according to the 3mf file information, and printing in sequence.
When printing of a certain Gcode file may fail, the user may choose to skip the current file and continue printing the next Gcode file. The benefit of this approach is that no distinction needs to be made by the comment block described in 1.1.
1.2.2A plurality of Gcode files are opened simultaneously according to the 3mf file information, and whether printing of the next file block is carried out is determined according to the blocks in the Gcode files.
When printing of a certain block in a certain file fails, the block corresponding to the file can be skipped, and the block in the next Gcode file can be continuously printed, and the method can be realized by combining slicing software, and the principle is 1.1 and is not repeated here.
And 1.2.3, realizing model skipping by combining the camera and the AI intelligent recognition.
The 3D printer needs to combine the camera and AI technology to realize the advanced perception of the printing failure part, and can specifically combine the current mainstream graphic image recognition algorithm, for example, the model is subjected to fixed-point shooting in the printing process, then the image is subjected to binarization, then the image data is compared with the original model image (such as the model image in a slice file) and other means to perceive the printing result in advance, the result is fed back to the page of the model part skip function, and the option of part printing failure is automatically filtered for a user, so that misoperation of the user is reduced.
1.2.4 application scenarios
(1) The user selects to pause printing, can select the skip function of one or more parts in the model file through the human-computer interaction application, and then resumes printing, triggering the application software logic of the part skip function.
(2) When the 3D printer prints a certain block, the material is broken, at the moment, the equipment is in a material breaking stop state, after the material is re-fed, a user can select the skip function of one or more parts in the model file through man-machine interaction application, and then printing is continuously resumed, and application software logic of the part skip function is triggered.
(3) After the 3D printer is powered off accidentally, a user can select the skip function of one or more parts in the model file through man-machine interaction application after restarting, and then resume printing, and the application software logic of the part skip function is triggered.
Based on the 3D printing model part ignoring method provided by the above embodiments, the embodiment of the application further provides a 3D printing model part ignoring device based on the same inventive concept.
Fig. 3 is a block diagram of a model part ignoring device in 3D printing according to an embodiment of the application. As shown in fig. 3, the 3D printing model part ignoring apparatus may specifically include a first acquisition module 310, a display module 320, a receiving module 330, and a ignoring module 340.
A first obtaining module 310, configured to obtain a slice file, where a model to be printed corresponding to the slice file includes a plurality of blocks; wherein, the front and the back of the code segments of at least part of the blocks are provided with marks;
a display module 320, configured to display the model to be printed;
a receiving module 330, configured to receive an instruction for canceling printing for a representation of a target block among a plurality of blocks, where a code segment corresponding to the target block has a front identifier and a rear identifier;
and the ignoring module 340 is configured to ignore execution of a code segment corresponding to the target block when the 3D printer performs model printing based on the slice file according to the front-back identification of the code segment of the target block, so as to ignore printing of the target block.
The embodiment of the application provides a possible implementation mode, wherein the model to be printed comprises a plurality of part models, and one part model corresponds to one block; the display module 320 is further configured to: displaying blocks corresponding to a plurality of part models; or the model to be printed is a part model, and at least one block in the plurality of blocks corresponds to a part of the part model.
In one possible implementation manner provided in the embodiment of the present application, the receiving module 330 is further configured to:
In the selected printing mode, receiving an operation of selecting a target block in a plurality of blocks as an instruction for canceling printing of the representation of the target block; or alternatively
In the cancel print mode, a selection operation of a target tile of the plurality of tiles is received as an instruction to cancel printing of the representation of the target tile.
The embodiment of the application provides a possible implementation manner, wherein the front and the rear of the code segment corresponding to the target block are provided with the marks, and the front and the rear of the code segment of each printing layer comprising the target block are provided with the marks; the ignore module 340 is further configured to:
when the 3D printer performs model printing based on the slice file, and reads the front identifier of the front and rear identifiers of the code segments corresponding to the target block, the execution of the code segments corresponding to the target block is ignored based on the rear identifier of the front and rear identifiers of the code segments corresponding to the target block.
In one possible implementation manner provided in the embodiment of the present application, the ignoring module 340 is further configured to:
acquiring the outline of the printed model through a camera;
comparing the contour of the printed model with the contour in the slice file, and if the similarity of the comparison is smaller than a set threshold value, suspending printing and/or outputting a prompt;
And in response to an instruction to cancel printing of the corresponding tile, continuing to print the remaining tiles.
In one possible implementation manner provided in the embodiment of the present application, the ignoring module 340 is further configured to:
if the slice file comprises a plurality of slice files, in the process of model printing by the 3D printer based on the plurality of slice files, if the printing of the block of the target slice file fails, skipping the printing of the block of the target slice file.
Based on the same inventive concept, as shown in fig. 4, the embodiment of the present application further provides a slicing device for a 3D printing model, where the slicing device for a 3D printing model may specifically include a second acquisition module 410 and a slicing module 420.
A second obtaining module 410, configured to obtain a 3D model file;
the slicing module 420 is configured to slice the 3D model corresponding to the 3D model file in response to a slicing request carrying slicing parameter information; and identifying the independent blocks according to the slice parameter information, and embedding the marks in front of and behind the code segments of at least part of the independent blocks to obtain the slice file.
In one possible implementation manner, the embedding identification before and after the code segment of at least part of the independent blocks includes embedding identification before and after the code segment of each printing layer of at least part of the independent blocks;
The second obtaining module 410 is further configured to receive a 3D model file, display a 3D model corresponding to the 3D model file, obtain a local marking instruction for the 3D model, and perform local block marking;
the slicing module 420 is further configured to identify an independent block according to the connection information of each part in the 3D model file; or, identifying independent blocks according to the local block marks in the 3D model file; the 3D model corresponding to the 3D model file comprises a plurality of part models or a single part model.
Based on the same inventive concept, as shown in fig. 5, the embodiment of the application further provides a 3D printer, which comprises the device for partially ignoring the model in 3D printing.
Based on the same inventive concept, an embodiment of the present application further provides an electronic device, including a processor and a memory, wherein the memory stores a computer program, and the processor is configured to run the computer program to perform the 3D printing model part neglecting method or the slicing method of the 3D printing model of any one of the above embodiments.
In an exemplary embodiment, an electronic device is provided, as shown in fig. 6, the electronic device 600 shown in fig. 6 includes: a processor 601 and a memory 603. The processor 601 is coupled to a memory 603, such as via a bus 602. Optionally, the electronic device 600 may also include a transceiver 604. It should be noted that, in practical applications, the transceiver 604 is not limited to one, and the structure of the electronic device 600 is not limited to the embodiment of the present application.
The processor 601 may be a CPU (Central Processing Unit ), general purpose processor, DSP (Digital Signal Processor, data signal processor), ASIC (Application Specific Integrated Circuit ), FPGA (Field Programmable Gate Array, field programmable gate array) or other programmable logic device, transistor logic device, hardware components, or any combination thereof. Which may implement or perform the various exemplary logic blocks, modules and circuits described in connection with this disclosure. The processor 601 may also be a combination that performs computing functions, such as including one or more microprocessors, a combination of a DSP and a microprocessor, and the like.
Bus 602 may include a path to transfer information between the components. Bus 602 may be a PCI (Peripheral Component Interconnect, peripheral component interconnect Standard) bus or an EISA (Extended Industry Standard Architecture ) bus, or the like. The bus 602 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in fig. 6, but not only one bus or one type of bus.
The Memory 603 may be, but is not limited to, ROM (Read Only Memory) or other type of static storage device that can store static information and instructions, RAM (Random Access Memory ) or other type of dynamic storage device that can store information and instructions, EEPROM (Electrically Erasable Programmable Read Only Memory ), CD-ROM (Compact Disc Read Only Memory, compact disc Read Only Memory) or other optical disk storage, optical disk storage (including compact discs, laser discs, optical discs, digital versatile discs, blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer.
The memory 603 is used for storing computer program code for performing the aspects of the present application and is controlled by the processor 601 for execution. The processor 601 is arranged to execute computer program code stored in the memory 603 for implementing what is shown in the foregoing method embodiments.
Among them, electronic devices include, but are not limited to: mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and the like, and stationary terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 6 is only an example and should not be construed as limiting the functionality and scope of use of the embodiments of the application.
Based on the same inventive concept, an embodiment of the present application further provides a storage medium having stored therein a computer program, wherein the computer program is configured to execute the 3D printing model partial neglecting method or the slicing method of the 3D printing model of any one of the above embodiments at run time.
It will be clear to those skilled in the art that the specific working processes of the above-described systems, devices and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein for brevity.
Those of ordinary skill in the art will appreciate that: the aspects of the present application may be embodied in essence or in whole or in part in a software product stored on a storage medium, comprising program instructions for causing an electronic device (e.g., personal computer, server, network device, etc.) to perform all or part of the steps of the methods of the embodiments of the present application when the program instructions are executed. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a read-only memory (ROM), a random-access memory (RAM), a magnetic disk, or an optical disk, etc.
Alternatively, all or part of the steps of implementing the foregoing method embodiments may be implemented by hardware (such as a personal computer, a server, or an electronic device such as a network device) associated with program instructions, where the program instructions may be stored in a computer-readable storage medium, and where the program instructions, when executed by a processor of the electronic device, perform all or part of the steps of the method according to the embodiments of the present application.
The above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all technical features thereof can be replaced by others within the spirit and principle of the present application; such modifications and substitutions do not depart from the scope of the application.

Claims (10)

1. A method for model part omission in 3D printing, comprising:
obtaining a slice file, wherein a model to be printed corresponding to the slice file comprises a plurality of blocks; wherein, the front and the back of the code segments of at least part of the blocks are provided with marks;
Displaying the model to be printed;
receiving an instruction for canceling printing of a target block in a plurality of blocks, wherein marks are arranged in front of and behind a code segment corresponding to the target block;
and according to the front and back identification of the code segments of the target block, when the 3D printer performs model printing based on the slice file, neglecting the execution of the code segments corresponding to the target block, so as to neglect the printing of the target block.
2. The method of claim 1, wherein receiving an instruction to cancel printing of a representation of a target tile of a number of tiles comprises:
in the selected printing mode, receiving an operation of selecting a target block in a plurality of blocks as an instruction for canceling printing of the representation of the target block; or alternatively
In the cancel print mode, a selection operation of a target tile of the plurality of tiles is received as an instruction to cancel printing of the representation of the target tile.
3. The method of claim 1 or 2, wherein the code segments corresponding to the target tile have an identification before and after the code segments of each print layer comprising the target tile;
according to the front and back identification of the code segment of the target block, when the 3D printer performs model printing based on the slice file, neglecting the execution of the code segment corresponding to the target block, including:
When the 3D printer performs model printing based on the slice file, and reads the front identifier of the front and rear identifiers of the code segments corresponding to the target block, the execution of the code segments corresponding to the target block is ignored based on the rear identifier of the front and rear identifiers of the code segments corresponding to the target block.
4. The method according to claim 1 or 2, characterized in that the method further comprises:
acquiring the outline of the printed model through a camera;
comparing the contour of the printed model with the contour in the slice file, and if the similarity of the comparison is smaller than a set threshold value, suspending printing and/or outputting a prompt;
and in response to an instruction to cancel printing of the corresponding tile, continuing to print the remaining tiles.
5. The method according to claim 4, wherein the method further comprises:
if the slice file comprises a plurality of slice files, in the process of model printing by the 3D printer based on the plurality of slice files, if the printing of the block of the target slice file fails, skipping the printing of the block of the target slice file.
6. A slicing method of a 3D printing model, comprising:
acquiring a 3D model file;
Responding to a slicing request carrying slicing parameter information, slicing the 3D model corresponding to the 3D model file;
and identifying the independent blocks according to the slice parameter information, and embedding the marks in front of and behind the code segments of at least part of the independent blocks to obtain the slice file.
7. The method of claim 6, wherein embedding the identification in front of and behind the code segments of at least some of the individual tiles comprises embedding the identification in front of and behind the code segments of each print layer of at least some of the individual tiles;
the acquiring the 3D model file comprises the following steps: receiving a 3D model file, displaying a 3D model corresponding to the 3D model file, acquiring a local marking instruction aiming at the 3D model and marking a local block;
identifying the independent blocks according to the slice parameter information comprises identifying the independent blocks according to the connection information of each part in the 3D model file; or, identifying independent blocks according to the local block marks in the 3D model file;
the 3D model corresponding to the 3D model file comprises a plurality of part models or a single part model.
8. A slicing apparatus for a 3D printing model, comprising:
The second acquisition module is used for acquiring the 3D model file;
the slicing module is used for responding to a slicing request carrying slicing parameter information and slicing the 3D model corresponding to the 3D model file; and identifying the independent blocks according to the slice parameter information, and embedding the marks in front of and behind the code segments of at least part of the independent blocks to obtain the slice file.
9. An electronic device comprising a processor and a memory, wherein the memory has stored therein a computer program, the processor being configured to run the computer program to perform the 3D printing model partial neglect method of any one of claims 1 to 5 or the slicing method of the 3D printing model of any one of claims 6 to 7.
10. A storage medium having a computer program stored therein, wherein the computer program is configured to execute the 3D printing model partial neglecting method according to any one of claims 1 to 5 or the slicing method of the 3D printing model according to any one of claims 6 to 7 at run time.
CN202311082896.8A 2023-08-25 2023-08-25 Model part neglecting method, slicing method and device, electronic equipment and medium Pending CN117140964A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311082896.8A CN117140964A (en) 2023-08-25 2023-08-25 Model part neglecting method, slicing method and device, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311082896.8A CN117140964A (en) 2023-08-25 2023-08-25 Model part neglecting method, slicing method and device, electronic equipment and medium

Publications (1)

Publication Number Publication Date
CN117140964A true CN117140964A (en) 2023-12-01

Family

ID=88883550

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311082896.8A Pending CN117140964A (en) 2023-08-25 2023-08-25 Model part neglecting method, slicing method and device, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN117140964A (en)

Similar Documents

Publication Publication Date Title
CN107797773A (en) Image output device, history display apparatus and history display method
US10101950B2 (en) Image forming apparatus, information processing apparatus and control method thereof, and storage medium storing a program
US20130076705A1 (en) Display control apparatus, display control method, and storage medium for displaying a content of a file on a display apparatus
US8996849B2 (en) Starting of an image processing device using predetermined data stored in a storage for rapid powered on and power down
US8860997B2 (en) Image output apparatus, preview image generating method, and storage medium
US9824229B2 (en) Controller with enhanced reliability
CN103167209A (en) Image forming apparatus with power-saving mode and image forming method
US9864637B2 (en) Adaptable software resource managers based on intentions
CN108196484A (en) Display panel control method, device and system, display panel and equipment unit
CN117140964A (en) Model part neglecting method, slicing method and device, electronic equipment and medium
US20120303707A1 (en) Computer and method for remotely sharing operations of the computer with an electronic device
US9519470B2 (en) Information processing system, information processing apparatus, device, software installation method, and storage medium for executing software installation
JP2007304694A (en) Image retrieval device, image retrieval method and image retrieval program
US11954519B2 (en) Information processing apparatus, method, and recording medium controlling execution of a process based on the amount of a type of log data stored
CN114359367A (en) Data annotation method and device, computer equipment and storage medium
KR100617755B1 (en) Method and apparatus for booting a mobile communication terminal having nand flash memory
CN104424006A (en) Apparatus and control method
US11630630B2 (en) Multiple screen apparatus that changes the screen contents based on the screen orientation
JP2008269341A (en) Recovery storage medium
US9891615B2 (en) Numerical controller with function of automatically reconstructing settings and function of preventing incorrect settings
EP2937787B1 (en) Method for obtaining print processing time and electronic device having print function
CN112214235A (en) Method and device for upgrading quick-charging firmware, mobile terminal and storage medium
US20140376048A1 (en) Display apparatus, method for controlling the same, and storage medium for displaying a schedule screen for print jobs to be executed
US20230092303A1 (en) Information processing apparatus, information processing method and non-transitory recording medium
CN113792326B (en) File content copy limiting method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination