CN112650457A - File processing method, device and equipment applied to 3D printing and storage medium - Google Patents

File processing method, device and equipment applied to 3D printing and storage medium Download PDF

Info

Publication number
CN112650457A
CN112650457A CN202011595726.6A CN202011595726A CN112650457A CN 112650457 A CN112650457 A CN 112650457A CN 202011595726 A CN202011595726 A CN 202011595726A CN 112650457 A CN112650457 A CN 112650457A
Authority
CN
China
Prior art keywords
printing
line segment
file
gray level
coordinate axis
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
CN202011595726.6A
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 Chuangxiang 3D Technology Co Ltd
Original Assignee
Shenzhen Chuangxiang 3D 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 Chuangxiang 3D Technology Co Ltd filed Critical Shenzhen Chuangxiang 3D Technology Co Ltd
Priority to CN202011595726.6A priority Critical patent/CN112650457A/en
Publication of CN112650457A publication Critical patent/CN112650457A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1218Reducing or saving of used resources, e.g. avoiding waste of consumables or improving usage of hardware resources
    • G06F3/122Reducing or saving of used resources, e.g. avoiding waste of consumables or improving usage of hardware resources with regard to computing resources, e.g. memory, CPU
    • 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
    • B29C64/393Data acquisition or data processing for additive manufacturing for controlling or regulating additive manufacturing processes
    • 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
    • B33Y50/02Data acquisition or data processing for additive manufacturing for controlling or regulating additive manufacturing processes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1237Print job management
    • G06F3/1241Dividing a job according to job requirements, e.g. black/white and colour pages, covers and body of books, tabs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1296Printer job scheduling or printer resource handling

Abstract

The embodiment of the invention discloses a file processing method, a device and equipment, namely a storage medium, applied to 3D printing, wherein the method comprises the following steps: acquiring an input printing model file; acquiring a multi-layer gray level picture according to the printing model file; establishing a coordinate axis by taking the upper left corner of the multilayer gray level picture as a coordinate origin and performing traversal scanning to determine the line segment endpoint coordinates of each line segment in the multilayer gray level picture in the coordinate axis; and generating a printing file according to the line segment endpoint coordinates of each line segment in the coordinate axis for printing. According to the file processing method applied to 3D printing provided by the embodiment of the invention, the sliced image data is stored in a coordinate point mode, so that the problem that the printing file occupies too much memory in the prior art is solved, and the effects of reducing resource occupation and being more widely applied are realized.

Description

File processing method, device and equipment applied to 3D printing and storage medium
Technical Field
The embodiment of the invention relates to a 3D printing technology, in particular to a file processing method, a file processing device, file processing equipment and a storage medium applied to 3D printing.
Background
In the existing LCD and DLP photocuring printing, after slicing processing is carried out on a 3D digital model, pictures are directly generated on a sliced model section, and then the pictures are compressed and packaged into zip files. Therefore, the cut zip-format file is large, more resources can be occupied in the file transmission process, the printer type is limited by the fixed-size picture, the fixed-size picture can only be used for exposure screens with the same size, one model file can only correspond to one printer type, and the use process is troublesome.
Disclosure of Invention
The invention provides a file processing method, a file processing device, file processing equipment and a storage medium applied to 3D printing, and aims to achieve the effects of reducing resource occupation and being more widely applied.
In a first aspect, an embodiment of the present invention provides a file processing method applied to 3D printing, including:
acquiring an input printing model file;
acquiring a multi-layer gray level picture according to the printing model file;
establishing a coordinate axis by taking the upper left corner of the multilayer gray level picture as a coordinate origin and performing traversal scanning to determine the line segment endpoint coordinates of each line segment in the multilayer gray level picture in the coordinate axis;
generating a printing file according to the coordinates of the line segment end points of each line segment in the coordinate axis for printing;
the sliced image data is stored in a coordinate point mode, so that the problem that the printing file occupies too much memory in the prior art is solved, and the effects of reducing resource occupation and being more widely applied are achieved
In some embodiments, the obtaining a multi-layer grayscale picture from the print model file includes:
slicing the printing model file according to preset precision;
acquiring a multi-layer gray level picture according to the printing model file processed by the slicing;
the slicing precision is different according to different preset precisions, and therefore the effect of controlling the 3D printing quality is achieved.
In some embodiments, the establishing a coordinate axis according to the multi-layered grayscale picture and performing traversal scanning to determine a line segment endpoint coordinate of each line segment in the coordinate axis in the multi-layered grayscale picture includes:
establishing a coordinate axis according to the multi-layer gray level pictures;
traversing scanning in any direction is carried out on the multi-layer gray level picture;
acquiring the line segment endpoint coordinates of each line segment in the multi-layer gray level picture in the coordinate axis;
the multi-layer gray level picture is cut in multiple directions, and the effect of improving the cutting precision when the picture pattern is irregular is achieved.
In some embodiments, the obtaining the coordinates of the line segment endpoint of each line segment in the coordinate axis in the grayscale picture of each of the multiple layers includes:
acquiring a starting point coordinate and an end point coordinate of each line segment in the multi-layer gray level picture;
determining the line segment endpoint coordinates of each line segment in the multi-layer gray level picture in the coordinate axis according to the starting point coordinates and the end point coordinates;
the position of each line segment can be determined by acquiring the start point coordinate and the end point coordinate of each line segment, thereby reducing the data storage amount.
In some embodiments, the establishing a coordinate axis with an upper left corner of the multi-layered grayscale picture as a coordinate origin and performing traversal scanning to determine a line segment endpoint coordinate of each line segment in the coordinate axis in the multi-layered grayscale picture includes:
establishing a coordinate axis for the coordinate origin according to the upper left corner of the multi-layer gray level picture;
traversing scanning in any direction is carried out on the multi-layer gray level picture;
acquiring the line segment endpoint coordinates of each line segment in the multi-layer gray level picture in the coordinate axis;
the effect of accurately determining the image coordinates in the complex geometric patterns is realized by determining the coordinates of each pixel point, and the identification precision is improved.
In some embodiments, the generating a print file for printing according to the line segment endpoint coordinates of each line segment in the coordinate axes comprises:
generating a binary file according to the line segment endpoint coordinates of each line segment in the coordinate axis;
and generating a printing file according to the binary file for printing.
In some embodiments, the generating a print file from the binary file for printing comprises:
converting the binary file into a printing file and carrying out exposure processing;
printing the exposed printing file;
by saving the print file as a binary file, the saving space is saved and the transmission speed is increased.
In a second aspect, an embodiment of the present invention further provides a file processing apparatus applied to 3D printing, where the apparatus includes:
the input module is used for acquiring an input printing model file;
the acquisition module is used for acquiring multi-layer gray level pictures according to the printing model file;
the positioning module is used for establishing a coordinate axis by taking the upper left corner of the multilayer gray level picture as a coordinate origin and performing traversal scanning to determine the line segment endpoint coordinates of each line segment in the coordinate axis in the multilayer gray level picture;
and the printing module is used for generating a printing file according to the line segment endpoint coordinates of each line segment in the coordinate axis for printing.
In a third aspect, an embodiment of the present invention further provides a file processing apparatus applied to 3D printing, including:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a document processing method as any one of above described for 3D printing.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, wherein the computer program is configured to implement the file processing method applied to 3D printing as described in any one of the above when executed by a processor.
The file processing method applied to 3D printing provided by the embodiment of the invention comprises the following steps: acquiring an input printing model file; acquiring a multi-layer gray level picture according to the printing model file; establishing a coordinate axis by taking the upper left corner of the multilayer gray level picture as a coordinate origin and performing traversal scanning to determine the line segment endpoint coordinates of each line segment in the multilayer gray level picture in the coordinate axis; and generating a printing file according to the line segment endpoint coordinates of each line segment in the coordinate axis for printing. By storing the sliced image data in a coordinate point mode, the problem that the printing file occupies too much memory in the prior art is solved, and the effects of reducing resource occupation and being more widely applied are achieved.
Drawings
FIG. 1 is a flowchart illustrating a file processing method applied to 3D printing according to a first embodiment of the present invention;
FIG. 2 is a flowchart illustrating a file processing method applied to 3D printing according to a second embodiment of the present invention;
FIG. 3 is a flowchart illustrating a file processing method applied to 3D printing according to a second embodiment of the present invention;
FIG. 4 is a flowchart illustrating a file processing method applied to 3D printing according to a second embodiment of the present invention;
FIG. 5 is a flowchart illustrating a file processing method applied to 3D printing according to a second embodiment of the present invention;
FIG. 6 is a flowchart illustrating a file processing method applied to 3D printing according to a third embodiment of the present invention;
FIG. 7 is a schematic structural diagram of a document processing apparatus applied to 3D printing according to a third embodiment of the present invention;
fig. 8 is a schematic structural diagram of a file processing method and apparatus applied to 3D printing in the fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. A process may be terminated when its operations are completed, but may have additional steps not included in the figure. A process may correspond to a method, a function, a procedure, a subroutine, a subprogram, etc.
Furthermore, the terms "first," "second," and the like may be used herein to describe various orientations, actions, steps, elements, or the like, but the orientations, actions, steps, or elements are not limited by these terms. These terms are only used to distinguish one direction, action, step or element from another direction, action, step or element. For example, a first module may be termed a second module, and, similarly, a second module may be termed a first module, without departing from the scope of the present application. The first module and the second module are both modules, but they are not the same module. The terms "first", "second", etc. are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Example one
Fig. 1 is a schematic flow chart of a file processing method applied to 3D printing according to an embodiment of the present invention, where the file processing method applied to 3D printing according to the embodiment of the present invention is applicable to a case of reducing a print file storage space in 3D printing, and specifically, the file processing method applied to 3D printing according to the embodiment of the present invention includes:
and step 100, acquiring the input printing model file.
In this embodiment, the principle of the 3D printing technology is: firstly, a 3D digital model is created on a computer, then "printing materials" such as powder or colloid are loaded into a printer, the printer is connected with the computer, 3D digital model data in the computer are read, the movement and material output of a printing nozzle are controlled, the "printing materials" are laminated and added into a layer, and finally, a blueprint on the computer is changed into a real object. In the 3D printing process, after the 3D printing software generates the preset printing model, the printing model file can be stored, common 3D printing methods comprise LCD photocuring printing and DLP photocuring printing, the generated printing model file is generally the 3D model file obtained in the photocuring printing, and the 3D model can be printed out by inputting the 3D model file into the 3D printer.
And step 110, acquiring a multi-layer gray level picture according to the printing model file.
In this embodiment, by performing slicing processing on the print model file, a multi-layer grayscale picture is obtained, where the multi-layer grayscale picture includes a plurality of section pictures at different positions, referring to fig. 2, in this embodiment, step 110 further includes:
and 111, slicing the printing model file according to preset precision.
And step 112, acquiring a multi-layer gray image according to the slice-processed printing model file.
In this embodiment, when the preset precision is higher, the number of slices is larger, so that the number of generated multi-layer grayscale images is also larger, and the printed 3D model is more accurate; when the preset precision is lower, the number of slices is smaller, so that the number of generated multi-layer grayscale images is also smaller, and the precision of the printed 3D model is reduced. The slicing precision is different according to different preset precisions, and therefore the effect of controlling the 3D printing quality is achieved.
And 120, establishing a coordinate axis by taking the upper left corner of the multilayer gray-scale picture as a coordinate origin, and determining the line segment endpoint coordinates of each line segment in the coordinate axis in the multilayer gray-scale picture through traversal scanning.
In this embodiment, each picture in step 120 is processed, specifically, a coordinate axis is established for each picture, exemplarily, a lower frame of each picture is taken as an X axis, a left frame is taken as a Y axis, an upper left corner is taken as a coordinate origin, a coordinate axis is established, and each pixel point is taken as a coordinate unit. In the embodiment, the traversal scanning is to scan each picture from left to right or from top to bottom, so that the position coordinates of each line segment in each picture are determined, file saving is performed on all the line segment coordinates, a new file format cxdlp is generated, the position of image data is recorded after slicing, when packed data is the position where only graphic data is transmitted, subsequent equipment automatically identifies the position where the image data is recorded, and then each complete picture can be obtained.
And step 130, generating a printing file according to the line segment endpoint coordinates of each line segment in the coordinate axis for printing.
In this embodiment, the position coordinates of each line segment in step 120 are stored to generate a print file, where the print file is a 3D print model, and after the 3D model is created, a suitable print material is selected according to the physical and mechanical properties of the printed object. Many materials can be used for 3D printing, for example, SLA uses liquid photosensitive resin, LOM uses paper, metal film, plastic film, SLS uses thermoplastic, metal powder, ceramic powder. After the printed material is determined, an appropriate 3D printer is selected. Currently, 3D printers are classified into two categories, industrial-grade and desktop-grade (consumer-grade). The more well-known companies include 3D Systems, Stratasys, Formlabs, Hewlett packard, EOS, Israel Objet. Since the 3D printer has strict requirements for the printing material, researchers should select a suitable printer and printing material according to the research purpose, requirements and budget. In this embodiment, the specific printing manner is not limited in this embodiment.
The embodiment of the invention provides a file processing method applied to 3D printing, which comprises the following steps: acquiring an input printing model file; acquiring a multi-layer gray level picture according to the printing model file; establishing a coordinate axis by taking the upper left corner of the multilayer gray level picture as a coordinate origin and performing traversal scanning to determine the line segment endpoint coordinates of each line segment in the multilayer gray level picture in the coordinate axis; and generating a printing file according to the line segment endpoint coordinates of each line segment in the coordinate axis for printing. According to the file processing method applied to 3D printing provided by the embodiment of the invention, the sliced image data is stored in a coordinate point mode, so that the problem that the printing file occupies too much memory in the prior art is solved, and the effects of reducing resource occupation and being more widely applied are realized.
Example two
Fig. 3 is a file processing method applied to 3D printing according to a second embodiment of the present invention, which is further explained and supplemented to a part of contents on the basis of the first embodiment, and this embodiment is suitable for reducing a print file saving space in 3D printing, and specifically, the file processing method applied to 3D printing according to the second embodiment of the present invention includes:
and 200, acquiring the input printing model file.
And step 210, acquiring a multi-layer gray level picture according to the printing model file.
And step 220, establishing a coordinate axis for the coordinate origin according to the upper left corner of the multi-layer gray level picture.
And step 230, performing traversal scanning in any direction on the multi-layer gray level picture.
And 240, acquiring the line segment endpoint coordinates of each line segment in the multi-layer gray level picture in the coordinate axis.
In this embodiment, the difference from the first embodiment is that the cutting direction of each field of picture is not limited, for example, the cutting may be performed from left to right, or from left bottom to right top, and the multi-layer grayscale pictures are cut in multiple directions, so that the effect of improving the cutting accuracy when the picture pattern is irregular is achieved. Illustratively, the coordinates of the upper left corner of the image are (0,0), and first move downward by the height of the image, each time judging 1 pixel value, if there are consecutive pixels greater than 0 in (0,0) to (0, h), then store the start (sp) and end (ep) position coordinates, and then continue moving rightward until the end of the lower right corner (w, h) of the image, specifically, in an alternative embodiment, referring to fig. 4, step 240 includes:
and 241, acquiring the start point coordinate and the end point coordinate of each line segment in the multi-layer gray level picture.
And 242, determining the line segment endpoint coordinates of each line segment in the multi-layer gray level picture in the coordinate axis according to the starting point coordinates and the end point coordinates.
In this embodiment, the position of each line segment in the coordinate axis may be determined by the start point coordinate and the end point coordinate of the line segment in the print pattern, where the width of each line segment is one pixel point, for example, the start point coordinate is (1, 3), the end point coordinate is (1, 5), the line segment is a line segment with two pixel points in length and one pixel point in width. When the same line segment is composed of a plurality of line segments in the scanning process, the start point coordinates and the end point coordinates of the line segments are recorded simultaneously so as to determine the line segment, and the position of each line segment can be determined by acquiring the start point coordinates and the end point coordinates of each line segment, so that the data storage capacity is reduced.
In other alternative embodiments, referring to fig. 5, step 240 further comprises:
and 243, obtaining the position coordinates of each pixel point in each line segment in the multi-layer gray level picture.
And 244, determining the line segment endpoint coordinates of each line segment in the multi-layer gray level picture in the coordinate axis according to the position coordinates of each pixel point.
In this embodiment, when the image is an uneven or irregular collective image, it is difficult to determine the exact position of the image by the position coordinates of the line segments, so that the effect of determining the image coordinates is achieved by recording the position coordinates of each scanned pixel point. The effect of accurately determining the image coordinates in the complex geometric patterns is realized by determining the coordinates of each pixel point, and the identification precision is improved.
And step 250, generating a binary file according to the position coordinates of each line segment.
In this embodiment, the position coordinates of each line segment are packaged together with other files into a binary file, and the file contains data such as: the method comprises the steps of obtaining a total number of layers, an x resolution (pixel), a y resolution (pixel), a thumbnail (116x116rgb), a preview (290x290 rgb), a machine parameter x length, a machine parameter y length, a layer thickness, exposure time, lamp-out time(s), bottom layer exposure time(s), a number of bottom layers, a bottom layer lifting distance, a bottom layer lifting speed, a lifting distance, a lifting speed, a return speed, bottom layer light intensity PWM and light intensity PWM, analyzing a cxdlp file by a printer, obtaining relevant data by analyzing the cxdlp file by the 3D printer, saving a storage space and improving transmission speed by storing a print file as a binary file.
And step 260, generating a printing file according to the binary file for printing.
In this embodiment, referring to fig. 6, step 260 further includes:
and 261, converting the binary file into a printing file and performing exposure processing.
And 262, printing the exposed printing file.
In this embodiment, the 3D model can be printed out by inputting the exposed file and the original image of the 3D printing model restored into the 3D printer. If the 3D model has problems, the model can be repaired through model repair software, the number of available model repair software is large, the Geomagic Wrap software is generally considered to be more suitable for repairing the model, and STL format files which can be used for 3D printing can be exported.
The embodiment of the invention provides a file processing method applied to 3D printing, which comprises the following steps: acquiring an input printing model file; acquiring a multi-layer gray level picture according to the printing model file; establishing a coordinate axis according to the multilayer gray level picture and performing traversal scanning to determine the line segment endpoint coordinates of each line segment in the multilayer gray level picture in the coordinate axis; and generating a printing file according to the line segment endpoint coordinates of each line segment in the coordinate axis for printing. According to the file processing method applied to 3D printing provided by the embodiment of the invention, the sliced image data is stored in a coordinate point mode, so that the problem that the printing file occupies too much memory in the prior art is solved, and the effects of reducing resource occupation and being more widely applied are realized.
EXAMPLE III
Fig. 7 is a third embodiment of the present invention, which provides a file processing apparatus for 3D printing, and the third embodiment of the present invention provides a file processing apparatus for 3D printing, which can execute a file processing method for 3D printing provided in any embodiment of the present invention, and has corresponding functional modules and beneficial effects of the execution method. As shown in fig. 7, the document processing apparatus 300 applied to 3D printing includes:
an input module 310, configured to obtain an input print model file;
an obtaining module 320, configured to obtain a multi-layer grayscale image according to the print model file;
the positioning module 330 is configured to establish a coordinate axis with an upper left corner of the multi-layered grayscale image as a coordinate origin and perform traversal scanning to determine a line segment endpoint coordinate of each line segment in the coordinate axis in the multi-layered grayscale image;
and the printing module 340 is configured to generate a print file for printing according to the coordinates of the line segment endpoint of each line segment in the coordinate axis.
Optionally, in an embodiment, the obtaining module 320 further includes:
the slicing submodule is used for slicing the printing model file according to preset precision;
and the first acquisition module is used for acquiring a multi-layer gray level picture according to the printing model file processed by the slicing.
Optionally, in an embodiment, the positioning module 330 further includes:
the coordinate axis establishing submodule is used for establishing a coordinate axis for a coordinate origin according to the upper left corner of the multi-layer gray level picture;
the cutting submodule is used for performing traversal scanning on the multi-layer gray level picture in any direction;
and the second acquisition module is used for acquiring the line segment endpoint coordinates of each line segment in the multi-layer gray level picture in the coordinate axis.
Optionally, in an embodiment, the second obtaining module further includes:
the first coordinate acquisition unit is used for acquiring the start point coordinate and the end point coordinate of each line segment in the multi-layer gray level picture;
and the first coordinate determination unit is used for determining the line segment endpoint coordinates of each line segment in the multi-layer gray level picture in the coordinate axis according to the starting point coordinates and the end point coordinates.
Optionally, in an embodiment, the second obtaining module further includes:
the first coordinate acquisition unit is used for acquiring the position coordinates of each pixel point in each line segment in the multi-layer gray level picture;
and the second coordinate determination unit is used for determining the line segment endpoint coordinates of each line segment in the multi-layer gray level picture in the coordinate axis according to the position coordinates of each pixel point.
Optionally, in an embodiment, the method further includes:
the file generation module is used for generating a binary file according to the line segment endpoint coordinates of each line segment in the coordinate axis;
and the file printing module is used for generating a printing file according to the binary file to print.
Optionally, in an embodiment, the document printing module further includes:
the exposure module is used for converting the binary file into a printing file and carrying out exposure processing;
and the file printing sub-module is used for printing the printing file after the exposure processing.
An embodiment of the present invention provides a file processing apparatus applied to 3D printing, including: the input module is used for acquiring an input printing model file; the acquisition module is used for acquiring multi-layer gray level pictures according to the printing model file; the positioning module is used for establishing a coordinate axis by taking the upper left corner of the multilayer gray level picture as a coordinate origin and performing traversal scanning to determine the line segment endpoint coordinates of each line segment in the coordinate axis in the multilayer gray level picture; and the printing module is used for generating a printing file according to the line segment endpoint coordinates of each line segment in the coordinate axis for printing. According to the file processing device applied to 3D printing provided by the embodiment of the invention, the sliced image data is stored in a coordinate point mode, so that the problem that the printing file occupies too much memory in the prior art is solved, and the effects of reducing resource occupation and being more widely applied are realized.
Example four
Fig. 8 is a schematic structural diagram of a document processing apparatus 12 applied to 3D printing according to a fourth embodiment of the present invention. FIG. 8 shows a block diagram of an exemplary document processing device 12 for 3D printing suitable for use in implementing embodiments of the present invention. The document processing apparatus 12 applied to 3D printing shown in fig. 8 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiment of the present invention.
As shown in fig. 8, the file device 12 applied to 3D printing is represented in the form of a general-purpose computing device. Components of the file device 12 that are applied to 3D printing may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Document processing device 12 for 3D printing typically includes a variety of computer system readable media. Such media can be any available media that can be accessed by the document processing device 12 for 3D printing, including both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)30 and/or cache memory 32. The file device 12 for 3D printing applications may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 8, and commonly referred to as a "hard drive"). Although not shown in FIG. 8, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
The document processing device 12 for 3D printing may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with the document processing device 12 for 3D printing, and/or with any device (e.g., network card, modem, etc.) that enables the document processing device 12 for 3D printing to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, the document processing device 12 applied to 3D printing may also communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the internet) through the network adapter 20. As shown, the network adapter 20 communicates with other modules of the document processing device 12 for 3D printing via the bus 18. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the document processing device 12 for 3D printing applications, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 16 executes various functional applications and data processing by running a program stored in the system memory 28, for example, implementing a file processing method applied to 3D printing provided by an embodiment of the present invention:
acquiring an input printing model file;
acquiring a multi-layer gray level picture according to the printing model file;
establishing a coordinate axis by taking the upper left corner of the multilayer gray level picture as a coordinate origin and performing traversal scanning to determine the line segment endpoint coordinates of each line segment in the multilayer gray level picture in the coordinate axis;
and generating a printing file according to the line segment endpoint coordinates of each line segment in the coordinate axis for printing.
The embodiment of the invention provides file processing equipment applied to 3D printing, which is used for executing the following method: acquiring an input printing model file; acquiring a multi-layer gray level picture according to the printing model file; establishing a coordinate axis by taking the upper left corner of the multilayer gray level picture as a coordinate origin and performing traversal scanning to determine the line segment endpoint coordinates of each line segment in the multilayer gray level picture in the coordinate axis; and generating a printing file according to the line segment endpoint coordinates of each line segment in the coordinate axis for printing. According to the file processing device applied to 3D printing provided by the embodiment of the invention, the sliced image data is stored in a coordinate point mode, so that the problem that the printing file occupies too much memory in the prior art is solved, and the effects of reducing resource occupation and being more widely applied are achieved.
EXAMPLE five
Fifth embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the file processing method applied to 3D printing, according to any embodiment of the present invention:
acquiring an input printing model file;
acquiring a multi-layer gray level picture according to the printing model file;
establishing a coordinate axis by taking the upper left corner of the multilayer gray level picture as a coordinate origin and performing traversal scanning to determine the line segment endpoint coordinates of each line segment in the multilayer gray level picture in the coordinate axis;
and generating a printing file according to the line segment endpoint coordinates of each line segment in the coordinate axis for printing.
The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The file processing storage medium applied to 3D printing provided by the embodiment of the invention is used for executing the following method: acquiring an input printing model file; acquiring a multi-layer gray level picture according to the printing model file; establishing a coordinate axis by taking the upper left corner of the multilayer gray level picture as a coordinate origin and performing traversal scanning to determine the line segment endpoint coordinates of each line segment in the multilayer gray level picture in the coordinate axis; and generating a printing file according to the line segment endpoint coordinates of each line segment in the coordinate axis for printing. According to the file processing storage medium applied to 3D printing provided by the embodiment of the invention, the sliced image data is stored in a coordinate point mode, so that the problem that the printing file occupies too much memory in the prior art is solved, and the effects of reducing resource occupation and being more widely applied are achieved.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A file processing method applied to 3D printing is characterized by comprising the following steps:
acquiring an input printing model file;
acquiring a multi-layer gray level picture according to the printing model file;
establishing a coordinate axis by taking the upper left corner of the multilayer gray level picture as a coordinate origin and performing traversal scanning to determine the line segment endpoint coordinates of each line segment in the multilayer gray level picture in the coordinate axis;
and generating a printing file according to the line segment endpoint coordinates of each line segment in the coordinate axis for printing.
2. The file processing method applied to 3D printing according to claim 1, wherein the obtaining of the multi-layer gray-scale picture according to the printing model file comprises:
slicing the printing model file according to preset precision;
and acquiring a multi-layer gray picture according to the printing model file processed by the slicing.
3. The file processing method applied to 3D printing according to claim 1, wherein the establishing a coordinate axis with the upper left corner of the multi-layer gray-scale picture as a coordinate origin and performing traversal scanning to determine the line segment endpoint coordinates of each line segment in the coordinate axis in the multi-layer gray-scale picture comprises:
establishing a coordinate axis for the coordinate origin according to the upper left corner of the multi-layer gray level picture;
traversing scanning in any direction is carried out on the multi-layer gray level picture;
and acquiring the line segment endpoint coordinates of each line segment in the multi-layer gray level picture in the coordinate axis.
4. The file processing method applied to 3D printing according to claim 3, wherein the obtaining of the coordinates of the end points of each line segment in the coordinate axes in the grayscale picture of each of the multiple layers comprises:
acquiring a starting point coordinate and an end point coordinate of each line segment in the multi-layer gray level picture;
and determining the line segment endpoint coordinates of each line segment in the multi-layer gray level picture in the coordinate axis according to the starting point coordinates and the end point coordinates.
5. The file processing method applied to 3D printing according to claim 3, wherein the obtaining of the coordinates of the end points of each line segment in the coordinate axes in the grayscale picture of each of the multiple layers comprises:
acquiring the position coordinates of each pixel point in each line segment in the multi-layer gray level picture;
and determining the line segment endpoint coordinates of each line segment in the multi-layer gray level picture in the coordinate axis according to the position coordinates of each pixel point.
6. The file processing method applied to 3D printing according to any one of claims 1-5, wherein the generating of the print file for printing according to the line segment endpoint coordinates of each line segment in the coordinate axes comprises:
generating a binary file according to the line segment endpoint coordinates of each line segment in the coordinate axis;
and generating a printing file according to the binary file for printing.
7. The file processing method applied to 3D printing according to claim 6, wherein the generating a print file from the binary file for printing comprises:
converting the binary file into a printing file and carrying out exposure processing;
and printing the exposed printing file.
8. A document processing apparatus applied to 3D printing, comprising:
the input module is used for acquiring an input printing model file;
the acquisition module is used for acquiring multi-layer gray level pictures according to the printing model file;
the positioning module is used for establishing a coordinate axis by taking the upper left corner of the multilayer gray level picture as a coordinate origin and performing traversal scanning to determine the line segment endpoint coordinates of each line segment in the coordinate axis in the multilayer gray level picture;
and the printing module is used for generating a printing file according to the line segment endpoint coordinates of each line segment in the coordinate axis for printing.
9. A document processing apparatus applied to 3D printing, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a file processing method for 3D printing as claimed in any one of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements a file processing method applied to 3D printing according to any one of claims 1 to 7.
CN202011595726.6A 2020-12-29 2020-12-29 File processing method, device and equipment applied to 3D printing and storage medium Pending CN112650457A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011595726.6A CN112650457A (en) 2020-12-29 2020-12-29 File processing method, device and equipment applied to 3D printing and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011595726.6A CN112650457A (en) 2020-12-29 2020-12-29 File processing method, device and equipment applied to 3D printing and storage medium

Publications (1)

Publication Number Publication Date
CN112650457A true CN112650457A (en) 2021-04-13

Family

ID=75363972

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011595726.6A Pending CN112650457A (en) 2020-12-29 2020-12-29 File processing method, device and equipment applied to 3D printing and storage medium

Country Status (1)

Country Link
CN (1) CN112650457A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113409222A (en) * 2021-06-30 2021-09-17 深圳市纵维立方科技有限公司 Image processing method, printing-related apparatus, and readable storage medium
CN114311682A (en) * 2022-03-03 2022-04-12 深圳市创想三维科技股份有限公司 Model generation method, device, equipment and storage medium
CN116135521A (en) * 2023-04-14 2023-05-19 易加三维增材技术(杭州)有限公司 Scanning path display method, device and system and electronic equipment
CN116175976A (en) * 2023-04-25 2023-05-30 冀凯河北机电科技有限公司 3D printing data processing method, system, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009147596A (en) * 2007-12-13 2009-07-02 Seiko Epson Corp Printer, image data creation method, and printing method
US20180290399A1 (en) * 2017-04-10 2018-10-11 Xyzprinting, Inc. Method of three-dimensional printing and system thereof
CN112008980A (en) * 2020-02-24 2020-12-01 清锋(北京)科技有限公司 3D printing model processing method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009147596A (en) * 2007-12-13 2009-07-02 Seiko Epson Corp Printer, image data creation method, and printing method
US20180290399A1 (en) * 2017-04-10 2018-10-11 Xyzprinting, Inc. Method of three-dimensional printing and system thereof
CN112008980A (en) * 2020-02-24 2020-12-01 清锋(北京)科技有限公司 3D printing model processing method and system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113409222A (en) * 2021-06-30 2021-09-17 深圳市纵维立方科技有限公司 Image processing method, printing-related apparatus, and readable storage medium
CN114311682A (en) * 2022-03-03 2022-04-12 深圳市创想三维科技股份有限公司 Model generation method, device, equipment and storage medium
CN116135521A (en) * 2023-04-14 2023-05-19 易加三维增材技术(杭州)有限公司 Scanning path display method, device and system and electronic equipment
CN116175976A (en) * 2023-04-25 2023-05-30 冀凯河北机电科技有限公司 3D printing data processing method, system, electronic equipment and storage medium
CN116175976B (en) * 2023-04-25 2023-07-18 冀凯河北机电科技有限公司 3D printing data processing method, system, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN112650457A (en) File processing method, device and equipment applied to 3D printing and storage medium
US5652851A (en) User interface technique for producing a second image in the spatial context of a first image using a model-based operation
US5596690A (en) Method and apparatus for operating on an object-based model data structure to produce a second image in the spatial context of a first image
EP1267309B1 (en) 3D Computer Modelling Apparatus
US5467441A (en) Method for operating on objects in a first image using an object-based model data structure to produce a second contextual image having added, replaced or deleted objects
US5729704A (en) User-directed method for operating on an object-based model data structure through a second contextual image
CN112677487B (en) Control method and control system for 3D printing and 3D printing equipment
US20030058227A1 (en) Electronic whiteboard system
US20210247737A1 (en) Neural network-based error compensation method, system and device for 3d printing
CA2510776A1 (en) Common charting using shapes
CN1763786A (en) Method for hardware accelerated anti-aliasing in 3D
GB2391127A (en) System and method for bounding and classifying regions within a graphical image.
CN110532497B (en) Method for generating panorama, method for generating three-dimensional page and computing device
CN112767486B (en) Monocular 6D attitude estimation method and device based on deep convolutional neural network
CN104360847A (en) Method and equipment for processing image
US20190019333A1 (en) Vector Graphics Rendering Techniques
CN113103587B (en) Control method and control system for 3D printing and 3D printing equipment
CN112721150A (en) Photocuring 3D printing method, device, equipment and storage medium
CN112232315B (en) Text box detection method and device, electronic equipment and computer storage medium
CN109683834B (en) Gerber file conversion precision processing method, system, equipment and storage medium
CN115861609A (en) Segmentation labeling method of remote sensing image, electronic device and storage medium
KR102266131B1 (en) Method and apparatus for performing 3d printing using divided output
CN111696154B (en) Coordinate positioning method, device, equipment and storage medium
CN112873824B (en) 3D printing picture exposure method and device, electronic equipment and storage medium
US11701835B2 (en) Three-dimensional printing employing movable blocks of a printer base

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 1808, Jinxiu Hongdu building, Meilong Avenue, Xinniu community, Minzhi street, Longhua District, Shenzhen City, Guangdong Province (office address)

Applicant after: Shenzhen chuangxiang 3D Technology Co.,Ltd.

Address before: 518000 1808, Jinxiu Hongdu building, Meilong Avenue, Xinniu community, Minzhi street, Longhua District, Shenzhen City, Guangdong Province

Applicant before: Shenzhen Chuangxiang 3D Technology Co.,Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210413