Disclosure of Invention
The present application aims to solve at least one of the technical problems existing in the prior art; therefore, the application provides a 3D printing method for quickly comparing a tooth model with a digital model, which is used for solving the technical problem that the 3D printing speed is reduced in a mode of directly adopting the sequential comparison of original images.
To achieve the above object, an embodiment according to a first aspect of the present application provides a 3D printing method for fast comparison of a tooth model and a digital model, comprising the steps of:
s1, an operator inputs tooth model construction data, and constructs a tooth model according to the input tooth model construction data in the specific mode that:
s11, performing initial construction on a tooth model according to input construction data, confirming teeth corresponding to the upper and lower sides in the constructed tooth model, sequentially extracting the corresponding teeth and planning the teeth into a tooth sequence;
s12, confirming the center point of the upper tooth from the tooth sequence, marking the center point as a to-be-determined point, confirming the center point of the lower tooth, and marking the center point as two to-be-determined points;
s13, constructing a vertical horizontal line of the undetermined point, reconstructing a vertical horizontal line of the undetermined two points, acquiring interval parameters between two groups of vertical horizontal lines, and marking the acquired interval parameters as JJ i Wherein i represents different tooth sequences and the spacing parameter JJ i Comparing with a preset parameter Y1, wherein Y1 is a preset value, when JJ i If Y1 is not more than or equal to, not performing any treatment, otherwise, generating a dislocation signal, and marking the corresponding tooth sequence as a dislocation sequence;
s2, according to the generated dislocation signals, obtaining a tooth image corresponding to the corresponding tooth model, and analyzing and comparing the tooth image with the model, wherein the specific mode is as follows:
s21, confirming a corresponding dislocation sequence according to the dislocation signal, and confirming a corresponding region image from the tooth image according to the specific position of the dislocation sequence in the tooth model;
s22, analyzing and comparing the area image with the dislocation sequence, connecting the undetermined point with the undetermined two points according to the two undetermined points and the undetermined two points confirmed in the dislocation sequence to obtain a class of undetermined line, confirming the central points of the upper tooth area and the lower tooth area from the area image, and connecting the two groups of central points to obtain a class II undetermined line;
s23, performing coincidence analysis on the first class line to be routed and the second class line to be routed, obtaining a coincidence parameter, and marking the obtained coincidence parameter as CH i Wherein i represents different tooth sequences and the coincidence parameter CH i Comparing with a preset parameter Y2, wherein Y2 is a preset value, when CH i When Y2 is less than, generating an adjusting signal, otherwise, not performing any processing;
s24, according to the adjusting signal, taking the second class of to-be-routed lines as a reference, adjusting a to-be-determined point and two to-be-determined points in the first class of to-be-routed lines, and according to the adjusted specific positions, limiting and adjusting teeth in the dislocation sequence;
s3, re-analyzing the adjusted tooth model, layering the tooth model, separating the teeth at the upper end from the teeth at the lower end to obtain an upper-end tooth set and a lower-end tooth set, performing wire analysis on the upper-end tooth set and the lower-end tooth set, and performing self-adaptive adjustment on the tooth model again according to analysis results;
and S4, after the self-adaptive adjustment work of the tooth model is completed, self-adaptively generating 3D printing parameters, performing 3D printing on the tooth model according to the generated 3D printing parameters, and displaying the 3D printing parameters for the self-adaptive adjustment of operators.
Preferably, in step S3, the specific manner of performing the connection analysis on the upper-end tooth set and the lower-end tooth set is as follows:
s31, confirming the center points of different teeth in different tooth sets according to the separated upper tooth set and lower tooth set, constructing a horizontal line by taking the center point of the corresponding tooth as a reference, and drawing the horizontal line in the upper tooth set or the lower tooth set as a horizontal line set;
s32, confirming two groups of horizontal lines with the farthest distance from a certain group of horizontal line sets, determining a distance value, and marking the determined distance value as JL k Where k represents a different set of horizontal lines and k=1 or 2, where k is 1Representing that the horizontal line set is all horizontal lines in the upper tooth set, and when k is 2, representing that the horizontal line set is all horizontal lines in the lower tooth set;
the specific way of carrying out self-adaptive adjustment on the tooth model again is as follows:
s33, the distance value JL k Comparing with a preset parameter Y3, wherein Y3 is a preset value, when JL k When the value is less than Y3, no processing is carried out, otherwise, a readjustment signal is generated;
s34, confirming a tooth set to be regulated according to the readjustment signal, acquiring an overall tooth image, extracting an upper end tooth image and a lower end tooth image from the tooth image, confirming center points of different teeth from the image, regulating the center point of a specified tooth in the tooth set according to the determined center point, and completing self-adaptive regulation of the whole tooth model.
Compared with the prior art, the application has the beneficial effects that: analyzing and confirming upper teeth and lower teeth of a tooth model in advance, confirming whether dislocation exists or not, confirming dislocation sequences in a mode of constructing vertical horizontal lines, confirming the actual positions of the dislocation sequences through tooth images, and carrying out self-adaptive adjustment on the dislocation sequences by acquiring center points of regional images to finish the adjustment work of the upper teeth and the lower teeth;
and then separating the upper teeth and the lower teeth of the tooth model to obtain corresponding tooth sets, acquiring the center points of different teeth from the tooth sets, judging whether the upper and lower distances between the center points of the teeth in the sets are overlarge, and if the conditions exist, adjusting the center points of the different teeth through the confirmed tooth images so as to improve the self-adaptive adjustment effect of the whole tooth model, so that the actual accuracy of the tooth model is higher, the effect of rapid comparison is achieved, and rapid printing is performed.
Detailed Description
The technical solutions of the present application will be clearly and completely described in connection with the embodiments, and it is obvious that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
Referring to fig. 1, the present application provides a 3D printing method for fast comparing a tooth model and a digital model, comprising the following steps:
s1, an operator inputs tooth model construction data, constructs a tooth model according to the input tooth model construction data, analyzes whether dislocation exists in teeth corresponding to the upper and lower sides in a preliminary construction process, and judges whether dislocation signals are generated, wherein the construction method comprises the following specific steps:
s11, performing initial construction on a tooth model according to input construction data, confirming teeth corresponding to the upper and lower sides in the constructed tooth model, sequentially extracting the corresponding teeth, and sequentially drawing the corresponding teeth into tooth sequences, and sequentially drawing the corresponding teeth into a plurality of groups of tooth sequences;
s12, confirming the center point of the upper tooth from the tooth sequence, marking the center point as a to-be-determined point, confirming the center point of the lower tooth, and marking the center point as two to-be-determined points;
s13, constructing a vertical horizontal line of the undetermined point, reconstructing a vertical horizontal line of the undetermined two points, acquiring interval parameters between two groups of vertical horizontal lines, and marking the acquired interval parameters as JJ i Wherein i represents different tooth sequences and the spacing parameter JJ i Comparing with a preset parameter Y1, wherein Y1 is a preset value, the specific value is determined by an operator according to experience, and Y1 is generally 0.3cm, when JJ i If Y1 is not more than or equal to, not performing any treatment, otherwise, generating a dislocation signal, and marking the corresponding tooth sequence as a dislocation sequence;
specifically, in the process of model construction, a small difference exists between the data, so that the model is easy to cause, after the model construction is finished, dislocation situations exist between corresponding teeth, dislocation analysis processing is needed for the dislocation situations, and then analysis and judgment are carried out on the regions, so that whether the dislocation situations exist actually or not is judged, and in the normal model construction process, the dislocation situations generally do not exist;
s2, acquiring a tooth image corresponding to the corresponding tooth model according to the generated dislocation signal, analyzing and comparing the tooth image with the model, judging whether the dislocation situation exists in the corresponding model actually, and adjusting the tooth model according to the analysis result, wherein the specific mode of analyzing and comparing is as follows:
s21, confirming a corresponding dislocation sequence according to the dislocation signal, and confirming a corresponding region image from the tooth image according to the specific position of the dislocation sequence in the tooth model;
s22, analyzing and comparing the area image with the dislocation sequence, connecting the undetermined point with the undetermined two points according to the two undetermined points and the undetermined two points confirmed in the dislocation sequence to obtain a class of undetermined line, confirming the central points of the upper tooth area and the lower tooth area from the area image, and connecting the two groups of central points to obtain a class II undetermined line;
s23, performing coincidence analysis on the first class line to be routed and the second class line to be routed, obtaining a coincidence parameter, and marking the obtained coincidence parameter as CH i Wherein i represents different tooth sequences and the coincidence parameter CH i Comparing with a preset parameter Y2, wherein Y2 is a preset value, the specific value is determined by an operator according to experience, and Y2 is generally 98 percent, when CH i When Y2 is less than, generating an adjusting signal, otherwise, not performing any processing;
s24, according to the adjusting signal, taking the second class of to-be-routed lines as a reference, adjusting a to-be-determined point and two to-be-determined points in the first class of to-be-routed lines, and according to the adjusted specific positions, limiting and adjusting teeth in the dislocation sequence;
specifically, according to the obtained actual image, analyzing and confirming the two kinds of lines to be routed in the actual image, then according to the originally determined one kind of lines to be routed, performing the coincidence degree analysis on the two kinds of lines to be routed and the one kind of lines to be routed, and according to the analysis result, adjusting one point to be routed and two points to be determined, so as to complete the overall adjustment work of the tooth model, and according to the actual image, performing limit adjustment on the tooth model, thereby improving the actual accuracy of the tooth model;
s3, re-analyzing the adjusted tooth model, layering the tooth model, separating the teeth at the upper end from the teeth at the lower end to obtain an upper end tooth set and a lower end tooth set, carrying out connection analysis on the upper end tooth set and the lower end tooth set, and carrying out self-adaptive adjustment on the tooth model again according to an analysis result, wherein the specific mode of carrying out connection analysis is as follows:
s31, confirming the center points of different teeth in different tooth sets according to the separated upper tooth set and lower tooth set, constructing horizontal lines by taking the center point of the corresponding tooth as a reference, and drawing the horizontal lines in the upper tooth set or the lower tooth set as the horizontal line sets, wherein a group of horizontal line sets exist in the upper tooth set, and a group of horizontal line sets also exist in the lower tooth set;
s32, confirming two groups of horizontal lines with the farthest distance from a certain group of horizontal line sets, determining a distance value, and marking the determined distance value as JL k Wherein k represents different horizontal line sets, and k=1 or 2, when k is 1, represents that the horizontal line set is all horizontal lines in the upper tooth set, and when k is 2, represents that the horizontal line set is all horizontal lines in the lower tooth set;
s33, the distance value JL k Comparing with a preset parameter Y3, wherein Y3 is a preset value, the specific value is determined by an operator according to experience, and when JL k When the value is less than Y3, no processing is carried out, otherwise, a readjustment signal is generated;
s34, confirming a tooth set to be regulated according to the readjustment signal, acquiring an overall tooth image, extracting an upper end tooth image and a lower end tooth image from the tooth image, confirming center points of different teeth from the image, regulating the center point of a specified tooth in the tooth set according to the confirmed center point, and completing self-adaptive regulation of the whole tooth model;
specifically, when model analysis is performed, teeth on the upper side and the lower side are separated from the model, corresponding upper-end tooth sets and lower-end tooth sets are confirmed, center points of a plurality of teeth are confirmed in the upper-end tooth sets, in order to obtain the up-down distances among the plurality of center points, a transverse horizontal line belonging to the plurality of center points is constructed, after the horizontal line is constructed, the up-down distance value among the center points can be confirmed through the distance value among the horizontal lines, if the distance value is overlarge, the abnormal condition of the model is represented, teeth among the models are required to be adjusted according to actual images, and the whole model is more closely related to the actual condition;
and S4, after the self-adaptive adjustment work of the tooth model is completed, self-adaptively generating 3D printing parameters, performing 3D printing on the tooth model according to the generated 3D printing parameters, and displaying the 3D printing parameters for an operator to perform self-adaptive adjustment, so that parameter errors are avoided.
The partial data in the formula are all obtained by removing dimension and taking the numerical value for calculation, and the formula is a formula closest to the real situation obtained by simulating a large amount of collected data through software; the preset parameters and the preset threshold values in the formula are set by those skilled in the art according to actual conditions or are obtained through mass data simulation.
The working principle of the application is as follows: analyzing and confirming upper teeth and lower teeth of a tooth model in advance, confirming whether dislocation exists or not, confirming dislocation sequences in a mode of constructing vertical horizontal lines, confirming the actual positions of the dislocation sequences through tooth images, and carrying out self-adaptive adjustment on the dislocation sequences by acquiring center points of regional images to finish the adjustment work of the upper teeth and the lower teeth;
and then separating the upper teeth and the lower teeth of the tooth model to obtain corresponding tooth sets, acquiring the center points of different teeth from the tooth sets, judging whether the upper and lower distances between the center points of the teeth in the sets are overlarge, and if the conditions exist, adjusting the center points of the different teeth through the confirmed tooth images so as to improve the self-adaptive adjustment effect of the whole tooth model, so that the actual accuracy of the tooth model is higher, the effect of rapid comparison is achieved, and rapid printing is performed.
The above embodiments are only for illustrating the technical method of the present application and not for limiting the same, and it should be understood by those skilled in the art that the technical method of the present application may be modified or substituted without departing from the spirit and scope of the technical method of the present application.