Attitude adjustment method and device of abutment model, computer equipment, computer readable storage medium and computer program product
By automatically identifying the base plane and rotation adjustment of the abutment model, combined with the direction vector of the horizontal plane intersection segment, the printing problem caused by the inclination of the abutment model in three-dimensional printing is solved, and the printing quality and efficiency are improved, and cost and human errors are reduced.
Patent Information
- Application Number
- CN202411187842.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-28
- Publication Date
- 2025-01-10
AI Technical Summary
When printing abutment teeth models in three-dimensionally, the tilted model can easily lead to incomplete printing or poor quality, and the prior art requires manual adjustment and high cost.
By obtaining the plane characteristics and curvature characteristics of the base tooth model, the base plane is automatically identified and rotated and adjusted to make it parallel to the preset horizontal plane. Then, the target line segment is used to construct the target line segment, and the secondary rotation is performed based on the direction vector to ensure that the base tooth model is In a vertical posture.
Automatic posture adjustment of the abutment tooth model is realized, time and labor costs are saved, three-dimensional printing quality and efficiency are improved, and human operation errors and losses are reduced.
Smart Images

Figure CN119293879A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method, device, computer equipment, computer-readable storage medium and computer program product for adjusting the posture of an abutment model. Background Art
[0002] With the development of computer technology, three-dimensional printing technology has emerged. Three-dimensional printing technology, also known as 3D printing technology, is a technology that manufactures physical parts by accumulating materials layer by layer based on three-dimensional computer-aided design data (CAD). In three-dimensional printing technology, the placement angle of the model has an important impact on the printing process and the quality of the finished product.
[0003] For example, in the manufacturing scenario of abutment models, if the abutment model imported into the 3D printer is tilted, incomplete printing or printing failure is likely to occur. If the base of the abutment model imported into the 3D printer is located at the top, poor printing quality is likely to occur. Therefore, before starting 3D printing of the abutment model, staff are usually required to manually adjust the placement of the abutment model, which consumes a lot of time and effort. Summary of the invention
[0004] Based on this, it is necessary to provide a method, device, computer equipment, computer-readable storage medium and computer program product for adjusting the posture of an abutment model that can save time and labor costs in order to address the above technical problems.
[0005] In a first aspect, the present application provides a method for adjusting the posture of an abutment model, comprising:
[0006] Obtain abutment models;
[0007] Determining the base plane of the abutment tooth model according to the plane features and curvature features of the abutment tooth model;
[0008] Rotating the abutment tooth model based on the normal vector of the base plane to obtain the abutment tooth model in a first posture, wherein the base plane of the abutment tooth model in the first posture is parallel to a preset horizontal plane;
[0009] constructing a target line segment corresponding to the abutment model in the first posture by using a first horizontal plane and a second horizontal plane intersecting with the abutment model in the first posture;
[0010] The abutment tooth model in the first posture is rotated based on the direction vector of the target line segment to obtain the abutment tooth model in the second posture, and the target line segment corresponding to the abutment tooth model in the second posture is perpendicular to the preset horizontal plane.
[0011] In one embodiment, constructing a target line segment corresponding to the abutment model in the first posture by using a first horizontal plane and a second horizontal plane intersecting the abutment model in the first posture comprises:
[0012] Determine a first polygonal intersection line where the abutment tooth model in the first posture intersects the first horizontal plane, and a second polygonal intersection line where the abutment tooth model intersects the second horizontal plane;
[0013] Determine a first center point located on the first horizontal plane using a first bounding box corresponding to the first polygon intersection line;
[0014] Determine a second center point located on the second horizontal plane using a second bounding box corresponding to the second polygon intersection line;
[0015] The first center point and the second center point are connected to obtain the target line segment.
[0016] In one embodiment, the method further comprises:
[0017] determining a third bounding box corresponding to the abutment model in the first posture;
[0018] Generate a corresponding first plane height and a second plane height according to the coordinate value of the third bounding box on the vertical axis and a preset threshold;
[0019] The first horizontal plane located at the height of the first plane and the second horizontal plane located at the height of the second plane are acquired.
[0020] In one embodiment, generating the corresponding first plane height and second plane height according to the coordinate value of the third bounding box on the vertical axis and a preset threshold comprises:
[0021] Determine a target coordinate value of the third bounding box on the vertical axis;
[0022] Generate the corresponding first plane height using the target coordinate value and a first preset threshold;
[0023] The target coordinate value and the second preset threshold are used to generate the corresponding second plane height.
[0024] In one embodiment, determining the base plane of the abutment model according to the plane features and curvature features of the abutment model includes:
[0025] Identifying each plane in the abutment model and determining the area corresponding to each plane;
[0026] Taking the plane whose area matches the plane feature as a candidate plane, and determining the plane center point of each candidate plane;
[0027] determining an average curvature of each vertex in the abutment model;
[0028] Taking the vertex whose average curvature matches the curvature feature as a reference vertex, and determining the center point of the point set corresponding to the reference vertex;
[0029] The base plane is determined from the candidate planes according to the distance between the plane center point of each candidate plane and the center point of the point set.
[0030] In one embodiment, taking the plane whose area matches the plane feature as a candidate plane and determining the plane center point of each candidate plane includes:
[0031] Determining an area threshold corresponding to the abutment model according to the area of each plane in the abutment model;
[0032] When the area is not less than the area threshold, determining that the area matches the plane feature, and taking the plane corresponding to the area as the candidate plane;
[0033] The center point of each candidate plane is determined by using the centroid point of each triangular facet in each candidate plane.
[0034] In a second aspect, the present application also provides a posture adjustment device for an abutment model, comprising:
[0035] A model acquisition module, used for acquiring abutment models;
[0036] A bottom surface determination module, used to determine the base plane of the abutment tooth model according to the plane features and curvature features of the abutment tooth model;
[0037] A first rotation module, used for rotating the abutment tooth model based on the normal vector of the base plane to obtain the abutment tooth model in a first posture, wherein the base plane of the abutment tooth model in the first posture is parallel to a preset horizontal plane;
[0038] A line segment construction module, configured to construct a target line segment corresponding to the abutment model in the first posture by using a first horizontal plane and a second horizontal plane intersecting with the abutment model in the first posture;
[0039] The second rotation module is used to rotate the abutment model in the first posture based on the direction vector of the target line segment to obtain the abutment model in the second posture, and the target line segment corresponding to the abutment model in the second posture is perpendicular to the preset horizontal plane.
[0040] In a third aspect, the present application further provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the posture adjustment method of the abutment model described in any one of the embodiments of the first aspect is implemented.
[0041] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method for adjusting the posture of an abutment model as described in any one of the embodiments of the first aspect above is implemented.
[0042] In a fifth aspect, the present application further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the method for adjusting the posture of the abutment model described in any one of the embodiments of the first aspect is implemented.
[0043] The above-mentioned method, device, computer equipment, computer-readable storage medium and computer program product for adjusting the posture of the abutment tooth model obtain the abutment tooth model, determine the base plane of the abutment tooth model according to the plane features and curvature features of the abutment tooth model, rotate the abutment tooth model based on the normal vector of the base plane, and obtain the abutment tooth model in a first posture. The base plane of the abutment tooth model can be automatically identified by using the surface features (i.e., plane features and curvature features) unique to the abutment tooth model, and the abutment tooth model is adjusted for the first posture based on the normal vector of the base plane to ensure that the base plane of the abutment tooth model is located at the bottom, which helps to increase the stability of the subsequent abutment tooth model in three-dimensional printing. By constructing a target line segment using a first horizontal plane and a second horizontal plane intersecting the abutment tooth model in a first posture, the abutment tooth model in the first posture is rotated based on a direction vector of the target line segment to obtain the abutment tooth model in a second posture. The direction vector of the target line segment between horizontal planes of the abutment tooth model at different heights can be used to quantify the overall placement direction of the abutment tooth model, and the abutment tooth model is rotated secondary based on the direction vector to ensure that the overall posture of the abutment tooth model is in a vertical state, thereby improving the printing quality of the subsequent abutment tooth model in three-dimensional printing. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0045] FIG1 is a schematic flow chart of a method for adjusting the posture of an abutment tooth model in one embodiment;
[0046] FIG2 is a schematic flow chart of a target line segment construction step in one embodiment;
[0047] Figure 3 A schematic flow chart of a horizontal plane determination step in one embodiment;
[0048] Figure 4 A schematic diagram of a flow chart of a plane height determination step in one embodiment;
[0049] Figure 5 A schematic flow chart of a base plane determination step in one embodiment;
[0050] Figure 6 A schematic diagram of a flow chart of a step of determining a plane center point in one embodiment;
[0051] Figure 7 is a schematic flow chart of a method for adjusting the posture of an abutment tooth model in another embodiment;
[0052] Fig. 8A is a schematic diagram of an unadjusted abutment model in one embodiment;
[0053] Figure 8B is a schematic diagram of an abutment tooth model in a second posture in one embodiment;
[0054] Fig.9A is a schematic diagram of an unadjusted abutment model in another embodiment;
[0055] Fig. 9B is a schematic diagram of an abutment tooth model in a second posture in another embodiment;
[0056] Fig.10 is a schematic diagram of a plurality of abutment tooth models in a second posture in another embodiment;
[0057] Fig.11 is a structural block diagram of a posture adjustment device 1100 for an abutment model in one embodiment;
[0058] Fig.12 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0059] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0060] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0061] In one embodiment, as shown in FIG1 , a method for adjusting the posture of an abutment model is provided. This embodiment is illustrated by applying the method to a terminal. It is understandable that the method can also be applied to a server, and can also be applied to a system including a terminal and a server, and can be implemented through the interaction between the terminal and the server. The terminal can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, etc. The server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud computing services.
[0062] In this embodiment, the method includes the following steps S102 to S110. Among them:
[0063] Step S102, obtaining abutment model.
[0064] The abutment model may be a three-dimensional model.
[0065] For example, the terminal can read the abutment model that needs to be adjusted from a local database, the Internet, or an image acquisition device. Alternatively, the terminal can also receive the abutment model uploaded by the user through the input control of the client.
[0066] Step S104: determining the base plane of the abutment model according to the plane features and curvature features of the abutment model.
[0067] The plane feature can be used to characterize the features of the base plane of the abutment model.
[0068] The curvature feature can be used to characterize the curvature value of the vertex in the abutment model that meets the preset conditions from the base plane.
[0069] The base plane can be used to represent the plane on which the base of the abutment model lies.
[0070] Exemplarily, the terminal may process each vertex in the abutment model using a curvature calculation algorithm to obtain the curvature of each vertex. A target vertex whose curvature matches the curvature feature is determined from each vertex of the abutment model. A plane search algorithm is used to process the abutment model to determine each plane of the abutment model. A target plane matching the plane feature is determined from each plane of the abutment model. The target plane whose distance from the target vertex meets a preset condition is used as the base plane of the abutment model.
[0071] Step S106: rotating the abutment model based on the normal vector of the base plane to obtain the abutment model in a first posture.
[0072] Wherein, the base plane of the abutment tooth model in the first posture is parallel to the preset horizontal plane.
[0073] The preset horizontal plane can be used to represent the XOY plane in the three-dimensional space where the abutment model is located.
[0074] Exemplarily, the terminal can determine the normal vector of the base plane according to the vertex information of the triangular facet in the base plane. The abutment model is rotated with the horizontal axis (X axis) and the vertical axis (Y axis) as the rotation axis, so that the normal vector of the base plane after the rotation of the abutment model is perpendicular to the horizontal axis (X axis) and the vertical axis (Y axis), and points to the positive direction of the vertical axis (Z axis). At this time, the rotated abutment model is the abutment model in the first posture.
[0075] Step S108: constructing a target line segment corresponding to the abutment model in the first posture by using the first horizontal plane and the second horizontal plane intersecting the abutment model in the first posture.
[0076] The first horizontal plane and the second horizontal plane can be used to represent horizontal planes in the three-dimensional space where the abutment model is located, which are parallel to the preset horizontal plane (XOY plane) and located at different heights.
[0077] The orientation of the target line segment can be used to represent the orientation of the entire abutment model.
[0078] Exemplarily, the terminal can obtain the first horizontal plane and the second horizontal plane intersecting with the abutment model in the first posture according to the height of the abutment model in the first posture in the three-dimensional space. The center of the intersection area between the abutment model in the first posture and the first horizontal plane and the center of the intersection area between the abutment model in the first posture and the second horizontal plane are determined respectively. The centers of the intersection areas on the first horizontal plane and the second horizontal plane are connected to obtain the target line segment.
[0079] Step S110: rotating the abutment tooth model in the first posture based on the direction vector of the target line segment to obtain the abutment tooth model in the second posture.
[0080] The target line segment corresponding to the abutment model in the second posture is perpendicular to the preset horizontal plane.
[0081] Exemplarily, the terminal can obtain the direction vector of the target line segment. According to the angle between the direction vector and the preset horizontal plane, the abutment model in the first posture is rotated so that the direction vector of the rotated target line segment is parallel to the normal vector of the preset horizontal plane. At this time, the rotated abutment model is the abutment model in the second posture. The abutment model in the second posture is in a vertical state as a whole in the three-dimensional space, that is, the abutment model in the second posture is parallel to the vertical axis (Z axis) direction in the three-dimensional space, and the base plane of the abutment model is located below, so that the abutment model in the second posture can achieve higher surface quality in three-dimensional printing.
[0082] In the above-mentioned posture adjustment method of the abutment model, by obtaining the abutment model, according to the plane features and curvature features of the abutment model, the base plane of the abutment model is determined, and the abutment model is rotated based on the normal vector of the base plane to obtain the abutment model in the first posture. The base plane of the abutment model can be automatically identified by using the surface features (i.e., plane features and curvature features) unique to the abutment model, and the abutment model is firstly posture-adjusted based on the normal vector of the base plane to ensure that the base plane of the abutment model is located below, which is helpful to increase the stability of the subsequent abutment model in three-dimensional printing. By constructing a target line segment using the first horizontal plane and the second horizontal plane intersecting with the abutment model in the first posture, the abutment model in the first posture is rotated based on the direction vector of the target line segment to obtain the abutment model in the second posture, the overall placement direction of the abutment model can be quantified by using the direction vector of the target line segment between the horizontal planes of the abutment model at different heights, and the abutment model is rotated for the second time based on the direction vector to ensure that the overall posture of the abutment model is in a vertical state, thereby improving the printing quality of the subsequent abutment model in three-dimensional printing.
[0083] In addition, compared with the method in the prior art that requires manual adjustment of the posture of the abutment model, the above-mentioned posture adjustment method of the abutment model realizes automatic rotation adjustment of the abutment model through a computer program, which can greatly save the posture adjustment time of the abutment model and reduce the labor cost of adjusting the abutment model, which helps the manufacturers of the abutment model to quickly and accurately complete the posture adjustment of the abutment model, thereby greatly improving the efficiency and quality of the production of the abutment model products. At the same time, due to the high degree of automation of the above-mentioned posture adjustment method of the abutment model, it can also reduce human operation errors and losses in the subsequent three-dimensional printing process of the abutment model, thereby further reducing costs and improving production efficiency.
[0084] In an exemplary embodiment, as shown in FIG2 , the above step S108 may further include the following steps S202 to S208 . Among them:
[0085] Step S202: determining first polygonal intersection lines where the abutment tooth model in the first posture intersects the first horizontal plane, and second polygonal intersection lines where the abutment tooth model intersects the second horizontal plane.
[0086] The polygonal intersection line may represent a polygonal line obtained by respectively intersecting the outer surface of the abutment tooth model with the first horizontal plane and the second horizontal plane.
[0087] For example, the terminal can determine the pixel points on the outer surface of the abutment tooth model at the same vertical axis (Z axis) height as the first horizontal plane according to the vertical axis (Z axis) height where the first horizontal plane is located, and sequentially connect the pixel points to obtain the first polygonal intersection line between the abutment tooth model and the first horizontal plane. Similarly, the second polygonal intersection line between the abutment tooth model and the second horizontal plane can be sequentially connected according to the pixel points on the outer surface of the abutment tooth model at the same vertical axis (Z axis) height as the second horizontal plane.
[0088] Step S204: using the first bounding box corresponding to the first polygon intersection line, determine a first center point located on the first horizontal plane.
[0089] Step S206: using the second bounding box corresponding to the second polygon intersection line, determine a second center point located on the second horizontal plane.
[0090] Step S208, connecting the first center point and the second center point to obtain a target line segment.
[0091] The first bounding box can be used to represent a geometric figure that is slightly larger than the first polygon intersection line and has simpler geometric characteristics, so as to approximately replace the complex first polygon intersection line. The first center point can be used to represent the center point of the first bounding box.
[0092] Similarly, the second bounding box can be used to represent a geometric figure that is slightly larger than the second polygon intersection line and has simpler geometric characteristics, so as to approximately replace the complex second polygon intersection line. The second center point can be used to represent the center point of the second bounding box.
[0093] Exemplarily, the terminal may use a bounding box calculation algorithm to process the first polygonal intersection of the abutment model and the first horizontal plane to obtain a corresponding first bounding box. The pixel coordinates of the first bounding box are processed using the mean method to obtain the center point of the first bounding box, that is, the first center point. Similarly, the terminal may also refer to the above-mentioned method for determining the first center point and use the second bounding box corresponding to the second polygonal intersection to determine the second center point located on the second horizontal plane. The first center point and the second center point are connected to obtain the target line segment corresponding to the abutment model in the first posture.
[0094] In this embodiment, by determining the polygonal intersection line of the abutment tooth model in the first posture and the intersecting first horizontal plane and second horizontal plane, a simple bounding box is used to approximate the complex polygonal intersection line to participate in the calculation, and the center points of the bounding boxes are connected to form a target line segment. This can simplify the calculation difficulty of the target line segment and reduce the calculation cost of the target line segment, thereby helping to improve the calculation efficiency of the target line segment.
[0095] In an exemplary embodiment, Figure 3 As shown, a schematic flow chart of the horizontal plane determination step is also provided, including the following steps S302 to S306. Among them:
[0096] Step S302: determining a third bounding box corresponding to the abutment model in the first posture.
[0097] Exemplarily, the terminal may use a bounding box calculation algorithm, such as an axis-aligned bounding box algorithm, a bounding sphere algorithm, a directed bounding box algorithm, or a fixed-direction convex hull algorithm, etc. The bounding box algorithm is used to perform computational processing on the abutment model currently in the first posture, and a third bounding box corresponding to the abutment model in the first posture may be generated.
[0098] Step S304 : generating a corresponding first plane height and a second plane height according to the coordinate value of the third bounding box on the vertical axis and a preset threshold.
[0099] Exemplarily, the terminal may obtain the coordinate value of the first bounding box on the vertical axis (Z axis). The coordinate value and the preset threshold are used for calculation processing, for example, addition or subtraction, to generate the corresponding first plane height and second plane height. The first plane height and the second plane height will not be higher than the maximum coordinate value of the abutment model in the first posture on the vertical axis (Z axis).
[0100] Step S306, acquiring a first horizontal plane located at the height of the first plane, and a second horizontal plane located at the height of the second plane.
[0101] Exemplarily, the terminal may move the preset horizontal plane (XOY plane) upward by a distance equal to the height of the first plane to obtain the first horizontal plane, and move the preset horizontal plane (XOY plane) upward by a distance equal to the height of the second plane to obtain the second horizontal plane.
[0102] In this embodiment, a simple third bounding box is used to replace the complex abutment model to obtain the coordinate value on the vertical axis, and the corresponding plane height is calculated using the coordinate value and a preset threshold to obtain the first horizontal plane and the second horizontal plane. This can simplify the difficulty of obtaining the horizontal plane, thereby improving the efficiency of obtaining the first horizontal plane and the second horizontal plane.
[0103] In an exemplary embodiment, Figure 4 As shown, the above step S304 may also include the following steps S402 to S406. Among them:
[0104] Step S402: determine the target coordinate value of the third bounding box on the vertical axis.
[0105] Step S404: Generate a corresponding first plane height using the target coordinate value and a first preset threshold.
[0106] Step S406: Generate a corresponding second plane height using the target coordinate value and the second preset threshold.
[0107] Exemplarily, the terminal may use the minimum coordinate value of the third bounding box corresponding to the abutment model in the first posture on the vertical axis as the target coordinate value. The target coordinate value and the first preset threshold are added to obtain the corresponding first plane height. The target coordinate value and the second preset threshold are added to obtain the corresponding second plane height.
[0108] Optionally, in some implementations, the first preset threshold and the second preset threshold only need to satisfy a preset distance difference between the first plane height and the second plane height.
[0109] Optionally, in some embodiments, it is found through multiple experiments that when the first preset threshold and the second preset threshold are set too large, it is easy to cause errors in the subsequent posture adjustment of the abutment model. When the first preset threshold is 1 and the second preset threshold is 2, the obtained first plane height and second plane height can keep the subsequent posture adjustment effect of the abutment model stable.
[0110] In this embodiment, by using the minimum value of the third bounding box on the vertical axis as the target coordinate value, the corresponding first plane height and second plane height are calculated with the first preset threshold and the second preset threshold respectively, so that the first horizontal plane located at the first plane height and the second horizontal plane located at the second plane height will not be too high, thereby helping to improve the stability and accuracy of subsequent posture adjustment of the abutment model using the first horizontal plane and the second horizontal plane.
[0111] In an exemplary embodiment, Figure 5 As shown, the above step S104 may also include the following steps S502 to S510. Among them:
[0112] Step S502, identifying each plane in the abutment model and determining the area corresponding to each plane.
[0113] The plane can be used to represent a two-dimensional plane on the outer surface of the abutment model. The plane can be composed of adjacent triangular facets with a very small angle on the outer surface of the abutment model. A triangular facet is a two-dimensional geometric figure composed of three vertices and three edges. A triangular facet is the basic unit that constitutes the abutment model.
[0114] For example, the terminal can extract vertex information of each triangular facet from the abutment model. A plane search algorithm is used to process each triangular facet, and adjacent triangular facets with a very small angle are used as triangular facets on the same plane, thereby obtaining each plane composed of triangular facets on the same plane. The area of each plane is calculated using the triangular facets in each plane.
[0115] Step S504: taking the planes whose areas match the plane features as candidate planes, and determining the plane center point of each candidate plane.
[0116] The plane feature can be used to characterize the area of the base plane of the abutment model.
[0117] For example, the terminal can match the area of each plane with the plane feature, and use the plane whose area in the abutment model matches the plane feature as a candidate plane. The center point of each candidate plane is calculated using the vertex information of each triangular facet in each candidate plane.
[0118] Step S506, determining the average curvature of each vertex in the abutment model.
[0119] Step S508: taking the vertex whose average curvature matches the curvature feature as a reference vertex, and determining the center point of the point set corresponding to the reference vertex.
[0120] The vertices may be used to represent the vertices of each triangular facet on the outer surface of the abutment model.
[0121] The mean curvature can be used as a geometric quantity to represent the degree of curvature of the abutment model at the vertex.
[0122] The curvature feature may be used to characterize a feature whose average curvature is greater than a preset curvature threshold (eg, 1).
[0123] Exemplarily, the terminal can use the vertex information of each triangular face to calculate the average curvature at each vertex. Compare the average curvature of each vertex with a preset curvature threshold, and use the vertex with an average curvature greater than the preset curvature threshold as a reference vertex. Use the reference vertex to construct a corresponding point set, and use the mean method to calculate the coordinates of each reference vertex in the point set, so as to determine the center point of the point set corresponding to the reference vertex.
[0124] Step S510: determining the base plane from the candidate planes according to the distance between the center point of each candidate plane and the center point of the point set.
[0125] Exemplarily, the terminal may calculate the distance between the center point of each candidate plane and the center point of the point set, and use the candidate plane whose distance is greater than a preset distance threshold as the base plane. Alternatively, the distances between each candidate plane and the center point of the point set are compared, and the candidate plane with the largest distance is used as the base plane.
[0126] In this embodiment, the candidate plane is determined by matching the area of each plane in the abutment tooth model with the plane feature, the reference vertex is determined by matching the average curvature of each vertex in the abutment tooth model with the curvature feature, and the base plane is determined by the distance from the center point of the point set of the reference vertex to the candidate plane. Based on the unique surface features of the abutment tooth model, the base plane can be automatically identified, thereby improving the accuracy of the base plane determination.
[0127] In an exemplary embodiment, Figure 6 As shown, the above step S504 may also include the following steps S602 to S606. Among them:
[0128] Step S602: determining an area threshold corresponding to the abutment model according to the area of each plane in the abutment model.
[0129] For example, the terminal can compare the areas of various planes in the abutment model to determine the largest area of each plane, and calculate the area threshold corresponding to the abutment model using the largest area and a preset area ratio (eg, one tenth).
[0130] Step S604: when the area is not less than the area threshold, it is determined that the area matches the plane feature, and the plane corresponding to the area is taken as a candidate plane.
[0131] Step S606: using the centroid points of the triangular facets in each candidate plane, determine the plane center point of each candidate plane.
[0132] Exemplarily, the terminal may compare the area of each plane with the area threshold obtained in step S602. A plane whose area is not less than the area threshold is used as a candidate plane that matches the plane feature. The vertex information of each triangular facet in the candidate plane is used to calculate the centroid position of each triangular facet in the same candidate plane. The centroid position of each triangular facet in the same candidate plane is processed by the mean method to obtain the center position of the candidate plane. The pixel point at the center position is used as the plane center point of the candidate plane.
[0133] In this embodiment, by using a plane with an area not less than an area threshold as a candidate plane that matches the plane feature, and using the centroid points of each triangular facet in the candidate plane to calculate the center point of the plane, the calculation accuracy of the center point of the plane can be improved, thereby helping to improve the accuracy of subsequent determination of the base plane based on the candidate plane.
[0134] In an exemplary embodiment, Figure 7 As shown, a method for adjusting the posture of an abutment model is provided, comprising the following steps S702 to S718. Among them:
[0135] Step S702, obtaining abutment model.
[0136] Step S704: planes in the abutment model whose area is not less than one tenth of the maximum plane area are selected as candidate planes, and the plane center point of each candidate plane is determined.
[0137] For example, the terminal may store a plane feature whose area of the base plane is not less than one tenth of the maximum plane area. The plane feature may be used to match the corresponding candidate plane from the abutment model. The center point of each candidate plane is determined by using the centroid of the triangular facets in each candidate plane.
[0138] Step S706: taking the vertices in the abutment model whose average curvature is greater than one as reference vertices, and determining the center point of the point set corresponding to the reference vertex.
[0139] Exemplarily, the terminal may store a curvature feature with an average curvature greater than 1. The curvature feature may be used to match the corresponding reference vertex from the abutment model. The reference vertex is used to construct a point set, and the mean value method is used to calculate the center point of the point set.
[0140] Step S708: The candidate plane where the center point of the plane farthest from the center point of the point set is located is used as the base plane of the abutment model.
[0141] Step S710: rotating the abutment model based on the normal vector of the base plane to obtain the abutment model in a first posture.
[0142] Exemplarily, the terminal can rotate about the horizontal axis (X-axis) and the vertical axis (Y-axis) based on the normal vector of the base plane, so that the normal vector of the rotated base plane is perpendicular to the preset horizontal plane (XOY plane), that is, the rotated base plane is parallel to the preset horizontal plane, thereby obtaining a base tooth model in a first posture.
[0143] Step S712: using the minimum coordinate value of the third bounding box of the abutment model in the first posture on the vertical axis, adding it to the first preset threshold to obtain the first plane height, and adding it to the second preset threshold to obtain the second plane height.
[0144] Exemplarily, the terminal may recalculate the third bounding box of the abutment model in the first posture. When the first preset threshold is 1 and the second preset threshold is 2, the minimum coordinate value (z_min) of the third bounding box on the vertical axis may be used to calculate the first plane height as z_min+1 and the second plane height as z_min+2.
[0145] Step S714, determining the first polygonal intersection lines of the abutment model in the first posture with the first horizontal plane at the first plane height, and the second polygonal intersection lines of the abutment model in the first posture with the second horizontal plane at the second plane height.
[0146] Exemplarily, the terminal may calculate the first polygonal intersection line of the abutment model in the first posture intersecting with the first horizontal plane (eg, z=z_min+1), and the second polygonal intersection line intersecting with the second horizontal plane (eg, z=z_min+2).
[0147] Step S716, connecting the first center point corresponding to the intersection line of the first polygon and the second center point corresponding to the intersection line of the second polygon to construct a target line segment.
[0148] Step S718: rotating the abutment tooth model in the first posture based on the direction vector of the target line segment to obtain the abutment tooth model in the second posture.
[0149] Exemplarily, the terminal can construct a first bounding box of the first polygonal intersection on a first horizontal plane, calculate the center point of the first bounding box, and obtain a first center point. Construct a second bounding box of the second polygonal intersection on a second horizontal plane, calculate the center point of the second bounding box, and obtain a second center point. Connect the first center point and the second center point to construct a target line segment. Rotate the abutment model in the first posture according to the angle between the direction vector of the target line segment and the vertical axis (Z axis) so that the target line segment of the rotated abutment model is perpendicular to the preset horizontal plane (XOY plane), and obtain the abutment model in the second posture.
[0150] Optionally, in some embodiments, Fig. 8A As shown in FIG. 1 , a schematic diagram of a base tooth model is provided. The posture adjustment method of the base tooth model provided in this embodiment is used to adjust the base tooth model. Fig. 8A By processing the abutment model in Figure 8B The base plane is shown at the bottom and the abutment tooth model is in a vertical state as a whole.
[0151] Alternatively, in other embodiments, Fig.9A As shown in FIG. 1 , another schematic diagram of abutment tooth model is provided. Fig.9A By processing the abutment model in Fig. 9B The base plane is shown at the bottom and the abutment tooth model is in a vertical state as a whole.
[0152] Optionally, in other implementations, the posture adjustment method of the abutment model provided in this embodiment can also be applied to the posture adjustment scenario of batch abutment models to output the following: Fig.10 The abutment tooth model shown has multiple base planes located at the bottom and the abutment tooth model is in a vertical state as a whole.
[0153] In this embodiment, by using a computer program to automatically rotate the abutment model, the abutment model is in a vertical state as a whole, and the abutment base is located at the bottom, which helps the abutment model to achieve higher surface quality in three-dimensional printing and saves time and labor costs for manually adjusting the posture of the abutment model. At the same time, since the posture adjustment method of the abutment model provided in this embodiment has a high degree of automation, it can also reduce human errors and losses in the manufacturing process, helping the manufacturer of the abutment model to quickly and accurately optimize the abutment model, thereby greatly improving the efficiency and quality of the production of abutment model products and reducing manufacturing costs.
[0154] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0155] Based on the same inventive concept, the embodiment of the present application also provides a posture adjustment device for abutment tooth model for implementing the posture adjustment method of abutment tooth model involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the embodiments of the posture adjustment device for one or more abutment tooth models provided below can refer to the limitations of the posture adjustment method for abutment tooth model above, and will not be repeated here.
[0156] In an exemplary embodiment, Fig.11 As shown, a posture adjustment device 1100 for abutment model is provided, comprising: a model acquisition module 1102, a bottom surface determination module 1104, a first rotation module 1106, a line segment construction module 1108, and a second rotation module 1110, wherein:
[0157] The model acquisition module 1102 is used to acquire the abutment model.
[0158] The bottom surface determination module 1104 is used to determine the base plane of the abutment model according to the plane features and curvature features of the abutment model.
[0159] The first rotation module 1106 is used to rotate the abutment model based on the normal vector of the base plane to obtain the abutment model in a first posture, and the base plane of the abutment model in the first posture is parallel to the preset horizontal plane.
[0160] The line segment construction module 1108 is used to construct a target line segment corresponding to the abutment model in the first posture by using a first horizontal plane and a second horizontal plane intersecting the abutment model in the first posture.
[0161] The second rotation module 1110 is used to rotate the abutment model in the first posture based on the direction vector of the target line segment to obtain the abutment model in the second posture, and the target line segment corresponding to the abutment model in the second posture is perpendicular to the preset horizontal plane.
[0162] In an exemplary embodiment, the line segment construction module 1108 includes: an intersection line determination unit, which is used to determine the first polygonal intersection line of the abutment tooth model in the first posture that intersects with the first horizontal plane, and the second polygonal intersection line that intersects with the second horizontal plane; a center point determination unit, which is used to determine the first center point located on the first horizontal plane using the first bounding box corresponding to the first polygonal intersection line; and determine the second center point located on the second horizontal plane using the second bounding box corresponding to the second polygonal intersection line; and a center point connection unit, which is used to connect the first center point and the second center point to obtain a target line segment.
[0163] In an exemplary embodiment, the posture adjustment device 1100 of the abutment model may also include a horizontal plane determination module, including: a bounding box determination unit, used to determine a third bounding box corresponding to the abutment model in the first posture; a height determination unit, used to generate the corresponding first plane height and second plane height according to the coordinate value of the third bounding box on the vertical axis and a preset threshold; a horizontal plane determination unit, used to obtain a first horizontal plane located at the first plane height, and a second horizontal plane located at the second plane height.
[0164] In an exemplary embodiment, the height determination unit is also used to determine the target coordinate value of the third bounding box on the vertical axis; generate the corresponding first plane height using the target coordinate value and the first preset threshold; and generate the corresponding second plane height using the target coordinate value and the second preset threshold.
[0165] In an exemplary embodiment, the bottom surface determination module 1104 includes: an area determination unit, which is used to identify each plane in the abutment model and determine the area corresponding to each plane; a plane matching unit, which is used to take the plane whose area matches the plane feature as a candidate plane and determine the plane center point of each candidate plane; a curvature determination unit, which is used to determine the average curvature of each vertex in the abutment model; a vertex matching unit, which is used to take the vertex whose average curvature matches the curvature feature as a reference vertex and determine the center point of the point set corresponding to the reference vertex; a bottom surface determination unit, which is used to determine the base plane from the candidate planes according to the distance between the plane center point of each candidate plane and the center point of the point set.
[0166] In an exemplary embodiment, the plane matching unit is further used to: determine an area threshold corresponding to the abutment model based on the area of each plane in the abutment model; when the area is not less than the area threshold, determine that the area matches the plane feature, and use the plane corresponding to the area as a candidate plane; and use the centroid point of each triangular facet in each candidate plane to determine the plane center point of each candidate plane.
[0167] Each module in the above-mentioned device 1100 for adjusting the posture of the abutment model can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.
[0168] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Fig.12As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be realized through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a posture adjustment method of a base tooth model is realized. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0169] Those skilled in the art will understand that Fig.12 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0170] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.
[0171] In an exemplary embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0172] In an exemplary embodiment, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps in the above method embodiments are implemented.
[0173] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0174] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0175] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for adjusting the posture of an abutment model, characterized in that: The method comprises: Obtain abutment models; Determining the base plane of the abutment tooth model according to the plane features and curvature features of the abutment tooth model; Rotating the abutment tooth model based on the normal vector of the base plane to obtain the abutment tooth model in a first posture, wherein the base plane of the abutment tooth model in the first posture is parallel to a preset horizontal plane; constructing a target line segment corresponding to the abutment model in the first posture by using a first horizontal plane and a second horizontal plane intersecting with the abutment model in the first posture; The abutment tooth model in the first posture is rotated based on the direction vector of the target line segment to obtain the abutment tooth model in the second posture, and the target line segment corresponding to the abutment tooth model in the second posture is perpendicular to the preset horizontal plane.
2. The method according to claim 1, characterized in that The step of constructing a target line segment corresponding to the abutment model in the first posture by using a first horizontal plane and a second horizontal plane intersecting the abutment model in the first posture comprises: Determine a first polygonal intersection line where the abutment tooth model in the first posture intersects the first horizontal plane, and a second polygonal intersection line where the abutment tooth model intersects the second horizontal plane; Determine a first center point located on the first horizontal plane using a first bounding box corresponding to the first polygon intersection line; Determine a second center point located on the second horizontal plane using a second bounding box corresponding to the second polygon intersection line; The first center point and the second center point are connected to obtain the target line segment.
3. The method according to claim 1, characterized in that: The method further comprises: determining a third bounding box corresponding to the abutment model in the first posture; Generate a corresponding first plane height and a second plane height according to the coordinate value of the third bounding box on the vertical axis and a preset threshold; The first horizontal plane located at the height of the first plane and the second horizontal plane located at the height of the second plane are acquired.
4. The method according to claim 3, characterized in that The generating the corresponding first plane height and second plane height according to the coordinate value of the third bounding box on the vertical axis and a preset threshold value includes: Determine a target coordinate value of the third bounding box on the vertical axis; Generate the corresponding first plane height using the target coordinate value and a first preset threshold; The target coordinate value and the second preset threshold are used to generate the corresponding second plane height.
5. The method according to claim 1, characterized in that Determining the base plane of the abutment tooth model according to the plane features and curvature features of the abutment tooth model includes: Identifying each plane in the abutment model and determining the area corresponding to each plane; Taking the plane whose area matches the plane feature as a candidate plane, and determining the plane center point of each candidate plane; determining an average curvature of each vertex in the abutment model; Taking the vertex whose average curvature matches the curvature feature as a reference vertex, and determining the center point of the point set corresponding to the reference vertex; The base plane is determined from the candidate planes according to the distance between the plane center point of each candidate plane and the center point of the point set.
6. The method according to claim 5, characterized in that The step of taking the plane whose area matches the plane feature as a candidate plane and determining the plane center point of each candidate plane includes: Determining an area threshold corresponding to the abutment model according to the area of each plane in the abutment model; When the area is not less than the area threshold, determining that the area matches the plane feature, and taking the plane corresponding to the area as the candidate plane; The center point of each candidate plane is determined by using the centroid point of each triangular facet in each candidate plane.
7. A posture adjustment device for abutment models, characterized in that: The device comprises: A model acquisition module, used for acquiring abutment models; A bottom surface determination module, used to determine the base plane of the abutment tooth model according to the plane features and curvature features of the abutment tooth model; A first rotation module, used for rotating the abutment tooth model based on the normal vector of the base plane to obtain the abutment tooth model in a first posture, wherein the base plane of the abutment tooth model in the first posture is parallel to a preset horizontal plane; A line segment construction module, configured to construct a target line segment corresponding to the abutment model in the first posture by using a first horizontal plane and a second horizontal plane intersecting with the abutment model in the first posture; The second rotation module is used to rotate the abutment model in the first posture based on the direction vector of the target line segment to obtain the abutment model in the second posture, and the target line segment corresponding to the abutment model in the second posture is perpendicular to the preset horizontal plane.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Cited By
Customized hearing aid three-dimensional model position alignment method based on multi-feature fusion
CN119850693A