00001 #ifndef OPENTISSUE_CORE_CONTAINERS_MESH_COMMON_UTIL_MESH_COMPUTE_AABB_H 00002 #define OPENTISSUE_CORE_CONTAINERS_MESH_COMMON_UTIL_MESH_COMPUTE_AABB_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/mesh/common/util/mesh_compute_mesh_minimum_coord.h> 00013 #include <OpenTissue/core/containers/mesh/common/util/mesh_compute_mesh_maximum_coord.h> 00014 00015 namespace OpenTissue 00016 { 00017 namespace mesh 00018 { 00019 00039 template<typename mesh_type> 00040 inline void compute_aabb( 00041 mesh_type const & mesh 00042 , typename mesh_type::math_types::vector3_type & min_coord 00043 , typename mesh_type::math_types::vector3_type & max_coord 00044 ) 00045 { 00046 OpenTissue::mesh::compute_mesh_minimum_coord( mesh, min_coord ); 00047 OpenTissue::mesh::compute_mesh_maximum_coord( mesh, max_coord ); 00048 } 00049 00050 } // namespace mesh 00051 } // namespace OpenTissue 00052 00053 // OPENTISSUE_CORE_CONTAINERS_MESH_COMMON_UTIL_MESH_COMPUTE_AABB_H 00054 #endif