Simulation method for viscous force between membranous thin-layer structures based on mass point spring
Through a method based on mass point springs, the mesh of the membranous structure is read and generated, and its viscosity is simulated. This solves the problem of difficulty in simulating the viscosity of the membranous structure in virtual anatomy, and achieves a more realistic virtual anatomy simulation, especially It is a peeling operation of skin and fascia.
Patent Information
- Application Number
- CN202411251977.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-09
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-09-09
AI Technical Summary
Existing technology is difficult to effectively simulate and simulate the viscous force between membranous structures such as skin and fascia, especially in virtual anatomy simulation, resulting in complexity and difficulty in achieving real peeling operations.
Through a method based on mass point springs, the surface mesh of the membrane structure is read, a tetrahedral mesh is generated, the inner and outer surface vertices are identified, and viscous force connections are added to simulate the viscous force between the membrane structures, and 3DMAX is used for modeling Software and PBD physical simulation methods realize deformation simulation.
It realizes the simulation of viscous force between membranous thin-layer tissues, solves the problems of complicated modeling of flocculent tissue structure and difficult physical simulation, and provides a more realistic and safe virtual anatomy practice environment, suitable for I-shaped Operations such as cutting and peeling.
Smart Images

Figure CN118761303A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of simulation technology, and in particular to a viscosity simulation method between membrane thin layer tissues based on a mass point spring. Background Art
[0002] With the development of computer technology and multidisciplinary integration technology, physical simulation technology has gradually been applied to fields such as education and medical treatment. Virtual anatomical simulation is an important application of physical simulation. Virtual anatomical simulation covers a wide range of content. In addition to the simulation of conventional pulling deformation, tissue structure cutting and shearing operations, an important content in virtual anatomical simulation is the peeling operation of membrane structures such as skin and fascia. In real anatomy, since fascia is a flocculent structure, it has the characteristics of complex modeling and difficult simulation. Therefore, a complete thin film structure can be constructed. By adding a connective tissue spring between the membrane structures, the viscosity between the thin membrane tissues based on the particle spring is simulated, which is applied to the peeling operation after the I-shaped cutting in the virtual anatomical physical simulation, providing a more realistic, safe and effective learning environment for medical students.
[0003] Among the existing relatively mature physical simulation simulators, most of them focus more on virtual simulation of minimally invasive surgery, such as laparoscopic or arthroscopic surgery simulation. The modeling and simulation of connective tissue between the liver and gallbladder in the common and relatively mature laparoscopic cholecystectomy training system is an important research topic. However, unlike the contact surface between the liver and gallbladder, in virtual local anatomy simulation, the judgment of the contact surface of membrane structures such as skin and fascia is more complicated. It is necessary to identify the inner and outer surfaces of the model, and then model the adhesion line of the connective tissue spring. The connection mapping method between the two layers of membrane structure is also an important technical problem that needs to be solved. Summary of the invention
[0004] In view of the deficiencies in the prior art, the present invention provides a method for simulating the viscosity between thin membrane layers based on a particle spring, which solves the problems mentioned in the above background technology.
[0005] To achieve the above objectives, the present invention is implemented through the following technical solutions: a method for simulating the viscosity between thin membrane tissues based on a mass spring, specifically comprising the following steps: S1, read the surface mesh of the membrane structure and generate a tetrahedral mesh; S2, identify the vertices of the inner and outer surfaces of the membrane structure model; S3. Add connections between membrane structures to simulate viscosity.
[0006] Preferably, in S1, a surface mesh model with a model texture is produced using 3D MAX modeling software, and a tetrahedral mesh model is generated based on the model to represent the internal structure and deformation of the model, and a physical simulation method based on PBD is used to perform model deformation simulation.
[0007] Preferably, the specific method is: S11. Use 3DMAX modeling software to model the membranous tissue and save it as an OBJ format model; S12, reading the model's vertices, faces, normals, textures and other information from the OBJ file, and displaying the model; S13, using the vertex and face information of the surface mesh model, tetrahedralize the surface mesh model by using the tetrahedralize method of the tetgen library to generate a corresponding tetrahedral mesh model; S14. Initialize the PBD system through the grid. In each time step, update the position and velocity of the particles according to the external forces and constraints to achieve conventional deformation simulation effects, providing a physical simulation basis for the realization of viscosity simulation between models.
[0008] Preferably, in S2, the specific operation steps are: S21. Since the vertex order of the face in the model saved in OBJ format is in counterclockwise order and follows the right-hand screw rule, the normal direction of each triangle face is calculated by the positions of the three vertices: ; S22. For each triangular facet of the membrane structure, calculate whether the normal direction of the current triangular facet intersects with any triangular facet on the model. If there is a triangular facet that intersects with the normal direction of the current triangular facet, it is the inner side face, and the points on it are the inner surface vertices. Otherwise, it is the outer side face, and the corresponding vertices are the outer surface vertices. The remaining vertices are internal vertices generated by tetrahedronization.
[0009] Preferably, the method for determining the intersection of a normal line and a triangle is: S22.1, if satisfied , the normal is parallel to the triangle and does not intersect, where: , , are the three vertices of the triangle; S22.2, otherwise, there is an intersection , further determine the position of the intersection point. If the intersection point is inside the triangle, it is considered that the normal line and the triangle intersect. The method for determining if a point is inside the triangle is as follows: ,in, , , , respectively , , , area.
[0010] Preferably, in S3, the steps of connecting the membrane structures and simulating the viscosity are as follows: S31. The specific method of constructing the connection between the two models is to connect the inner side vertices of the outer layer model vertically to the outer side triangles of the inner layer model, thereby generating a series of viscosity lines; S32, mass spring modeling, giving physical properties to the adhesion line; S33. After the modeling display is completed, it can be applied to the corresponding local anatomical simulation operation. The adhesion line between two adjacent layers of film-like tissue is visualized and the particle spring method is used to add viscosity.
[0011] Preferably, in said S31, the specific construction method is: S31.1. For each vertex on the outer model , draw a perpendicular line to the triangle face of the inner model, and if the foot of the perpendicular line is inside the triangle, return the foot of the perpendicular line and get the triangle , vertical foot The calculation method is: , , , Where n=norm((t2-t1)*(t3-t1)), , , are the coordinates of the triangle vertices on the inner model, are the vertex coordinates on the outer model; S31.2, select a perpendicular line with the shortest distance as the bonding line between the outer model vertex and the inner model; S31.3. Since the end of the glue line is located at any position on the inner model triangle, the barycentric coordinates are used to mark the position of the end point on the triangle. The barycentric coordinates are calculated as follows: ,in, , , , respectively , , , area.
[0012] Preferably, in S32, the specific modeling method is: S32.1. According to Hooke's law, calculate the elastic force between mass point i and mass point j, that is, and vertical foot Elastic force on: , , in, is the elastic constant of the spring, is the existing length of the spring, Represents natural length; S32.2. Update the magnitude of the resultant force on the corresponding vertices on the model at both ends of the spring based on the elastic forces calculated at the two end points of the spring. The elastic forces at the perpendicular foot positions of the spring ends are transferred to the vertices of the triangle faces according to the coordinates of the center of gravity. Then the velocities on the vertices are calculated and the positions of the vertices are updated.
[0013] The beneficial effects of the present invention are as follows: The present invention provides a method for simulating the viscosity between thin membrane tissues based on a particle spring. Compared with the prior art, the method has the following beneficial effects: the method for simulating the viscosity between thin membrane tissues based on a particle spring, by constructing an independent and complete membrane tissue and a spring between two membrane tissues, simulates the viscosity between thin layer model tissues, solves the problem of complex modeling and difficult physical simulation for strip-like or fibrous tissue structures, realizes the simulation of I-shaped cutting in virtual anatomy and the skin flipping and peeling operations after cutting, and can also be applied to the exploration and peeling simulation of blood vessels and nerves, improves a series of operations in virtual anatomy simulation, helps to reduce the cost of anatomy learning, and provides a more realistic, safe and effective anatomy practice environment for teachers and students of anatomy majors. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 A schematic diagram of generating adhesion lines provided by the present invention; Figure 2 This is a visualization diagram of the model grid plus bonding lines provided by the present invention. DETAILED DESCRIPTION
[0015] The technical solutions in the embodiments of the present invention are described clearly and completely below. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0016] A method for simulating viscosity between thin membrane tissues based on a mass spring specifically comprises the following steps: S1. Read the surface mesh of the membrane structure and generate the tetrahedral mesh: S11. Use 3DMAX modeling software to model the membranous tissue and save it as an OBJ format model; S12, reading the model's vertices, faces, normals, textures and other information from the OBJ file, and displaying the model; S13, using the vertex and face information of the surface mesh model, tetrahedralize the surface mesh model by using the tetrahedralize method of the tetgen library to generate a corresponding tetrahedral mesh model; S14. Initialize the PBD system through the grid. In each time step, update the position and velocity of the particles according to the external forces and constraints to achieve the conventional deformation simulation effect, and provide a physical simulation basis for the realization of the viscosity simulation between models. S2. Identify the vertices of the inner and outer surfaces of the membrane structure model: S21. Since the vertex order of the face in the model saved in OBJ format is in counterclockwise order and follows the right-hand screw rule, the normal direction of each triangle face is calculated by the positions of the three vertices: ; S22, for each triangular face of the membrane structure, calculate whether the normal direction of the current triangular face intersects with any triangular face on the model; if there is a triangular face that intersects with the normal direction of the current triangular face, it is the inner side face, and the points on it are the inner surface vertices; otherwise, it is the outer side face, and the corresponding vertices are the outer surface vertices, and the remaining vertices are the inner vertices generated by tetrahedronization; The way to determine the intersection of normal and triangle is: S22.1, if satisfied , the normal is parallel to the triangle and does not intersect, where: , , are the three vertices of the triangle; S22.2, otherwise, there is an intersection , further determine the position of the intersection point. If the intersection point is inside the triangle, it is considered that the normal line and the triangle intersect. The method for determining if a point is inside the triangle is as follows: ,in, , , , respectively , , , area; S3. Add connections between membrane structures to simulate viscosity: S31. The specific method of constructing the connection between the two models is to connect the inner side vertices of the outer layer model vertically to the outer side triangles of the inner layer model, thereby generating a series of viscosity lines; The specific construction method is: S31.1. For each vertex on the outer model , draw a perpendicular line to the triangle face of the inner model, and if the foot of the perpendicular line is inside the triangle, return the foot of the perpendicular line and get the triangle , vertical foot The calculation method is: , , , Where n=norm((t2-t1)*(t3-t1)), , , are the coordinates of the triangle vertices on the inner model, are the vertex coordinates on the outer model; S31.2, select a perpendicular line with the shortest distance as the bonding line between the outer model vertex and the inner model; S31.3. Since the end of the glue line is located at any position on the inner model triangle, the barycentric coordinates are used to mark the position of the end point on the triangle. The barycentric coordinates are calculated as follows: ,in, , , , respectively , , , area; So far, some properties of the glue line have been obtained, including the vertex index of the glue line on the outer model , connected to the triangle index on the inner model , the coordinates of the center of gravity of the triangle where the foot of the perpendicular is located ,like Figure 1 As shown; S32, mass spring modeling, giving physical properties to the adhesion line; The specific modeling method is: S32.1. According to Hooke's law, calculate the elastic force between mass point i and mass point j, that is, and vertical foot Elastic force on: , , in, is the elastic constant of the spring, is the existing length of the spring, Represents natural length; S32.2. Update the magnitude of the resultant force on the corresponding vertices on the model at both ends of the spring according to the elastic forces calculated at the two end points of the spring, wherein the elastic forces at the vertical foot positions of the end of the spring are respectively transmitted to the vertices of the triangle surface according to the coordinates of the center of gravity, and then calculate the velocity on the vertex, and finally update the position of the vertex; S33. After the modeling display is completed, it can be applied to the corresponding local anatomical simulation operation. The adhesion line between two adjacent layers of thin film tissue is visualized and the viscosity is added by the particle spring method. Taking the skin and superficial fascia as an example, the viscosity performance after cutting the skin is as follows: Figure 2 shown.
[0017] Meanwhile, the contents not described in detail in this specification belong to the prior art known to those skilled in the art.
[0018] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.
[0019] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A simulation method of viscosity between thin membrane layers based on mass springs. It is characterized in that The specific steps include: S1, read the surface mesh of the membrane structure and generate a tetrahedral mesh; S2, identify the vertices of the inner and outer surfaces of the membrane structure model; S3. Add connections between membrane structures to simulate viscosity.
2. According to the method for simulating viscosity between thin membrane layers based on mass springs according to claim 1, Features: In S1, a surface mesh model with a model texture is produced using 3D MAX modeling software, and a tetrahedral mesh model is generated based on the model to represent the internal structure and deformation of the model. A physical simulation method based on PBD is used to perform model deformation simulation.
3. According to claim 2, a method for simulating viscosity between thin membrane tissues based on a mass spring, Features: The specific method is: S11. Use 3DMAX modeling software to model the membranous tissue and save it as an OBJ format model; S12, reading the vertex, face, normal, and texture information of the model from the OBJ file, and displaying the model; S13, using the vertex and face information of the surface mesh model, tetrahedralize the surface mesh model by using the tetrahedralize method of the tetgen library to generate a corresponding tetrahedral mesh model; S14. Initialize the PBD system through the grid. In each time step, update the position and velocity of the particles according to the external forces and constraints to achieve conventional deformation simulation effects, providing a physical simulation basis for the realization of viscosity simulation between models.
4. According to claim 1, a method for simulating viscosity between thin membrane tissues based on mass springs, Features: In S2, the specific operation steps are: S21. Since the vertex order of the face in the model saved in OBJ format is in counterclockwise order and follows the right-hand screw rule, the normal direction of each triangle face is calculated by the positions of the three vertices: ; S22. For each triangular facet of the membrane structure, calculate whether the normal direction of the current triangular facet intersects with any triangular facet on the model. If there is a triangular facet that intersects with the normal direction of the current triangular facet, it is the inner side face, and the points on it are the inner surface vertices. Otherwise, it is the outer side face, and the corresponding vertices are the outer surface vertices. The remaining vertices are internal vertices generated by tetrahedronization.
5. According to claim 4, a method for simulating viscosity between thin membrane tissues based on a mass spring, Features: The way to determine the intersection of normal and triangle is: S22.1, if satisfied , the normal is parallel to the triangle and does not intersect, where: , , are the three vertices of the triangle; S22.2, otherwise, there is an intersection , further determine the position of the intersection point. If the intersection point is inside the triangle, it is considered that the normal line and the triangle intersect. The method for determining if a point is inside the triangle is as follows: ,in, , , , respectively , , , area.
6. The method for simulating viscosity between thin membrane layers based on a mass spring according to claim 1, Features: In S3, the specific steps of connecting the membrane structures and simulating the viscosity are as follows: S31. The specific method of constructing the connection between the two models is to connect the inner side vertices of the outer layer model vertically to the outer side triangles of the inner layer model, thereby generating a series of viscosity lines; S32, mass spring modeling, giving physical properties to the adhesion line; S33. After the modeling display is completed, it can be applied to the corresponding local anatomical simulation operation. The adhesion line between two adjacent layers of film-like tissue is visualized and the particle spring method is used to add viscosity.
7. The method for simulating viscosity between thin membrane layers based on mass springs according to claim 6, Features: In the S31, the specific construction method is: S31.
1. For each vertex on the outer model , draw a perpendicular line to the triangle face of the inner model, and if the foot of the perpendicular line is inside the triangle, return the foot of the perpendicular line and get the triangle , vertical foot The calculation method is: , , , Where n=norm((t2-t1)*(t3-t1)), , , are the coordinates of the triangle vertices on the inner model, are the vertex coordinates on the outer model; S31.2, select a perpendicular line with the shortest distance as the bonding line between the outer model vertex and the inner model; S31.
3. Since the end of the glue line is located at any position on the inner model triangle, the barycentric coordinates are used to mark the position of the end point on the triangle. The barycentric coordinates are calculated as follows: ,in, , , , respectively , , , area.
8. The method for simulating viscosity between thin membrane layers based on a mass spring according to claim 6, Features: In the S32, the specific modeling method is: S32.
1. According to Hooke's law, calculate the elastic force between mass point i and mass point j, that is, and vertical foot Elastic force on: , , in, is the elastic constant of the spring, is the existing length of the spring, Represents natural length; S32.
2. Update the magnitude of the resultant force on the corresponding vertices on the model at both ends of the spring based on the elastic forces calculated at the two end points of the spring. The elastic forces at the perpendicular foot positions of the spring ends are transferred to the vertices of the triangle faces according to the coordinates of the center of gravity. Then the velocities on the vertices are calculated and the positions of the vertices are updated.
Citation Information
Patent Citations
Tissue deformation method based on mass spring and hydromechanics
CN105912859A
Anatomical data processing method, device and system
CN107248353A
Real-time simulation method for balloon angioplasty process
CN107411819A
Method for building soft body deformation model based on mixture of mass point springs and filling bodies
CN107590851A
Systems and methods for preventing or treating alzheimer's disease and other neurodegenerative diseases
CN116322901A
