CN108537797A - The distortion of the mesh optimization method of deformable objects cutting simulation in a kind of virtual operation - Google Patents

The distortion of the mesh optimization method of deformable objects cutting simulation in a kind of virtual operation Download PDF

Info

Publication number
CN108537797A
CN108537797A CN201810330105.1A CN201810330105A CN108537797A CN 108537797 A CN108537797 A CN 108537797A CN 201810330105 A CN201810330105 A CN 201810330105A CN 108537797 A CN108537797 A CN 108537797A
Authority
CN
China
Prior art keywords
grid
mesh
target
quality
unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810330105.1A
Other languages
Chinese (zh)
Other versions
CN108537797B (en
Inventor
王沫楠
马玉政
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Harbin University of Science and Technology
Original Assignee
Harbin University of Science and Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Harbin University of Science and Technology filed Critical Harbin University of Science and Technology
Priority to CN201810330105.1A priority Critical patent/CN108537797B/en
Publication of CN108537797A publication Critical patent/CN108537797A/en
Application granted granted Critical
Publication of CN108537797B publication Critical patent/CN108537797B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three-dimensional [3D] modelling for computer graphics
    • G06T17/005Tree description, e.g. octree, quadtree
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating three-dimensional [3D] models or images for computer graphics
    • G06T19/006Mixed reality

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Graphics (AREA)
  • Software Systems (AREA)
  • Geometry (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

本发明提供一种虚拟手术中可变形对象切割仿真的网格变形优化方法,采用几何优化和拓扑优化,并结合多线程方法对多个任务并行处理,用以解决切割仿真过程中出现的病态单元问题。该方法包括四个步骤,第一,搜索目标单元,根据网格质量搜索需要处理的网格单元;第二,网格优化预处理;第三,网格拓扑优化过程;第四,网格几何优化过程。其中步骤二、三、四使用多线程并行处理。本发明可以在提高网格质量的同时减少网格数量,可以有效的提高网格模型变形计算的效率和稳定性。

The present invention provides a mesh deformation optimization method for cutting simulation of deformable objects in virtual surgery, which adopts geometry optimization and topology optimization, and combines multi-threading method to process multiple tasks in parallel, so as to solve the ill-conditioned units that appear in the cutting simulation process question. The method includes four steps, first, search for the target unit, and search for the grid unit to be processed according to the grid quality; second, the grid optimization preprocessing; third, the grid topology optimization process; fourth, the grid geometry optimization process. Steps 2, 3, and 4 use multi-threaded parallel processing. The invention can reduce the grid quantity while improving the grid quality, and can effectively improve the efficiency and stability of grid model deformation calculation.

Description

一种虚拟手术中可变形对象切割仿真的网格变形优化方法A Mesh Deformation Optimization Method for Deformable Object Cutting Simulation in Virtual Surgery

技术领域technical field

本发明涉及一种虚拟手术切割仿真中的方法,尤其是涉及一种虚拟手术中可变形对象切割仿真的网格变形优化方法。The invention relates to a method in virtual surgery cutting simulation, in particular to a grid deformation optimization method for deformable object cutting simulation in virtual surgery.

背景技术Background technique

虚拟手术为医生提供虚拟的手术环境以及可交互的操作平台,可以用于手术规划,手术训练,手术模拟教学等。与传统的手术训练及手术教学相比,虚拟手术成本低,并且可重复操作。随着虚拟现实技术的不断发展和计算机硬件性能的不断提升,虚拟手术得到了越来越广泛的研究。可变形对象的切割仿真是虚拟手术中的一项基本的、关键的技术,虚拟手术要求可变形对象的切割仿真具有较高的准确性和实时性。Virtual surgery provides doctors with a virtual surgical environment and an interactive operating platform, which can be used for surgical planning, surgical training, and surgical simulation teaching. Compared with traditional surgical training and surgical teaching, virtual surgery has low cost and can be repeated. With the continuous development of virtual reality technology and the continuous improvement of computer hardware performance, virtual surgery has been more and more widely studied. The cutting simulation of deformable objects is a basic and key technology in virtual surgery, and virtual surgery requires the cutting simulation of deformable objects to have high accuracy and real-time performance.

当前可变形对象的切割仿真大部分是基于网格的方法,而基于四面体网格的切割仿真方法是目前应用最广的方法。四面体网格可以通过网格细分构造出几乎任意形状的模型,但是在网格生成和网格划分过程中会出现病态单元,病态单元会极大的降低变形仿真的计算效率和稳定性,并且网格划分会大大增加网格数量,造成计算负担过大,影响仿真的准确性和实时性。因此对于网格的处理一直是切割仿真的研究热点,如何有效的控制网格的数量和质量,到目前为止仍然是一个很有挑战性的问题。Most of the current cutting simulations of deformable objects are based on grids, and the cutting simulation method based on tetrahedral meshes is currently the most widely used method. Tetrahedral meshes can construct models of almost arbitrary shapes through mesh subdivision, but ill-conditioned elements will appear during mesh generation and mesh division, and ill-conditioned elements will greatly reduce the computational efficiency and stability of deformation simulation. Moreover, grid division will greatly increase the number of grids, resulting in excessive calculation burden and affecting the accuracy and real-time performance of simulation. Therefore, the processing of grids has always been a research hotspot in cutting simulation. How to effectively control the quantity and quality of grids is still a very challenging problem so far.

本发明提出了一种虚拟手术中可变形对象切割仿真的网格变形优化方法。采用几何优化和拓扑优化,并结合多线程方法对多个任务并行处理,可以在解决切割仿真过程中出现的病态单元问题的同时减少网格数量,有效的提高网格模型变形计算的效率和稳定性。The invention proposes a grid deformation optimization method for cutting simulation of deformable objects in virtual surgery. Using geometry optimization and topology optimization, combined with multi-threading method to process multiple tasks in parallel, can solve the problem of ill-conditioned elements in the cutting simulation process while reducing the number of meshes, effectively improving the efficiency and stability of mesh model deformation calculation sex.

发明内容Contents of the invention

本发明的目的是为了解决虚拟手术可变形对象切割仿真中的病态单元问题,改善模型的网格质量,提高切割仿真的效率和稳定性,而提出的一种虚拟手术中可变形对象切割仿真的网格变形优化方法。The purpose of the present invention is to solve the problem of ill-conditioned units in the cutting simulation of deformable objects in virtual surgery, improve the mesh quality of the model, and improve the efficiency and stability of cutting simulation, and propose a cutting simulation method of deformable objects in virtual surgery Mesh deformation optimization method.

本发明提供一种虚拟手术中可变形对象切割仿真的网格变形优化方法,该方法包括四个步骤:The present invention provides a mesh deformation optimization method for cutting simulation of deformable objects in virtual surgery. The method includes four steps:

第一步,搜索目标单元,根据网格质量搜索需要处理的网格单元,每个目标单元交给一个线程做后续处理,具体如下:The first step is to search for the target unit, and search for the grid unit that needs to be processed according to the grid quality. Each target unit is handed over to a thread for subsequent processing, as follows:

(a)对于体网格,根据体网格质量的体积长度比率标准在执行切割操作的局部搜索目标单元;(a) For the volume grid, according to the volume length ratio criterion of the volume grid quality, the target unit is searched locally for the cutting operation;

(b)对于面网格,根据面网格质量的面积长度比率标准在执行切割操作的搜索目标单元;(b) For surface grids, the search target unit for the cutting operation is performed according to the area-to-length ratio criterion of the surface grid quality;

(c)若搜索到两个或以上的目标单元相邻,则将其所构成的多边形或多面体作为新的目标单元;(c) If two or more target units are adjacent to each other, use the polygon or polyhedron formed by them as a new target unit;

(d)将搜索到的目标单元储存到目标单元队列中,并依次分配给子线程执行后续步骤。(d) Store the searched target units into the target unit queue, and assign them to sub-threads to execute subsequent steps in turn.

第二步,网格优化预处理,根据搜索到的目标单元对局部目标区域进行处理,具体如下:The second step is grid optimization preprocessing, which processes the local target area according to the searched target unit, as follows:

(a)确定周边单元,利用K-D树数据结构邻近搜索的优势搜索与目标单元(表面网格或体网格)顶点有连接关系的周边单元;(a) Determine the surrounding units, and use the advantages of the proximity search of the K-D tree data structure to search for surrounding units that are connected to the vertices of the target unit (surface grid or volume grid);

(b)删除目标单元的顶点,并删除每个顶点与周边单元的连接关系,从而得到目标区域,目标区域为一个多边形(或多面体);(b) delete the vertices of the target unit, and delete the connection relationship between each vertex and the surrounding units, so as to obtain the target area, which is a polygon (or polyhedron);

(c)根据顶点之间的连接关系更新网格模型的拓扑结构。(c) Update the topology of the mesh model according to the connection relationship between vertices.

第三步,网格拓扑优化过程,对执行完预处理步骤的网格模型重新划分网格并更新拓扑结构,改善目标单元网格质量,具体如下:The third step is the grid topology optimization process. The grid model after the preprocessing step is re-divided and the topology structure is updated to improve the grid quality of the target unit. The details are as follows:

(a)对目标区域重新划分网格,利用目标区域的边界及内部点集执行Delaunay剖分;(a) Regrid the target area, and use the boundary and internal point sets of the target area to perform Delaunay segmentation;

(b)判断网格质量是否满足要求,若满足要求则执行(d),否则执行(c),根据第一步搜索目标单元中所述的质量标准(1)和(2)判断目标区域内的单元是否符合要求;(b) Judging whether the grid quality meets the requirements, if it meets the requirements, execute (d), otherwise execute (c), according to the quality standards (1) and (2) described in the first step to search for the target unit to determine the target area Whether the unit meets the requirements;

(c)在目标区域内添加新顶点并确定顶点位置,之后执行(a),所述新顶点位置为目标区域内最大三角形或四面体的外接圆圆心,最大三角形或四面体为目标区域内外接圆半径最大的单元;(c) Add a new vertex in the target area and determine the position of the vertex, and then perform (a), the position of the new vertex is the center of the circumscribed circle of the largest triangle or tetrahedron in the target area, and the largest triangle or tetrahedron is the circumscribed circle of the target area The element with the largest circle radius;

(d)根据顶点之间的连接关系更新网格模型的拓扑结构,若没有添加新的节点,则直接执行第四步的表面拉普拉斯平滑。(d) Update the topological structure of the mesh model according to the connection relationship between the vertices. If no new nodes are added, the fourth step of surface Laplace smoothing is performed directly.

第四步,网格几何优化过程,对执行完拓扑优化的网格,做几何优化,调节顶点位置,进一步的改善网格质量,具体如下:The fourth step, the mesh geometry optimization process, performs geometric optimization on the mesh that has been topology optimized, adjusts the vertex position, and further improves the mesh quality, as follows:

(a)对目标区域体网格执行网格松弛;(a) Perform mesh relaxation on the volumetric mesh of the target region;

(b)对切割后的局部表面网格执行拉普拉斯平滑,将局部表面网格的每个节点移动到其相邻节点的平均位置。(b) Laplace smoothing is performed on the cut local surface mesh, moving each node of the local surface mesh to the average position of its neighbors.

其中步骤二、三、四中涉及的每个目标区域都作为一个单独的任务投递到线程池做并行处理。Each target area involved in steps 2, 3, and 4 is delivered to the thread pool as a separate task for parallel processing.

本发明与现有技术相比优点在于:Compared with the prior art, the present invention has the advantages of:

1.单独处理每个病态单元,分别对其进行局部优化,可以改善网格质量,并且不会影响其他网格。1. Treating each ill-conditioned unit separately and locally optimizing it separately can improve the grid quality without affecting other grids.

2.采用几何优化和拓扑优化,并结合多线程方法对多个任务并行处理,可以在解决切割仿真过程中出现的病态单元问题的同时减少网格数量,有效的提高网格模型变形计算的效率和稳定性。2. Using geometry optimization and topology optimization, combined with multi-threading method to process multiple tasks in parallel, can reduce the number of grids while solving the problem of ill-conditioned elements in the cutting simulation process, and effectively improve the efficiency of grid model deformation calculation and stability.

3.采用K-D树结构结合多线程加速对周边单元的搜索过程,有效的提高搜索速度,满足虚拟切割中的实时性要求。3. The K-D tree structure combined with multi-threading is used to accelerate the search process of peripheral units, which can effectively improve the search speed and meet the real-time requirements in virtual cutting.

附图说明Description of drawings

图1:一种虚拟手术中可变形对象切割仿真的网格变形优化方法的流程图;Figure 1: A flowchart of a mesh deformation optimization method for cutting simulation of deformable objects in virtual surgery;

图2:目标单元和目标区域的二维示意图;Figure 2: 2D schematic diagram of the target cell and target area;

具体实施方式Detailed ways

图1给出了一种虚拟手术中可变形对象切割仿真的网格变形优化方法的流程图,下面结合具体实施方式进一步说明本发明。FIG. 1 shows a flow chart of a mesh deformation optimization method for cutting simulation of deformable objects in virtual surgery. The present invention will be further described below in combination with specific embodiments.

本发明提供了一种虚拟手术中可变形对象切割仿真的网格变形优化方法,主要步骤介绍如下:The present invention provides a mesh deformation optimization method for cutting simulation of deformable objects in virtual surgery. The main steps are introduced as follows:

第一步,搜索目标单元,根据网格质量搜索需要处理的网格单元,每个目标单元交给一个线程做后续处理,The first step is to search for the target unit, and search for the grid unit to be processed according to the grid quality, and each target unit is handed over to a thread for subsequent processing.

(a)将网格模型的节点存储在三维K-D树中,将不同节点相关的网格单元(四面体或三角面片)保存到一个哈希表中并对其实时更新;(a) Store the nodes of the grid model in a three-dimensional K-D tree, save the grid units (tetrahedron or triangular face) related to different nodes into a hash table and update it in real time;

(b)对于体网格,根据体网格质量的体积长度比率标准在执行切割操作的局部搜索目标单元(b) For the volume grid, according to the volume length ratio standard of the volume grid quality, the target unit is searched locally for the cutting operation

其中ej(j=1,2,3,4,5,6)是四面体网格的六条边的长度,V是四面体网格的体积,QV∈(0,1),QV的值越接近1,说明四面体网格的质量越高,QV=1时,网格单元为正四面体,设定阈值为0.3,搜索QV值小于0.3的四面体单元;where e j (j=1, 2, 3, 4, 5, 6) is the length of the six sides of the tetrahedral mesh, V is the volume of the tetrahedral mesh, Q V ∈ (0, 1), Q V of The closer the value is to 1, the higher the quality of the tetrahedral grid is. When Q V = 1, the grid unit is a regular tetrahedron. The threshold is set to 0.3, and the tetrahedral unit whose Q V value is less than 0.3 is searched;

(c)对于面网格,根据面网格质量的面积长度比率标准在执行切割操作的搜索目标单元(c) For surface mesh, according to the area-to-length ratio criterion of the surface mesh quality, the search target unit for the cutting operation is performed

其中ej(j=1,2,3)是三角面片的三条边的长度,A是三角面片的面积,QF∈(0,1),QF的值越接近1,说明三角形网格的质量越高,QF=1时,网格单元为正三角形,如图2所示以2D情况为例,图中三角形ABC为搜索到的一个目标单元,设定阈值为0.3,搜索QF值小于0.3的四面体单元;Where e j (j=1, 2, 3) is the length of the three sides of the triangular face, A is the area of the triangular face, Q F ∈ (0, 1), the closer the value of Q F is to 1, it shows that the triangular network The higher the quality of the grid, when Q F =1, the grid unit is a regular triangle. As shown in Figure 2, taking the 2D case as an example, the triangle ABC in the figure is a target unit that is searched, and the threshold is set to 0.3, and the search Q Tetrahedral elements with F value less than 0.3;

(d)若搜索到两个或以上的目标单元相邻,则将其所构成的多边形或多面体作为新的目标单元;(d) If two or more target units are adjacent to each other, use the polygon or polyhedron formed by them as a new target unit;

(e)将搜索到的目标单元储存到目标单元队列中,并依次分配给子线程执行后续步骤。(e) Store the searched target units into the target unit queue, and assign them to sub-threads to execute subsequent steps in turn.

第二步,网格优化预处理,根据搜索到的目标单元对局部目标区域进行处理,The second step is grid optimization preprocessing, which processes the local target area according to the searched target unit,

(a)确定周边单元,利用K-D树数据结构邻近搜索的优势搜索与目标单元(表面网格或体网格)顶点有连接关系的周边单元,如图2所示,ABC为目标单元,虚线表示于周边单元的连接;(a) Determine the surrounding units, and use the advantages of the K-D tree data structure proximity search to search for surrounding units that are connected to the vertices of the target unit (surface grid or volume grid). As shown in Figure 2, ABC is the target unit, and the dotted line indicates connection to peripheral units;

(b)删除目标单元的顶点,并删除每个顶点与周边单元的连接关系,从而得到目标区域,目标区域为一个多边形(或多面体),如图2所示,实线表示得到的目标单元;(b) delete the vertex of the target unit, and delete the connection relationship between each vertex and the peripheral unit, thereby obtaining the target area, the target area is a polygon (or polyhedron), as shown in Figure 2, the solid line represents the target unit obtained;

(c)根据顶点之间的连接关系更新网格模型的拓扑结构。;(c) Update the topology of the mesh model according to the connection relationship between vertices. ;

第三步,网格拓扑优化过程,对执行完预处理步骤的网格模型重新划分网格并更新拓扑结构,改善目标单元网格质量,The third step is the grid topology optimization process. The grid model after the preprocessing step is re-divided and the topology structure is updated to improve the grid quality of the target unit.

(a)对目标区域重新划分网格,利用目标区域的边界及内部点集执行Delaunay剖分;(a) Regrid the target area, and use the boundary and internal point sets of the target area to perform Delaunay segmentation;

(b)判断网格质量是否满足要求,若满足要求则执行(d),否则执行(c),根据第一步搜索目标单元中所述的质量标准(1)和(2)判断目标区域内的单元是否符合要求;(b) Judging whether the grid quality meets the requirements, if it meets the requirements, execute (d), otherwise execute (c), according to the quality standards (1) and (2) described in the first step to search for the target unit to determine the target area Whether the unit meets the requirements;

(c)在目标区域内添加新顶点并确定顶点位置,之后执行(a),所述新顶点位置为目标区域内最大三角形或四面体的外接圆圆心,最大三角形或四面体为目标区域内外接圆半径最大的单元;(c) Add a new vertex in the target area and determine the position of the vertex, and then perform (a), the position of the new vertex is the center of the circumscribed circle of the largest triangle or tetrahedron in the target area, and the largest triangle or tetrahedron is the circumscribed circle of the target area The element with the largest circle radius;

(d)根据顶点之间的连接关系更新网格模型的拓扑结构,若没有添加新的节点,则直接执行第四步的表面平滑。(d) Update the topological structure of the mesh model according to the connection relationship between vertices, if no new nodes are added, then directly perform the fourth step of surface smoothing.

第四步,网格几何优化过程,对执行完拓扑优化的网格,做几何优化,调节顶点位置,进一步的改善网格质量,The fourth step is the mesh geometry optimization process. Perform geometry optimization on the mesh that has been topology optimized, adjust the vertex position, and further improve the mesh quality.

(a)对目标区域体网格执行网格松弛,对于目标区域内的每个节点都执行以下操作,(a) Perform mesh relaxation on the target area body mesh, and perform the following operations for each node in the target area,

其中,(xi,yi,zi)为目标节点的坐标,(xp,yp,zp)为目标节点调整后的坐标,N为与目标节点有连接关系的所有节点的总数;Among them, (x i , y i , z i ) are the coordinates of the target node, (x p , y p , z p ) are the adjusted coordinates of the target node, and N is the total number of all nodes connected to the target node;

对调整完的网格进行质量判断,判断标准如下:To judge the quality of the adjusted grid, the judgment criteria are as follows:

其中QR为关联质量系数(0<QR≤1),QVi为第一步中所述的搜索目标单元的质量标准,其中 QVi为包含目标节点的四面体的质量系数,QR越大,网格质量越高;Where Q R is the associated quality coefficient (0<Q R ≤1), Q Vi is the quality standard of the search target unit described in the first step, where Q Vi is the quality coefficient of the tetrahedron containing the target node, The larger Q R is, the higher the grid quality is;

若调整后的目标节点位于目标区域内并且比调整前目标节点的QR值大,则将目标节点移动到调整后的位置,否则令If the adjusted target node is located in the target area and is larger than the QR value of the target node before adjustment, then move the target node to the adjusted position, otherwise let

xp=(xp+xi)/2,yp=(yp+yi)/2,zp=(zp+zi)/2 (5)x p =(x p + xi )/2, y p =(y p +y i )/2, z p =(z p +z i )/2 (5)

之后循环进行上述操作,直到网格质量满足质量判据或者循环次数达到上限,循环上限由用户自主设置;Then repeat the above operations until the grid quality meets the quality criterion or the number of cycles reaches the upper limit, and the upper limit of the cycle is set by the user;

(b)对切割后的局部表面网格执行拉普拉斯平滑,将局部表面网格的每个节点移动到其相邻节点的平均位置。(b) Laplace smoothing is performed on the cut local surface mesh, moving each node of the local surface mesh to the average position of its neighbors.

其中步骤二、三、四中涉及的每个目标区域都作为一个单独的任务投递到线程池做并行处理。Each target area involved in steps 2, 3, and 4 is delivered to the thread pool as a separate task for parallel processing.

Claims (5)

1.一种虚拟手术中可变形对象切割仿真的网格变形优化方法,其特征在于实现步骤如下:1. a mesh deformation optimization method for deformable object cutting simulation in virtual surgery, characterized in that the realization steps are as follows: 第一步,搜索目标单元,根据网格质量搜索需要处理的网格单元,每个目标单元交给一个线程做后续处理;The first step is to search for the target unit, and search for the grid unit to be processed according to the grid quality, and each target unit is handed over to a thread for subsequent processing; 第二步,网格优化预处理,根据搜索到的目标单元对局部目标区域进行处理;The second step is grid optimization preprocessing, which processes the local target area according to the searched target unit; 第三步,网格拓扑优化过程,对执行完预处理步骤的网格模型重新划分网格并更新拓扑结构,改善目标单元网格质量;The third step is the grid topology optimization process, which re-grids the grid model after the preprocessing step and updates the topology structure to improve the grid quality of the target unit; 第四步,网格几何优化过程,对执行完拓扑优化的网格,做几何优化,调节顶点位置,进一步的改善网格质量;The fourth step is the mesh geometry optimization process, which performs geometric optimization on the mesh after performing topology optimization, adjusts the vertex position, and further improves the mesh quality; 其中步骤二、三、四中涉及的每个目标区域都作为一个单独的任务投递到线程池做并行处理。Each target area involved in steps 2, 3, and 4 is delivered to the thread pool as a separate task for parallel processing. 2.根据权利要求1所述的一种虚拟手术中可变形对象切割仿真的网格变形优化方法,其特征在于:第一步中所述的搜索目标单元,2. The mesh deformation optimization method of deformable object cutting simulation in a kind of virtual surgery according to claim 1, characterized in that: the search target unit described in the first step, (a)将网格模型的节点存储在三维K-D树中,将不同节点相关的网格单元(四面体或三角面片)保存到一个哈希表中并对其实时更新;(a) Store the nodes of the grid model in a three-dimensional K-D tree, save the grid units (tetrahedron or triangular face) related to different nodes into a hash table and update it in real time; (b)对于体网格,根据体网格质量的体积长度比率标准在执行切割操作的局部搜索目标单元(b) For the volume grid, according to the volume length ratio standard of the volume grid quality, the target unit is searched locally for the cutting operation 其中ej(j=1,2,3,4,5,6)是四面体网格的六条边的长度,V是四面体网格的体积,QV∈(0,1),QV的值越接近1,说明四面体网格的质量越高,QV=1时,网格单元为正四面体,设定阈值为0.3,搜索QV值小于0.3的四面体单元;where e j (j=1, 2, 3, 4, 5, 6) is the length of the six sides of the tetrahedral mesh, V is the volume of the tetrahedral mesh, Q V ∈ (0, 1), Q V of The closer the value is to 1, the higher the quality of the tetrahedral grid is. When Q V = 1, the grid unit is a regular tetrahedron. The threshold is set to 0.3 to search for tetrahedral units with a Q V value less than 0.3; (c)对于面网格,根据面网格质量的面积长度比率标准在执行切割操作的搜索目标单元(c) For surface mesh, according to the area-to-length ratio criterion of the surface mesh quality, the search target unit for the cutting operation is performed 其中ej(j=1,2,3)是三角面片的三条边的长度,A是三角面片的面积,QF∈(0,1),QF的值越接近1,说明三角形网格的质量越高,QF=1时,网格单元为正三角形,设定阈值为0.3,搜索QF值小于0.3的三角形单元;Where e j (j=1, 2, 3) is the length of the three sides of the triangular surface, A is the area of the triangular surface, Q F ∈ (0, 1), the closer the value of Q F is to 1, it shows that the triangular network The higher the quality of the grid, when QF = 1, the grid unit is a regular triangle, the threshold is set to 0.3, and the triangular unit whose QF value is less than 0.3 is searched; (d)若搜索到两个或以上的目标单元相邻,则将其所构成的多边形或多面体作为新的目标单元;(d) If two or more target units are adjacent to each other, use the polygon or polyhedron formed by them as a new target unit; (e)将搜索到的目标单元储存到目标单元队列中,并依次分配给子线程执行后续步骤。(e) Store the searched target units into the target unit queue, and assign them to sub-threads to execute subsequent steps in sequence. 3.根据权利要求1所述的一种虚拟手术中可变形对象切割仿真的网格变形优化方法,其特征在于:第二步中所述的网格优化预处理,3. The mesh deformation optimization method for deformable object cutting simulation in a virtual surgery according to claim 1, characterized in that: the mesh optimization preprocessing described in the second step, (a)确定周边单元,利用K-D树邻近搜索的优势搜索与目标单元(表面网格或体网格)顶点有连接关系的周边单元;(a) Determine the surrounding units, and use the advantages of the K-D tree proximity search to search for surrounding units that are connected to the vertices of the target unit (surface grid or volume grid); (b)删除目标单元的顶点,并删除每个顶点与周边单元的连接关系,从而得到目标区域,目标区域为一个多边形(或多面体);(b) delete the vertices of the target unit, and delete the connection relationship between each vertex and the surrounding units, so as to obtain the target area, which is a polygon (or polyhedron); (c)根据顶点之间的连接关系更新网格模型的拓扑结构。(c) Update the topology of the mesh model according to the connection relationship between vertices. 4.根据权利要求1所述的一种虚拟手术中可变形对象切割仿真的网格变形优化方法,其特征在于:第三步中所述的网格拓扑优化过程,4. The mesh deformation optimization method for deformable object cutting simulation in a virtual surgery according to claim 1, characterized in that: the mesh topology optimization process described in the third step, (a)对目标区域重新划分网格,利用目标区域的边界及内部点集执行Delaunay剖分;(a) Regrid the target area, and use the boundary and internal point sets of the target area to perform Delaunay segmentation; (b)判断网格质量是否满足要求,若满足要求则直接执行(d),否则执行(c),根据第一步搜索目标单元中所述的质量标准(1)和(2)判断目标区域内的单元是否符合要求;(b) Judging whether the grid quality meets the requirements, if it meets the requirements, execute (d) directly, otherwise execute (c), and judge the target area according to the quality standards (1) and (2) described in the first step of searching for the target unit Whether the units within meet the requirements; (c)在目标区域内添加新顶点并确定顶点位置,之后执行(a),所述新顶点位置为目标区域内最大三角形或四面体的外接圆圆心,所述最大三角形或四面体为目标区域内外接圆半径最大的单元;(c) Add a new vertex in the target area and determine the position of the vertex, and then execute (a), the position of the new vertex is the center of the circumscribed circle of the largest triangle or tetrahedron in the target area, and the largest triangle or tetrahedron is the target area The element with the largest inscribed circle radius; (d)根据顶点之间的连接关系更新网格模型的拓扑结构,若没有添加新的节点,则直接执行第四步网格几何优化中的拉普拉斯平滑。(d) Update the topological structure of the mesh model according to the connection relationship between vertices. If no new nodes are added, then directly perform the Laplace smoothing in the fourth step of mesh geometry optimization. 5.根据权利要求1所述的一种虚拟手术中可变形对象切割仿真的网格变形优化方法,其特征在于:第四步中所述的网格几何优化过程,5. The mesh deformation optimization method for deformable object cutting simulation in a virtual surgery according to claim 1, characterized in that: the mesh geometry optimization process described in the fourth step, (a)对目标区域体网格执行网格松弛,对于目标区域内的每个节点都执行以下操作,(a) Perform mesh relaxation on the target area body mesh, and perform the following operations for each node in the target area, 其中,(xi,yi,zi)为目标节点的坐标,(xp,yp,zp)为目标节点调整后的坐标,N为与目标节点有连接关系的所有节点的总数;Among them, (x i , y i , z i ) are the coordinates of the target node, (x p , y p , z p ) are the adjusted coordinates of the target node, and N is the total number of all nodes connected to the target node; 对调整完的网格进行质量判断,判断标准如下:To judge the quality of the adjusted grid, the judgment criteria are as follows: 其中QR为关联质量系数(0<QR≤1),QVi为第一步中所述的搜索目标单元的质量标准,其中QVi为包含目标节点的四面体的质量系数,QR越大,网格质量越高;Where Q R is the associated quality coefficient (0<Q R ≤1), Q Vi is the quality standard of the search target unit described in the first step, where Q Vi is the quality coefficient of the tetrahedron containing the target node, The larger Q R is, the higher the grid quality is; 若调整后的目标节点位于目标区域内并且比调整前目标节点的QR值大,则将目标节点移动到调整后的位置,否则令If the adjusted target node is located in the target area and is larger than the QR value of the target node before adjustment, then move the target node to the adjusted position, otherwise let xp=(xp+xi)/2,yp=(yp+yi)/2,zp=(zp+zi)/2 (5)x p =(x p + xi )/2, y p =(y p +y i )/2, z p =(z p +z i )/2 (5) 之后循环进行上述操作,直到满足质量标准或达到循环上限;Afterwards, the above operations are repeated until the quality standard is met or the upper limit of the cycle is reached; (b)对切割后的局部表面网格执行拉普拉斯平滑,将局部表面网格的每个节点移动到其相邻节点的平均位置。(b) Laplace smoothing is performed on the cut local surface mesh, moving each node of the local surface mesh to the average position of its neighbors.
CN201810330105.1A 2018-04-09 2018-04-09 A Mesh Deformation Optimization Method for Deformable Object Cutting Simulation in Virtual Surgery Expired - Fee Related CN108537797B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810330105.1A CN108537797B (en) 2018-04-09 2018-04-09 A Mesh Deformation Optimization Method for Deformable Object Cutting Simulation in Virtual Surgery

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810330105.1A CN108537797B (en) 2018-04-09 2018-04-09 A Mesh Deformation Optimization Method for Deformable Object Cutting Simulation in Virtual Surgery

Publications (2)

Publication Number Publication Date
CN108537797A true CN108537797A (en) 2018-09-14
CN108537797B CN108537797B (en) 2019-11-08

Family

ID=63480291

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810330105.1A Expired - Fee Related CN108537797B (en) 2018-04-09 2018-04-09 A Mesh Deformation Optimization Method for Deformable Object Cutting Simulation in Virtual Surgery

Country Status (1)

Country Link
CN (1) CN108537797B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111168990A (en) * 2019-12-30 2020-05-19 浙江大学 Biological 3D printing device and method capable of realizing online detection and real-time correction
CN111222242A (en) * 2020-01-06 2020-06-02 广州中国科学院工业技术研究院 Method for geometric cutting and grid optimization based on grid and electronic equipment
CN113379920A (en) * 2021-06-16 2021-09-10 哈尔滨理工大学 Nose plastic region reconstruction method
CN113742809A (en) * 2021-11-04 2021-12-03 山东神力索具有限公司 Rigging grid adjusting method and device and electronic equipment
CN114781232A (en) * 2022-06-17 2022-07-22 中汽研(天津)汽车工程研究院有限公司 Method, device and storage medium for automatically adjusting quality of finite element mesh
CN115495968A (en) * 2022-11-21 2022-12-20 广州中望龙腾软件股份有限公司 Mesh division method, terminal and storage medium
CN116562065A (en) * 2023-07-12 2023-08-08 北京凌云智擎软件有限公司 Mesh topology conversion method, device and apparatus
CN117593484A (en) * 2023-12-12 2024-02-23 深圳信息职业技术学院 A subgrid update method, system and terminal for a three-dimensional grid model
CN118779939A (en) * 2024-09-10 2024-10-15 浙江远算科技有限公司 A mesh quality adjustment method and system based on geometry optimization and topology optimization
CN119418942A (en) * 2025-01-08 2025-02-11 杭州电子科技大学 A virtual surgery simulation method based on grid adaptive cutting and subdivision

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106169021A (en) * 2016-06-30 2016-11-30 哈尔滨理工大学 A kind of tetrahedral grid Virtual cropping method separated based on path

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106169021A (en) * 2016-06-30 2016-11-30 哈尔滨理工大学 A kind of tetrahedral grid Virtual cropping method separated based on path

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
张暄轩: ""DOT与Micro-CT双模式成像算法研究"", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *
粱英蓬: ""基于配准点云集Delaunay虚拟种植导板研究"", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111168990A (en) * 2019-12-30 2020-05-19 浙江大学 Biological 3D printing device and method capable of realizing online detection and real-time correction
CN111168990B (en) * 2019-12-30 2021-04-09 浙江大学 Biological 3D printing device and method capable of realizing online detection and real-time correction
CN111222242A (en) * 2020-01-06 2020-06-02 广州中国科学院工业技术研究院 Method for geometric cutting and grid optimization based on grid and electronic equipment
CN113379920A (en) * 2021-06-16 2021-09-10 哈尔滨理工大学 Nose plastic region reconstruction method
CN113742809A (en) * 2021-11-04 2021-12-03 山东神力索具有限公司 Rigging grid adjusting method and device and electronic equipment
CN114781232A (en) * 2022-06-17 2022-07-22 中汽研(天津)汽车工程研究院有限公司 Method, device and storage medium for automatically adjusting quality of finite element mesh
CN114781232B (en) * 2022-06-17 2022-09-16 中汽研(天津)汽车工程研究院有限公司 Method, device and storage medium for automatically adjusting quality of finite element mesh
CN115495968B (en) * 2022-11-21 2023-06-02 广州中望龙腾软件股份有限公司 Grid dividing method, terminal and storage medium
CN115495968A (en) * 2022-11-21 2022-12-20 广州中望龙腾软件股份有限公司 Mesh division method, terminal and storage medium
CN116562065A (en) * 2023-07-12 2023-08-08 北京凌云智擎软件有限公司 Mesh topology conversion method, device and apparatus
CN116562065B (en) * 2023-07-12 2023-09-12 北京凌云智擎软件有限公司 Mesh topology conversion method, device and apparatus
CN117593484A (en) * 2023-12-12 2024-02-23 深圳信息职业技术学院 A subgrid update method, system and terminal for a three-dimensional grid model
CN117593484B (en) * 2023-12-12 2025-03-07 深圳信息职业技术学院 Sub-grid updating method, system and terminal of three-dimensional grid model
CN118779939A (en) * 2024-09-10 2024-10-15 浙江远算科技有限公司 A mesh quality adjustment method and system based on geometry optimization and topology optimization
CN118779939B (en) * 2024-09-10 2024-12-13 浙江远算科技有限公司 A mesh quality adjustment method and system based on geometry optimization and topology optimization
CN119418942A (en) * 2025-01-08 2025-02-11 杭州电子科技大学 A virtual surgery simulation method based on grid adaptive cutting and subdivision
CN119418942B (en) * 2025-01-08 2025-03-21 杭州电子科技大学 A virtual surgery simulation method based on grid adaptive cutting and subdivision

Also Published As

Publication number Publication date
CN108537797B (en) 2019-11-08

Similar Documents

Publication Publication Date Title
CN108537797B (en) A Mesh Deformation Optimization Method for Deformable Object Cutting Simulation in Virtual Surgery
CN109461209B (en) Novel structural grid generation method
CN105787226A (en) Reconstruction of parameterization model of quadrilateral finite element grid model
CN108537886A (en) High quality mesh generation and optimization method in a kind of cutting of virtual operation
CN113538689A (en) A 3D model mesh simplification method based on neural network feature fusion
CN111709270A (en) A method and device for three-dimensional shape recovery and attitude estimation based on depth image
CN108230452A (en) A kind of model filling-up hole method based on textures synthesis
CN102903138B (en) A kind of two-dimensional digital character skeleton method of operating considering shape
CN115018992A (en) Method and device for generating hair style model, electronic equipment and storage medium
CN106600700A (en) Three-dimensional model data processing system
CN108961404A (en) A kind of building block system constructs the method and system of irregular model
CN118779939A (en) A mesh quality adjustment method and system based on geometry optimization and topology optimization
CN115310209A (en) VAE-based pneumatic shape migration optimization method and related device
CN105427364B (en) A method for making multi-touch two-dimensional animation
CN104851131A (en) Local precision constrained three-dimensional landform generation method
CN109829232B (en) Layered material distribution simulation method based on random forest algorithm
CN114428984A (en) Wall processing method and device in model, computer equipment and storage medium
CN116524165A (en) Migration method, migration device, migration equipment and migration storage medium for three-dimensional expression model
CN113610711B (en) Single-image-guided three-dimensional surface reconstruction method and device
CN103854299A (en) Image level extraction and editing method based on global energy function optimization
CN116843741B (en) Method, device and equipment for extracting contour features of three-dimensional models for numerical simulation
CN118607233A (en) A layer-by-layer grid growth method based on optimization
WO2024250821A1 (en) Data processing method and apparatus, device, and medium
CN110880180A (en) A virtual cutting algorithm for deformable objects based on mesh optimization
CN117274531A (en) A method and system for meshing architectural surface based on geometric topology

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20191108

Termination date: 20200409