Occlusion pad model processing method and device, equipment and storage medium
By sharing the topological structure in the bite pad design software for adjustment and detection, the problems of low user adjustment efficiency and stuck interactions in the existing technology are solved, the real-time performance and response speed are improved, and the user experience is enhanced.
Patent Information
- Application Number
- CN202410871660.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-09-06
AI Technical Summary
The existing bite pad design software cannot provide timely feedback to the user whether the adjustment operation is in place, resulting in low user adjustment efficiency and possible interaction lags during the real-time detection process.
By sharing the same topology during the adjustment and detection process of the bite pad model, data structure initialization and additional data structure conversion are avoided, and the updated topology is directly used for real-time detection, improving real-time performance and response speed.
This enables the bite pad design software to respond to user operations faster, provide timely feedback, and enhance the user interaction experience, allowing users to instantly understand whether the adjustment operation is in place.
Smart Images

Figure CN118593167A
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer software technology, and in particular to a method, device, electronic device and computer-readable storage medium for processing an occlusal pad model. Background Art
[0002] Bite pads are medical devices used for oral repair and protection, usually customized by doctors according to the patient's oral condition. They are usually made of soft or hard materials, such as silicone, polyethylene, etc., and can be accurately positioned in the mouth to protect teeth, repair occlusal relationships, and prevent tooth wear and other problems.
[0003] In order to improve the production efficiency of bite pads, bite pad design software is usually used to design the shape of bite pads. In bite pad design software, the automatically generated bite pad model sometimes does not meet the requirements, and the user needs to manually adjust the bite pad model. However, the bite pad design software in the related art cannot let the user know whether the adjustment operation is in place in time. Summary of the invention
[0004] In view of this, the present application provides a method, device, electronic device, computer-readable storage medium and computer program product for processing a bite pad model.
[0005] Specifically, the present application is implemented through the following technical solutions:
[0006] According to a first aspect of an embodiment of the present application, a method for processing a bite pad model is provided, comprising:
[0007] Displaying the bite pad model in a display interface;
[0008] In response to an adjustment operation on the bite pad model, updating a pre-built topological structure for representing the bite pad model based on the adjustment operation;
[0009] Using the updated topological structure, real-time detection is performed to determine whether the updated bite pad model indicated by the updated topological structure meets preset requirements, thereby obtaining a target detection result;
[0010] When the updated bite pad model is displayed in the display interface, the target detection result is displayed synchronously.
[0011] In one implementation, the adjustment operation includes an adjustment operation for at least a portion of the area in the bite pad model;
[0012] The updating of the pre-built topological structure representing the bite pad model based on the adjustment operation comprises:
[0013] Determining a sub-topological structure corresponding to the at least partial region from a topological structure used to represent the bite pad model, and updating the sub-topological structure based on the adjustment operation;
[0014] The updated topological structure is used to detect in real time whether the updated bite pad model indicated by the updated topological structure meets the preset requirements to obtain the target detection result, including:
[0015] Using the updated sub-topology structure, real-time detection is performed to determine whether a target area indicated by the updated sub-topology structure meets preset requirements, thereby obtaining a target detection result for the target area;
[0016] When displaying the updated bite pad model in the display interface, the target detection result is displayed synchronously, including:
[0017] When the at least partial area is replaced with the target area, the target detection result for the target area is synchronously displayed in the display interface.
[0018] In one implementation, before responding to the adjustment operation on the bite pad model, the method further includes:
[0019] In the process of displaying the bite pad model in the display interface, the global detection result for the bite pad model is displayed synchronously; the global detection result is used to describe whether each area in the bite pad model meets the preset requirements.
[0020] In one implementation, the synchronously displaying the global detection result for the bite pad model includes:
[0021] The visual information indicated by the global detection result is superimposed and displayed in each area of the bite pad model.
[0022] In one implementation, the synchronously displaying the target detection result for the target area in the display interface includes:
[0023] Deleting visual information corresponding to the at least partial area from the visual information indicated by the global detection result;
[0024] And, visual information indicated by the target detection result is superimposed and displayed in the replaced target area.
[0025] In one implementation, the using of the updated sub-topology structure to detect in real time whether the target area indicated by the updated sub-topology structure meets the preset requirements to obtain the target detection result includes:
[0026] Acquire the spatial relationship structure of a pre-constructed opposing jaw model that has an occlusal relationship with the occlusal pad model;
[0027] Based on the updated sub-topological structure and the spatial relationship structure of the opposing jaw model, it is detected whether there is a collision between the target area and the opposing jaw model during the occlusion process, and a collision detection result for the target area is obtained.
[0028] In one implementation, the at least partial region includes at least a partial region of an outer surface of the bite pad model; the topological structure includes a topological structure for representing the outer surface of the bite pad model;
[0029] The method of using the updated sub-topology structure to detect in real time whether the target area indicated by the updated sub-topology structure meets the preset requirements and obtain the target detection result includes:
[0030] Acquiring the spatial relationship structure of the inner surface of the pre-constructed bite pad model;
[0031] Based on the updated sub-topological structure and the spatial relationship structure of the inner surface of the occlusal pad model, the thickness between the target area and the inner surface of the occlusal model is detected to obtain a thickness detection result for the target local area.
[0032] In one implementation, the method further includes:
[0033] In response to starting the adjustment function for the bite pad model, at least constructing the topological structure for representing the bite pad model; and
[0034] In response to closing the adjustment function for the bite pad model, at least the topological structure used to represent the bite pad model is deleted; wherein the adjustment function is used to instruct the user to perform the adjustment operation on the bite pad model.
[0035] In one implementation, the adjustment operation includes at least one of a smoothing operation and a carving operation on the bite pad model; and / or the topological structure includes a half-edge topological structure.
[0036] According to a second aspect of an embodiment of the present application, there is provided a device for processing a bite pad model, comprising:
[0037] A display module, used for displaying the bite pad model in a display interface;
[0038] A topology structure adjustment module, configured to respond to an adjustment operation on the bite pad model and update a pre-built topology structure for representing the bite pad model based on the adjustment operation;
[0039] A target detection result acquisition module is used to use the updated topological structure to detect in real time whether the updated bite pad model indicated by the updated topological structure meets the preset requirements, and obtain the target detection result;
[0040] The display module is further configured to synchronously display the target detection result when displaying the updated bite pad model in the display interface.
[0041] According to a third aspect of an embodiment of the present application, there is provided an electronic device, including a memory, a processor, and executable instructions stored in the memory and executable on the processor;
[0042] Wherein, when the processor executes the executable instructions, the steps in the method as described in any one of the first aspects are implemented.
[0043] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which computer instructions are stored. When the computer instructions are executed by a processor, the steps of any one of the methods described in the first aspect are implemented.
[0044] According to a fifth aspect of an embodiment of the present application, a computer program product is provided, comprising a computer program / instruction, which, when executed by a processor, implements the steps of any one of the methods described in the first aspect.
[0045] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:
[0046] In the disclosed embodiment, the occlusal pad model adjustment process and the detection process jointly use the topological structure for representing the occlusal pad model, thereby avoiding the data structure initialization time and computing resource consumption required for using different data structures in the occlusal pad model adjustment process and the detection process. Sharing the same data structure means that after the topological structure of the occlusal pad model is updated based on the adjustment operation for the occlusal pad model, the updated topological structure can be directly used to detect in real time whether the updated occlusal pad model meets the preset requirements, which eliminates the need for additional data structure conversion between the processing adjustment operation and the detection process, thereby improving the real-time performance, allowing the occlusal pad design software to respond to the user's operation more quickly and provide timely feedback; finally, the updated occlusal pad model and the target detection results can be synchronously displayed in the display interface, and the user can instantly understand whether the adjustment operation is in place, so that the user can perform the adjustment operation more intuitively, thereby enhancing the user's interactive experience.
[0047] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0049] Figure 1 It is a schematic diagram of an upper jaw model, an upper jaw occlusal pad model and a lower jaw model shown in an exemplary embodiment of the present application.
[0050] Figure 2 It is a flowchart of a method for processing a bite pad model shown in an exemplary embodiment of the present application.
[0051] Figure 3 It is a schematic diagram of the inner surface and outer surface of a bite pad model shown in an exemplary embodiment of the present application.
[0052] Figure 4 It is a schematic diagram showing an exemplary embodiment of the present application in which a global detection result is superimposed on a bite pad model in the form of a color ribbon diagram.
[0053] Figure 5 It is a flowchart of another method for processing a bite pad model shown in an exemplary embodiment of the present application.
[0054] Figure 6 It is a schematic diagram showing an exemplary embodiment of the present application showing that the target detection result for the target area is superimposed and displayed on the target area in the form of a color band diagram.
[0055] Figure 7 It is an exemplary schematic diagram of an electronic device shown in an exemplary embodiment of the present application.
[0056] Figure 8 It is an exemplary schematic diagram of a device for processing a bite pad model shown in an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0057] 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 the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0058] The terms used in this application are only for the purpose of describing specific embodiments and are not intended to limit this application. The singular forms of "a", "a", "an" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in this article refers to and includes any or all possible combinations of one or more associated listed items.
[0059] It should be understood that although the terms first, second, third, etc. may be used in the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0060] Bite pads (also called bite plates, occlusal pads, occlusal plates, dental pads or protective pads, etc.) are medical devices used for oral restoration and protection. Their main functions include:
[0061] (1) Protect teeth: Bite pads can provide additional support and protection for teeth, reducing tooth damage and wear caused by bite force or abnormal bite.
[0062] (2) Repairing the occlusal relationship: For patients with abnormal or uncomfortable occlusion, doctors can use bite pads to adjust the occlusal relationship to make it more comfortable and normal.
[0063] (3) Preventing tooth wear: For some patients who are prone to tooth wear problems, such as bruxists or patients with abnormal bite, bite pads can reduce the bite force and protect the teeth, thereby reducing tooth wear.
[0064] (4) Provide comfort: Since the bite pad is customized according to the patient's oral condition, it can provide better comfort and adaptability, making the patient feel more comfortable during use.
[0065] In order to improve the efficiency of bite pad production, bite pad design software is usually used to design the shape of the bite pad. Figure 1 , Figure 1 A schematic diagram of the maxillary model 11 , the maxillary occlusal pad model 12 and the mandibular model 13 is shown so that the user can intuitively understand the actual occlusion between the maxillary model 11 , the maxillary occlusal pad model 12 and the mandibular model 13 .
[0066] In the bite pad design software, the automatically generated bite pad model sometimes does not meet the requirements, and the user needs to manually adjust the bite pad model. However, the bite pad design software in the related art cannot provide timely feedback to let the user know whether the adjustment operation is in place, resulting in low adjustment efficiency for the user.
[0067] In the process of implementing this application, the inventor found that the process of the user manually adjusting the bite pad model involves a real-time bite pad model update process, which consumes computing resources. If timely feedback is to be provided for the user's adjustment operation, the detection process for whether the adjustment operation is in place also involves a real-time detection algorithm call process, which also consumes computing resources. If the real-time detection algorithm call process is performed under limited computing resources, it may cause interaction jamming problems, that is, the bite pad design software cannot respond to the adjustment operation triggered by the user in time, affecting the user's experience. Therefore, how to provide timely feedback when the user performs the adjustment operation smoothly is an urgent problem to be solved.
[0068] Based on this, the embodiment of the present application provides a method for processing a bite pad model, in which the bite pad model adjustment process and the detection process jointly use the topological structure used to represent the bite pad model, thereby avoiding the data structure initialization time and computing resource consumption required for using different data structures in the bite pad model adjustment process and the detection process. Sharing the same data structure means that after the topological structure of the bite pad model is updated based on the adjustment operation for the bite pad model, the updated topological structure can be directly used to detect in real time whether the updated bite pad model meets the preset requirements, which eliminates the need for additional data structure conversion between the processing adjustment operation and the detection process, thereby improving real-time performance and enabling the bite pad design software to respond to user operations more quickly and provide timely feedback.
[0069] In some embodiments, the method for processing the bite pad model provided in the embodiments of the present application can be performed by an electronic device, including but not limited to a smart phone / mobile phone, a tablet computer, a personal digital assistant (PDA), a laptop computer, a desktop computer, a media content player, a video game station / system, a virtual reality system, an augmented reality system, a wearable device (e.g., a watch, glasses, gloves, headwear (e.g., a hat, a helmet, a virtual reality headset, an augmented reality headset, a head-mounted device (HMD), a headband), a pendant, an armband, a leg ring, a shoe, a vest), a remote control, or any other device.
[0070] In an exemplary application scenario, the electronic device may be a computer with bite pad design software installed. When the user starts the bite pad design software in the computer, the bite pad model may be displayed in the display interface so that the user can adjust the bite pad model through an input device (mouse, keyboard, stylus, touchpad, voice input or somatosensory touch output, etc.), for example, the adjustment operation includes at least one of a smoothing operation and a carving operation. The smoothing operation is used to remove the uneven or rough parts of the outer surface of the bite pad model to make it smoother and more comfortable. The carving operation is used to make subtle modifications to the outer surface of the bite pad model, such as simulating the shape, texture and contour of natural teeth.
[0071] In some embodiments, see Figure 2 , a flow chart of a method for processing a bite pad model is shown. The method can be executed by an electronic device, and the method includes:
[0072] In S201, a bite pad model is displayed on a display interface.
[0073] Exemplarily, the bite pad model can be generated by a signed distance field and meshing algorithm. Signed distance field (SDF) is a method of representing geometric shapes, which is usually used to achieve high-quality rendering effects and geometric processing. In computer graphics, signed distance fields can be used to describe the boundaries of objects, and can also provide information inside and outside the object. Meshing refers to the process of converting signed distance field data into a triangular mesh. In signed distance field meshing, the topological structure and vertex positions of the mesh are usually determined based on the numerical value of the signed distance field. Generally speaking, positive values in the distance field represent the outside of the object, negative values represent the inside of the object, and zero values represent the boundary of the object.
[0074] First, the signed distance field data of the jaw model is generated, and the jaw model is wrapped by the occlusal pad model to be generated. For example, if the occlusal pad model of the upper jaw needs to be generated, the signed distance field data of the upper jaw model is required; if the occlusal pad model of the lower jaw needs to be generated, the signed distance field data of the lower jaw model is required. The electronic device can use the outer surface of the jaw model as the boundary surface, determine the distance from a point to the boundary surface in a finite area in space, and define the sign of the distance at the same time, determine the point on the outer surface of the jaw model as 0, the point inside the outer surface has a positive sign, and the point outside the outer surface has a negative sign.
[0075] Then, based on the outer surface of the jaw model, the signed distance field of the inner surface of the occlusal pad model is generated by offsetting it. The signed distance field of the inner surface of the occlusal pad model is an isosurface with a first distance value from the outer surface of the jaw model. Assuming that the distance value of the signed distance function of the isosurface is about "-1", it can be smoothed. Then, according to the thickness requirement between the inner and outer surfaces of the occlusal pad model (the thickness parameter can be pre-set), the signed distance field of the outer surface of the occlusal pad model is generated. For example, the inner surface of the occlusal pad model can be offset according to the preset thickness parameter to generate an isosurface with a second distance value from the outer surface of the jaw model. Assuming that the value of the signed distance function of the isosurface is about "minus 3", it can be smoothed; wherein, the absolute value of the second distance value is greater than the absolute value of the first distance value. Finally, the inner and outer surfaces of the occlusal pad model are connected to generate the signed distance field of the occlusal pad model.
[0076] After generating the signed distance field of the bite pad model, the topological structure and vertex positions of the mesh can be determined according to the value of the signed distance field of the bite pad model. For example, the Marching Cubes algorithm can be used to interpolate on the mesh cells according to the value of the signed distance field of the bite pad model to generate a triangular mesh, and then the generated triangular mesh can be optimized, including removing duplicate vertices, optimizing the topological structure, reducing the number of triangles, etc., to improve rendering efficiency and geometric quality, and finally obtain the bite pad model.
[0077] See also Figure 3 The boundary of the occlusal pad model 12 includes an inner surface 121 and an outer surface 122; taking the maxillary occlusal pad model as an example, the inner surface 121 of the maxillary occlusal pad model wraps the maxillary teeth, and the outer surface 122 of the maxillary occlusal pad model contacts the mandibular teeth.
[0078] Exemplarily, after obtaining the bite pad model, it is possible to detect whether each area in the bite pad model to be displayed meets the preset requirements and obtain a global detection result; then, in the process of displaying the bite pad model in the display interface, the global detection result for the bite pad model can be displayed synchronously; the global detection result is used to describe whether each area in the bite pad model meets the preset requirements.
[0079] Exemplarily, the detection process includes at least one of thickness detection and collision detection. The thickness detection is used to detect whether the thickness of each area in the bite pad meets the thickness requirement, and the collision detection is used to detect whether each area of the bite pad will collide with the opposing jaw model during the bite process. Correspondingly, the preset requirements include at least one of the following: the thickness of each area of the bite pad meets the preset thickness, and there is no collision between each area of the bite pad and the opposing jaw model during the bite process. Among them, the opposing jaw model refers to a jaw model that has an occlusal relationship with the bite pad model; when the bite pad model is a maxillary bite pad model, the opposing jaw model is a mandibular model; when the bite pad model is a mandibular bite pad model, the opposing jaw model is a maxillary model.
[0080] It is understandable that this embodiment does not impose any restrictions on the display style of the global detection results, which can be text, symbols, colors, or textures, etc. This embodiment does not impose any restrictions on this. In addition to presenting the global detection results in a visual manner, the global detection results can also be presented in an auditory manner, for example, the user can be informed by voice playback whether each area of the bite pad meets the preset requirements.
[0081] For example, when the electronic device displays the global detection results for the bite pad model, it can overlay the visual information indicated by the global detection results on each area in the bite pad model, so as to intuitively show which areas meet the preset requirements and which areas need further attention or improvement. This intuitive visualization method helps users quickly understand the quality and problems of the model, improves the accuracy of problem location, and saves users' time and energy. For example, please refer to Figure 4 The global detection result 40 is displayed in the form of a color band diagram superimposed on each area in the bite pad model 12; different colors in the color band diagram are used to represent different detection results, which can be determined based on the mapping relationship between the preset color value and the detection result; for example Figure 4 The red color in the color band map indicates that the area does not meet the preset requirements.
[0082] In S202 , in response to an adjustment operation on the bite pad model, a pre-built topological structure for representing the bite pad model is updated based on the adjustment operation.
[0083] Exemplarily, the electronic device may respond to starting an adjustment function for the bite pad model, where the adjustment function is used to instruct the user to perform an adjustment operation on the bite pad model, and at least construct a topological structure for representing the bite pad model.
[0084] Exemplarily, the design and production of the bite pad needs to ensure that it can properly cooperate with the opposing teeth to achieve the following goals: (1) Correct occlusal relationship: Taking the maxillary bite pad as an example, for example, ensure that there is proper contact between the maxillary bite pad and the mandibular teeth to avoid bad biting habits, such as bruxism or excessive tooth wear. (2) Functional restoration: Help restore or improve the patient's chewing function so that food can be fully ground. Therefore, the adjustment operation of the bite pad model mainly adjusts the outer surface of the bite pad model, that is, the surface of the bite pad model that cooperates with the opposing model. In order to improve the construction efficiency, when constructing the topological structure used to represent the bite pad model, it is only necessary to construct the topological structure used to represent the outer surface of the bite pad model, thereby reducing the amount of data that needs to be calculated and processed and improving the construction efficiency.
[0085] Exemplarily, the topological structure used to represent the occlusal pad model includes a half-edge topological structure. In the half-edge topological structure, each edge is divided into two halves (i.e., half edges), one half of which is responsible for representing the geometric information of the edge, and the other half is responsible for describing the topological relationship of the edge, which can efficiently represent the occlusal pad model and provide fast query and traversal operations. The half-edge topological structure includes the following basic elements: (1) vertices in the occlusal pad model, including the coordinate information of the vertices and the edges and patches adjacent to them; (2) edges in the occlusal pad model, including the start and end points of the edges, the patches adjacent to them, and the next edge adjacent to them; (3) patches in the occlusal pad model, including the vertices of the patches and the edges that constitute the patches.
[0086] Of course, other topological representation methods can also be used to represent the bite pad model, such as directed edge graphs, boundary tables, etc. Directed edge graphs are a data structure in graph theory that is used to represent the directed relationship between edges in a graph; in three-dimensional modeling, directed edge graphs can be used to describe the topological relationship between the faces in the model, which is convenient for topological operations and analysis. Boundary tables are a data structure used to describe the topological structure of polygons or polyhedrons. The topological structure of the model is usually represented by the relationship between boundaries, vertices, and faces, and is suitable for describing closed polygons or polyhedrons.
[0087] Exemplarily, after detecting the user's adjustment operation on the bite pad model, the electronic device may update at least one of the vertices, edges and faces in the above-mentioned topological results based on the adjustment operation, such as adding at least one of new vertices, edges and faces, deleting at least one of the original vertices, edges and faces, or modifying the position information of at least one of the original vertices, edges and faces.
[0088] In S203, the updated topological structure is used to detect in real time whether the updated bite pad model indicated by the updated topological structure meets the preset requirements, thereby obtaining a target detection result.
[0089] For example, the updated topological structure can be used directly to detect in real time whether the updated bite pad model meets the preset requirements, which eliminates the need for additional data structure conversion between processing adjustment operations and detection processes, thereby improving real-time performance and enabling the bite pad design software to respond to user operations more quickly and provide timely feedback.
[0090] Exemplarily, the detection process includes at least one of thickness detection and collision detection, and can detect whether the thickness of the updated bite pad model meets the thickness requirement, or detect whether the updated bite pad collides with the opposing jaw model during the occlusion process.
[0091] In S204, when the updated bite pad model is displayed in the display interface, the target detection result is displayed synchronously.
[0092] For example, after implementing real-time updating and real-time detection of the bite pad model, the electronic device can synchronously display the updated bite pad model and target detection results in the display interface, so that the user can instantly understand whether the adjustment operation is in place, thereby enabling the user to perform adjustment operations more intuitively and enhancing the user's interactive experience.
[0093] It is understandable that this embodiment does not impose any restrictions on the specific display style of the target detection results, and can be specifically set according to the actual application scenario. For example, the target detection results can be displayed in the form of characters, colors, or textures.
[0094] Exemplarily, the visual information indicated by the target detection results can be superimposed on the updated bite pad model, so as to intuitively show which areas of the updated bite pad model meet the preset requirements and which areas need further attention or improvement. This intuitive visualization method helps users quickly understand the quality and problems of the model, improve the accuracy of problem location, and save users' time and energy.
[0095] In some embodiments, the collision detection process is exemplified here: the collision detection process needs to refer to the jaw model that has an occlusal relationship with the occlusal pad model. Therefore, the electronic device can respond to the start of the adjustment function for the occlusal pad model to construct the spatial relationship structure of the jaw model that has an occlusal relationship with the occlusal pad model. For example, the spatial relationship structure of the jaw model can be represented by a kdtree (KD tree, K-Dimensional Tree) structure. The KD tree (K-Dimensional Tree) is a binary tree data structure used to segment and organize a set of points in a k-dimensional space. It selects a coordinate axis for segmentation at each step, divides the current space into two subspaces, and then recursively segments the subspaces until each subspace contains only one point or is empty; thus, a tree is formed, in which each node represents a super rectangular area, and the leaf node corresponds to a data point. The shape of the jaw model will not change during the entire collision detection process. Therefore, the spatial relationship structure of the jaw model will not change after it is constructed. The KD tree structure is relatively compact and occupies less memory space. It is suitable for use in resource-constrained environments while maintaining good performance.
[0096] For S203, after obtaining the updated topological structure, the electronic device can obtain the spatial relationship structure of the above-mentioned antagonist model that has an occlusal relationship with the occlusal pad model, and then based on the updated topological structure and the spatial relationship structure of the antagonist model, detect whether there is a collision between the updated occlusal pad model and the antagonist model during the occlusion process, that is, detect whether there is an intersection between the updated occlusal pad model and the antagonist model, and obtain a global collision detection result, which is used to describe the collision detection results of each area in the updated occlusal pad model.
[0097] In some embodiments, the thickness detection process is exemplarily described here: the above-mentioned topological results include a topological structure for representing the outer surface of the bite pad model; and the thickness detection process needs to refer to the inner surface of the bite pad model. Therefore, the electronic device can construct a spatial relationship structure of the inner surface of the bite pad model in response to starting the adjustment function for the bite pad model. For example, the spatial relationship structure of the inner surface of the bite pad model can be represented by a kdtree structure, and the shape of the inner surface of the bite pad model will not change during the entire thickness detection process. Therefore, the spatial relationship structure of the inner surface of the bite pad model will not change after it is constructed.
[0098] For S203, after obtaining the updated topological structure, the electronic device can obtain the spatial relationship structure of the inner surface of the above-mentioned bite pad model, and then detect the thickness between the updated bite pad model and the inner surface of the bite pad model based on the updated topological structure and the spatial relationship structure of the inner surface of the bite pad model, and obtain a global thickness detection result. The global thickness detection result is used to describe the thickness detection result of each area in the updated bite pad model. The thickness detection result of each area may include the closest distance from each area to the inner surface of the bite pad model, and may further include a conclusion on whether the closest distance from each area to the inner surface of the bite pad model meets the preset thickness.
[0099] In some embodiments, considering that the user's adjustment operation on the bite pad model is usually an adjustment operation on at least a part of the area of the bite pad model, and the topological structure and related detection results of other unadjusted areas of the bite pad model are not changed, therefore, in order to further improve the real-time performance, please refer to Figure 5 , a flow chart of another method for processing a bite pad model is provided, the method comprising:
[0100] In S501, the bite pad model is displayed on the display interface. Figure 2 The S201 in FIG. 1 is similar to that in FIG. 1 and will not be described in detail here.
[0101] In S502, in response to an adjustment operation on at least a partial region in the bite pad model, a sub-topology structure corresponding to at least the partial region is determined from a topology structure used to represent the bite pad model, and the sub-topology structure is updated based on the adjustment operation.
[0102] Exemplarily, when the user makes adjustments to a local area (i.e., at least a partial area) in the bite pad model, the topological structure of the bite pad model can be updated instantly, and real-time detection can be performed to provide the user with real-time feedback of the adjustment results and detection results of the local area of the bite pad model.
[0103] Exemplarily, at least one of the vertices, edges and facets in the sub-topology structure may be updated based on the user's adjustment operation, such as adding or deleting at least one of the vertices, edges and facets in the sub-topology result, or modifying the position information of at least one of the vertices, edges and facets based on the user's adjustment operation.
[0104] In S503, the updated sub-topology structure is used to detect in real time whether the target area indicated by the updated sub-topology structure meets the preset requirements, and a target detection result for the target area is obtained.
[0105] Exemplarily, at least one of thickness detection and collision detection may be performed on the target area.
[0106] In S504, when at least a part of the area is replaced and displayed as the target area, the target detection result for the target area is synchronously displayed in the display interface.
[0107] In the present embodiment, based on the topological structure used to represent the occlusal pad model commonly used in the occlusal pad model adjustment process and the detection process, only the partial area of the occlusal pad model where adjustment occurs is updated and detected, rather than the entire occlusal pad model. This can reduce the workload of calculation and processing, improve real-time performance and efficiency, and can display the target area and target detection results in the display interface at the same time, allowing the user to more intuitively understand the status of the target area, thereby improving the user's interactive experience.
[0108] In a possible implementation, for S503, after obtaining the updated sub-topology structure, the electronic device can obtain the spatial relationship structure of the pre-built opposing jaw model that has an occlusal relationship with the occlusal pad model; then based on the updated sub-topology structure and the spatial relationship structure of the opposing jaw model, detect whether there is a collision between the target area and the opposing jaw model during the occlusion process, and obtain a collision detection result for the target area. In this embodiment, only the collision detection process of the target area needs to be performed, and there is no need to pay attention to other unadjusted areas in the occlusal pad model, which effectively reduces the workload of calculation and processing and reduces the loss of computing resources.
[0109] The updated sub-topology result includes at least several updated vertices. During the collision detection process, it is possible to detect whether each updated vertex is embedded in the antagonist model and the embedding depth in the antagonist model, thereby obtaining a collision detection result including the embedding depth of each updated vertex in the antagonist model.
[0110] In a possible implementation, for S503, at least a partial area includes at least a partial area of the outer surface of the occlusal pad model; the topological structure includes a topological structure for representing the outer surface of the occlusal pad model. After obtaining the updated sub-topological structure, the electronic device can obtain the spatial relationship structure of the inner surface of the pre-constructed occlusal pad model; then, based on the updated sub-topological structure and the spatial relationship structure of the inner surface of the occlusal pad model, the thickness between the target area and the inner surface of the occlusal model is detected to obtain a thickness detection result for the target local area. In this embodiment, only the thickness detection process of the target area needs to be performed, and there is no need to pay attention to other unadjusted areas in the occlusal pad model, which effectively reduces the workload of calculation and processing and reduces the loss of computing resources.
[0111] The updated sub-topology result includes at least several updated vertices. During the thickness detection process, the closest distance from each updated vertex to the inner surface of the occlusal pad model can be detected, thereby obtaining a thickness detection result including the closest distance between each updated vertex and the inner surface of the occlusal pad model. Furthermore, the thickness detection result can also include a conclusion on whether the closest distance between each updated vertex and the inner surface of the occlusal pad model meets a preset thickness. The preset thickness can be specified by the user based on actual conditions, and this embodiment does not impose any restrictions on this.
[0112] Exemplarily, when a target detection result for a target area is obtained, a local display update process can be implemented, and the electronic device can replace at least a portion of the area in the occlusal pad model displayed in the display interface with the target area, and when replacing at least a portion of the area with the target area, the visual information corresponding to at least a portion of the area can be deleted from the visual information indicated by the global detection result displayed in the display interface, and the target detection result for the target area can be displayed synchronously. In this embodiment, by only updating the display content of the target area and the target detection result for the target area, rather than the display content of the entire model and the global detection result, resources can be saved and the update speed can be increased, thereby improving efficiency and response speed, and by deleting the original visual information corresponding to at least a portion of the area, it can be ensured that the user will not be disturbed when observing the update process, and the accuracy of the display screen can be maintained.
[0113] When displaying the target detection result for the target area, the electronic device may overlay and display the visual information indicated by the target detection result in the replaced target area. This embodiment can intuitively display the state and changes of the target area through the overlay display method, helping the user to better understand the update process and the situation of the target area. Among them, the visual information indicated by the target detection result can be color information, text information, or texture information, etc., and this embodiment does not impose any restrictions on this. Alternatively, the target detection result can also be presented in an auditory manner, and the auditory information indicated by the target detection result can be played through the speaker in the electronic device.
[0114] Taking the target detection result as the collision detection result for the target area as an example, the electronic device can determine the color value corresponding to the embedding depth of each updated vertex according to the pre-set mapping relationship between the embedding depth and the color value and the embedding depth of each updated vertex included in the collision detection result in the jaw model, and then display each updated vertex and at least one of the edges and facets involved in each updated vertex as a corresponding color value, or superimpose the color value around the updated vertex. For example, assuming that the user adjusts the left part of the occlusal pad model, based on the processing method provided in this embodiment, the following can be obtained: Figure 6The target area in the bite pad model is shown, with the color band diagram superimposed on the target area.
[0115] Taking the target detection result as the thickness detection result for the target area as an example, the electronic device can determine the color value corresponding to the shortest distance of each updated vertex according to the preset mapping relationship between the distance and the color value, and the thickness detection result includes the shortest distance between each updated vertex and the inner surface of the bite pad model, and then display each updated vertex and at least one of the edges and facets involved in each updated vertex as the corresponding color value, or superimpose the color value around the updated vertex, for example, as shown in the following figure. Figure 6 The target area in the bite pad model is shown, with the color band diagram superimposed on the target area.
[0116] In some embodiments, after the user finishes adjusting the bite pad model, the adjustment function for the bite pad model can be turned off. Then, in response to turning off the adjustment function for the bite pad model, the electronic device can delete the topological structure used to represent the bite pad model, the spatial relationship structure of the pre-built opposing jaw model that has an occlusal relationship with the bite pad model, and the spatial relationship structure of the inner surface of the pre-built bite pad model, thereby releasing storage space.
[0117] It is not difficult to understand that the solutions described in the above embodiments can be combined when there is no conflict, and they are not listed one by one in the embodiments of the present disclosure.
[0118] Figure 7 is a schematic structural diagram of an electronic device provided by an exemplary embodiment. Figure 7 At the hardware level, the device includes a processor 702, an internal bus 704, a network interface 706, a memory 708, and a non-volatile memory 710, and may also include hardware required for other services. One or more embodiments of this specification may be implemented based on software, such as the processor 702 reading the corresponding computer program from the non-volatile memory 710 into the memory 708 and then running it. Of course, in addition to the software implementation, one or more embodiments of this specification do not exclude other implementations, such as logic devices or a combination of software and hardware, etc., that is, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.
[0119] See also Figure 8 The present application also provides a device for processing a bite pad model, which can be applied to Figure 7 In the electronic device shown in the figure, the technical solution of this specification is implemented. The device includes:
[0120] Display module 801, used to display the bite pad model in the display interface;
[0121] An updating module 802, configured to respond to an adjustment operation on the bite pad model and update a topological structure representing the bite pad model based on the adjustment operation;
[0122] A detection module 803 is used to use the updated topological structure to detect in real time whether the updated bite pad model indicated by the updated topological structure meets the preset requirements, and obtain a target detection result;
[0123] The display module 801 is also used to display the target detection result synchronously when displaying the updated bite pad model in the display interface.
[0124] In one implementation, the adjustment operation includes an adjustment operation on at least a partial area of the bite pad model.
[0125] The updating module 802 is specifically configured to determine a sub-topological structure corresponding to at least a portion of the region from the topological structure used to represent the bite pad model, and to update the sub-topological structure based on the adjustment operation.
[0126] The detection module 803 is specifically used to use the updated sub-topology structure to detect in real time whether the target area indicated by the updated sub-topology structure meets the preset requirements, and obtain the target detection result for the target area.
[0127] The display module 801 is specifically used for: when replacing at least a part of the area with the target area, synchronously displaying the target detection result for the target area in the display interface.
[0128] In one implementation, the display module 801 is also used to synchronously display the global detection result of the bite pad model while displaying the bite pad model in the display interface; the global detection result is used to describe whether each area in the bite pad model meets the preset requirements.
[0129] In one implementation, the display module 801 is further configured to overlay and display the visual information indicated by the global detection result on various regions in the bite pad model.
[0130] In one implementation, the display module 801 is specifically configured to delete visual information corresponding to at least a portion of the region from visual information indicated by the global detection result; and to superimpose and display the visual information indicated by the target detection result in the replaced target region.
[0131] In one implementation, the detection module 803 is specifically used to obtain the spatial relationship structure of a pre-constructed antagonist model that has an occlusal relationship with the occlusal pad model; based on the updated sub-topological structure and the spatial relationship structure of the antagonist model, detect whether there is a collision between the target area and the antagonist model during the occlusion process, and obtain a collision detection result for the target area.
[0132] In one implementation, at least a portion of the area includes at least a portion of the outer surface of the bite pad model; the topological structure includes a topological structure for representing the outer surface of the bite pad model. The detection module 803 is specifically used to obtain the spatial relationship structure of the inner surface of the pre-constructed bite pad model; based on the updated sub-topological structure and the spatial relationship structure of the inner surface of the bite pad model, detect the thickness between the target area and the inner surface of the bite model to obtain a thickness detection result for the target local area.
[0133] In one implementation, it also includes a topology structure processing module, which is used to, in response to starting an adjustment function for the occlusal pad model, at least construct a topology structure for representing the occlusal pad model; and in response to shutting down the adjustment function for the occlusal pad model, at least delete the topology structure for representing the occlusal pad model; wherein the adjustment function is used to instruct the user to perform adjustment operations on the occlusal pad model.
[0134] In one implementation, the adjustment operation includes at least one of a smoothing operation and a carving operation on the bite pad model; and / or the topological structure includes a half-edge topological structure.
[0135] The implementation process of the functions and effects of each module in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, which will not be repeated here.
[0136] Accordingly, an embodiment of the present application further provides an electronic device, including a memory, a processor, and executable instructions stored in the memory and executable on the processor;
[0137] The steps in the above method are implemented when the processor executes the executable instructions.
[0138] Exemplarily, the processor includes but is not limited to a central processing unit (CPU), a graphics processing unit (GPU), a digital signal processor (DSP), an application specific integrated circuit (ASIC), or a field-programmable gate array (FPGA).
[0139] Exemplarily, the memory may include at least one type of storage medium, including flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc.
[0140] Exemplarily, the electronic device also includes a display for providing a display interface, and the display includes but is not limited to a liquid crystal display (LCD), an organic light emitting diode display (OLED), a curved display, an LED display, a 3D display, a touch screen display, and a projector.
[0141] Accordingly, an embodiment of the present application further provides a computer program product, including a computer program / instruction, which is used to implement the above method when executed by a processor.
[0142] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory including instructions, and the above instructions can be executed by a processor of the device to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0143] A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to perform the above method.
[0144] The above are only preferred embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application.
Claims
1. A method for processing a bite pad model, It is characterized in that include: Displaying the bite pad model in a display interface; In response to an adjustment operation on the bite pad model, updating a pre-built topological structure for representing the bite pad model based on the adjustment operation; Using the updated topological structure, real-time detection is performed to determine whether the updated bite pad model indicated by the updated topological structure meets preset requirements, thereby obtaining a target detection result; When the updated bite pad model is displayed in the display interface, the target detection result is displayed synchronously.
2. The method according to claim 1, It is characterized in that The adjustment operation includes an adjustment operation on at least a partial area of the bite pad model; The updating of the pre-built topological structure for representing the bite pad model based on the adjustment operation includes: Determining a sub-topological structure corresponding to the at least partial region from a topological structure used to represent the bite pad model, and updating the sub-topological structure based on the adjustment operation; The updated topological structure is used to detect in real time whether the updated bite pad model indicated by the updated topological structure meets the preset requirements to obtain the target detection result, including: Using the updated sub-topology structure, real-time detection is performed to determine whether a target area indicated by the updated sub-topology structure meets preset requirements, thereby obtaining a target detection result for the target area; When displaying the updated bite pad model in the display interface, the target detection result is displayed synchronously, including: When the at least partial area is replaced with the target area, the target detection result for the target area is synchronously displayed in the display interface.
3. The method according to claim 2, It is characterized in that Before responding to the adjustment operation on the bite pad model, the method further includes: In the process of displaying the bite pad model in the display interface, the global detection result for the bite pad model is displayed synchronously; the global detection result is used to describe whether each area in the bite pad model meets the preset requirements.
4. The method according to claim 3, It is characterized in that The synchronous display of the global detection result for the bite pad model includes: The visual information indicated by the global detection result is superimposed and displayed in each area of the bite pad model.
5. The method according to claim 3 or 4, It is characterized in that The synchronously displaying the target detection result for the target area in the display interface includes: Deleting visual information corresponding to the at least partial area from the visual information indicated by the global detection result; And, visual information indicated by the target detection result is superimposed and displayed in the replaced target area.
6. The method according to claim 2, It is characterized in that The method of using the updated sub-topology structure to detect in real time whether the target area indicated by the updated sub-topology structure meets the preset requirements and obtain the target detection result includes: Acquire the spatial relationship structure of a pre-constructed opposing jaw model that has an occlusal relationship with the occlusal pad model; Based on the updated sub-topological structure and the spatial relationship structure of the opposing jaw model, it is detected whether there is a collision between the target area and the opposing jaw model during the occlusion process, and a collision detection result for the target area is obtained.
7. The method according to claim 2, It is characterized in that The at least partial area includes at least a partial area of the outer surface of the bite pad model; the topological structure includes a topological structure for representing the outer surface of the bite pad model; The method of using the updated sub-topology structure to detect in real time whether the target area indicated by the updated sub-topology structure meets the preset requirements and obtain the target detection result includes: Acquiring the spatial relationship structure of the inner surface of the pre-constructed bite pad model; Based on the updated sub-topological structure and the spatial relationship structure of the inner surface of the occlusal pad model, the thickness between the target area and the inner surface of the occlusal model is detected to obtain a thickness detection result for the target local area.
8. The method according to claim 1, It is characterized in that The method further comprises: In response to starting the adjustment function for the bite pad model, at least the topological structure used to represent the bite pad model is constructed; and in response to closing the adjustment function for the bite pad model, at least the topological structure used to represent the bite pad model is deleted; wherein the adjustment function is used to instruct the user to perform the adjustment operation on the bite pad model.
9. The method according to claim 1, It is characterized in that The adjustment operation includes at least one of a smoothing operation and a carving operation on the bite pad model; and / or, The topological structure includes a half-edge topological structure.
10. A device for processing a bite pad model, It is characterized in that include: A display module, used for displaying the bite pad model in a display interface; An updating module, configured to respond to an adjustment operation on the bite pad model and update a pre-built topological structure for representing the bite pad model based on the adjustment operation; A detection module, used to use the updated topological structure to detect in real time whether the updated bite pad model indicated by the updated topological structure meets the preset requirements, and obtain a target detection result; The display module is further configured to synchronously display the target detection result when displaying the updated bite pad model in the display interface.
11. An electronic device, It is characterized in that including a memory, a processor, and executable instructions stored in the memory and executable on the processor; Wherein, when the processor executes the executable instructions, the steps in the method as described in any one of claims 1 to 9 are implemented.
12. A computer-readable storage medium having computer instructions stored thereon, It is characterized in that When the computer instructions are executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented.
