- About this Journal ·
- Abstracting and Indexing ·
- Aims and Scope ·
- Article Processing Charges ·
- Author Guidelines ·
- Bibliographic Information ·
- Citations to this Journal ·
- Contact Information ·
- Editorial Board ·
- Editorial Workflow ·
- Free eTOC Alerts ·
- Publication Ethics ·
- Recently Accepted Articles ·
- Reviewers Acknowledgment ·
- Submit a Manuscript ·
- Subscription Information ·
- Table of Contents
International Journal of Biomedical Imaging
Volume 2013 (2013), Article ID 540571, 11 pages
Free Tools and Strategies for the Generation of 3D Finite Element Meshes: Modeling of the Cardiac Structures
1Department of Computer Science and Statistics (DCCE), São Paulo State University (UNESP), 15054-000 São José do Rio Preto, SP, Brazil
2Department of Cardiology and Cardiovascular Surgery, São José do Rio Preto Medical School–Famerp, 15090-000 São José do Rio Preto, SP, Brazil
3College of Electrical Engineering, Zhejiang University, Hangzhou 310027, China
Received 31 January 2013; Revised 4 April 2013; Accepted 8 April 2013
Academic Editor: Koon-Pong Wong
Copyright © 2013 E. Pavarino et al. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
The Finite Element Method is a well-known technique, being extensively applied in different areas. Studies using the Finite Element Method (FEM) are targeted to improve cardiac ablation procedures. For such simulations, the finite element meshes should consider the size and histological features of the target structures. However, it is possible to verify that some methods or tools used to generate meshes of human body structures are still limited, due to nondetailed models, nontrivial preprocessing, or mainly limitation in the use condition. In this paper, alternatives are demonstrated to solid modeling and automatic generation of highly refined tetrahedral meshes, with quality compatible with other studies focused on mesh generation. The innovations presented here are strategies to integrate Open Source Software (OSS). The chosen techniques and strategies are presented and discussed, considering cardiac structures as a first application context.
The increased use of minimally invasive surgical procedures in medicine is a reality, with applications in different specialties. The small incisions ensure the patient smaller exposure to infections, as well as a quicker recovery. The radiofrequency cardiac ablation is a good example of it, being extensively used for over 10 years in the treatment of tachycardia, atrial fibrillation, and atrial flutter [1–4]. This technique is not free from complications, although it has advanced in the last decade. The esophageal injury is a common damage, characterized by the union of tissues from the left atrium and esophagus, through necrosis [1, 4]. The consequence for the patient is death caused by internal bleeding, as blood is diverted directly to the stomach, when it is not noticed by the physician.
In the literature, studies using the Finite Element Method (FEM) are targeted to improve cardiac ablation procedure and reduce possible complications, such as esophageal injury. It is possible to highlight that the nucleus of the problem is monitoring the temperatures in the tissues involved more accurately. This approach is not simple, and the computational simulation using FEM has contributed significantly to the improvement of this technique [5–12]. For such simulations, the finite element meshes should consider the size and histological features of the target structures. Furthermore, the quality of the meshes is another fundamental property to properly simulate the desired phenomena. The techniques which are able to generate meshes with such characteristics are preferred, and when they are generated with open source codes, they make easier tests with no user restrictions. These properties can guarantee more accurate and clinically relevant simulations.
In this context, it is possible to verify that some methods or tools used to generate meshes of human body structures are still limited by providing or using nondetailed models [5–8, 10, 13–15], by the need of nontrivial preprocessing, which is a primary step applied to define, extract, or change the anatomical features (boundary domain) required by meshing generation step [7, 11, 15–18] or due to limitations of the user condition [5, 6, 8, 12, 13, 18, 19]. One of the reasons for this finding is the necessary commitment to represent the complicated geometries of the involved domains, which requires sophisticated resources being sometimes under development in specific tools for geometric modeling and mesh discretization [20, 21]. A typical integrated software tool to construct three-dimensional domains and finite element meshes may have a development time cycle of more than 10 years [22, 23] and frequently with exceptions to allow linking with other mesh generators. An alternative is integrating Open Source Software packages dedicated to solid modeling with automatic generation of tetrahedral meshes, which are available in the literature. This strategy brings obvious advantages in the context of FEM simulations.
With these findings, the present paper demonstrates alternatives to solid modeling and automatic generation of highly refined tetrahedral meshes and with quality compatible with other studies focused on mesh generation. The innovations presented here are strategies to integrate Open Source Software (OSS). The chosen tools were the Blender software  as solid modeler and the TetGen as automatic mesh generator , which uses the Delaunay tetrahedralization [25, 26]. Furthermore, in this study we demonstrate cardiac structures as a first application context, motivated by the importance that the meshes of these structures represent for studies of cardiac ablation. In the next sections a discussion concerning our strategy for software integration and performance tests in realistic application domain are presented.
2. Material and Methods
The proposed methodology for solid modeling and automatic generation of tetrahedral meshes was organized in Section 2.1, with details about the defined anatomical properties for the application context; Section 2.2, with definitions of the used packages and corresponding justifications; Section 2.3, with details about the recommendations to discretize domains; and Section 2.4, with specifications from the integration process of the models built on the solid modeler to the algorithm used in the automatic mesh generator. The proposal will be described in detail in the next subsections.
2.1. Application: Features of Cardiac Structures
The choices of cardiac structures were motivated by the complicated geometric domain and by the clinical relevance that these structures represent for the investigation of esophageal injury. Therefore, the model defined in our study was composed of cardiac regions consisting of two main parts: the right portion (venous) and the left portion (arterial). Each portion has an atrium, a ventricle, and valves: bicuspid, and tricuspid, pulmonary or aortic valve. The trunks of aorta and pulmonary artery were represented from their connections with the atriums to the beginning of their ramifications. The dimensions of these structures are presented in Table 1 [27–29], defined in cardiac diastole (period of heart muscle relaxation) and values present in major axes. The presence of some structures is visualized on an echocardiographic image (Figure 1), which was used as another reference during the modeling process.
2.2. Free and Open Source Packages
Creating complex three-dimensional models is not a trivial task, especially without the support of sophisticated modelers and already equipped with resources to integrate it with algorithms responsible for mesh generation. The Blender package  maintained by Blender Foundation was chosen. This package is an integrated system of tools, a multiplatform and contains resources to export and import objects in different formats, through scripts. Scripts are useful for automating methods, navigating and manipulating the discretized geometric domain. Moreover, Blender is available under a dual license, Blender License (BL) and GNU General Public License. With all these resources, it becomes possible to represent the domain of interest and use scripts, written in Python language, to export features required by the automatic mesh generator.
The stage for automatic generation of tetrahedral meshes is not a trivial task, a fact that limits the use of a single algorithm to discretize the most different contexts. The algorithms commonly applied to generate tetrahedral meshes have good and bad points [26, 30–32], some of which require manual interference in the domain to obtain the desired discretization. Although there are different methods for generating three-dimensional meshes, we chose the Delaunay algorithm [25, 31] for being one of the most popular and one of the most efficient algorithms , available in the TetGen package . Just as Blender, TetGen is an Open Source Software (OSS) and is available under MIT License. This package is maintained by the research group called Numerical Mathematics and Scientific Computing, Weierstrass Institute for Applied Analysis and Stochastics (WIAS), Berlin, Germany.
The selected packages for the models construction and automatic generation of meshes were explored in a computer with a 2.40 GHz quad core processor and 16 GB of RAM memory. The operating system used uses 64-bit architecture, running Blender in version 2.49b and TetGen mesh generator in version 1.4.
2.3. Definition of Strategies for Solid Construction
The representation of solids in the Blender package must respect two strategies to ensure the integration with the automatic mesh generator. The strategies or recommendations are (1) definitions of faces and (2) density control of vertices, whereas the application of each must consider the complexity of the specific region.
The strategy definitions of faces consist of choosing the most appropriate types of faces to discretize a solid. Regular or noncomplex regions of the specific domain must be discretized with quadrilateral or rectangular faces. A quadrilateral or rectangular face can be modified to fill regions with sharp angles, since the values of the internal angles of the faces are between 30 and 160 degrees. The limits were defined on the basis of the stage of mesh generation, according to the values which propitiated intact and highly refined meshes. In the application focused on this study, quadrilateral or rectangular faces were used to discretize the atriums, the ventricles, the trunks of aorta and pulmonary artery, and the bicuspid, tricuspid, aortic, and pulmonary valves, which are regular and cylindrical regions (marked in blue in Figure 2). Regions with triangular faces were constructed where the discretization required faces with internal angles out of the predetermined range.
The triangular faces are equilateral, isosceles or scalene elements and allow more appropriated representations of regions with sharp angles, such as those occurring at bifurcations points. In the application explored in this study, that situation is commonly evidenced in the bifurcations of arteries and veins, as well as in the regions of connection between atriums, ventricles, and arteries. These regions were demarcated in red in Figure 2.
The strategy density control of vertices defines the number of nodes in a region. The increasing number of vertices allows a better representation of curved regions, by smoothing the direction transition and respecting the features defined on the first property and the orthogonality of the faces (Figure 2). In the context of cardiac structures, this strategy was applied in the construction of cardiac valves, bases of ventricles and in the change of the direction of the aorta and pulmonary artery responsible for their correct positions.
Figure 3 shows examples of regions generated with the strategies or recommendations described previously.
2.4. Application of Integration Strategies
A domain discretized in Blender is stored in its native file format: a “blend file”. The data used to discretize a solid are stored in this standard file in structures named data blocks. Data blocks are data structures similar to the heterogeneous structure type. In a simple domain, several data blocks may be used. The data blocks can be made of object, mesh, material or scene type, including many others. A data block made of object type stores information about the mesh size and the linear transformations applied; a datablock made of mesh type stores information about the vertices, edges, and faces of the model; a datablock made of material type stores information about the colors assigned to a certain set of vertices, edges or faces. These colors are also called markers. Therefore, the datablocks are linked by pointers and defines a data structure of tree type (Figure 4). Figure 5 exemplifies the structures described for material, mesh, and object datablocks used to represent each cardiac structure, based on Blender Architecture, requiring a total of 14 datablocks.
The integration of the models constructed on Blender with the mesh generator TetGen was accomplished by Python script . The script operates into objects generated by the Blender package through four iterative structures. These structures read the data contained in mesh and object data blocks and translate the information about vertices, faces, holes, and attributes accordingly. The processed information is an ASCII file (.poly), properly written in the formats required by TetGen. The Python script presented by  exports only the active solid, which limits the potential for the meshing of mixed solids. The modification performed repeats the process for the group of existing solids automatically and generates a single ASCII file (.poly). Figure 6 shows a diagram of the algorithm used for exportation, with the proposed modification.
A typical “poly file” is composed by 4 parts: an indexed list of point coordinates; a list of solid faces; a list of volume holes; and a list of attributes or boundaries (constraints), see Supplementary Material (Appendix 1) available online at http://dx.doi.org/10.1155/2013/540571.
This process generates three files. A “node file” contains a list of three-dimensional points. Each point has three coordinates (x, y, and z) and probably includes one or several attributes and a boundary marker as well. A “ele file” contains a list of tetrahedrons. Each tetrahedron has four corners. Nodes are indices into the corresponding “node file”. The four nodes are the corner vertices. A “face file” contains a list of triangular faces, which may be boundary faces, or convex hull faces. Each face has three corners and possibly a boundary marker. Nodes are indices into the corresponding “node file” .
3. Results and Discussions
In this work, the cardiac structures were chosen as a first application context, since three-dimensional meshes of these structures are relevant for studies of cardiac ablation. The complicated geometric domain selected allowed to test the feasibility of the combined use of anatomical features (Section 2.1), free and Open Source Packages (Section 2.2) and apply strategies (Sections 2.3 and 2.4). The organization of the cardiac structures was represented in Blender, considering atriums, ventricles, valves (bicuspid, tricuspid, pulmonary, and aortic), and artery trunks (aorta and pulmonary artery). The model is shown in Figure 8, in different projections.
The “poly file” obtained from the strategies described above is partially shown in Supplementary Material (Appendix 2). The file stores data of 3818 vertices, 3980 faces and 10 boundary markers. Boundary markers are numerical codes such as −1000000 used to assign the blue color to the faces of left ventricle. Different colors are used to better distinguish each structure. Boundary markers are normally used to simulations in specific regions. A preview of each structure and its boundary markers is represented in Figure 9.
A raw mesh was generated from the proposal presented, and a cut was made to better illustrate the quality of the mesh. Figure 10 shows a mesh constructed with 33875 faces, 42371 nodes, 10 boundary markers, and 223851 tetrahedral elements, a useful example to validate the concept of iteration loop described in the previous section.
Studies grounded in FEM require tools with resources to generate highly refined meshes of simple or complex domains, and in an acceptable time. The methodology proposed in this paper meets these requirements. For the chosen complicated application context, meshes were generated through successive refinements of the coarse initial mesh (Figure 10). Regions of the atriums and ventricles were used to demonstrate the number of tetrahedral elements presented in some refinements (Figure 11). It was therefore possible to estimate the processing time growth, and the number of tetrahedral elements increased. These results are shown in Figure 12 for each test performed. Just a few studies show how many elements have their meshes [16, 19]. Also, none of these studies provide information about the meshing time. This is a limitation for comparisons of our results.
The mesh quality is another important aspect that should be considered in proposals designed to generate meshes through FEM simulations. The number of meshes elements can be an important criterion for this. Another criterion commonly adopted is showing the dihedral angles obtained. The quality of a tetrahedral element is commonly measured in terms of minimal and/or maximal dihedral angles. The success of the Finite Element Method depends on the shapes of these tetrahedra. For instance, tetrahedra constructed with too small or too large dihedral angles can cause interpolation errors and lead to numerical simulation with higher instability and less accuracy [33, 34]. The desired quality is the one in which the values of dihedral angles are close to the values set on a regular tetrahedron [26, 34, 35]. This can be verified in histograms constructed with the total of dihedral angles present in ranges of angles, as well as identification of the smallest and largest values involved [33, 34].
It is possible to verify through the presentation of the mesh constructed with 12009998 tetrahedral elements (Figure 13) and the corresponding histogram (Figure 14) that our proposal allows obtaining highly refined meshes from complex domains, in some acceptable time and quality. This number of elements may facilitate the representation of degenerated tetrahedral elements and effectively indicate the limits of the proposed approach. However, it is also possible to verify that the tetrahedral elements have dihedral angles whose values belong to the interval which varies from 5 to 170 degrees, with peak values around the condition for a regular tetrahedron. These values are close to those used to determine the mesh quality in other studies [33, 34]. For instance, the algorithm proposed by  is capable of producing tetrahedral meshes whose dihedral angles are bounded between 10.7 and 164.8 degrees or between 8.9 and 158.8 degrees with a change in parameters. Also, when nonuniform tetrahedra on the surface boundary are chosen, the dihedral angles are bounded between 1.66 and 174.72 degrees. In another example, tetrahedral meshes are generated with the minimal dihedral angle being guaranteed to be greater than or equal to 5.71 degrees .
The proposal presented in this paper considered strategies to build solid and automatic mesh generation, based on Open Source Packages. The strategies are feasible to generate highly refined mesh in some acceptable time and with the required quality for simulation using the Finite Element Method (FEM). These facts were demonstrated by considering a complex domain with some practical importance, as in the case of mesh structures for the study of cardiac ablation through FEM. The most refined mesh involved approximately 12 million elements and was generated in 5.35 minutes. Despite the significant number of tetrahedral elements involved, the explored example does not define the limit of possible refinements from our approach. The tetrahedral quality was also discussed and the values of dihedral angles generated are consistent with the literature. So, our proposal provides a significant contribution to the mesh generation for studies using FEM, which is a known method applied in different areas.
This work was financially supported by Pró-Reitoria de Pesquisa/UNESP (PROPe/UNESP).
- E. Sosa and M. Scanavacca, “Left atrial-esophageal fistula complicating radiofrequency catheter ablation of atrial fibrillation,” Journal of Cardiovascular Electrophysiology, vol. 16, no. 3, pp. 249–250, 2005.
- S. Nath, C. Lynch, J. G. Whayne, and D. E. Haines, “Cellular electrophysiological effects of hyperthermia on isolated guinea pig papillary muscle: Implications for catheter ablation,” Circulation, vol. 88, no. 4, pp. 1826–1831, 1993.
- O. J. Eick and D. Bierbaum, “Tissue temperature-controlled radiofrequency ablation,” Pacing and Clinical Electrophysiology, vol. 26, no. 3, pp. 725–730, 2003.
- M. O. Siegel, D. M. Parenti, and G. L. Simon, “Atrial-esophageal fistula after atrial radiofrequency catheter ablation,” Clinical Infectious Diseases, vol. 51, no. 1, pp. 73–76, 2010.
- D. Panescu, J. G. Whayne, S. D. Fleischman, M. S. Mirotznik, D. K. Swanson, and J. G. Webster, “Three-dimensional finite element analysis of current density and temperature distributions during radio-frequency ablation,” IEEE Transactions on Biomedical Engineering, vol. 42, no. 9, pp. 879–890, 1995.
- S. Tungjitkusolmun, E. J. Woo, H. Cao, J. Z. Tsai, V. R. Vorperian, and J. G. Webster, “Finite element analyses of uniform current density electrodes for radio-frequency cardiac ablation,” IEEE Transactions on Biomedical Engineering, vol. 47, no. 1, pp. 32–40, 2000.
- H. Cao, M. A. Speidel, J. Z. Tsai, M. S. Van Lysel, V. R. Vorperian, and J. G. Webster, “FEM analysis of predicting electrode-myocardium contact from RF cardiac catheter ablation system impedance,” IEEE Transactions on Biomedical Engineering, vol. 49, no. 6, pp. 520–526, 2002.
- D. Haemmerich and J. G. Webster, “Automatic control of finite element models for temperature-controlled radiofrequency ablation,” BioMedical Engineering Online, vol. 4, article 42, 2005.
- E. J. Berjano, “Theoretical modeling for radiofrequency ablation: state-of-the-art and challenges for the future,” BioMedical Engineering Online, vol. 5, article 24, 2006.
- F. Hornero and E. J. Berjano, “Esophageal temperature during radiofrequency-catheter ablation of left atrium: a three-dimensional computer modeling study,” Journal of Cardiovascular Electrophysiology, vol. 17, no. 4, pp. 405–410, 2006.
- R. Barauskas, A. Gulbinas, and G. Barauskas, “Investigation of radiofrequency ablation process in liver tissue by finite element modeling and experiment,” Medicina (Kaunas, Lithuania), vol. 43, no. 4, pp. 310–325, 2007.
- W. Yang, T. C. Fung, K. S. Chian, and C. K. Chong, “Finite element simulation of food transport through the esophageal body,” World Journal of Gastroenterology, vol. 13, no. 9, pp. 1352–1359, 2007.
- S. F. Miller, J. D. Geiger, and A. J. Shih, “Thermal-electric finite element analysis and experimental validation of bipolar electrosurgical cautery,” Ann Arbor, vol. 1001, Article ID 48109, 2008.
- C. Brock, R. E. Lontis, F. H. Lundager, P. Kunwald, A. M. Drewes, and H. Gregersen, “Model for electrical field distribution in the human esophagus during stimulation with patch and ring electrodes,” Gastroenterology Research and Practice, vol. 2011, Article ID 562592, 8 pages, 2011.
- S. T. Wall, J. M. Guccione, M. B. Ratcliffe, and J. S. Sundnes, “Electromechanical feedback with reduced cellular connectivity alters electrical activity in an infarct injured left ventricle: a finite element model study,” American Journal of Physiology—Heart and Circulatory Physiology, vol. 302, no. 1, pp. H206–H214, 2012.
- D. Milasinovic, M. Ivanovic, H. Tengg-Kobligk, D. Bockler, and N. Filipovic, “Software tools for generating cfd simulation models of blood ow from ct images, and for postprocessing,” Journal of the Serbian Society for Computational Mechanics, vol. 2, no. 2, pp. 51–58, 2008.
- O. Ecabert, J. Peters, M. J. Walker et al., “Segmentation of the heart and great vessels in ct images using a model-based adaptation framework,” Medical Image Analysis, vol. 15, no. 6, pp. 863–876, 2011.
- Z. Sun and T. Chaichana, “Fenestrated stent graft repair of abdominal aortic aneurysm: hemodynamic analysis of the effect of fenestrated stents on the renal arteries,” Korean Journal of Radiology, vol. 11, no. 1, pp. 95–106, 2010.
- D. Richens, M. Field, S. Hashim, M. Neale, and C. Oakley, “A finite element model of blunt traumatic aortic rupture,” European Journal of Cardio-thoracic Surgery, vol. 25, no. 6, pp. 1039–1047, 2004.
- O. Foundation, Openfoam, January 2012, http://www.openfoam.org/.
- “Engrid—open-source mesh generation,” January 2012, http://engits.eu/en/engrid.
- C. Geuzaine and J. F. Remacle, “Gmsh: A 3-D finite element mesh generator with built-in pre- and post-processing facilities,” International Journal for Numerical Methods in Engineering, vol. 79, no. 11, pp. 1309–1331, 2009.
- M. Botsch, S. Steinberg, S. Bischoff, and L. Kobbelt, “Openmesh-a generic and efficient polygon mesh data structure,” in Proceedings of the OpenSG Symposium, 2002.
- Blender, Blender foundation, December 2011, http://www.blender.org/.
- H. Si, TetGen, A Quality Tetrahedral Mesh Generator and Threedimensional Delaunay Triangulator, Weierstrass Institute for Applied Analysis and Stochastic, Berlin, Germany, 2011.
- D. Gerrits, R. Gabriels, and P. Kooijmans, “A survey of mesh generation techniques,” Tech. Rep., Department of Mathematics & Computer Science Technische, Universiteit Eindhoven, 2006.
- R. O. Bonow, D. L. Mann, D. P. Zipes, and P. Libby, Braunwald's Heart Disease: A Textbook of Cardiovascular Medicine, 2-Volume Set, Saunders, 2011.
- “Echocardiography in icu—left atrium dimensions,” June 2012, https://www.stanford.edu/group/ccm_echocardio/cgi-bin/mediawiki/index.php/Left_atrium_dimensions.
- L. G. Rudski, W. W. Lai, J. Afilalo et al., “Guidelines for the Echocardiographic Assessment of the Right Heart in Adults: A Report from the American Society of Echocardiography. Endorsed by the European Association of Echocardiography, a registered branch of the European Society of Cardiology, and the Canadian Society of Echocardiography,” Journal of the American Society of Echocardiography, vol. 23, no. 7, pp. 685–713, 2010.
- M. Lizier, J. Shepherd, L. Nonato, J. Comba, and C. Silva, “Comparing techniques for tetrahedral mesh generation,” in Proceedings of the Inaugural International Conference of the Engineering Mechanics Institute, 2008.
- K. Ho-Le, “Finite element mesh generation methods: a review and classification,” Computer-Aided Design, vol. 20, no. 1, pp. 27–38, 1988.
- D. Pedroso, Tetgen export, March 2007, http://cvs.savannah.gnu.org/viewvc/*checkout*/mechsys/mechsys/src/py_scripts/blender/tetgen_export.py.
- J. Wang and Z. Yu, “Feature-sensitive tetrahedral mesh generation with guaranteed quality,” Computer-Aided Design, vol. 44, no. 5, pp. 400–412, 2012.
- F. Labelle and J. R. Shewchuk, “Isosurface stuffing: fast tetrahedral meshes with good dihedral angles,” ACM Transactions on Graphics, vol. 26, no. 3, Article ID 1276448, 2007.
- P. M. Knupp, “Algebraic mesh quality metrics,” SIAM Journal on Scientific Computing, vol. 23, no. 1, pp. 193–218, 2002.