A data analysis method, system, and electronic device for 3D printing
By obtaining the feature coordinates of the three-dimensional printing model and dynamically adjusting the slice thickness, the accuracy problem of fixed slice layer thickness in three-dimensional printing is solved, and the printing accuracy and success rate are improved.
Patent Information
- Application Number
- CN202510450452.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-11
- Publication Date
- 2025-07-11
- Estimated Expiration
- 2045-04-11
AI Technical Summary
In the existing three-dimensional printing technology, the fixed thickness of the slice layer results in low accuracy of printing objects, especially in complex structures, which are prone to printing failures.
By obtaining the feature coordinates of the model to be printed, dividing the data set to be sliced, and dynamically adjusting the slice thickness according to the printer information to generate a printing route to improve accuracy.
Improves the accuracy and success rate of the three-dimensional printing model, especially the print quality at complex structures.
Smart Images

Figure CN119952972B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of 3D printing, and in particular, to a data analysis method, system, and electronic device for 3D printing. Background Art
[0002] 3D printing, also known as additive manufacturing, is a process of constructing an object by stacking materials layer by layer. Compared with traditional subtractive manufacturing methods, 3D printing provides higher design flexibility and manufacturing efficiency. In recent years, with the continuous development and maturity of 3D printing technology, its applications in various fields have become increasingly widespread, such as architecture, medical, aerospace, art, etc. Among them, the slicing process of 3D data is an essential link in the stereolithography 3D printing technology.
[0003] The slicing process specifically horizontally slices the 3D data of the model to be printed along the Z-axis direction according to the set layer thickness, obtains the cross-sectional data of each layer, and then performs layer-by-layer solidification forming of stereolithography according to the cross-sectional data, thereby realizing stereolithography forming.
[0004] However, in the traditional 3D printing data generation method, the thickness of each slice layer is usually fixed and does not vary according to the model to be printed and the printer, so it may result in low accuracy of the printed object or printing failure in some complex structures. Summary of the Invention
[0005] In order to improve the printing accuracy of the model to be printed, the present application provides a data analysis method, system, and electronic device for 3D printing.
[0006] In a first aspect, the present application provides a data analysis method for 3D printing, adopting the following technical solution:
[0007] A data analysis method for 3D printing includes the following steps:
[0008] Obtain the model to be printed and the corresponding printer information, and perform coordinate processing on the model to be printed to obtain several groups of model coordinate data;
[0009] Screen out several groups of feature coordinates from the model coordinate data, and divide the model to be printed based on the feature coordinates to obtain a set of data to be sliced;
[0010] Obtain the corresponding slice thickness according to the set of data to be sliced and the printer information, and store the set of data to be sliced and the corresponding slice thickness;
[0011] Cut the model to be printed based on the slice thickness and the data set to be sliced to obtain a number of slice data, and perform three-dimensional printing on the model to be printed based on the slice data.
[0012] By adopting the above technical solution, the model to be printed is divided based on its actual shape to obtain the corresponding data set to be sliced, and then the data set to be sliced is analyzed according to the actual printer information to obtain the slice thickness corresponding to each data set to be sliced, so that the slice thickness changes according to different models and different printers, and further, each step of the model to be printed is printed well, improving the printing accuracy of the model to be printed.
[0013] In some embodiments, screening out several groups of feature coordinates from the model coordinate data includes the following steps:
[0014] Divide the model coordinate data into multiple coordinate sets to be processed based on a preset index, where each coordinate set to be processed includes several groups of coordinates to be processed, and the corresponding preset indexes in the coordinates to be processed are the same;
[0015] Obtain the corresponding comparison coordinates according to the coordinate sets to be processed, and arrange the coordinate sets to be processed in the division order;
[0016] Successively obtain the arranged coordinate sets to be processed, and use the comparison coordinates corresponding to the coordinate sets to be processed as temporary coordinates;
[0017] Use the coordinate set to be processed adjacent to the coordinate set to be processed as a temporary comparison coordinate, and compare the temporary coordinate with the temporary comparison coordinate;
[0018] If the temporary coordinate is completely different from the temporary comparison coordinate, use the temporary comparison coordinate as the feature coordinate.
[0019] By adopting the above technical solution, first divide the model coordinate data into multiple coordinate sets to be processed based on a preset index, then process each coordinate set to be processed to obtain the corresponding comparison coordinates, and compare the adjacent comparison coordinates to obtain several groups of feature coordinates, which can quickly obtain the feature coordinates corresponding to each model to be printed, thereby improving the accuracy of the data set to be sliced for the model to be printed, and overall improving the printing accuracy of the model to be printed.
[0020] In some embodiments, obtaining the corresponding comparison coordinates according to the coordinate sets to be processed includes the following steps:
[0021] Generate a division region according to the coordinate sets to be processed, where the division region represents the region containing the most coordinates to be processed;
[0022] Obtain the central position according to the divided area, and sequentially compare the coordinates to be processed with the central position to obtain the distance interval;
[0023] Based on the distance interval, obtain the coordinate to be processed that is farthest from the central position as the comparison coordinate.
[0024] By adopting the above technical solution, the comparison coordinates corresponding to each set of coordinates to be processed can be accurately and quickly obtained, thereby improving the acquisition efficiency of the feature coordinates and further improving the overall printing efficiency of the model to be printed.
[0025] In some embodiments, the obtaining the corresponding slice thickness according to the data set to be sliced and the printer information includes the following steps:
[0026] Obtain the filament extrusion thickness of the consumable based on the printer information, and obtain the vertical interval thickness according to the data set to be sliced;
[0027] Compare the filament extrusion thickness of the consumable with the vertical interval thickness, and determine whether the vertical interval thickness is less than the filament extrusion thickness of the consumable;
[0028] If the vertical interval thickness is less than the filament extrusion thickness of the consumable, then use the vertical interval thickness as the slice thickness corresponding to the data set to be sliced;
[0029] If the vertical interval thickness is not less than the filament extrusion thickness of the consumable, then use the filament extrusion thickness of the consumable as the slice thickness corresponding to the data set to be sliced.
[0030] By adopting the above technical solution, the standard for generating the corresponding slice thickness is obtained according to different printer information, so that the slice thickness of the entire model to be printed can be variable according to different printers, and different slice thicknesses are used for printing different parts of the model to be printed, thereby improving the overall printing accuracy.
[0031] In some embodiments, the dividing the model to be printed based on the feature coordinates to obtain the data set to be sliced includes the following steps:
[0032] Generate a plurality of dividing planes based on the feature coordinates, and divide the model to be printed according to the dividing planes to obtain different dividing modules;
[0033] Take the coordinate data corresponding to each dividing module as a data set to be sliced.
[0034] In some embodiments, before three-dimensional printing the model to be printed based on the slice data, the following steps are further included:
[0035] Compare the horizontal intervals between adjacent ones of the feature coordinates in sequence, and determine whether the horizontal interval is less than a preset interval;
[0036] If the horizontal interval is less than the preset interval, generate a printing route based on the feature coordinates, and control a printer to print the model to be printed according to the printing route;
[0037] If the horizontal interval is not less than the preset interval, obtain compensation coordinates based on adjacent ones of the feature coordinates, and generate a printing route based on the compensation coordinates.
[0038] By adopting the above technical solution, when there are some parts of a model to be printed that are not connected to the lower body, coordinate compensation needs to be performed on this part during slicing, so that the overhanging part can have a relatively high printing accuracy. Therefore, corresponding compensation coordinates need to be generated based on adjacent feature coordinates, and a new printing route needs to be generated based on the compensation coordinates, thereby improving the printing accuracy of each step of the model to be printed.
[0039] In some embodiments, after cutting the model to be printed based on the slice thickness and the data set to be sliced to obtain a plurality of slice data, the following steps are further included:
[0040] Generate a printing route based on the slice data, and gradually print the model to be printed according to the printing route to obtain a printing structure;
[0041] Compare the printing structure with a preset structure, and determine whether the printing structure is similar to the preset structure;
[0042] If the printing structure is similar to the preset structure, gradually print the model to be printed according to the printing route;
[0043] If the printing structure is not similar to the preset structure, update the printing route according to the printing structure, and print the model to be printed based on the updated printing route.
[0044] By adopting the above technical solution, after each step of printing the model to be printed, it is necessary to check the printing result. When the printing is not good, it is necessary to adjust the subsequent printing data, thereby improving the overall printing accuracy.
[0045] In some embodiments, the updating the printing route according to the printing structure includes the following steps:
[0046] Obtain the printing defect area according to the printing structure and the preset structure, and determine the defect type of the printing defect corresponding to the printing defect area;
[0047] Screen the defect type in the preset database to obtain the corresponding printing data, and the preset database stores several groups of defect types and the corresponding printing data;
[0048] Adjust the slice data according to the printing data and generate a new printing route.
[0049] In a second aspect, the present application provides a data analysis system for three-dimensional printing, adopting the following technical solution:
[0050] A data analysis system for three-dimensional printing, including:
[0051] A data acquisition module, which is used to acquire the model to be printed and the corresponding printer information, and perform coordinate processing on the model to be printed to obtain several groups of model coordinate data;
[0052] A slice generation module, which is used to screen several groups of feature coordinates from the model coordinate data, and divide the model to be printed based on the feature coordinates to obtain a set of data to be sliced;
[0053] A thickness acquisition module, which is used to obtain the corresponding slice thickness according to the set of data to be sliced and the printer information, and store the set of data to be sliced and the corresponding slice thickness;
[0054] A model cutting module, which is used to cut the model to be printed based on the slice thickness and the set of data to be sliced to obtain several slice data, and perform three-dimensional printing on the model to be printed based on the slice data.
[0055] In a third aspect, the present application provides an electronic device, adopting the following technical solution:
[0056] An electronic device, the electronic device includes a processor and a memory that are coupled to each other, and a computer program that can run on the processor is stored on the memory;
[0057] When the computer program is executed by the processor, it implements the data analysis method for three-dimensional printing as described in the first aspect.
[0058] In summary, the present application includes at least one of the following beneficial technical effects:
[0059] 1. Divide the model based on the actual shape of the model to be printed to obtain the corresponding set of data to be sliced. Then, analyze the set of data to be sliced according to the actual printer information to obtain the slice thickness corresponding to each set of data to be sliced, so that the slice thickness changes according to different models and different printers, thereby ensuring that each step of the model to be printed is printed perfectly and improving the printing accuracy of the model to be printed.
[0060] 2. First, divide the model coordinate data into multiple sets of coordinates to be processed based on preset metrics, and then process each set of coordinates to be processed to obtain the corresponding comparison coordinates, and compare adjacent comparison coordinates to obtain several sets of characteristic coordinates, which can quickly obtain the characteristic coordinates corresponding to each model to be printed, thereby improving the accuracy of the set of data to be sliced for the model to be printed, and overall improving the printing accuracy of the model to be printed. Description of the Drawings
[0061] Figure 1 is a block diagram of a data analysis method for three-dimensional printing provided by an embodiment of the present application;
[0062] Figure 2 is a block diagram of a method for obtaining characteristic coordinates provided by an embodiment of the present application;
[0063] Figure 3 is another block diagram of a method provided by an embodiment of the present application;
[0064] Figure 4 is a block diagram of a method after obtaining slice data provided by an embodiment of the present application;
[0065] Figure 5 is a schematic structural diagram of a data analysis system provided by an embodiment of the present application;
[0066] Figure 6 is a block diagram of the structure of an electronic device provided by this embodiment.
[0067] Description of the reference numerals: 10, data acquisition module; 20, slice generation module; 30, thickness acquisition module; 40, model cutting module; 51, processor; 52, memory; 53, computer program. Detailed Embodiments
[0068] To better understand the purpose, technical solution, and advantages of this application, the following describes and explains this application in conjunction with the accompanying drawings and embodiments. However, those of ordinary skill in the art should understand that this application can be implemented without these details. In some cases, to avoid unnecessary descriptions from obscuring various aspects of this application, well-known methods, processes, systems, components, and / or circuits that have been described at a higher level will not be elaborated further. For those of ordinary skill in the art, it is obvious that various changes can be made to the disclosed embodiments of this application, and without departing from the principles and scope of this application, the general principles defined in this application can be applied to other embodiments and application scenarios. Therefore, this application is not limited to the illustrated embodiments, but conforms to the broadest scope consistent with the scope claimed in this application.
[0069] An embodiment of this application discloses a data analysis method for 3D printing.
[0070] As Figure 1 shown, the data analysis method for 3D printing includes the following steps:
[0071] S100, obtain the model to be printed and the corresponding printer information, and perform coordinate processing on the model to be printed to obtain several groups of model coordinate data.
[0072] Among them, the model to be printed represents the 3D model of the object to be 3D printed. For the object to be printed, 3D modeling is performed for a 1:1 reproduction to obtain the corresponding 3D model of the printed object. Here, the model to be printed can specifically be obtained by modeling using 3D modeling software. The 3D modeling software can be 3ds Max, Maya, Blender, ZBrush, Cinema 4D, SketchUp, CAD, etc. In this embodiment, 3ds Max is used. The printer information specifically refers to the specific information of the printer used, including specifically the printer model, filament extrusion thickness, printing time, etc. Here, it includes but is not limited to the above content.
[0073] The model coordinate data represents the process of dotting the model to be printed to obtain the corresponding coordinate data of the model. Here, the dotting process can directly perform coordinate conversion on the model. The specific coordinate conversion software can be Autodesk Maya, Blender, etc. There is a conversion program inside this software that can convert the 3D model into coordinate data.
[0074] Here it should be noted that for some specific programs, we can write custom scripts to implement them. Using scripting languages such as Python and JavaScript, combined with the APIs provided by 3D modeling software, we can quickly display the coordinates of complex graphics. In addition, graphics processing libraries such as OpenCV and OpenGL provide rich coordinate transformation functions and tools, which can help us quickly implement the transformation of 3D model coordinates.
[0075] Here it should be noted that the model coordinate data is specifically three-dimensional coordinates, with coordinates in the three directions of the horizontal axis, vertical axis, and vertical axis. Connecting all the model coordinate data is exactly the same as the original model to be printed.
[0076] S200, screen out several groups of characteristic coordinates from the model coordinate data, and divide the model to be printed based on the characteristic coordinates to obtain a set of data to be sliced.
[0077] Among them, the characteristic coordinates represent the coordinates of points on the model to be printed with different vertical axis values, and the numerical values of these characteristic coordinates in the vertical axis direction are all different from each other. The set of data to be sliced represents the data that needs to be sliced from the model to be printed, and the data to be sliced are different slice data corresponding to the model to be printed.
[0078] Combined with Figure 2 , in step S200, screening out several groups of characteristic coordinates from the model coordinate data includes the following steps:
[0079] S210, divide the model coordinate data into multiple sets of coordinates to be processed based on a preset index.
[0080] S220, obtain the corresponding comparison coordinates according to the set of coordinates to be processed, and arrange the sets of coordinates to be processed in the division order.
[0081] S230, sequentially obtain the arranged sets of coordinates to be processed, and use the comparison coordinates corresponding to the sets of coordinates to be processed as temporary coordinates.
[0082] S240, use the set of coordinates to be processed adjacent to the set of coordinates to be processed as temporary comparison coordinates, and compare the temporary coordinates with the temporary comparison coordinates.
[0083] S250, if the temporary coordinates and the temporary comparison coordinates are completely different, then use the temporary comparison coordinates as characteristic coordinates.
[0084] Among them, the preset index represents an index generated based on the three directions of the horizontal axis, vertical axis, and vertical axis. Specifically, one direction can be selected based on the three directions. Therefore, the set of coordinates to be processed includes several groups of coordinates to be processed, and the corresponding preset indexes in the coordinates to be processed are all the same.
[0085] In this embodiment, the specific steps of selecting the preset index in the vertical axis direction and dividing the model coordinate data into multiple coordinate sets to be processed based on the preset index are as follows. First, obtain the coordinates to be processed on the outermost side of the model to be printed according to the model coordinate data, and then screen the coordinates to be processed on the outermost side according to the preset index. Coordinates with the same value in the vertical axis direction are used as the same set of coordinates, that is, as the coordinate sets to be processed. Select a corresponding coordinate as the comparison coordinate from several coordinates to be processed. This comparison coordinate is the coordinate closest to the previous coordinate set to be processed along the vertical axis direction in the coordinate set to be processed.
[0086] The "previous" mentioned here mainly refers to the order of obtaining the coordinate sets to be processed, that is, the coordinate sets to be processed are obtained in sequence along the positive direction of the vertical axis. The "previous" means the coordinate set to be processed closest to the center of the circle.
[0087] In addition, the coordinate sets to be processed are arranged in sequence in the vertical axis direction. In this embodiment, they are arranged in sequence from the position of the center of the coordinate axis to the positive vertical axis direction. The model to be printed in this case is based on the horizontal axis and the vertical axis as the bottom surface, and the rest are placed along the positive vertical axis.
[0088] Since it is necessary to process the comparison coordinates corresponding to all the coordinate sets to be processed, therefore, obtain the comparison coordinates corresponding to the coordinate sets to be processed in sequence and in the positive vertical axis direction, and use the obtained comparison coordinates as the temporary coordinates. Then obtain the comparison coordinate corresponding to the second coordinate set to be processed as the temporary comparison coordinate along the positive vertical axis direction. Then compare the temporary coordinates with the temporary comparison coordinates, and judge whether the coordinate values corresponding to the temporary coordinates and the temporary comparison coordinates are the same. If the coordinate values of the temporary coordinates and the temporary comparison coordinates are not the same, then use the temporary comparison coordinate as the characteristic coordinate. Then use the temporary comparison coordinate as the temporary coordinate, continue to obtain the next coordinate set to be processed, and use the corresponding comparison coordinate as the temporary comparison coordinate, and then continue to perform the operations in steps S240 - S250 until all the comparison coordinates corresponding to the coordinate sets to be processed are completely compared.
[0089] It should be noted here that when the first temporary coordinate and the temporary comparison coordinate are completely different, both the temporary coordinate and the temporary comparison coordinate are used as the characteristic coordinates. If the temporary coordinate and the temporary comparison coordinate have the same value, then just compare the next coordinate set to be processed.
[0090] In step S220, the comparison coordinate corresponding to each coordinate set to be processed is not only the one closest to the adjacent coordinate set to be processed along the vertical axis direction, but also the point farthest from the center of the model to be printed. Obtaining the corresponding comparison coordinate according to the coordinate set to be processed includes the following steps:
[0091] S221. Generate a partitioning region based on the set of coordinates to be processed.
[0092] S222. Obtain the central position based on the partitioning region, and sequentially compare the coordinates to be processed with the central position to obtain the distance intervals.
[0093] S223. Obtain the coordinate to be processed that is farthest from the central position based on the distance intervals as the comparison coordinate.
[0094] Among them, the partitioning region represents the region containing the most coordinates to be processed. This partitioning region is the sphere containing the most coordinates to be processed, and the central position is the center of the sphere. The distance interval is the position of each coordinate to be processed from the center of the sphere.
[0095] Specifically, since the set of coordinates to be processed is a set of coordinates with the same value in the vertical axis direction, but because the model to be printed is not regular, the coordinates to be processed within the same set of coordinates to be processed will not fall into the same sphere. In order to better obtain the comparison coordinate, the coordinate to be processed that is farthest from the center of the sphere is used as the comparison coordinate.
[0096] In step S200, the model to be printed is partitioned based on the characteristic coordinates to obtain a set of data to be sliced, including the following steps:
[0097] S260. Generate a number of dividing planes based on the characteristic coordinates, and divide the model to be printed according to the dividing planes to obtain different divided modules.
[0098] S270. Use the coordinate data corresponding to each divided module as a set of data to be sliced.
[0099] Among them, the dividing plane uses the characteristic coordinates as the starting point, perpendicular to the entire vertical axis to cut the model to be printed, so as to obtain different divided modules, and use the coordinate data corresponding to each divided module as a set of data to be sliced.
[0100] S300. Obtain the corresponding slice thickness based on the set of data to be sliced and the printer information, and store the set of data to be sliced and the corresponding slice thickness.
[0101] Among them, the slice thickness is the slice thickness corresponding to printing the model to be printed corresponding to the set of data to be sliced. In order to accurately print the entire model to be printed, different slice thicknesses are used in different regions of the model to be printed, thereby improving the printing accuracy of the entire model to be printed.
[0102] In the above step S300, obtaining the corresponding slice thickness based on the set of data to be sliced and the printer information includes the following steps:
[0103] S310. Obtain the filament extrusion thickness of the consumable based on the printer information, and obtain the vertical interval thickness according to the set of data to be sliced.
[0104] S320. Compare the filament extrusion thickness of the consumable with the vertical interval thickness, and determine whether the vertical interval thickness is less than the filament extrusion thickness of the consumable.
[0105] S330. If the vertical interval thickness is less than the filament extrusion thickness of the consumable, then use the vertical interval thickness as the slicing thickness corresponding to the set of data to be sliced.
[0106] S340. If the vertical interval thickness is not less than the filament extrusion thickness of the consumable, then use the filament extrusion thickness of the consumable as the slicing thickness corresponding to the set of data to be sliced.
[0107] Among them, the filament extrusion thickness of the consumable represents the thickness of a single filament extrusion corresponding to the printer, and the vertical interval thickness represents the specific thickness between the data to be sliced in the set of data to be sliced. When the vertical interval thickness is less than the filament extrusion thickness of the consumable, then use the vertical interval thickness as the slicing thickness corresponding to the set of data to be sliced. When the vertical interval thickness is not less than the filament extrusion thickness of the consumable, then use the filament extrusion thickness of the consumable as the slicing thickness corresponding to the set of data to be sliced. For the case where the vertical interval thickness is less than the filament extrusion thickness of the consumable, it indicates that the printer extrudes a thinner filament and has a high printing precision, and the vertical interval thickness can be used as the slicing thickness for one printing. For the case where the vertical interval thickness is not less than the filament extrusion thickness of the consumable, the filament extrusion thickness of the consumable can be used as the slicing thickness.
[0108] It should be noted here that the slicing thickness does not mean that the printer prints once. The model in this area can be printed multiple times according to the slicing thickness until the printing of this slice of data is completed.
[0109] S400. Cut the model to be printed based on the slicing thickness and the set of data to be sliced to obtain a number of slice data, and perform three-dimensional printing on the model to be printed based on the slice data.
[0110] Among them, the slice data represents the data for the printer to complete one printing. Here, it does not refer to a single printing by the printer, but the data that the printer needs to print once. The printer still needs to print the slice data layer by layer. When printing once of the slice data, this embodiment considers that the printer has completed one printing.
[0111] Refer to Figure 3 In one of the embodiments, before performing three-dimensional printing on the model to be printed based on the slice data, the following steps are further included:
[0112] S500. Compare the horizontal intervals between adjacent feature coordinates in sequence, and determine whether the horizontal interval is less than the preset interval.
[0113] S600. If the horizontal interval is less than the preset interval, a printing route is generated based on the feature coordinates, and the printer is controlled according to the printing route to print the model to be printed.
[0114] S700. If the horizontal interval is not less than the preset interval, compensation coordinates are obtained based on adjacent feature coordinates, and a printing route is generated based on the compensation coordinates.
[0115] Among them, the preset interval is the minimum standard for judging whether adjacent feature coordinates are connected. When the horizontal interval is less than the preset interval, it is determined that two adjacent feature coordinates are connected. At this time, a printing route can be directly generated according to the feature coordinates, and the printer is controlled according to the printing route to print the model to be printed. When the horizontal interval is not less than the preset interval, it is determined that two adjacent feature coordinates are not connected. If the feature coordinates are directly used as the starting point for printing, the printed model will collapse and the connection will be loose. Therefore, compensation coordinates need to be obtained based on adjacent feature coordinates, and a printing route is generated based on the compensation coordinates.
[0116] It should be noted here that the compensation coordinates can be used to preliminarily build the model at the corresponding position before printing the model to be printed, so as to support the model formed by the entire suspended slice data.
[0117] Refer to Figure 4 , in one of the embodiments, after cutting the model to be printed based on the slice thickness and the set of data to be sliced to obtain a number of slice data, the following steps are further included:
[0118] S410. A printing route is generated based on the slice data, and the model to be printed is gradually printed according to the printing route to obtain a printing structure.
[0119] S420. The printing structure is compared with a preset structure, and it is judged whether the printing structure is similar to the preset structure.
[0120] S430. If the printing structure is similar to the preset structure, the model to be printed is gradually printed according to the printing route.
[0121] S440. If the printing structure is not similar to the preset structure, the printing route is updated according to the printing structure, and the model to be printed is printed based on the updated printing route.
[0122] Among them, the printed structure represents the model printed based on the sliced data, and the preset structure represents the model preset for printing based on the sliced data. Specifically, when the printed structure is similar to the preset structure, it is determined that the printing effect based on the sliced data is good, so the model to be printed is gradually printed according to the printing path. When the printed structure is not similar to the preset structure, it is determined that the model printed based on the sliced data has a poor effect. Therefore, it is necessary to change the slicing thickness of the printing, and then it is necessary to update the printing path again, and print the model to be printed based on the updated printing path.
[0123] Here, it should be noted that to determine whether the printed structure is similar to the preset structure, the two printed structures and the preset structure can be compared in pictures to compare the overall picture similarity. When the picture similarity is higher than the preset similarity, it is determined that the printed structure is similar to the preset structure. If the picture similarity is lower than the preset similarity, it is determined that the printed structure is not similar to the preset structure.
[0124] In one of the embodiments, updating the printing path according to the printed structure includes the following steps:
[0125] S441, obtain the printing defect area according to the printed structure and the preset structure, and judge the defect type of the printing defect corresponding to the printing defect area.
[0126] S442, screen the defect type in the preset database to obtain the corresponding printing data.
[0127] S443, adjust the sliced data according to the printing data, and generate a new printing path.
[0128] Among them, the printing defect area represents the place where the printed structure is different from the preset structure, and the defect type represents that the difference between the printed structure and the preset structure is due to reasons such as consumables, wire routing, and printing omission. The preset database stores several groups of defect types and corresponding printing data.
[0129] The embodiment of the present application also discloses a data analysis system for three-dimensional printing.
[0130] As Figure 5 shown, the data analysis system for three-dimensional printing includes a data acquisition module 10, a slicing generation module 20, a thickness acquisition module 30, and a model cutting module 40. The slicing generation module 20 is network-connected to the data acquisition module 10, the thickness acquisition module 30 is network-connected to the slicing generation module 20, and the model cutting module 40 is network-connected to the thickness acquisition module 30.
[0131] The data acquisition module 10 is used to acquire the model to be printed and the corresponding printer information, and perform coordinate processing on the model to be printed to obtain several groups of model coordinate data. The slice generation module 20 is used to screen out several groups of feature coordinates from the model coordinate data, and divide the model to be printed based on the feature coordinates to obtain a set of data to be sliced. The thickness acquisition module 30 is used to obtain the corresponding slice thickness according to the set of data to be sliced and the printer information, and store the set of data to be sliced and the corresponding slice thickness. The model cutting module 40 is used to cut the model to be printed based on the slice thickness and the set of data to be sliced to obtain several slice data, and perform three-dimensional printing on the model to be printed based on the slice data.
[0132] Among them, the model coordinate data, the feature coordinates, the set of data to be sliced, and the slice thickness are the same as or similar to the corresponding features in the data analysis method for three-dimensional printing, so they will not be elaborated here.
[0133] In addition, the other functions performed in the above data acquisition module 10, slice generation module 20, thickness acquisition module 30, and model cutting module 40, as well as the technical details of each function, are the same as or similar to the corresponding features in the data analysis method for three-dimensional printing described above, so they will not be elaborated here.
[0134] Refer to Figure 6 According to this, the embodiment of the present application also discloses an electronic device, which includes a processor 51 and a memory 52 that are coupled to each other. A computer program 53 that can run on the processor 51 is stored on the memory 52. When the computer program 53 is executed by the processor 51, it implements the data analysis method for three-dimensional printing.
[0135] It should be noted here that the processor 51 can be a central processing unit 51, a general-purpose processor 51, a data signal processor 51, an application-specific integrated circuit, a field-programmable gate array, or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It is used to run the program code stored in the memory 52 or process data.
[0136] In addition, the memory 52 can be a ROM or other types of static storage devices that can store static information and instructions, a random access memory 52, or other types of dynamic storage devices that can store information and instructions. It can also be an electrically erasable programmable read-only memory 52, a read-only optical disc, or other optical disc storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media, or other magnetic storage devices, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 52 can be an internal storage unit in some embodiments.
[0137] The processor 51 and the memory 52 are connected by a bus. The bus may include a path for transmitting information between the above components. The bus may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of representation, only a thick line is shown in the figure, but it does not mean that there is only one bus or one type of bus.
[0138] Figure 6 Only an electronic device having a memory 52, a processor 51, and a bus is shown. Those skilled in the art can understand that Figure 6 the structure shown does not constitute a limitation on the electronic device. It can be a bus structure or a star structure. The electronic device may also include more or fewer components than those shown, or combine certain components, or have different component deployments. Other existing or future possible electronic devices are applicable and should also be included in the protection scope and are hereby incorporated by reference.
[0139] The implementation principle is as follows:
[0140] First, the processor 51 obtains the model to be printed and the corresponding printer information, and processes the coordinates of the model to be printed to obtain several sets of model coordinate data. In addition, several sets of feature coordinates are selected from the model coordinate data, and the model to be printed is divided based on the feature coordinates to obtain a set of data to be sliced. Then, the corresponding slice thickness is obtained based on the set of data to be sliced and the printer information, and the set of data to be sliced and the corresponding slice thickness are stored. Finally, the model to be printed is cut based on the slice thickness and the set of data to be sliced to obtain several slice data, and three-dimensional printing is performed on the model to be printed based on the slice data.
[0141] It should be understood that although the steps in the flowchart of the accompanying drawings are shown in sequence according to the indication of the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless there is a clear indication in this article, the execution of these steps has no strict order limit and can be executed in other orders. The above are all preferred embodiments of the present application and do not limit the protection scope of the present application by this. Therefore, all equivalent changes made according to the structure, shape, and principle of the present application should be covered within the protection scope of the present application.
Claims
1. A data analysis method for 3D printing, characterized in that Including the following steps: Obtain the model to be printed and the corresponding printer information, and perform coordinate processing on the model to be printed to obtain several sets of model coordinate data; Select several sets of feature coordinates from the model coordinate data, and divide the model to be printed based on the feature coordinates to obtain a set of data to be sliced; Obtain the corresponding slice thickness according to the set of data to be sliced and the printer information, and store the set of data to be sliced and the corresponding slice thickness; Cut the model to be printed based on the slice thickness and the set of data to be sliced to obtain several slice data, and perform three-dimensional printing on the model to be printed based on the slice data; Among them, the step of selecting several sets of feature coordinates from the model coordinate data includes the following steps: Divide the model coordinate data into multiple sets of coordinates to be processed based on a preset index. Each set of coordinates to be processed includes several sets of coordinates to be processed, and the corresponding preset indexes in the coordinates to be processed are the same; Obtain the corresponding comparison coordinates according to the set of coordinates to be processed, and arrange the sets of coordinates to be processed in the division order; Successively obtain the arranged sets of coordinates to be processed, and use the comparison coordinates corresponding to the sets of coordinates to be processed as temporary coordinates; Use the set of coordinates to be processed adjacent to the set of coordinates to be processed as temporary comparison coordinates, and compare the temporary coordinates with the temporary comparison coordinates; If the temporary coordinates are completely different from the temporary comparison coordinates, use the temporary comparison coordinates as feature coordinates; The step of obtaining the corresponding comparison coordinates according to the set of coordinates to be processed includes the following steps: Generate a division area according to the set of coordinates to be processed. The division area represents the area containing the most coordinates to be processed; Obtain the central position according to the division area, and successively compare the coordinates to be processed with the central position to obtain the distance interval; Obtain the coordinate to be processed farthest from the central position based on the distance interval as the comparison coordinate; The step of obtaining the corresponding slice thickness according to the set of data to be sliced and the printer information includes the following steps: Obtain the wire feeding thickness of the consumable based on the printer information, and obtain the vertical interval thickness according to the set of data to be sliced; Compare the wire feeding thickness of the consumable with the vertical interval thickness, and determine whether the vertical interval thickness is less than the wire feeding thickness of the consumable; If the vertical interval thickness is less than the wire feeding thickness of the consumable, use the vertical interval thickness as the slice thickness corresponding to the set of data to be sliced; If the vertical interval thickness is not less than the wire feeding thickness of the consumable, use the wire feeding thickness of the consumable as the slice thickness corresponding to the set of data to be sliced.
2. The data analysis method for 3D printing according to claim 1, wherein The step of dividing the model to be printed based on the feature coordinates to obtain a set of data to be sliced includes the following steps: Generate several splitting surfaces based on the feature coordinates, and divide the model to be printed according to the splitting surfaces to obtain different splitting modules; Take the coordinate data corresponding to each of the segmentation modules as a set of data to be sliced.
3. The data analysis method for 3D printing according to claim 1, characterized in that Before performing three-dimensional printing on the model to be printed based on the sliced data, the following steps are further included: Successively compare the horizontal intervals between adjacent feature coordinates and determine whether the horizontal interval is less than a preset interval; If the horizontal interval is less than the preset interval, generate a printing path based on the feature coordinates and control the printer to print the model to be printed according to the printing path; If the horizontal interval is not less than the preset interval, obtain compensation coordinates based on the adjacent feature coordinates and generate a printing path based on the compensation coordinates.
4. The data analysis method for three-dimensional printing according to claim 1, wherein After cutting the model to be printed based on the slice thickness and the set of data to be sliced to obtain a number of sliced data, the following steps are further included: Generate a printing path based on the sliced data and gradually print the model to be printed according to the printing path to obtain a printed structure; Compare the printed structure with a preset structure and determine whether the printed structure is similar to the preset structure; If the printed structure is similar to the preset structure, gradually print the model to be printed according to the printing path; If the printed structure is not similar to the preset structure, update the printing path based on the printed structure and print the model to be printed based on the updated printing path.
5. The data analysis method for three-dimensional printing according to claim 4, wherein The updating of the printing path according to the printed structure includes the following steps: Obtain a printing defect area based on the printed structure and the preset structure and determine the type of printing defect corresponding to the printing defect area; Filter the type of defect in a preset database to obtain corresponding printing data, and the preset database stores several sets of defect types and corresponding printing data; Adjust the sliced data according to the printing data and generate a new printing path.
6. A data analysis system for three-dimensional printing, characterized in that, Include: A data acquisition module (10), the data acquisition module (10) is used to acquire the model to be printed and the corresponding printer information, and perform coordinate processing on the model to be printed to obtain several sets of model coordinate data; A slice generation module (20), the slice generation module (20) is used to screen out several sets of feature coordinates from the model coordinate data, and divide the model to be printed based on the feature coordinates to obtain a set of data to be sliced; A thickness acquisition module (30), the thickness acquisition module (30) is used to obtain the corresponding slice thickness according to the set of data to be sliced and the printer information, and store the set of data to be sliced and the corresponding slice thickness; A model cutting module (40), the model cutting module (40) is used to cut the model to be printed based on the slice thickness and the set of data to be sliced to obtain several sliced data, and perform three-dimensional printing on the model to be printed based on the sliced data; Among them, screening out several sets of feature coordinates from the model coordinate data includes the following steps: Divide the model coordinate data into multiple sets of coordinates to be processed based on preset metrics. Each set of coordinates to be processed includes several groups of coordinates to be processed, and the corresponding preset metrics in the coordinates to be processed are the same; Obtain the corresponding comparison coordinates according to the sets of coordinates to be processed, and arrange the sets of coordinates to be processed in the division order; Successively obtain the arranged sets of coordinates to be processed, and use the comparison coordinates corresponding to the sets of coordinates to be processed as temporary coordinates; Use the set of coordinates to be processed adjacent to the set of coordinates to be processed as temporary comparison coordinates, and compare the temporary coordinates with the temporary comparison coordinates; If the temporary coordinates are completely different from the temporary comparison coordinates, then use the temporary comparison coordinates as feature coordinates; The obtaining of the corresponding comparison coordinates according to the sets of coordinates to be processed includes the following steps: Generate a division region according to the sets of coordinates to be processed, and the division region represents the region containing the most coordinates to be processed; Obtain the central position according to the division region, and successively compare the coordinates to be processed with the central position to obtain the distance interval; Based on the distance interval, obtain the coordinate to be processed that is farthest from the central position as the comparison coordinate; The obtaining of the corresponding slice thickness according to the set of data to be sliced and the printer information includes the following steps: Obtain the filament extrusion thickness of the consumable based on the printer information, and obtain the vertical interval thickness according to the set of data to be sliced; Compare the filament extrusion thickness of the consumable with the vertical interval thickness, and determine whether the vertical interval thickness is less than the filament extrusion thickness of the consumable; If the vertical interval thickness is less than the filament extrusion thickness of the consumable, then use the vertical interval thickness as the slice thickness corresponding to the set of data to be sliced; If the vertical interval thickness is not less than the filament extrusion thickness of the consumable, then use the filament extrusion thickness of the consumable as the slice thickness corresponding to the set of data to be sliced.
7. An electronic device, characterized in that, The electronic device includes a processor (51) and a memory (52) that are mutually coupled, and a computer program (53) capable of running on the processor (51) is stored on the memory (52); When the computer program (53) is executed by the processor (51), it implements the data analysis method for 3D printing according to any one of claims 1-5.
Citation Information
Patent Citations
3D (three-dimensional) printing adaptive slicing method capable of reserving model features
CN104708824A
Rapid forming method capable of compounding chopped fibers and thermoplastic resin
CN106671411A