3D printing path conflict detection method and device

Through slicing and rasterization detection of 3D printing models, the problem of low accuracy of 3D printing path conflict detection in the existing technology is solved, and more efficient and accurate conflict detection is achieved.

CN118683062APending Publication Date: 2024-09-24SHANGHAI LUNKUO TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202310283004.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-21
Publication Date
2024-09-24

Smart Images

  • Figure CN118683062A
    Figure CN118683062A
Patent Text Reader

Abstract

The embodiment of the invention provides a 3D printing path conflict detection method and device.The 3D printing path conflict detection method comprises the steps that multiple 3D printing models are sliced, printing paths of the multiple 3D printing models are generated, the printing path of any 3D printing model in the multiple 3D printing models comprises the printing paths of multiple slices, and any 3D printing model comprises the multiple slices; rasterizing printing paths of slices which are overlapped in height in the plurality of 3D printing models to generate a plurality of grid paths, and enabling any grid path to be formed by connecting a plurality of grids; determining whether printing path conflicts exist in the printing paths of the slices which are overlapped in height or not by judging whether the multiple grid paths have a common grid or not; and generating prompt information under the condition of determining that the printing paths of the slices which are overlapped in height have printing path conflicts. Through the embodiment of the invention, the detection efficiency of the printing path conflict can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of additive manufacturing technology, and in particular to a 3D printing path conflict detection method, a 3D printing path conflict detection device, an electronic device and a storage medium. Background Art

[0002] 3D (Dimensions) printing technology, also known as additive manufacturing technology, is a technology that uses digital model files as the basis, uses adhesive materials, and constructs objects by printing layer by layer. 3D printing is usually achieved using a 3D printer. 3D printers, also known as three-dimensional printers and stereo printers, are a type of rapid prototyping equipment. 3D printers are often used to manufacture models or parts in the fields of mold manufacturing, industrial design, etc. A typical 3D printing technology is fused deposition modeling (FDM), which constructs objects by selectively depositing molten material on a printing plate layer by layer. The material used is a thermoplastic polymer.

[0003] Currently, before 3D printing, slicing software can detect the possibility of collision between two objects by taking the convex hull of the printed part projected on the hot bed. If the convex hull projections intersect, a collision may occur. The existing method ignores the three-dimensional structure of the part and only takes its two-dimensional convex hull projection for inference. It cannot get an accurate solution and may cause a warning to the user even if there is no printing path conflict. The detection accuracy of printing path conflict is low. Summary of the invention

[0004] In view of the above problems, embodiments of the present invention are proposed to provide a 3D printing path conflict detection method, a 3D printing path conflict detection device, an electronic device and a storage medium that overcome the above problems or at least partially solve the above problems.

[0005] In a first aspect of the present invention, an embodiment of the present invention discloses a 3D printing path conflict detection method, comprising:

[0006] Slicing a plurality of 3D printing models to generate printing paths of the plurality of 3D printing models, wherein the printing path of any 3D printing model among the plurality of 3D printing models includes printing paths of a plurality of slices, and the any 3D printing model includes the plurality of slices;

[0007] Rasterizing the printing paths of the slices that overlap in height in the multiple 3D printing models to generate multiple raster paths, wherein any raster path is formed by connecting multiple raster paths;

[0008] By determining whether the plurality of grid paths have a common grid, it is determined whether the printing paths of the slices that overlap in height have a printing path conflict;

[0009] When it is determined that there is a printing path conflict between the printing paths of the slices that overlap in height, a prompt message is generated.

[0010] Optionally, determining whether a common grid exists among the plurality of grid paths, thereby determining whether a printing path conflict exists among the printing paths of the slices that overlap in height, comprises:

[0011] Determine whether the multiple raster paths have a common raster. If it is determined that the multiple raster paths have a common raster, it is considered that there is a printing path conflict in the printing paths of the slices that overlap in height. If it is determined that the multiple raster paths do not have a common raster, it is considered that there is no printing path conflict in the printing paths of the slices that overlap in height.

[0012] Optionally, determining whether a common grid exists among the plurality of grid paths, thereby determining whether a printing path conflict exists among the printing paths of the slices that overlap in height, comprises:

[0013] Determining whether the plurality of grid paths have a common grid;

[0014] In the case where it is determined that the plurality of raster paths have a common raster, it is determined whether the plurality of printing paths corresponding to the plurality of raster paths have an intersection in the common raster, and if it is determined that the plurality of printing paths have an intersection in the common raster, it is considered that the printing paths of the slices that overlap in height have a printing path conflict, and if it is determined that the plurality of printing paths do not have an intersection in the common raster, it is considered that the printing paths of the slices that overlap in height do not have a printing path conflict;

[0015] When it is determined that the plurality of grid paths do not have a common grid, it is considered that the printing paths of the slices that overlap in height do not have a printing path conflict.

[0016] Optionally, the method further comprises:

[0017] The printing paths of the slices that overlap in height are obtained.

[0018] Optionally, obtaining the printing path of the slices that overlap in height includes:

[0019] Performing N iterative calculations on the multiple 3D printing models, thereby obtaining printing paths of n groups of slices that overlap in height, wherein the m-th iterative calculation includes, m is a positive integer greater than or equal to 1 and less than or equal to n, and N is a positive integer;

[0020] Determining that the printing paths of multiple slices having a first height in the multiple 3D printing models are a group of printing paths of slices having overlap in height, the m-th iteration calculates the corresponding first height, and the multiple slices having the first height include a part located at the first height;

[0021] The rasterizing the printing paths of the slices overlapping in height in the multiple 3D printing models includes: rasterizing each of the n groups of printing paths of the slices overlapping in height.

[0022] Optionally, m is greater than 1, the first height corresponding to the m-th iteration calculation is greater than the second height corresponding to the m-1-th iteration calculation, and the first height is the height of at least one slice in the multiple 3D printing models, and the second height is the height of at least one slice in the multiple 3D printing models or the height of the bottom surface of the multiple 3D printing models.

[0023] Optionally, rasterizing the printing paths of the slices overlapping in height in the multiple 3D printing models to generate multiple raster paths includes:

[0024] Rasterization is performed on any printing path of the printing paths of the slices overlapping in height in the multiple 3D printing models until all printing paths of the printing paths of the slices overlapping in height in the multiple 3D printing models are rasterized.

[0025] In a second aspect of the present invention, an embodiment of the present invention discloses a 3D printing path conflict detection device, characterized in that it includes:

[0026] A first acquisition module is used to slice a plurality of 3D printing models to generate printing paths of the plurality of 3D printing models, wherein the printing path of any 3D printing model among the plurality of 3D printing models includes printing paths of a plurality of slices, and the any 3D printing model includes the plurality of slices;

[0027] A rasterization module, used for rasterizing the printing paths of the slices overlapping in height in the multiple 3D printing models to generate multiple raster paths, wherein any raster path is formed by connecting multiple raster paths;

[0028] A conflict determination module, used for determining whether there is a printing path conflict between the printing paths of the slices that overlap in height by determining whether there is a common grid among the multiple grid paths;

[0029] The prompt module is used to generate prompt information when it is determined that the printing paths of the slices that overlap in height have a printing path conflict.

[0030] In a third aspect of the present invention, an embodiment of the present invention discloses an electronic device, comprising a processor, a memory, and a computer program stored in the memory and capable of running on the processor; when the computer program is executed by the processor, the steps of the 3D printing path conflict detection method as described above are implemented.

[0031] In a fourth aspect of the present invention, an embodiment of the present invention discloses a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the 3D printing path conflict detection method as described above are implemented.

[0032] In a fifth aspect of the present invention, an embodiment of the present invention discloses a computer program product. When the computer program product is run on a terminal, the terminal implements the 3D printing path conflict detection method as described in any one of claims 1 to 7.

[0033] The embodiments of the present invention include the following advantages:

[0034] The embodiment of the present invention rasterizes the printing paths of the slices that overlap in height in the multiple 3D printing models, represents the printing paths in the form of a grid, and determines whether a common grid exists in multiple grid paths to determine the printing path conflict, thereby reducing the amount of data processing and improving the printing efficiency of the printing path conflict; and the determination is accurate to at least the grid, thereby improving the accuracy of the detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 is a structural diagram of a 3D printer of the present invention;

[0036] Figure 2 It is a flowchart of a step of an embodiment of a 3D printing path conflict detection method of the present invention;

[0037] Figure 3 It is a schematic diagram of the printing part of an embodiment of a 3D printing path conflict detection method of the present invention;

[0038] Figure 4 is a flowchart of another embodiment of a 3D printing path conflict detection method of the present invention;

[0039] Figure 5 It is a schematic diagram of generating a highly overlapping printing path of the present invention;

[0040] Figure 6 is a schematic diagram of an example of common grid determination of the present invention;

[0041] Figure 7 is a flowchart of an example of a 3D printing path conflict detection method of the present invention;

[0042] Figure 8 It is a structural block diagram of an embodiment of a 3D printing path conflict detection device of the present invention. DETAILED DESCRIPTION

[0043] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0044] The 3D printing process usually includes: 1) obtaining a 3D model; 2) slicing the 3D model using slicing software; 3) sending the slicing results to a 3D printer, which prints the 3D model based on the slicing results. The slicing software usually runs on a terminal that communicates with the printer, which can be a computer device such as a PC or a mobile phone.

[0045] The 3D printing path conflict detection method described in the embodiment of the present invention can be run on an electronic device. The electronic device can be a computer electronic device such as a PC (personal computer) or a mobile phone. The 3D printing path conflict detection method of the embodiment of the present invention can be executed by a slicing software installed on the electronic device. The electronic device is connected to a 3D printer. The structure of the 3D printer can refer to Figure 1 The three-dimensional printer 100 includes: a frame (or a base), a hot bed 110 for receiving printing materials, and a print head 120 for ejecting printing materials, wherein the print head and the hot bed are both connected to the frame. In some implementations, the hot bed 110 includes a printing platform, and may further include a detachable printing panel above the printing platform, wherein the printing panel is used to carry the printing material so that the printer nozzle applies the extruded printing material on the printing panel to print or construct a printed part. The printer nozzle is arranged in the print head 120 and is located above the hot bed 110, and is used to extrude the printing material that is heated and melted into a molten state. Usually, the heating of the printing material is achieved by a hot end located on the printer nozzle. The print head 120 is movable relative to the hot bed 110, which may specifically refer to any of the following situations: (1) the hot bed remains stationary and the print head moves; (2) the hot bed moves and the print head remains stationary; (3) both the hot bed and the print head move.

[0046] During the 3D printing process, the hot bed or the print head can be moved in the horizontal plane (xOy plane) through a synchronous belt transmission mechanism (including a synchronous pulley and a synchronous belt). In some implementations, the hot bed can also move in the vertical direction (z-axis direction) relative to the frame via a screw and a synchronous pulley under the action of a synchronous belt. In some implementations, the 3D printer may include two transmission mechanisms, which are respectively used to drive the hot bed 110 and the print head 120 to move, so as to complete the printing of the 3D model.

[0047] The 3D printer 100 controls a motor (not shown) to drive a transmission mechanism based on a control code generated by the slicing software, thereby driving the print head 120 or the hot bed 110 to move. Another motor (not shown) can also be controlled to drive an extrusion wheel to feed the printing material on the material tray into the printer nozzle. During the movement of the print head 120 driven by the transmission mechanism, the printing material is extruded from the print head 320 and deposited on the hot bed (including the printing platform and / or the printing panel), thereby printing the 3D model layer by layer. Among them, the extrusion wheel can be located in the print head 120, or it can be arranged outside the print head 120.

[0048] The slicing software runs on an electronic device that is connected to the 3D printer 100 for communication, and operates to generate control information for controlling the printing process. The slicing software can provide a graphical user interface (GUI) to allow a user to select or adjust layout information representing the position and orientation of the 3D model on the hot bed 110. The slicing software can slice the 3D model to generate slicing data (e.g., the number of slices, the height of each layer of slices, etc.), and then generate a control code for controlling the print head 120 of the 3D printer 100 to move along the printing path to print each layer of slices based on the slicing data as a slicing result. Such a control code is usually in the form of gcode (code). The control code is downloaded to the 3D printer 100.

[0049] The slicing operation of the slicing software on the 3D model (usually a file in stl format or 3mf format) includes cutting the 3D model into multiple layers according to the set slicing requirements, determining the printing path of each layer of slices, and generating a control code including each layer of printing path. Before performing the slicing operation, the slicing software can also perform some auxiliary printing operations, which may include but are not limited to: determining the printing direction of the 3D model, determining the placement position of the 3D model, determining whether the 3D model needs support and the position of the support, determining the slice layer height, determining at least one of the flushing amount when switching between different material lines, etc. The above auxiliary printing operations can be automatically determined by the slicing software, or can be determined based on preset parameters, or can be specified by the user of 3D printing through operation of the slicing software. After completing the slicing step of the 3D printing model, the slicing software can execute the 3D printing path conflict detection method described in the embodiment of the present invention to detect the printing path conflict of the 3D printing model. If there is a conflict, the printing is prevented from being initiated, and the user is prompted to separate the conflicting parts.

[0050] Reference Figure 2 , shows a flowchart of a 3D printing path conflict detection method embodiment of the present invention, which may specifically include the following steps:

[0051] Step 201, slicing a plurality of 3D printing models to generate printing paths of the plurality of 3D printing models, wherein the printing path of any 3D printing model among the plurality of 3D printing models includes printing paths of a plurality of slices, and the any 3D printing model includes the plurality of slices.

[0052] In the embodiment of the present invention, the 3D printing model can be a part and a support of the part, that is, a part or a support of a part is the 3D printing model in the embodiment of the present invention. Figure 3 As shown, Figure 3 There are four 3D printing models in the example, 3D printing model 1 and 3D printing model 4 are parts, and 3D printing model 2 and 3D printing model 3 are the supports of the parts. By taking the supports of the parts as the objects of path conflict detection of the 3D printing models, when multiple parts are printed together, the printing path conflicts can be detected more comprehensively.

[0053] Before printing the 3D printing model, multiple 3D printing models can be sliced ​​to generate a printing path for printing with equal heights layer by layer. The printing path of each layer has different thicknesses and is composed of continuous broken lines. Slice multiple 3D printing models to generate printing paths for multiple 3D printing models. Among them, the printing path of any 3D printing model in the multiple 3D printing models includes multiple slices; one slice of a 3D printing model has one printing path, and any 3D printing model in the multiple 3D printing models includes printing paths of multiple slices.

[0054] Step 202 , rasterizing the printing paths of the slices that overlap in height in the multiple 3D printing models to generate multiple raster paths, wherein any raster path is formed by connecting multiple raster paths.

[0055] Based on the heights of the print traces of multiple print models, the print paths of slices that overlap in height in multiple 3D print models are rasterized, and one print path in the print paths of slices that overlap in height is rasterized to generate a raster path, thereby rasterizing all the print paths of slices that overlap in height to generate multiple raster paths.

[0056] It should be noted that rasterization is to express the printing path with a grid, where the size of the grid is M*N, M and N are positive integers greater than 1, and the units of M and N are consistent with the position coordinate units of the printing path. The position coordinate unit of the grid path is a grid. Therefore, any grid path is composed of multiple grids connected.

[0057] Step 203 , by determining whether the plurality of grid paths have a common grid, it is determined whether the printing paths of the slices that overlap in height have a printing path conflict.

[0058] The multiple grid paths generated by the printing paths of the slices that overlap at the same height are judged to determine whether at least two of the multiple grid paths have a common grid; thus, it can be determined whether there is a printing path conflict between the printing paths of the slices that overlap at the height according to whether there is a grid. When there are multiple groups of printing paths of slices that overlap at the height, the multiple grid paths in each group can be judged respectively, so that the printing paths of the entire height range of the 3D printed model are detected.

[0059] Step 204 : if it is determined that the printing paths of the slices that overlap in height have a printing path conflict, generate prompt information.

[0060] When it is determined through multiple raster paths that there is a printing path conflict for the printing paths of slices that overlap in height, a prompt message can be generated. The prompt message indicates that there will be a printing path conflict for the current multiple 3D printing models when printing, so that the user can check the current multiple 3D printing models. For example, when it is determined that there is a printing path conflict for the printing paths of slices that overlap in height, a pop-up window can be generated on the display of the electronic device as a prompt message, and the pop-up window displays the situation that there is a printing path conflict for the currently printed 3D printing model. Or when it is determined that there is a printing path conflict for the printing paths of slices that overlap in height, a sound alarm message can be generated on the electronic device as a prompt message, such as an onomatopoeic alarm such as beeping, a sound alarm message such as a human voice broadcast, etc.

[0061] The embodiment of the present invention generates printing paths of the multiple 3D printing models by slicing multiple 3D printing models, wherein the printing path of any 3D printing model in the multiple 3D printing models includes the printing paths of multiple slices, and the any 3D printing model includes the multiple slices; rasterizing the printing paths of the slices that overlap in height in the multiple 3D printing models to generate multiple raster paths, wherein any raster path is formed by connecting multiple raster paths; by determining whether the multiple raster paths have a common raster, determining whether the printing paths of the slices that overlap in height have a printing path conflict; and generating prompt information when it is determined that the printing paths of the slices that overlap in height have a printing path conflict. By rasterizing the printing paths of the slices that overlap in height in the multiple 3D printing models, characterizing the printing paths in the form of raster, and determining whether the multiple raster paths determine whether there is a common raster to determine the printing path conflict, the amount of data processing can be reduced and the printing efficiency of the printing path conflict can be improved; and the determination is at least accurate to the raster, thereby improving the accuracy of the detection.

[0062] Reference Figure 4 , shows a flowchart of another 3D printing path conflict detection method embodiment of the present invention, which may specifically include the following steps:

[0063] Step 401, slicing a plurality of 3D printing models to generate printing paths of the plurality of 3D printing models, wherein the printing path of any 3D printing model among the plurality of 3D printing models includes printing paths of a plurality of slices, and the any 3D printing model includes the plurality of slices.

[0064] After acquiring multiple 3D models, the multiple 3D models can be sliced. Specifically, the multiple 3D models can be sliced ​​using slicing software to generate printing paths for multiple 3D printing models, wherein a 3D printing model includes multiple slices, and a slice of a 3D printing model has a printing path, that is, the printing path of a 3D printing model includes the printing paths of multiple slices.

[0065] Step 402: Obtain the printing paths of the slices that overlap in height.

[0066] From the printing paths of the multiple 3D printing models, the printing paths of the slices that overlap in height are obtained. The printing paths of the slices that overlap in height are the multiple printing paths that overlap in height between the multiple 3D printing models.

[0067] Further, the step of obtaining the printing path of the slices that overlap in height includes:

[0068] Sub-step S4021, performing N iterative calculations on the multiple 3D printing models to obtain printing paths of n groups of slices that overlap in height, wherein the m-th iterative calculation includes, m is a positive integer greater than or equal to 1 and less than or equal to n, and N is a positive integer.

[0069] In an embodiment of the present invention, N iterations are performed on the paths of multiple slices of multiple 3D printing models, and each iteration calculates a group of printing paths of slices that overlap at a certain height, thereby obtaining n groups of printing paths of slices that overlap at height. The printing paths of slices that overlap at height include the printing paths of slices of at least two 3D printing models in the multiple 3D printing models. In the mth iteration calculation, m is a positive integer greater than or equal to 1 and less than or equal to n, that is, 1≤m≤n, and m is a positive integer; the total number of iterations N is a positive integer greater than or equal to 1.

[0070] Specifically, in each iteration calculation, when the height of the printing path of the overlapping slices in the iteration, i.e., the first height, is greater than the height of the printing path of the overlapping slices in the previous iteration, i.e., the second height; correspondingly, when m is greater than 1, the first height corresponding to the m-th iteration calculation is greater than the second height corresponding to the m-1-th iteration calculation. And the first height is the height of at least one slice in the multiple 3D printing models, and the second height is the height of at least one slice in the multiple 3D printing models or the height of the bottom surface of the multiple 3D printing models, so as to ensure that the printing path of the overlapping slices is obtained, and the printing path is obtained with the slice as the smallest unit.

[0071] Sub-step S4022, determining that the printing paths of multiple slices with a first height in the multiple 3D printing models are a group of printing paths of slices that overlap in height, the m-th iteration calculates the corresponding first height, and the multiple slices with the first height include parts located at the first height.

[0072] Determine the printing paths of multiple slices with a first height in multiple 3D printing models as a group of printing paths of slices that overlap in height, so as to perform N iterative calculations to determine N first heights, and printing paths of slices that overlap in height. Wherein, the first height corresponding to the m-th iterative calculation includes a portion located at the first height in the multiple slices with the first height; that is, in the m-th iterative calculation, the slices in the printing path of slices that overlap in height obtained are at least partially located at the first height.

[0073] In order to make it clear that there are overlapping slices, the generation process of the printing path is explained by example. Figure 5 , there are three 3D printing model slice printing paths, including 3D printing model I of slice 1, slice 2 and slice 3; 3D printing model J of slice A, slice B and slice C; 3D printing model K of slice a, slice b and slice c. Initially, the first height of the first calculation iteration is the height of slice 1, and 1-Aa is determined to be the printing path of the slices that overlap at the first height. The first height calculated in the second iteration is the height of slice A, that is, 2-Aa can be determined as the printing path of the slices that overlap at this height; with this iterative calculation, 2-Ba, 2-Bb, 2-Cb, 3-Cb are obtained; the printing paths of the slices that overlap at the corresponding first height.

[0074] Step 403 , rasterizing the printing paths of the slices that overlap in height in the multiple 3D printing models to generate multiple raster paths, wherein any raster path is formed by connecting multiple raster paths.

[0075] For the printing paths of slices that overlap in height in multiple 3D printing models, multiple raster paths are generated. Each of the n groups of printing paths of slices that overlap in height obtained above is rasterized. For example, the printing paths 1, A, and a in the above example 1-Aa are rasterized, and each printing path generates a raster path. Among them, any raster path is formed by connecting multiple grids.

[0076] In an optional embodiment of the present invention, rasterizing the printing paths of the slices that overlap in height in the multiple 3D printing models to generate multiple raster paths includes:

[0077] Sub-step S4031, rasterizing any printing path of the printing paths of the slices overlapping in height in the multiple 3D printing models, until all printing paths of the printing paths of the slices overlapping in height in the multiple 3D printing models are rasterized.

[0078] Any printing path in the printing paths of slices that overlap in height in multiple 3D printing models can be rasterized, that is, if there are multiple printing paths for slices that overlap in height, one of them can be rasterized, and then the second one can be rasterized, and the printing paths of slices that overlap can be continuously rasterized until all printing paths of slices that overlap are rasterized. In subsequent comparisons, all printing paths can be compared and detected through the raster paths.

[0079] Step 404 , by determining whether the plurality of grid paths have a common grid, it is determined whether the printing paths of the slices that overlap in height have a printing path conflict.

[0080] In the embodiment of the present invention, it can be determined whether there is a printing path conflict between the printing paths of slices that overlap in height by determining whether there is a common grid in the grids of multiple grid paths.

[0081] In an optional embodiment of the present invention, determining whether there is a printing path conflict for the printing paths of the slices that overlap in height by determining whether there is a common grid among the multiple grid paths may include: determining whether there is a common grid among the multiple grid paths, and considering that there is a printing path conflict for the printing paths of the slices that overlap in height if the multiple grid paths are determined to have a common grid, and considering that there is no printing path conflict for the printing paths of the slices that overlap in height if the multiple grid paths are determined not to have a common grid.

[0082] For multiple grid paths, it can be determined whether there are the same grids; the judgment method can be a traversal method, such as determining a grid path, traversing the grids of the grid path, and finding the grids in the grid path that are the same as other grid paths, that is, determining the existence of common grids.

[0083] When there are common grids among multiple raster paths, it is considered that there is a printing path conflict among the printing paths of the slices that overlap in height. When there are no common grids among multiple raster paths, it can be determined that there is a printing path conflict among the printing paths of the slices that overlap in height.

[0084] For example, refer to Figure 6, raster path 1 is (1, 5)(1, 4)(2, 4)(2, 3)(3, 3)(3, 2)(4, 2)(4, 1). When traversing, it is found that it overlaps with raster path 2 in the grids of (2, 3) and (3, 3). It can be determined that raster path 1 and raster path 2 have a common grid, and it is considered that the printing path conflicts.

[0085] When the grid corresponding to the grid path is large, in order to improve the accuracy of detection, it can be further determined at the intersection of the corresponding printing paths. In an optional embodiment of the present invention, determining whether the printing paths of the slices overlapping in height have a printing path conflict by determining whether the multiple grid paths have a common grid includes: determining whether the multiple grid paths have a common grid; in the case where it is determined that the multiple grid paths have a common grid, determining whether the multiple printing paths corresponding to the multiple grid paths have an intersection in the common grid, and if it is determined that the multiple printing paths have an intersection in the common grid, it is considered that the printing paths of the slices overlapping in height have a printing path conflict, and if it is determined that the multiple printing paths do not have an intersection in the common grid, it is considered that the printing paths of the slices overlapping in height do not have a printing path conflict; in the case where it is determined that the multiple grid paths have a common grid, it is considered that the printing paths of the slices overlapping in height do not have a printing path conflict.

[0086] In the embodiment of the present invention, it can be first determined whether there is a common grid between multiple grid paths. The determination method is the same as the above method.

[0087] When it is determined that a plurality of grid paths have a common grid, it is further determined whether a plurality of printing paths corresponding to the plurality of grid paths have an intersection in the common grid. Specifically, a straight line method of finding the intersection may be used, which is not limited here.

[0088] When it is determined that a common grid exists among the plurality of raster paths, and a plurality of printing paths corresponding to the plurality of raster paths have intersections in the common grid, it is considered that printing paths of slices that overlap in height have printing path conflicts.

[0089] Otherwise, when it is determined that a plurality of raster paths have a common raster, but a plurality of printing paths corresponding to the plurality of raster paths do not have an intersection in the common raster, it is considered that there is no printing path conflict for the printing paths of the slices that overlap in height.

[0090] If, when determining whether multiple raster paths have a common raster, it is determined that the multiple raster paths do not have a common raster, it can be directly considered that there is no printing path conflict for the printing paths of the slices that overlap in height.

[0091] Step 405: if it is determined that the printing paths of the slices that overlap in height have a printing path conflict, generate prompt information.

[0092] When it is determined that there is a printing path conflict between the printing paths of the slices that overlap in height, in order to avoid printing failure or printing error, a prompt message can be generated to prompt the user to prevent him from initiating a printing instruction to the 3D printer, so as to suspend 3D printing and remind the user to modify the current 3D printing model.

[0093] The embodiment of the present invention rasterizes the printing paths of the slices that overlap in height in the multiple 3D printing models, characterizes the printing paths in the form of a grid, and determines whether there is a common grid in multiple grid paths, and whether there is an intersection in the printing paths in the grid to determine the printing path conflict. By determining the existence of a common grid and the solution of the intersection to determine the path conflict, the amount of data processing can be reduced and the printing efficiency of the printing path conflict can be improved; and when determining, it is performed on the grid paths of multiple 3D printing models to achieve comprehensive detection of multiple 3D printing models at the same time and improve the comprehensiveness of the detection. The intersection solution and rasterization processing method improves the efficiency of the detection. And when there is a path conflict, the user is reminded through prompt information to improve the safety and effect of printing.

[0094] In order to enable those skilled in the art to better understand the embodiments of the present invention, the embodiments of the present invention are described below by using an example:

[0095] You can refer to Figure 7 , shows a flowchart of an example of a 3D printing path conflict detection method of the present invention, which may specifically include the following steps:

[0096] 1. The user clicks on the slice to generate the routing path (printing path).

[0097] The user clicks Slice on the slicing software to generate a routing path, i.e., a printing path. Obtaining these printing paths is to obtain an initial printing path set.

[0098] 2. Traverse each part and support currently on the hot bed and obtain their routing paths for each layer.

[0099] Traverse the initial printing path of each part and support (3D printing model), obtain the routing path of each layer, and obtain multiple printing paths that overlap in height.

[0100] 3. Traverse the corresponding routing paths at any height to check whether there are any intersections.

[0101] A plurality of printing paths overlapping in height at any height are traversed and rasterized to determine whether the path segments corresponding to the printing paths have intersections.

[0102] 4. Continue with other slicing steps.

[0103] When there is no intersection, that is, there is no conflict in the printing path, the trimming step can be continued to initiate printing.

[0104] 5. Warn the user that the GCode (code) routing path (printing path) conflicts.

[0105] When there is an intersection, a prompt message is issued to warn the user and printing is prevented from being initiated.

[0106] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0107] Reference Figure 8 , showing a structural block diagram of an embodiment of a 3D printing path conflict detection device of the present invention, the 3D printing path conflict detection device includes multiple modules, and the multiple modules can be independent or integrated in an FPGA (Field Programmable Gate Array) chip, an ASIC (Application Specific Integrated Circuit) chip; or designed in a functional module of the software.

[0108] The 3D printing path conflict detection device may specifically include the following modules:

[0109] A first acquisition module 801 is used to slice a plurality of 3D printing models to generate printing paths of the plurality of 3D printing models, wherein the printing path of any 3D printing model among the plurality of 3D printing models includes printing paths of a plurality of slices, and the any 3D printing model includes the plurality of slices;

[0110] A rasterization module 802 is used to rasterize the printing paths of the slices that overlap in height in the multiple 3D printing models to generate multiple raster paths, wherein any raster path is formed by connecting multiple raster paths.

[0111] The conflict determination module 803 is used to determine whether there is a printing path conflict between the printing paths of the slices that overlap in height by determining whether the multiple grid paths have a common grid;

[0112] The prompt module 804 is used to generate prompt information when it is determined that the printing paths of the slices that overlap in height have a printing path conflict.

[0113] In an optional embodiment of the present invention, the conflict determination module 703 includes:

[0114] The conflict determination module 703 is used to determine whether the multiple raster paths have a common raster. If it is determined that the multiple raster paths have a common raster, it is considered that there is a printing path conflict in the printing paths of the slices that overlap in height. If it is determined that the multiple raster paths do not have a common raster, it is considered that there is no printing path conflict in the printing paths of the slices that overlap in height.

[0115] In an optional embodiment of the present invention, the conflict determination module 703 is used to:

[0116] Determining whether the plurality of grid paths have a common grid;

[0117] In the case where it is determined that the plurality of raster paths have a common raster, it is determined whether the plurality of printing paths corresponding to the plurality of raster paths have an intersection in the common raster, and if it is determined that the plurality of printing paths have an intersection in the common raster, it is considered that the printing paths of the slices that overlap in height have a printing path conflict, and if it is determined that the plurality of printing paths do not have an intersection in the common raster, it is considered that the printing paths of the slices that overlap in height do not have a printing path conflict;

[0118] When it is determined that the plurality of grid paths do not have a common grid, it is considered that the printing paths of the slices that overlap in height do not have a printing path conflict.

[0119] In an optional embodiment of the present invention, the device further comprises:

[0120] The second acquisition module is used to acquire the printing path of the slices that overlap in height.

[0121] In an optional embodiment of the present invention, the second acquisition module is used to:

[0122] Performing N iterative calculations on the multiple 3D printing models, thereby obtaining printing paths of n groups of slices that overlap in height, wherein the m-th iterative calculation includes, m is a positive integer greater than or equal to 1 and less than or equal to n, and N is a positive integer;

[0123] Determining that the printing paths of multiple slices having a first height in the multiple 3D printing models are a group of printing paths of slices having overlap in height, the m-th iteration calculates the corresponding first height, and the multiple slices having the first height include a part located at the first height;

[0124] The rasterization module 802 is used to rasterize each of the n groups of printing paths of the slices that overlap in height.

[0125] In an optional embodiment of the present invention, m is greater than 1, the first height corresponding to the m-th iteration calculation is greater than the second height corresponding to the m-1-th iteration calculation, and the first height is the height of at least one slice in the multiple 3D printing models, and the second height is the height of at least one slice in the multiple 3D printing models or the height of the bottom surface of the multiple 3D printing models.

[0126] In an optional embodiment of the present invention, the rasterization module 702 is used to:

[0127] Rasterization is performed on any printing path of the printing paths of the slices overlapping in height in the multiple 3D printing models until all printing paths of the printing paths of the slices overlapping in height in the multiple 3D printing models are rasterized.

[0128] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0129] An embodiment of the present invention further provides an electronic device, including:

[0130] The electronic device comprises a processor, a memory, a computer program stored in the memory and capable of running on the processor, a display component and an interactive component connected to the processor; when the electronic device is running, the processor executes the computer program to perform the 3D printing path conflict detection method as described in an embodiment of the present invention, and displays the detection result on the display component; when the user observes the detection result through the display component, the 3D printing model can be set through the interactive component.

[0131] The electronic device further includes a communication component for communicating with the 3D printer or the server to transmit data or instructions.

[0132] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the processor.

[0133] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0134] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the 3D printing path conflict detection method as described in the embodiment of the present invention is executed.

[0135] An embodiment of the present invention further provides a computer program product. When the computer program product is run on a terminal, the terminal implements the 3D printing path conflict detection method as described above.

[0136] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0137] It will be appreciated by those skilled in the art that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0138] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0139] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0140] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable terminal device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0141] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.

[0142] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0143] The above is a detailed introduction to a 3D printing path conflict detection method and device provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A 3D printing path conflict detection method, characterized in that: include: Slicing a plurality of 3D printing models to generate printing paths of the plurality of 3D printing models, wherein the printing path of any 3D printing model among the plurality of 3D printing models includes printing paths of a plurality of slices, and the any 3D printing model includes the plurality of slices; Rasterizing the printing paths of the slices that overlap in height in the multiple 3D printing models to generate multiple raster paths, wherein any raster path is formed by connecting multiple raster paths; By determining whether the plurality of grid paths have a common grid, it is determined whether the printing paths of the slices that overlap in height have a printing path conflict; When it is determined that there is a printing path conflict between the printing paths of the slices that overlap in height, a prompt message is generated.

2. The method according to claim 1, characterized in that: The determining whether a common grid exists among the plurality of grid paths, thereby determining whether a printing path conflict exists among the printing paths of the slices that overlap in height, comprises: Determine whether the multiple raster paths have a common raster. If it is determined that the multiple raster paths have a common raster, it is considered that there is a printing path conflict in the printing paths of the slices that overlap in height. If it is determined that the multiple raster paths do not have a common raster, it is considered that there is no printing path conflict in the printing paths of the slices that overlap in height.

3. The method according to claim 1, characterized in that The determining whether a common grid exists among the plurality of grid paths, thereby determining whether a printing path conflict exists among the printing paths of the slices that overlap in height, comprises: Determining whether the plurality of grid paths have a common grid; In the case where it is determined that the plurality of raster paths have a common raster, it is determined whether the plurality of printing paths corresponding to the plurality of raster paths have an intersection in the common raster, and if it is determined that the plurality of printing paths have an intersection in the common raster, it is considered that the printing paths of the slices that overlap in height have a printing path conflict, and if it is determined that the plurality of printing paths do not have an intersection in the common raster, it is considered that the printing paths of the slices that overlap in height do not have a printing path conflict; When it is determined that the plurality of grid paths do not have a common grid, it is considered that the printing paths of the slices that overlap in height do not have a printing path conflict.

4. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: The printing paths of the slices that overlap in height are obtained.

5. The method according to claim 4, characterized in that The step of obtaining the printing path of the slices overlapping in height comprises: Performing N iterative calculations on the multiple 3D printing models, thereby obtaining printing paths of n groups of slices that overlap in height, wherein the m-th iterative calculation includes, m is a positive integer greater than or equal to 1 and less than or equal to n, and N is a positive integer; Determining that the printing paths of multiple slices having a first height in the multiple 3D printing models are a group of printing paths of slices having overlap in height, the m-th iteration calculates the corresponding first height, and the multiple slices having the first height include a part located at the first height; The rasterizing the printing paths of the slices overlapping in height in the multiple 3D printing models includes: rasterizing each of the n groups of printing paths of the slices overlapping in height.

6. The method according to claim 5, characterized in that m is greater than 1, the first height corresponding to the m-th iteration calculation is greater than the second height corresponding to the m-1-th iteration calculation, and the first height is the height of at least one slice in the multiple 3D printing models, and the second height is the height of at least one slice in the multiple 3D printing models or the height of the bottom surface of the multiple 3D printing models.

7. The method according to any one of claims 1 to 6, characterized in that: The step of rasterizing the printing paths of the slices overlapping in height in the plurality of 3D printing models to generate a plurality of raster paths includes: Rasterization is performed on any printing path of the printing paths of the slices overlapping in height in the multiple 3D printing models until all printing paths of the printing paths of the slices overlapping in height in the multiple 3D printing models are rasterized.

8. A 3D printing path conflict detection device, characterized in that: include: A first acquisition module is used to slice a plurality of 3D printing models to generate printing paths of the plurality of 3D printing models, wherein the printing path of any 3D printing model among the plurality of 3D printing models includes printing paths of a plurality of slices, and the any 3D printing model includes the plurality of slices; A rasterization module, used for rasterizing the printing paths of the slices overlapping in height in the multiple 3D printing models to generate multiple raster paths, wherein any raster path is formed by connecting multiple raster paths; A conflict determination module, used for determining whether there is a printing path conflict between the printing paths of the slices that overlap in height by determining whether there is a common grid among the multiple grid paths; The prompt module is used to generate prompt information when it is determined that the printing paths of the slices that overlap in height have a printing path conflict.

9. An electronic device, characterized in that: The method comprises a processor, a memory and a computer program stored in the memory and capable of running on the processor; when the computer program is executed by the processor, the steps of the 3D printing path conflict detection method as described in any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the 3D printing path conflict detection method according to any one of claims 1 to 7 are implemented.

11. A computer program product, characterized in that When the computer program product is run on a terminal, the terminal implements the 3D printing path conflict detection method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Region-based supports for parts produced by solid freeform fabrication

    CN101855061A

  • Collision detection method and system for three-dimensional model

    CN105590339A

  • Constant scallop height tool contact trajectory generation method of triangular mesh model

    CN108594764A

  • 3D printing method and 3D printing equipment

    CN110625935A

  • Model interference detection method based on slices

    CN114677495A