00001 #ifndef OPENTISSUE_CORE_CONTAINERS_T4MESH_UTIL_T4MESH_TETGEN_QUALITY_TETRAHEDRALIZATION_H 00002 #define OPENTISSUE_CORE_CONTAINERS_T4MESH_UTIL_T4MESH_TETGEN_QUALITY_TETRAHEDRALIZATION_H 00003 // 00004 // OpenTissue Template Library 00005 // - A generic toolbox for physics-based modeling and simulation. 00006 // Copyright (C) 2008 Department of Computer Science, University of Copenhagen. 00007 // 00008 // OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php 00009 // 00010 #include <OpenTissue/configuration.h> 00011 00012 #include <OpenTissue/core/containers/t4mesh/util/t4mesh_tetgen_mesh_lofter.h> 00013 00014 namespace OpenTissue 00015 { 00016 namespace t4mesh 00017 { 00018 namespace tetgen 00019 { 00020 00030 template<typename t4mesh_type, typename polymesh_type> 00031 inline bool quality_tetrahedralization(const polymesh_type& polymesh, t4mesh_type & t4mesh) 00032 { 00033 OpenTissue::t4mesh::mesh_lofter_settings config; 00034 00035 config.m_intermediate_file = "tmp"; 00036 config.m_quality_ratio = 2.0; 00037 config.m_maximum_volume = 0.0; 00038 config.m_quiet_output = true; 00039 00040 return OpenTissue::t4mesh::mesh_lofter(t4mesh, polymesh, config); 00041 } 00042 00043 } // namespace tetgen 00044 } // namespace t4mesh 00045 } // namespace OpenTissue 00046 00047 //OPENTISSUE_CORE_CONTAINERS_T4MESH_UTIL_T4MESH_TETGEN_QUALITY_TETRAHEDRALIZATION_H 00048 #endif