/* This file is part of the Neper software package. */
/* Copyright (C) 2003-2014, Romain Quey. */
/* See the COPYING file in the top-level directory. */

#include"net_tesr_vor_.h"

void
net_tesr_vor (struct IN In, struct TESS Domain,
             struct SEEDSET GSet, struct TESR *pTesr)
{
  if (In.dim >= 1 && In.dim <= 3)
  {
    net_tesr_vor3 (Domain, GSet, pTesr);

    (*pTesr).CellId = ut_alloc_1d_int ((*pTesr).CellQty + 1);
    ut_array_1d_int_set_id ((*pTesr).CellId, (*pTesr).CellQty + 1);

    (*pTesr).CellOri = ut_alloc_2d ((*pTesr).CellQty + 1, 4);
    ut_array_2d_memcpy ((*pTesr).CellOri + 1, (*pTesr).CellQty, 4,
	GSet.q + 1);
  }

  return;
}
