Go to the documentation of this file.00001 #ifndef OPENTISSUE_DYNAMICS_FEM_FEM_UNIFORM_POISSON_H
00002 #define OPENTISSUE_DYNAMICS_FEM_FEM_UNIFORM_POISSON_H
00003
00004
00005
00006
00007
00008
00009
00010 #include <OpenTissue/configuration.h>
00011
00012 namespace OpenTissue
00013 {
00014 namespace fem
00015 {
00016 namespace detail
00017 {
00018
00025 template<typename real_type, typename tetrahedron_iterator>
00026 inline void uniform_poisson(
00027 tetrahedron_iterator const & begin
00028 , tetrahedron_iterator const & end
00029 , real_type const & poisson
00030 )
00031 {
00032 assert(poisson>=0 || !"uniform_poisson() : Poisson ratio must be non-negative");
00033 assert(poisson<=0.5 || !"uniform_poisson() : Poisson ratio must not be larger than a half");
00034
00035 for (tetrahedron_iterator T = begin;T!=end;++T)
00036 T->m_poisson = poisson;
00037 }
00038
00039 }
00040 }
00041 }
00042
00043
00044 #endif