// declaration: template class sds_mipmap { public: sds_mipmap(const border_t& Top, const border_t& Right, const border_t& Bottom, const border_t& Left, const point_array& ParentPoints, int Level, double Size) : m_parent_points(ParentPoints), m_level(Level), m_size(Size), m_points(boost::extents[Size][Size]), m_valid(false) { // initialise border points for (int i = 0; i < m_size; ++i) { m_points[0][i] = Left.at(i); m_points[i][0] = Bottom.at(i); m_points[m_size-1][i] = Right.at(i); m_points[i][m_size-1] = Top.at(i); } // initialise other points for (int i = 1; i < m_size-1; ++i) { for (int j = 1; j < m_size-1; ++j) { m_points[i][j] = new k3d::point(0.0,0.0,0.0); } } } void update(); private: const point_array& m_parent_points; int m_level; int m_size; point_array m_points; bool m_valid; }; // implementation of update: void libk3dmesh::detail::sds_mipmap::update( ) { }