Method, device and storage medium for processing a 3D printed model
By detecting and repairing the slicing lines of large-scale 3D printed models, the problem of time-consuming and labor-intensive cleaning and repair was solved, achieving efficient model processing and printing path generation.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-10
- Publication Date
- 2026-03-20
AI Technical Summary
In the process of large-scale 3D printing, cleaning and repairing broken surfaces and overlapping defects in the model is time-consuming and labor-intensive.
By detecting whether the slice line is closed and whether there are abnormal control points, the connection between the start and end points is adjusted, and the abnormal control points are repaired to generate slice lines without broken surfaces or overlaps.
It enables rapid cleaning and repair of broken and overlapping surfaces in models, improving the efficiency of model repair and the accuracy of printing.
Smart Images

Figure CN118205207B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of 3D printing technology, and in particular to methods, equipment and storage media for processing 3D printed models. Background Technology
[0002] Large-scale 3D printing refers to 3D printing technology used to manufacture large or high-scale objects. Currently, in the process of large-scale 3D printing, it is necessary to ensure that the input model is free of defects such as broken surfaces and overlapping. Therefore, the model must be cleaned and repaired before input to ensure that the input model meets the requirements of large-scale 3D printing.
[0003] However, since the models are created from different sources, including scanned data and CAD designs, the corresponding cleaning and repair methods also differ. This requires the personnel responsible for cleaning and repair to possess the corresponding professional skills. In practical applications, ensuring that the input model is free of defects such as broken surfaces and overlaps requires complex cleaning and repair operations, which consumes considerable time and manpower.
[0004] The above content is only used to help understand the technical solution of this application and does not represent an admission that the above content is prior art. Summary of the Invention
[0005] This application provides a method, device, and storage medium for processing 3D printed models, aiming to solve the problem that related solutions consume a lot of time and manpower to clean and repair broken surfaces and overlaps in the input model.
[0006] To achieve the above objectives, this application provides a method for processing 3D printed models, which includes the following steps:
[0007] Determine the slice lines generated from the slices of the model to be printed;
[0008] The slice line is detected, and it is determined whether the slice line is closed and whether there are any abnormal control points.
[0009] If the slice line is not closed, the distance between the start point and the end point of the slice line is determined, and the connection between the start point and the end point is adjusted according to the distance.
[0010] If the abnormal control point exists in the slice line, then the position and corresponding number of the abnormal control point are determined, and the abnormal control point is adjusted according to the position and the number.
[0011] Optionally, the step of adjusting the connection between the starting point and the ending point according to the distance includes:
[0012] When the distance between the starting point and the ending point is less than or equal to a preset distance, the starting point and the ending point are connected by a line segment;
[0013] Conversely, the tangential directions of the starting point and the ending point are determined, and the curves of the starting point and the ending point are extended according to the tangential directions so that the curves of the starting point and the ending point intersect and close.
[0014] Optionally, the step of determining the location and corresponding number of the abnormal control points, and adjusting the abnormal control points according to the location and the number, includes:
[0015] Obtain the abnormal control points in the slice line, and determine the target abnormal control points whose spacing is less than a preset spacing among the abnormal control points;
[0016] Connect adjacent target anomaly control points to generate a connecting line, and obtain the midpoint of the connecting line;
[0017] The midpoint is used as the target control point, and the target abnormal control point used to generate the connecting line is deleted.
[0018] Optionally, after the step of obtaining the control points in the slice line, the method further includes:
[0019] Obtain the target curve where the slice line has self-intersection, and determine the outliers of self-intersection in the target curve;
[0020] The target curve is broken based on the anomalies to generate sub-curves;
[0021] Based on the position of the target point generated by the disconnection of the sub-curve, the target point is divided into a preset number of adjacent points, wherein the number of adjacent points is at least two groups.
[0022] The adjacent points are moved one line width away from the plane containing the slice line, and another set of adjacent points are moved one line width away from the opposite direction of the normal. The sub-curves are then connected so that the sub-curves are connected end to end, and the target curve without self-intersection anomalies is generated.
[0023] Optionally, before the step of determining the slice lines generated by the printed model slices, the method further includes:
[0024] Obtain the model to be printed, determine the printing scale, and generate a dividing plane based on the printing scale;
[0025] According to the dividing plane, the outer surface model of the model to be printed is sliced, and a slice line model is generated, wherein the slice line model is composed of slice lines perpendicular to the model to be printed.
[0026] Optionally, after the step of adjusting the abnormal control points according to the location and the quantity, the method further includes:
[0027] Determine the adjusted target slice line and the printing plane in which the target slice line is located;
[0028] The target slice line is offset by half a line width in the printing plane to generate a center line, so that the outer contour of the model to be printed is consistent with the original digital model.
[0029] Optionally, after the step of offsetting the target slice line by half a line width in the printing plane to generate a center line, the method further includes:
[0030] The centerline is detected, and it is determined whether the centerline is closed and whether there are any target anomalies.
[0031] If the centerline is not closed, then determine the target distance between the target start point and the target end point of the centerline, and adjust the connection between the target start point and the target end point according to the target distance;
[0032] If the target anomaly point exists in the centerline, then the target location and the corresponding number of the target anomaly point are determined, and the target anomaly point is adjusted according to the target location and the target number.
[0033] Optionally, after the step of adjusting the target anomaly points according to the target location and the target quantity, the method further includes:
[0034] Determine the centerline and the corresponding dividing plane;
[0035] The centerline is divided into blocks according to the dividing plane, and the divided centerline is placed on the printing platform;
[0036] Obtain the input modification instructions, and adjust the path control points of the centerline according to the modification instructions.
[0037] In addition, to achieve the above objectives, this application also provides a 3D printing model processing device, which includes: a memory, a processor, and a 3D printing model processing program stored in the memory and executable on the processor. The 3D printing model processing program is configured to implement the steps of the 3D printing model processing method as described above.
[0038] In addition, to achieve the above objectives, this application also provides a storage medium storing a processing program for a 3D printed model, wherein when the processing program for the 3D printed model is executed by a processor, it implements the steps of the 3D printed model processing method as described above.
[0039] This application provides a method for processing 3D printed models, a processing device for 3D printed models, and a storage medium for processing 3D printed models. The method involves determining the slicing lines generated from slices of the model to be printed, then detecting the slicing lines and determining whether they are closed and whether abnormal control points exist. If the slicing lines are not closed, the method determines the distance between the start and end points of the slicing lines and adjusts the connection between the start and end points based on the distance. If abnormal control points exist in the slicing lines, the method determines the position and number of the abnormal control points and adjusts them based on the position and number to ensure that the input model does not contain defects such as broken surfaces or overlapping. Attached Figure Description
[0040] Figure 1 This is a flowchart illustrating the first embodiment of the 3D printing model processing method of this application;
[0041] Figure 2 This is a flowchart illustrating a second embodiment of the 3D printing model processing method of this application;
[0042] Figure 3 This is a flowchart illustrating the third embodiment of the 3D printing model processing method of this application;
[0043] Figure 4 This is a schematic diagram of the hardware operating environment of the 3D printing model processing device involved in the embodiments of this application.
[0044] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0045] It should be understood that the specific embodiments described herein are merely illustrative of this application and are not intended to limit this application.
[0046] The 3D printing model processing method of this application determines the slicing lines generated by slicing the model to be printed, then detects the slicing lines and determines whether the slicing lines are closed and whether there are abnormal control points. If the slicing lines are not closed, the distance between the start point and the end point of the slicing lines is determined, and the connection between the start point and the end point is adjusted according to the distance. If there are abnormal control points in the slicing lines, the position and corresponding number of abnormal control points are determined, and the abnormal control points are adjusted according to the position and the number. This solves the problem that cleaning and repairing broken surfaces and overlaps in the input model using related methods consumes a lot of time and manpower, and thus can quickly clean and repair broken surfaces and overlaps in the input model, thereby improving the model repair efficiency.
[0047] Furthermore, surface fragments refer to extremely small-scale surface segments existing in a digital model. These surface fragments are typically very small and difficult to reconstruct or merge because their size is not easily identified and processed. Therefore, surface fragments usually need to be detected and repaired during the digital model preparation process to ensure the accuracy and reliability of printing. In this application, however, no high-quality, high-precision model needs to be input; the method provided in this application can automatically detect and repair surface fragments.
[0048] To better understand the above technical solutions, exemplary embodiments of this application will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of this application are shown in the drawings, it should be understood that this application can be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided to enable a more thorough understanding of this application and to fully convey the scope of this application to those skilled in the art.
[0049] To better understand the above technical solutions, the following will provide a detailed explanation of the technical solutions in conjunction with the accompanying drawings and specific implementation methods.
[0050] Example 1
[0051] Please refer to Figure 1 In the first embodiment, the method for processing the 3D printed model includes the following steps:
[0052] Step S10: Determine the slice lines generated by the slices of the model to be printed.
[0053] In this embodiment, the slicing refers to dividing the digital model into multiple planes along the printing direction during the 3D printing process. The planes intersect with the printed components to form a series of horizontal slices. Each slice contains the geometric information of the planar components. During the slicing process, when the model to be printed is cut into a series of thin slices, contour lines are formed, which are the slicing lines.
[0054] Furthermore, the intersections of these slices of the model to be printed can determine the 3D printing path, guiding the print head to move and stack material, building the object layer by layer. Slicing software can also divide the 3D model into a series of thin slices along a certain direction, generating the outline of each slice. These outlines determine the shape and structure of the printed object. Slicing line settings typically include parameters such as line width, line spacing, and infill density. Line width determines the thickness of the printed lines, line spacing determines the distance between adjacent lines, and infill density determines the density and mechanical properties of the printed product. In practical applications, the slicing line parameters need to be selected appropriately based on different printing requirements and material properties. For example, when printing items with fine structures, it is necessary to reduce the line width and infill density to obtain better detail. Conversely, when printing load-bearing items or items requiring high strength, it is necessary to increase the line width and infill density to improve their mechanical properties.
[0055] Optionally, in this embodiment, before step S10, the following steps are further included:
[0056] Obtain the model to be printed, determine the printing scale, and generate a dividing plane according to the printing scale; slice the outer surface model of the model to be printed according to the dividing plane, and generate a slice line model, wherein the slice line model is composed of slice lines perpendicular to the model to be printed.
[0057] Specifically, the printing scale is pre-set and refers to the size of the 3D printed object, determined by the maximum length, width, and height of the printed item. The dividing planes refer to planes that cut the large-scale model to be printed into smaller, printable planes. These planes are typically located at different levels of the model, decomposing the entire model into a series of horizontal slices. By dividing the model, it can be printed in segments, overcoming the limitations of large-scale printing. The dividing planes are input into slicing software to generate the printing path. Finally, the outer surface of the model to be printed is sliced to generate slice line models. These slice lines are vertical slice line models of the model to be printed; these slice line models are models composed of curve groups after slicing the model, visually representing the printing path of the model.
[0058] Step S20: Detect the slice line and determine whether the slice line is closed and whether there are any abnormal control points.
[0059] In this embodiment, the abnormal control point refers to a near-repeating control point on the curve with a spacing of less than 0.1 mm or a self-intersecting intersection of the curve. Such abnormal control points may lead to geometric errors or discontinuities in the printed path. In contrast, a control point is a specific point used to control and adjust the shape of a curve. The position and number of control points determine the shape and curvature of the curve. By moving, adding, or deleting control points, the shape of the curve can be adjusted to meet design requirements.
[0060] Specifically, a geometry engine can be used to check the geometric information of the slice lines to determine whether the edges and faces of the slice lines are closed. Alternatively, the closure of the slice lines can be observed through the slice diagram generated by the slicing software.
[0061] Step S30: If the slice line is not closed, determine the distance between the start point and the end point of the slice line, and adjust the connection between the start point and the end point according to the distance.
[0062] In this embodiment, when the slice line is detected to be unclosed, the starting point and ending point of the unclosed curve in the slice line are determined, and the straight-line distance between the starting point and the ending point is measured. Based on the distance, it is determined whether it is within a preset distance range, and corresponding processing actions are performed according to the distance range in which the straight line is located.
[0063] Optionally, in this embodiment, the step of adjusting the connection between the starting point and the ending point according to the distance includes:
[0064] When the distance between the starting point and the ending point is less than or equal to a preset distance, the starting point and the ending point are connected by a line segment; otherwise, the tangential direction between the starting point and the ending point is determined, and the curves of the starting point and the ending point are extended according to the tangential direction so that the curves of the starting point and the ending point intersect and close.
[0065] For example, when the slice line is an open curve with its beginning and end points not connected, it is determined whether the distance between the start and end points of the curve is less than 20mm. If it is less, the start and end points are directly connected by a line segment. If the distance between the start and end points is greater than 20mm, the curve is extended according to the tangential direction at the start and end points and intersects to close the curve.
[0066] Step S40: If the abnormal control point exists in the slice line, determine the position and corresponding number of the abnormal control point, and adjust the abnormal control point according to the position and the number.
[0067] In this embodiment, when abnormal control points are detected in the slice line, the location and number of the abnormal control points are first determined by the geometry engine or slicing software. The location can be control points with a spacing less than a preset distance, or intersections of curves. Abnormal control points refer to approximately repeating control points (spacing less than 0.1 mm) or intersections of curves that appear on the curve. The number of abnormal control points is also determined. Finally, based on the location and number of abnormal control points, a preset action is performed on them.
[0068] Optionally, in this embodiment, the step of determining the location and corresponding number of the abnormal control points, and adjusting the abnormal control points according to the location and the number, includes:
[0069] Obtain abnormal control points in the slice line, and determine the target abnormal control points whose spacing is less than a preset spacing; connect adjacent target abnormal control points to generate a connecting line, and obtain the midpoint of the connecting line; use the midpoint as the target control point, and delete the target abnormal control points used to generate the connecting line.
[0070] Specifically, based on the distance between the abnormal control points determined in step S40, abnormal control points whose distance is less than a preset spacing are identified as target abnormal control points. Then, similar abnormal control points whose distance is less than the preset spacing are grouped into pairs and connected into line segments. The midpoint of the line segment is taken as the target control point and retained. The two target abnormal control points used to connect are deleted.
[0071] Furthermore, in this embodiment, after the step of obtaining the control points in the slice line, the method further includes:
[0072] The process involves: obtaining a target curve where the slice line has self-intersections, and identifying outliers in the target curve; breaking the target curve based on the outliers to generate sub-curves; dividing the target points into a preset number of adjacent points based on their positions, with at least two groups of adjacent points; moving the adjacent points one line width in the direction normal to the plane of the slice line, and moving another group of adjacent points one line width in the opposite direction of the normal; connecting the sub-curves to ensure they are connected end-to-end, thus generating the target curve without any self-intersection outliers.
[0073] Specifically, based on the abnormal control points existing in the slice line, it is determined whether they are intersection points generated by the self-intersection of curves in the slice line. Such intersection points are identified as abnormal points, and the self-intersecting curve portions are identified as the target curve. Then, the target curve is broken at the abnormal point, generating two sub-curves. Each sub-curve has four overlapping points. Two points of each sub-curve located in the same direction are then moved one line width away from the normal direction of the slice line plane. The other two points are then moved one line width away in the opposite direction. Finally, the sub-curves are connected to generate the target curve without any self-intersection abnormal points.
[0074] The linewidth refers to the width of the smallest building block during printing, which is usually determined by the printer's nozzle diameter. The linewidth can be changed in various ways to meet printing requirements, such as changing the parameter settings of the slicing software, using nozzles of different diameters, or adjusting the printer's extruder settings.
[0075] As an optional implementation, the normal direction of the plane containing the slice line is moved by a distance equal to the line width. The method for determining the direction of movement can be as follows: Assume that sub-curves A and B are generated by breaking off from self-intersecting anomalies. Each sub-curve corresponds to two points: points a and b for curve A, and points c and d for curve B. By determining the vectors x and y of the tangents to curves A and B, adding x and y together yields vector z. The direction perpendicular to vector z is then taken as the normal direction of the plane containing the slice line.
[0076] In addition, after completing one inspection process and one repair process, the system will continue to cycle through checks to ensure that abnormal points are completely removed, thus ensuring the integrity and accuracy of the slice lines.
[0077] For example, if the slice line control points contain multiple abnormal control points with a spacing of less than 0.1 mm, then connect adjacent abnormal control points and take the midpoint as the new control point, and delete the original abnormal control points. If the slice line contains abnormal points where curves intersect, then break the curves into multiple curve segments from the intersection point, move the intersection point one line width in the plane normal direction, and then move it one line width in the opposite direction of the plane normal direction. At this time, the multiple curve segments have no intersection points and are connected end to end, and the printing paths will not overlap, so the multiple curve segments can be merged back into a whole slice line.
[0078] In the technical solution provided in this embodiment, by slicing the model to be printed to generate slice lines, it is determined whether the slice lines are closed and whether there are abnormal control points. Then, the abnormal control points in the slice lines are repaired and the slice lines are closed, which can ensure that the input model does not have defects such as broken surfaces and overlaps.
[0079] Example 2
[0080] Please refer to Figure 2 In the second embodiment, after step S40, the method further includes:
[0081] Step S50: Determine the adjusted target slice line and the printing plane where the target slice line is located.
[0082] Step S60: Offset the target slice line by half a line width in the printing plane to generate a center line, so that the outer contour of the model to be printed is consistent with the original digital model.
[0083] In this embodiment, after detecting and adjusting the abnormal points of the slice line and closing the slice line, the adjusted slice line is determined as the target slice line, and the target slice line is offset by half a line width, the production center line, according to the printing plane where the target slice line is located.
[0084] Furthermore, offsetting the target slicing line by half a line width is because when the printer nozzles move according to the contour lines generated by the slicing software and print layer by layer, if the printing were done directly according to the surface of the original digital model, the surface of the item might deviate slightly due to the width of the printed lines after each layer, resulting in an inconsistency between the overall size of the item and the original digital model. Secondly, by offsetting the outer surface of the model inward by half a line width, a printing fill area can be added. This fill area can compensate for the deviation caused by the printing line width, ensuring that the external dimensions of the item remain consistent with the original digital model. Simultaneously, this fill area can also increase the density and mechanical properties of the item, improving the quality of the print.
[0085] Optionally, in this embodiment, after step S60, the method further includes:
[0086] The centerline is detected, and it is determined whether the centerline is closed and whether there are any target anomalies. If the centerline is not closed, the target distance between the target start point and the target end point of the centerline is determined, and the connection between the target start point and the target end point is adjusted according to the target distance. If there are target anomalies in the centerline, the target position and the corresponding number of target anomalies are determined, and the target anomalies are adjusted according to the target position and the number of target anomalies.
[0087] Specifically, if the centerline is not connected end-to-end, it is an open curve. Then, determine if the distance between the start and end points of the unconnected curves is less than 20mm. If less, connect them directly with line segments. If greater than 20mm, extend the curve according to the tangential direction at the start and end points and intersect to close the curve. When the centerline's control points contain multiple abnormal control points with a spacing of less than 0.1mm, connect adjacent abnormal control points and take the midpoint, using the midpoint as the new control point, and delete the original abnormal control points. If the centerline contains abnormal points where curves intersect, break the curve at the intersection point into multiple curve segments. Move the intersection point 0.5 line widths in the plane normal direction, and then move it 0.5 line widths in the opposite direction of the plane normal direction. At this point, the multiple curve segments have no intersection points and are connected end-to-end, and the printed paths do not overlap, allowing the multiple curve segments to be merged back into a single centerline.
[0088] Furthermore, in this embodiment, after the step of adjusting the target anomaly points according to the target location and the target quantity, the method further includes:
[0089] Determine the centerline and its corresponding dividing plane; divide the centerline into blocks according to the dividing plane, and place the divided centerline on the printing platform; obtain input modification instructions, and adjust the path control points of the centerline according to the modification instructions.
[0090] Specifically, the centerline is divided into blocks using a dividing plane, and these blocks are then placed on the printing platform. Next, the centerline path is refined to ensure the quality and accuracy of the printed path. This includes optimizing the path control points, which can be added, deleted, or modified to suit specific printing needs.
[0091] In the technical solution provided in this embodiment, by determining the adjusted target slice line and the printing plane where the target slice line is located, and offsetting the target slice line by half a line width to generate a center line, the accuracy of the printed model is improved. After generating the center line, the problems of unclosed center lines and abnormal points are detected and repaired, thereby effectively handling large-scale three-dimensional components composed of complex multi-surface and fragmented surfaces, and generating a printing path suitable for 3D printing.
[0092] Example 3
[0093] Please refer to Figure 3 In the third embodiment, Figure 3 This is a flowchart illustrating the third embodiment of the 3D printing model processing method of this application, as shown below. Figure 3As shown, first, a large-scale 3D model is input. By setting an appropriate printing scale, a dividing plane is generated, and the large-scale 3D model is sliced to generate slice lines. Then, it is determined whether the slice lines are closed and free of abnormal control points. If not, the slice lines are repaired according to the 3D printing model processing method described above. If so, the slice lines are offset by half a line width in the printing plane to generate center lines. The process continues to determine whether the center lines are closed and free of abnormal control points. If not, the center lines are repaired according to the 3D printing model processing method described above. If so, the center lines are divided into groups using the dividing plane, and these groups are placed on the printing platform. The center line paths are then refined, and points are added, deleted, or modified within the center lines.
[0094] Since the system described in the embodiments of this application is a system used to implement the methods of the embodiments of this application, those skilled in the art can understand the specific structure and variations of the system based on the methods described in the embodiments of this application, and therefore will not be described in detail here. All systems used in the methods of the embodiments of this application fall within the scope of protection of this application.
[0095] As one implementation plan, Figure 4 This is a schematic diagram of the hardware operating environment of the 3D printing model processing device involved in the embodiments of this application.
[0096] like Figure 4 As shown, the processing device for this 3D printed model may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a network interface 1003, and a memory 1004. The communication bus 1002 is used to enable communication between these components. The network interface 1003 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface). The memory 1004 may be a high-speed random access memory (RAM) or a stable non-volatile memory (NVM), such as a disk drive. Alternatively, the memory 1004 may be a storage device independent of the aforementioned processor 1001.
[0097] Those skilled in the art will understand that Figure 4 The structures shown do not constitute a limitation on the processing equipment for 3D printed models and may include more or fewer parts than shown, or combine certain parts, or have different part arrangements.
[0098] like Figure 4As shown, the memory 1004, which serves as a storage medium, may include an operating system, a data storage module, a network communication module, and a processing program for the 3D printed model. The operating system is a program that manages and controls the hardware and software resources of the 3D printed model processing device, the 3D printed model processing program, and the operation of other software or programs.
[0099] exist Figure 4 In the 3D printing model processing device shown, the network interface 1003 is mainly used to connect to the terminal and communicate data with the terminal; the processor 1001 can be used to call the 3D printing model processing program stored in the memory 1004.
[0100] In this embodiment, the 3D printing model processing device includes: a memory 1004, a processor 1001, and a processing program for the 3D printing model stored in the memory and executable on the processor, wherein:
[0101] When processor 1001 calls the processing program for the 3D printed model stored in memory 1004, it performs the following operations:
[0102] Determine the slice lines generated from the slices of the model to be printed;
[0103] The slice line is detected, and it is determined whether the slice line is closed and whether there are any abnormal control points.
[0104] If the slice line is not closed, the distance between the start point and the end point of the slice line is determined, and the connection between the start point and the end point is adjusted according to the distance.
[0105] If the abnormal control point exists in the slice line, then the position and corresponding number of the abnormal control point are determined, and the abnormal control point is adjusted according to the position and the number.
[0106] In one embodiment, when processor 1001 calls the processing program for the 3D printed model stored in memory 1004, it performs the following operations:
[0107] When the distance between the starting point and the ending point is less than or equal to a preset distance, the starting point and the ending point are connected by a line segment;
[0108] Conversely, the tangential directions of the starting point and the ending point are determined, and the curves of the starting point and the ending point are extended according to the tangential directions so that the curves of the starting point and the ending point intersect and close.
[0109] In one embodiment, when processor 1001 calls the processing program for the 3D printed model stored in memory 1004, it performs the following operations:
[0110] Obtain the target curve where the slice line has self-intersection, and determine the outliers of self-intersection in the target curve;
[0111] The target curve is broken based on the anomalies to generate sub-curves;
[0112] Based on the position of the target point generated by the disconnection of the sub-curve, the target point is divided into a preset number of adjacent points, wherein the number of adjacent points is at least two groups.
[0113] The adjacent points are moved one line width away from the plane containing the slice line, and another set of adjacent points are moved one line width away from the opposite direction of the normal. The sub-curves are then connected so that the sub-curves are connected end to end, and the target curve without self-intersection anomalies is generated.
[0114] In one embodiment, when processor 1001 calls the processing program for the 3D printed model stored in memory 1004, it performs the following operations:
[0115] Obtain the abnormal control points in the slice line, and determine the target abnormal control points whose spacing is less than a preset spacing among the abnormal control points;
[0116] Connect adjacent target anomaly control points to generate a connecting line, and obtain the midpoint of the connecting line;
[0117] The midpoint is used as the target control point, and the target abnormal control point used to generate the connecting line is deleted.
[0118] In one embodiment, when processor 1001 calls the processing program for the 3D printed model stored in memory 1004, it performs the following operations:
[0119] Obtain the model to be printed, determine the printing scale, and generate a dividing plane based on the printing scale;
[0120] According to the dividing plane, the outer surface model of the model to be printed is sliced, and a slice line model is generated, wherein the slice line model is composed of slice lines perpendicular to the model to be printed.
[0121] In one embodiment, when processor 1001 calls the processing program for the 3D printed model stored in memory 1004, it performs the following operations:
[0122] Determine the adjusted target slice line and the printing plane in which the target slice line is located;
[0123] The target slice line is offset by half a line width in the printing plane to generate a center line, so that the outer contour of the model to be printed is consistent with the original digital model.
[0124] In one embodiment, when processor 1001 calls the processing program for the 3D printed model stored in memory 1004, it performs the following operations:
[0125] The centerline is detected, and it is determined whether the centerline is closed and whether there are any target anomalies.
[0126] If the centerline is not closed, then determine the target distance between the target start point and the target end point of the centerline, and adjust the connection between the target start point and the target end point according to the target distance;
[0127] If the target anomaly point exists in the centerline, then the target location and the corresponding number of the target anomaly point are determined, and the target anomaly point is adjusted according to the target location and the target number.
[0128] In one embodiment, when processor 1001 calls the processing program for the 3D printed model stored in memory 1004, it performs the following operations:
[0129] Determine the centerline and the corresponding dividing plane;
[0130] The centerline is divided into blocks according to the dividing plane, and the divided centerline is placed on the printing platform;
[0131] Obtain the input modification instructions, and adjust the path control points of the centerline according to the modification instructions.
[0132] Furthermore, those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program includes program instructions and can be stored in a storage medium, which is a computer-readable storage medium. The program instructions are executed by at least one processor in the 3D printing model processing device to implement the process steps of the embodiments of the above methods.
[0133] Therefore, this application also provides a storage medium storing a processing program for a 3D printed model, which, when executed by a processor, implements the various steps of the 3D printed model processing method described in the above embodiments.
[0134] The storage medium can be any storage medium capable of storing program code, such as a USB flash drive, portable hard drive, read-only memory (ROM), magnetic disk, or optical disk.
[0135] It should be noted that, since the storage medium provided in the embodiments of this application is the storage medium used to implement the methods of the embodiments of this application, those skilled in the art can understand the specific structure and variations of the storage medium based on the methods described in the embodiments of this application, and therefore will not be repeated here. All storage media used in the methods of the embodiments of this application fall within the scope of protection of this application.
[0136] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0137] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0138] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0139] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0140] It should be noted that any reference signs placed between parentheses in the claims should not be construed as limiting the claims. The word "comprising" does not exclude the presence of components or steps not listed in the claims. The word "a" or "an" preceding a component does not exclude the presence of a plurality of such components. This application can be implemented by means of hardware comprising several different components and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means may be embodied by the same item of hardware. The use of the words first, second, and third, etc., does not indicate any order. These words can be interpreted as names.
[0141] Although preferred embodiments of this application have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of this application.
[0142] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.
Claims
1. A method for processing 3D printed models, characterized in that, The processing method for the 3D printed model includes the following steps: Determine the slice lines generated by the slices of the model to be printed; The slice line is detected, and it is determined whether the slice line is closed and whether there are any abnormal control points. If the slice line is not closed, the distance between the starting point and the ending point of the slice line is determined, and the connection between the starting point and the ending point is adjusted according to the distance, including: when the distance between the starting point and the ending point is less than or equal to a preset distance, the starting point and the ending point are connected by a line segment; otherwise, the tangential direction between the starting point and the ending point is determined, and the curves of the starting point and the ending point are extended according to the tangential direction so that the curves of the starting point and the ending point intersect and close. If the abnormal control point exists in the slice line, the position and corresponding number of the abnormal control point are determined, and the abnormal control point is adjusted according to the position and the number. The abnormal control point is a control point that appears on the curve with a spacing less than a preset spacing threshold, or a self-intersection point of the curve. The step of determining the location and corresponding number of the abnormal control points, and adjusting the abnormal control points according to the location and the number, includes: obtaining the abnormal control points in the slice line, and determining the target abnormal control points whose spacing is less than a preset spacing; connecting adjacent target abnormal control points to generate a connecting line, and obtaining the midpoint of the connecting line; using the midpoint as the target control point, and deleting the target abnormal control points used to generate the connecting line.
2. The method for processing 3D printed models as described in claim 1, characterized in that, After the step of obtaining the abnormal control points in the slice line, the method further includes: Obtain the target curve where the slice line has self-intersection, and determine the outliers of self-intersection in the target curve; The target curve is broken based on the anomalies to generate sub-curves; Based on the position of the target point generated by the disconnection of the sub-curve, the target point is divided into a preset number of adjacent points, wherein the number of adjacent points is at least two groups; The adjacent points are moved one line width away from the plane containing the slice line, and another set of adjacent points are moved one line width away from the opposite direction of the normal. The sub-curves are then connected so that the sub-curves are connected end to end, and the target curve without self-intersection anomalies is generated.
3. The method for processing 3D printed models as described in claim 1, characterized in that, Before the step of determining the slice lines generated by the slice of the model to be printed, the method further includes: Obtain the model to be printed, determine the printing scale, and generate a dividing plane based on the printing scale; According to the dividing plane, the outer surface model of the model to be printed is sliced, and a slice line model is generated, wherein the slice line model is composed of slice lines perpendicular to the model to be printed.
4. The method for processing 3D printed models as described in claim 1, characterized in that, After the step of adjusting the abnormal control points according to the location and the quantity, the method further includes: Determine the adjusted target slice line and the printing plane in which the target slice line is located; The target slice line is offset by half a line width in the printing plane to generate a center line, so that the outer contour of the model to be printed is consistent with the original digital model.
5. The method for processing 3D printed models as described in claim 4, characterized in that, After the step of offsetting the target slice line by half a line width in the printing plane to generate the center line, the method further includes: The centerline is detected, and it is determined whether the centerline is closed and whether there are any target anomalies. If the centerline is not closed, then determine the target distance between the target start point and the target end point of the centerline, and adjust the connection between the target start point and the target end point according to the target distance; If the target anomaly point exists in the centerline, then the target location and the corresponding number of the target anomaly point are determined, and the target anomaly point is adjusted according to the target location and the target number.
6. The method for processing 3D printed models as described in claim 5, characterized in that, After the step of adjusting the target anomaly points according to the target location and the target quantity, the method further includes: Determine the centerline and the corresponding dividing plane; The centerline is divided into blocks according to the dividing plane, and the divided centerline is placed on the printing platform; Obtain the input modification instructions, and adjust the path control points of the centerline according to the modification instructions.
7. A 3D printed model processing device, characterized in that, The 3D printed model processing device includes: a memory, a processor, and a 3D printed model processing program stored in the memory and executable on the processor, wherein the 3D printed model processing program is configured to implement the steps of the 3D printed model processing method as described in any one of claims 1 to 6.
8. A storage medium, characterized in that, The storage medium stores a processing program for a 3D printed model, which, when executed by a processor, implements the steps of the 3D printed model processing method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
3D printing fused-deposition defect layer-by-layer detecting method based on structured light linear anomaly point
CN109532021A
High-precision slice acquisition method and device for 3D printer
CN112069725A