00001 #ifndef OPENTISSUE_CORE_CONTAINERS_MESH_COMMON_UTIL_MESH_MAKE_H 00002 #define OPENTISSUE_CORE_CONTAINERS_MESH_COMMON_UTIL_MESH_MAKE_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_add2mesh.h> 00013 00014 namespace OpenTissue 00015 { 00016 namespace mesh 00017 { 00018 00034 template<typename mesh_type> 00035 inline void make( 00036 mesh_type const & A 00037 , mesh_type const & B 00038 , mesh_type & C 00039 ) 00040 { 00041 C.clear(); 00042 add2mesh(A,C); 00043 add2mesh(B,C); 00044 } 00045 00062 template<typename mesh_type> 00063 inline mesh_type make( 00064 mesh_type const & A 00065 , mesh_type const & B 00066 ) 00067 { 00068 mesh_type C; 00069 make(A,B,C); 00070 return C; 00071 } 00072 00073 } // namespace mesh 00074 } // namespace OpenTissue 00075 00076 //OPENTISSUE_CORE_CONTAINERS_MESH_COMMON_UTIL_MESH_MAKE_H 00077 #endif