Method, device and application for filling undercut area of three-dimensional tooth model
By calculating the vertex normal and projection direction of the three-dimensional tooth model, a triangular patch in the undercut area is generated and filled into the original model. This solves the problem of low filling efficiency and insufficient accuracy in the undercut area of the three-dimensional tooth model, and realizes the design of dental braces. Stable to wear.
Patent Information
- Application Number
- CN202210434011.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-24
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2042-04-24
AI Technical Summary
The existing technology is inefficient and inaccurate in filling the undercut areas of the three-dimensional tooth model, which may cause the braces to get stuck or not suitable for wearing during production.
By obtaining the original tooth model composed of triangular patches, calculating the vertex normal, selecting the projection direction and casting light along the projection direction to find the contour points and boundary points, generating triangular patches in the undercut area, and filling them into the original model , generate the target tooth model.
It achieves rapid filling and high-precision reconstruction of the undercut area of the three-dimensional tooth model, ensuring the appropriate wearing and stability of the braces.
Smart Images

Figure CN114663637B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer application technology, and in particular to a method, device and application for filling an undercut area of a three-dimensional tooth model. Background Art
[0002] Computer-aided methods are widely used in stomatology. The construction of 3D data models helps people understand and master the appearance and internal structure of teeth. In addition, the popularity of oral 3D scanners makes the establishment of 3D tooth models more convenient. Based on the above two reasons, 3D tooth models are widely used in oral medicine and orthodontics, and play an important role in various fields of stomatology such as oral restoration, orthodontics, oral medicine, oral surgery, etc.
[0003] Due to the special characteristics of tooth morphology, the crown is generally wider than the root, forming a shape that is wide at the top and narrow at the bottom. If the braces are made directly according to the 3D model, the patient may get stuck on the teeth and cannot be removed smoothly. Therefore, before using the 3D tooth model for production, it is usually necessary to mark the areas where the braces are easily stuck and fill them. Traditional filling methods mostly use manual filling, which is not only inefficient but also has low accuracy.
[0004] Of course, in order to solve the problem of how to automatically fill the undercut area, the prior art CN108961398A provides an automatic filling algorithm for tooth undercut mesh model based on normal vector angle. The scheme obtains the normal vector and the standard upward direction vector and lateral direction vector of each single tooth, and determines the undercut area according to the angle between the normal vector and the standard upward direction vector and lateral direction vector, so as to realize automatic filling of the undercut. Although the scheme is simple to implement, the accuracy is low when determining the undercut area by angle, so the model reconstruction effect is not good.
[0005] Based on this, there is currently no effective solution to the problems of inefficiency and low filling accuracy in the undercut areas of three-dimensional tooth models. Summary of the invention
[0006] The embodiment of the present application provides a method, device and application for filling undercut areas of a three-dimensional tooth model. For an existing three-dimensional tooth model, the present solution can determine whether a vertex is a boundary area based on whether the cosine distance between the user-specified orientation and the vertex normal is equal to 0, thereby finding a set of vertices located on the contour line, and then performing ray projection with the points in the vertex set as the starting point, further obtaining the intersection with the model, and then performing triangulation reconstruction to reconstruct the undercut area after obtaining all the points, and filling it into the original model to generate a target model. The present application can achieve fast filling and high precision of the undercut area to be filled.
[0007] In a first aspect, an embodiment of the present application provides a method for filling undercut areas of a three-dimensional tooth model, the method comprising: obtaining an original tooth model composed of a plurality of triangular facets; calculating the vertex normals of all triangular facets; selecting a projection direction of the original tooth model, and extracting vertices whose vertex normals are perpendicular to the projection direction as projection contour points; collecting intersection points of light rays projected along the projection direction starting from the projection contour points and the original tooth model as model boundary points; obtaining vertices closest to the projection contour points and the model boundary points as boundary vertices; generating triangular facets of undercut areas based on the projection contour points, the model boundary points and the boundary vertices; and filling the original tooth model with the triangular facets of the undercut areas to obtain a target tooth model.
[0008] In some embodiments, "obtaining an original tooth model composed of a plurality of triangular facets" includes: obtaining a three-dimensional tooth model, triangulating each facet of the three-dimensional tooth model, and obtaining an original tooth model composed of triangular facets.
[0009] In some embodiments, "calculating the vertex normals of all triangles" includes: for each vertex of a triangle, accumulating the product of the area vectors of all triangles sharing the vertex and the corresponding area ratio of the triangles; and using the accumulated sum of the products as the vertex normal of the vertex.
[0010] In some embodiments, "extracting vertices whose vertex normals are perpendicular to the projection direction as projection contour points" includes: performing dot product of the vertex normal of each vertex and the projection direction to calculate the dot product value; extracting the vertices corresponding to the vertex normals whose dot product value is 0 as projection contour points.
[0011] In some of the embodiments, "generating a triangular patch of an undercut area based on projected contour points, model boundary points and boundary vertices" includes: taking the point with the smallest sum of absolute values of coordinates among the projected contour points, model boundary points and boundary vertices as the starting point, and other points as candidate points, selecting a selected point closest to the starting point from the candidate points, generating a starting edge with the selected point and the starting point, selecting an adjacent point closest to the starting edge except the selected point from the candidate points, and forming a triangular patch of an undercut area with the starting point, the selected point and the adjacent points.
[0012] In some of the embodiments, "filling the original tooth model with triangular facets in the undercut area to obtain a target tooth model" includes: obtaining the overlapping area between the triangular facets in the undercut area and the original tooth model; removing the overlapping area in the triangular facets in the undercut area to obtain the undercut model; and merging the undercut model into the original tooth model to obtain the target tooth model.
[0013] In some of the embodiments, before "obtaining the target tooth model", the method also includes: obtaining all model vertices in a new model obtained by filling the original tooth model with triangular patches in the undercut area; calculating the model normal of the new model based on the model vertices; and expanding the new model outward along the model normal by a preset offset according to a preset offset.
[0014] In some of these embodiments, the target tooth model is used to make a physical model for the aligner and the aligner is formed using the physical model.
[0015] In a second aspect, an embodiment of the present application provides a device for filling undercut areas of a three-dimensional tooth model, comprising: an acquisition module for acquiring an original tooth model composed of multiple triangular facets; a normal calculation module for calculating the vertex normals of all triangular facets; a contour point extraction module for selecting the projection direction of the original tooth model, and extracting vertices whose vertex normals are perpendicular to the projection direction as projection contour points; a boundary point extraction module for collecting the intersection points of the original tooth model with light projected along the projection direction starting from the projection contour point as the model boundary point; a boundary vertex extraction module for acquiring the vertices closest to the projection contour point and the model boundary point as boundary vertices; an undercut area generation module for generating undercut area triangular facets based on the projection contour points, model boundary points and boundary vertices; and a model reconstruction module for filling the original tooth model with undercut area triangular facets to obtain a target tooth model.
[0016] In a third aspect, an embodiment of the present application provides an electronic device comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the method for filling an undercut area of a three-dimensional tooth model as described in any one of the first aspects.
[0017] In a fourth aspect, an embodiment of the present application provides a readable storage medium, in which a computer program is stored. The computer program includes a program code for controlling a process to execute a process, and the process includes a method for filling an undercut area of a three-dimensional tooth model according to any one of the first aspects.
[0018] The main contributions and innovations of the embodiments of the present application are as follows:
[0019] This solution can find the contour points in the projection direction, and project light along the projection direction with the contour points as the starting point, so as to find the boundary points to be filled, and then find the boundary points of the tooth model. Based on this, this solution then performs triangulation reconstruction based on the contour point set, fills the boundary points, and obtains the triangular patch model of the concave part used to fill the concave surface. Different from the existing technology, the judgment result of whether the vertex is in the boundary area by specifying the cosine distance between the direction and the vertex normal equal to 0 is more accurate.
[0020] Details of one or more embodiments of the present application are set forth in the following drawings and description to make other features, objects, and advantages of the present application more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0022] Figure 1 It is a flow chart of the main steps of the method for filling the undercut area of a three-dimensional tooth model according to the first embodiment of the present application.
[0023] Figure 2 This is a schematic diagram of finding the normal of a vertex using the normals of multiple triangles that share the same vertex.
[0024] Figure 3 It is a schematic diagram of contour points.
[0025] Figure 4 This is a schematic diagram of the model boundary points.
[0026] Figure 5 This is a comparison chart of the original model and the final model.
[0027] Figure 6 This is a schematic diagram of the undercut part of the tooth model.
[0028] Figure 7 It is a structural block diagram of a device for filling an undercut area of a three-dimensional tooth model according to the second embodiment of the present application.
[0029] Figure 8 It is a schematic diagram of the hardware structure of an electronic device according to the third embodiment of the present application. DETAILED DESCRIPTION
[0030] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with one or more embodiments of this specification. Instead, they are merely examples of devices and methods consistent with some aspects of one or more embodiments of this specification as detailed in the appended claims.
[0031] It should be noted that: in other embodiments, the steps of the corresponding method are not necessarily performed in the order shown and described in this specification. In some other embodiments, the steps included in the method may be more or less than those described in this specification. In addition, a single step described in this specification may be decomposed into multiple steps for description in other embodiments; and multiple steps described in this specification may be combined into a single step for description in other embodiments.
[0032] Before describing this solution, some confusing terms need to be explained:
[0033] Vertex: This solution is aimed at a three-dimensional tooth model composed of triangular facets. In the model, each triangular facet includes three vertices, so the three vertices of the triangular facet are represented by "vertices".
[0034] Projection contour point: a point selected from all vertices in the original three-dimensional tooth model whose vertex normal is perpendicular to the projection direction, that is, the projection contour point is a type of point among the vertices, and the normal vector of the projection contour point is perpendicular to the projection direction.
[0035] Model boundary point: The model boundary point has no direct relationship with the vertex. The model boundary point refers to the intersection point obtained when the projection contour point intersects with the original tooth model or the model bounding box when the projection contour point is projected along the projection direction.
[0036] Boundary vertex: It is the point selected from all vertices in the original three-dimensional tooth model that is closest to the projected contour point and the model boundary point. That is, the boundary vertex is another type of point among the vertices, and the distance between the boundary vertex and the projected contour point and the model boundary point is the shortest.
[0037] The problem that this solution solves is: how to quickly fill the concave part of the 3D tooth model so that the generated target tooth model can be used for brace making. Figure 6 The undercut area shown in the figure is filled into the original model to generate the target model.
[0038] Therefore, this scheme uses the set projection direction to project the original tooth model, and based on the principle of "the normal vector of the maximum contour in the projection direction is perpendicular to the projection direction", extracts the vertices in the model whose normal vectors are perpendicular to the projection direction as projection contour points. After finding the contour points, this scheme collects the intersection points based on the projection direction, and then reconstructs the triangles based on the intersection points and the projection contour points, thereby obtaining a triangular patch model of the concave part.
[0039] The technical point of this solution is that it can find the contour points in the projection direction, and project light along the projection direction with the contour points as the starting point, so as to find the boundary points to be filled, and then find the boundary points of the tooth model. Based on this, this solution then performs triangular reconstruction based on the contour point set, fills the boundary points, and the boundary points to obtain a triangular patch model of the concave part to fill the concave surface.
[0040] Figure 1 It is a flow chart of the main steps of the method for filling the undercut area of a three-dimensional tooth model according to the first embodiment of the present application.
[0041] To achieve this goal, Figure 1 As shown, the method for filling the undercut area of a three-dimensional tooth model mainly includes the following steps 101 to 107.
[0042] Step 101: Obtain an original tooth model consisting of a plurality of triangular facets.
[0043] In step 101, the original tooth model obtained is a three-dimensional model, which is composed of multiple triangular facets. The purpose is to restore the three-dimensional shape of the teeth through triangular facets. It can be understood that if the original tooth model is not composed of triangles, then the original tooth model is first obtained, and each facet of the original tooth model is triangulated to obtain a three-dimensional tooth model composed of triangular facets.
[0044] In addition, the position, area, and normal vector of any triangle can be calculated from the coordinates of the three vertices of the triangle. Figure 2 As shown, multiple triangles share the same vertex and the same edge.
[0045] Step 102: Calculate the vertex normals of all triangles.
[0046] Specifically, from Figure 2 It can be seen that if the vertex normal of the common vertex in the figure is required, the patch normal Ni of the three triangular facets with the common vertex is calculated first, and then each patch normal is multiplied by the patch area ratio Si / Stotal of the corresponding facet, and the product values are accumulated to obtain the vertex normal of the vertex. That is, through the formula Calculate the vertex normal of each vertex, where i=0..m represents the number of the triangle with the point as the vertex, Ni represents the normal of these triangles, and Si represents the area of these triangles.
[0047] For example, if we want to find Figure 2 For the vertex normals of the common vertices of the three triangles in , first calculate the numerator as S1*N1+S2*N2+S3*N3, and the denominator as S1+S2+S3. Then divide the numerator by the denominator to get X1, where X1 is the vertex normal of the common vertex.
[0048] It should be noted that this solution comprehensively considers the influence of triangles of different areas on the normal vector, that is, the larger the proportion of the triangle area, the greater the influence on the final result, and the higher the proportion of the normal vector in the final total direction. Specifically, each triangle has a normal direction and a triangle area. The area ratio of the triangle area is multiplied before the normal direction. The larger the area ratio, the greater the weight of the normal direction. This solution obtains the normal vector of the vertex by calculating the product of the normal vector multiplied by the area weight.
[0049] Step 103: Select the projection direction of the original tooth model, and extract the vertices whose vertex normals are perpendicular to the projection direction as projection contour points.
[0050] In this step, the angle of the projection direction is unlimited, that is, the projection direction can be set arbitrarily within the range of 0-360. Parallel projection light is emitted along the projection direction, and the projection light forms an angle with the normal of each vertex in the tooth model, such as Figure 3 As shown, there are three cases: the vertex normal is at an acute angle to the projection direction, the vertex normal is at a right angle to the projection direction, and the vertex normal is at an obtuse angle to the projection direction. Figure 3 It can be seen that when the vertex normal is at right angles to the projection direction, the vertex corresponding to the vertex normal is the point of the contour that can be seen along the projection direction.
[0051] In one embodiment, the solution performs a dot product on the vertex normal of each vertex and the projection direction to calculate a dot product value; and extracts the vertex corresponding to the vertex normal with a dot product value of 0 as a projection contour point.
[0052] Specifically, the dot product operation used in this solution is relative to the cosine distance. The dot product formula of the vector is t=N0*X1, where N0 is the projection direction, X1 is the vertex normal, and t is the dot product value, which is also the cosine distance of the two vectors. Figure 3 , when the cosine distance is greater than 0, θ is less than 0; when the cosine distance is equal to 0, θ is equal to 0; when the cosine distance is less than 0, θ is greater than 0. It can be seen that in this scheme, the dot product value can be used to determine the angle between the vertex normal and the projection direction. Compared with the method of determining whether the projection direction and the vertex normal are at right angles, directly calculating the dot product value algebraically can simplify the steps of obtaining the projection contour points, thereby improving the efficiency of obtaining the contour points.
[0053] Step 104 , collecting the intersection points of the light projected along the projection direction starting from the projection contour point and the original tooth model as the model boundary points.
[0054] like Figure 4As shown, P0, P1, P2, and P3 are projection contour points. After projection along the projection direction, intersection points P'0, P'1, P'2, and P'3 are obtained on the original tooth model, among which P0 and P'0 are corresponding, and the other point pairs are deduced in the same way, so multiple groups of point pairs are obtained.
[0055] In addition, the bounding box refers to a cube that can just contain the model. If the emitted light intersects with the model surface, it stops there; if it does not intersect with the model surface, it must intersect with the outer bounding box and will not be emitted infinitely. Therefore, when the projection direction does not intersect with the model surface, the intersection point where the light projection from the projection contour point intersects with the 3D model bounding box is used as the model boundary point.
[0056] Step 105: Obtain the vertex closest to the projection contour point and the model boundary point as the boundary vertex.
[0057] In step 105, the point pair distance between the projected contour point and the model boundary point is used to search for boundary vertices in the vertices. Specifically, the points of the outer contour of the tooth model and the model boundary points that need to be filled have been obtained in the previous steps. Therefore, in this step, the point closest to the point pair distance is queried as the corresponding boundary vertex, that is, if there are N pairs of point pairs, N corresponding boundary vertices are obtained.
[0058] Step 106: Generate triangular facets of the undercut region based on the projected contour points, the model boundary points and the boundary vertices.
[0059] Specifically, the point with the smallest sum of absolute values of coordinates among the projected contour points, model boundary points and boundary vertices is taken as the starting point, and the other points are taken as candidate points. The point closest to the starting point is selected from the candidate points, and a starting edge is generated with the selected point and the starting point. The adjacent point closest to the starting edge except the selected point is selected from the candidate points, and a triangular patch of the undercut area is formed with the starting point, the selected point and the adjacent points.
[0060] Exemplarily, in this solution, the nearest point in the K neighborhood is used as the selected point. Specifically, the absolute value of the coordinate value and the minimum point in all point data are searched as the starting point. The method here is to search all points and find the point Pi that satisfies the minimum |Pi.x|+|Pi.y|+|Pi.z| (Pi.x, Pi.y, Pi.z are the x, y, z coordinates of point Pi respectively). Next, starting from this point, search for the nearest point in its K neighborhood. The two points form the starting edge, and find the nearest point in the K neighborhood of the two points. The three points form a triangle. Repeat this step until all points are connected.
[0061] In this step, the absolute value sum of the coordinate values refers to |Pi.x|+|Pi.y|+|Pi.z|. The purpose of selecting the vertex corresponding to the minimum value as the starting point is that according to the triangle construction algorithm, the absolute value sum of the coordinate values is the smallest, indicating that the vertex is closest to the origin in the coordinate system of the tooth model.
[0062] Step 107: Fill the original tooth model with the triangular facets in the undercut area to obtain the target tooth model.
[0063] In step 106, there are two situations between the triangular facets in the undercut area and the original tooth model. The first situation is that there is no overlap, that is, the area of the overlapping area is 0, and the second situation is that there is overlap, that is, the area of the overlapping area is greater than 0. It should be noted that, precisely because of the possibility of overlap, this solution uses the triangular facets in the undercut area to fill the original tooth model. Specifically, "filling" refers to obtaining the overlapping area between the triangular facets in the undercut area and the original tooth model; removing the overlapping area in the triangular facets in the undercut area to obtain the undercut model; merging the undercut model into the original tooth model to obtain the target tooth model.
[0064] In this solution, the triangular facets in the undercut area can be Boolean merged with the original tooth model to obtain the target tooth model.
[0065] In addition, before "obtaining the target tooth model", the method further includes: obtaining all model vertices in the new model obtained by filling the original tooth model with the triangular facets in the undercut area; calculating the model normal of the new model based on the model vertices; and expanding the new model outward along the model normal by the preset offset according to the preset offset. In this step, the expansion is to make the tooth model larger as a whole, with the purpose of making a braces model that is slightly larger than the tooth itself so that the patient can wear it smoothly.
[0066] Reference Figure 5 , Figure 5 This is a comparison of the original model and the final model. It can be seen that the undercut model A needs to be filled in the meta-model.
[0067] In summary, in this scheme, multiple parallel projection rays are emitted from the original tooth model in a selected projection direction, and the angle between the projection direction and the normal vector of each vertex is as follows: Figure 2As shown, the angle can be acute, right or obtuse, and when it is a right angle, the vertex is the point on the maximum contour. Therefore, this scheme takes out all the points on the contour and puts them into the contour point set P{P0, P1, P2, P3...}. Then this scheme traverses all the projected contour points in the contour point set P, and respectively emits light rays consistent with the projection direction from the projected contour points. The light rays intersect with the original tooth model, and the intersection points are taken out and put into the intersection point set P'{P'1, P'2, P'3...}. Then construct the point pairs (Pi, P'i) in the sets P and P', and calculate the distance of each point pair to obtain the point pair distance. Query the vertex closest to each point pair from all the vertices of the original tooth model, as the boundary vertex, and put it into the boundary vertex set C{C0, C1, C2, C3...}. Construct triangles with each three adjacent points in the sets P, P', and C, and finally obtain the triangular facets of the undercut area to be expanded.
[0068] Exemplarily, the absolute value of the coordinate value and the minimum point in all point data are searched as the starting point, and the nearest point in its K neighborhood is searched. The two points form the starting edge. The nearest point in the K neighborhood of the two points is found, and the three points form a triangle. The K neighborhood of the vertex of the triangle is found, and the expansion is repeated until all points are connected.
[0069] In this solution, contour points are obtained based on ray casting. Different from the prior art, the cosine distance between the specified orientation and the vertex normal = 0 is used to determine whether the vertex is in the boundary area, which is more accurate.
[0070] Specifically, the prior art CN108961398A uses whether the angle between the triangle normal and the standard upper direction / lateral direction meets the preset threshold to limit the undercut area. Since the bottom threshold and the side threshold in this technology are set manually, they are not accurate. And everyone's tooth model is different, so the setting of the threshold cannot guarantee that it is applicable to all tooth models. Therefore, there are errors in the side area and the lower area determined based on the threshold, so the undercut area calculated based on the intersection of the lower area and the side area is not so accurate. However, this solution does not use a threshold to determine the undercut area, but finds the edge point through light projection, so this solution is more accurate in finding the edge point.
[0071] In one embodiment, the target tooth model is used to make a physical model for the aligner and the aligner is formed using the physical model.
[0072] Specifically, for the convenience of wearing, if the undercut part is inaccurate, if it is too small, the final model may be too small and may be worn too tight, causing discomfort to the user; if it is too large, the model may be too large, resulting in looseness and not tight enough. The braces made using the target tooth model of this solution have reserved undercut areas, so after the braces are placed in the patient's teeth, they can still be taken out smoothly. Since the undercut area has been filled, the width of the crown and root in the braces is roughly equal, which is more convenient to wear.
[0073] In addition, if Figure 7 As shown, the present solution provides a device for filling the undercut area of a three-dimensional tooth model, which uses the above-mentioned method for filling the undercut area of a three-dimensional tooth model to fill the undercut part of the original tooth model, and the device comprises:
[0074] The acquisition module 701 is used to acquire an original tooth model composed of a plurality of triangular facets.
[0075] The normal calculation module 702 is used to calculate the vertex normals of all triangular facets.
[0076] The contour point extraction module 703 is used to select the projection direction of the original tooth model and extract the vertices whose vertex normals are perpendicular to the projection direction as projection contour points.
[0077] The boundary point extraction module 704 is used to collect the intersection points between the light projected along the projection direction starting from the projection contour point and the three-dimensional tooth model as the model boundary points.
[0078] The boundary vertex extraction module 705 is used to obtain the vertex closest to the projection contour point and the model boundary point as the boundary vertex.
[0079] The undercut region generating module 706 is used to generate undercut region triangular patches based on the projected contour points, model boundary points and boundary vertices.
[0080] The model reconstruction module 707 is used to fill the original tooth model with triangular facets in the undercut area to obtain a target tooth model.
[0081] like Figure 8 As shown, an electronic device according to an embodiment of the present application includes a memory 804 and a processor 802. The memory 804 stores a computer program, and the processor 802 is configured to run the computer program to execute the steps in any of the above method embodiments.
[0082] Specifically, the processor 802 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0083] Among them, the memory 804 may include a large capacity memory 804 for data or instructions. By way of example and not limitation, the memory 804 may include a hard disk drive (HDD), a floppy disk drive, a solid state drive (SSD), a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive, or a combination of two or more of these. Where appropriate, the memory 804 may include a removable or non-removable (or fixed) medium. Where appropriate, the memory 804 may be inside or outside the data processing device. In a specific embodiment, the memory 804 is a non-volatile memory. In a specific embodiment, the memory 804 includes a read-only memory (ROM) and a random access memory (RAM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (Programmable Read-Only Memory, PROM for short), an erasable PROM (Erasable Programmable Read-Only Memory, EPROM for short), an electrically erasable PROM (Electrically Erasable Programmable Read-Only Memory, EEPROM for short), an electrically alterable ROM (Electrically Alterable Read-Only Memory, EAROM for short) or a flash memory (FLASH) or a combination of two or more of these. Under appropriate circumstances, the RAM can be a static random access memory (Static Random-Access Memory, abbreviated as SRAM) or a dynamic random access memory (Dynamic Random Access Memory, abbreviated as DRAM), wherein the DRAM can be a fast page mode dynamic random access memory 804 (Fast Page Mode Dynamic Random Access Memory, abbreviated as FPMDRAM), an extended data output dynamic random access memory (Extended Date Out Dynamic Random Access Memory, abbreviated as EDODRAM), a synchronous dynamic random access memory (Synchronous Dynamic Random-Access Memory, abbreviated as SDRAM), etc.
[0084] The memory 804 may be used to store or cache various data files required for processing and / or communication, as well as possible computer program instructions executed by the processor 802 .
[0085] The processor 802 reads and executes the computer program instructions stored in the memory 804 to implement any one of the methods for filling an undercut area of a three-dimensional tooth model in the above embodiments.
[0086] Optionally, the electronic device may further include a transmission device 806 and an input / output device 808 , wherein the transmission device 806 is connected to the processor 802 , and the input / output device 808 is connected to the processor 802 .
[0087] The transmission device 806 can be used to receive or send data via a network. The specific examples of the above-mentioned network may include a wired or wireless network provided by a communication provider of the electronic device. In one example, the transmission device includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 806 can be a radio frequency (Radio Frequency, referred to as RF) module, which is used to communicate with the Internet wirelessly.
[0088] The input / output device 808 is used to input or output information. In this embodiment, the input information may be an original tooth model, etc., and the output information may be a tooth plane after filling the undercut part, etc.
[0089] Optionally, in this embodiment, the processor 802 may be configured to perform the following steps through a computer program:
[0090] S101, obtaining an original tooth model composed of a plurality of triangular facets.
[0091] S102, calculating the vertex normals of all triangular facets.
[0092] S103, selecting the projection direction of the original tooth model, and extracting vertices whose vertex normals are perpendicular to the projection direction as projection contour points.
[0093] S104, collecting the intersection points of the light projected along the projection direction starting from the projection contour point and the original tooth model as the model boundary points.
[0094] S105 , obtaining the vertex closest to the projection contour point and the model boundary point as the boundary vertex.
[0095] S106 , generating triangular facets of the undercut region based on the projected contour points, the model boundary points and the boundary vertices.
[0096] S107, filling the original tooth model with triangular facets in the undercut area to obtain a target tooth model.
[0097] It should be noted that the specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.
[0098] In general, various embodiments may be implemented in hardware or dedicated circuits, software, logic, or any combination thereof. Some aspects of the invention may be implemented in hardware, while other aspects may be implemented in firmware or software that may be executed by a controller, microprocessor, or other computing device, but the invention is not limited thereto. Although various aspects of the invention may be shown and described as block diagrams, flow charts, or using some other graphical representation, it should be understood that, as non-limiting examples, the boxes, devices, systems, techniques, or methods described herein may be implemented in hardware, software, firmware, dedicated circuits or logic, general-purpose hardware or controllers or other computing devices, or some combination thereof.
[0099] Embodiments of the present invention can be implemented by computer software, which is executable by a data processor of a mobile device, such as in a processor entity, or implemented by hardware, or implemented by a combination of software and hardware. Computer software or programs (also referred to as program products) including software routines, applets and / or macros can be stored in any device readable data storage medium, and they include program instructions for performing specific tasks. Computer program products can include one or more computer executable components configured to perform embodiments when the program is running. One or more computer executable components can be at least one software code or a part thereof. In addition, at this point, it should be noted that any box of the logic flow in the figure can represent a program step, or interconnected logic circuits, boxes and functions, or a combination of program steps and logic circuits, boxes and functions. Software can be stored in physical media such as memory chips or storage blocks implemented in processors, magnetic media such as hard disks or floppy disks, and optical media such as, for example, DVDs and data variants thereof, CDs. Physical media are non-transient media.
[0100] Those skilled in the art should understand that the technical features of the above embodiments may be arbitrarily combined. 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 specification.
[0101] The above 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 filling an undercut area of a three-dimensional tooth model, characterized in that: The following steps are involved: Obtaining an original tooth model composed of multiple triangular facets; For each vertex of a triangle, accumulate the product of the area vectors of all triangles that share the vertex and the corresponding area ratio of the triangles, and use the accumulated product as the vertex normal of the vertex; Select the projection direction of the original tooth model, perform dot product between the vertex normal of each vertex and the projection direction, and calculate the dot product value; Extract the vertex corresponding to the vertex normal with a dot product value of 0 as the projection contour point; Collect the intersection of the light projected along the projection direction with the projection contour point as the starting point and the original tooth model as the model boundary point; Get the vertex closest to the projected contour point and the model boundary point as the boundary vertex; The point with the smallest absolute value of the coordinates among the projected contour points, model boundary points and boundary vertices is taken as the starting point, and the other points are taken as candidate points. The selected point closest to the starting point is selected from the candidate points, and the starting edge is generated with the selected point and the starting point. The adjacent point closest to the starting edge except the selected point is selected from the candidate points, and a triangular facet of the undercut region is formed with the starting point, the selected point and the adjacent point; The original tooth model is filled with triangular patches in the undercut area to obtain the target tooth model.
2. The method for filling the undercut area of a three-dimensional tooth model according to claim 1, characterized in that: Obtaining the original tooth model composed of multiple triangular facets includes: A three-dimensional tooth model is obtained, and each face of the three-dimensional tooth model is triangulated to obtain an original tooth model composed of triangular facets.
3. The method for filling the undercut area of a three-dimensional tooth model according to claim 1, characterized in that: The original tooth model is filled with triangular patches in the undercut area, and the target tooth model is obtained including: Obtain the overlapping area between the triangular facet of the undercut area and the original tooth model; Eliminate the overlapping areas of the triangular facets in the undercut area to obtain the undercut model; The undercut model is merged into the original tooth model to obtain the target tooth model.
4. The method for filling an undercut area of a three-dimensional tooth model according to claim 1, characterized in that: Before obtaining the target tooth model, the method further includes: Acquire all model vertices in a new model obtained by filling the original tooth model with triangular facets in the undercut area; The model normal of the new model is obtained based on the calculation of the model vertices; Expand the new model outward along the model normal by the preset offset according to the preset offset.
5. The method for filling undercut areas of a three-dimensional tooth model according to any one of claims 1 to 4, characterized in that: The target tooth model is used to make a solid model for the aligner and form the aligner using the solid model.
6. A device for filling undercut areas of a three-dimensional tooth model, characterized in that: include: An acquisition module, used for acquiring an original tooth model composed of a plurality of triangular facets; A normal calculation module is used to accumulate, for each vertex of a triangular face, the product of the area vectors of all triangular facets sharing the vertex and the corresponding facet area ratio, and use the accumulated product sum as the vertex normal of the vertex; The contour point extraction module is used to select the projection direction of the original tooth model, perform dot multiplication of the vertex normal of each vertex with the projection direction, and calculate the dot product value; Extract the vertex corresponding to the vertex normal with a dot product value of 0 as the projection contour point; A boundary point extraction module is used to collect the intersection points of the light projected along the projection direction with the projection contour point as the starting point and the original tooth model as the model boundary point; A boundary vertex extraction module is used to obtain the vertex closest to the projection contour point and the model boundary point as the boundary vertex; An undercut region generation module is used to take the point with the smallest sum of absolute values of coordinates among the projected contour points, model boundary points and boundary vertices as the starting point, and other points as candidate points, select the selected point closest to the starting point from the candidate points, generate a starting edge with the selected point and the starting point, select the adjacent point closest to the starting edge except the selected point from the candidate points, and form an undercut region triangular face with the starting point, the selected point and the adjacent point; The model reconstruction module is used to fill the original tooth model with triangular facets in the undercut area to obtain the target tooth model.
7. A readable storage medium, characterized in that: The readable storage medium stores a computer program, which includes a program code for controlling a process to execute a process, wherein the process includes the method for filling an undercut area of a three-dimensional tooth model according to any one of claims 1 to 4.
