Go to the documentation of this file.00001 #ifndef OPENTISSUE_COLLISION_SDF_SDF_DEBUG_DRAW_SAMPLING_H
00002 #define OPENTISSUE_COLLISION_SDF_SDF_DEBUG_DRAW_SAMPLING_H
00003
00004
00005
00006
00007
00008
00009
00010 #include <OpenTissue/configuration.h>
00011
00012 #include <OpenTissue/utility/gl/gl_util.h>
00013
00014 namespace OpenTissue
00015 {
00016 namespace sdf
00017 {
00018
00026 template<typename sdf_geometry_type>
00027 void debug_draw_sampling(sdf_geometry_type const & geometry)
00028 {
00029 typedef typename sdf_geometry_type::const_point_iterator const_point_iterator;
00030 const_point_iterator end = geometry.m_sampling.end();
00031 const_point_iterator s = geometry.m_sampling.begin();
00032 for(;s != end ;++s)
00033 gl::DrawPoint( (*s) );
00034 }
00035
00036 }
00037
00038 }
00039
00040
00041 #endif