#include <meshpatch.h>


meshpatch::meshpatch(uintc M_, uintc N_)
  : M(M_), N(N_), vbu(new bernsteinPoly[M+1]), vbv(new bernsteinPoly[N+1]), 
  vbuval(new double[M+1]), vbvval(new double[N+1])
{
  for (uint i=0; i<=M; ++i)
    vbu[i].construct(M,i);
  for (uint i=0; i<=N; ++i)
    vbv[i].construct(N,i);
}


meshpatch::~meshpatch()
{
  delete[] vbu;
  delete[] vbv;
  delete[] vbuval;
  delete[] vbvval;
}


