shape_doc 0.1
/Users/mourrain/Devel/mmx/shape/include/shape/ssi_sample.hpp
Go to the documentation of this file.
00001 #ifndef SYNAPS_SHAPE_GAIA_SAMPLE_H
00002 #define SYNAPS_SHAPE_GAIA_SAMPLE_H
00003 
00004 #include <shape/ssi_def.hpp>
00005 #include <shape/surface_parametric.hpp>
00006 
00007 #define ParametricSurface shape::surface_parametric<double>
00008 
00009 namespace mmx {
00010 
00011 namespace shape_ssi
00012 {
00013   struct sample
00014   {
00015     const ParametricSurface * m_psurf;
00016     double * m_uvals;
00017     double * m_vvals;
00018     coord_t  m_nrows;
00019     coord_t  m_ncols;
00020     vector3 * m_svals;
00021     sample( const ParametricSurface * s, int m, int n );
00022     ~sample();
00023     vector3 * base() const { return m_svals; };
00024     int nrows() const { return m_nrows; };
00025     int ncols() const { return m_ncols; };
00026     inline const double & uvalue( int i ) const { return m_uvals[i]; };
00027     inline const double & vvalue( int i ) const { return m_vvals[i]; };
00028   };
00029 
00030 };
00031 
00032 } //namespace mmx
00033 
00034 # undef  ParametricSurface
00035 # endif