/* 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_flatten_cell_.h"

void
net_flatten_cell (struct TESS *pFTess, struct FLATTEN Flatten)
{
  int i;

  (*pFTess).CellQty = (*pFTess).PolyQty;

  (*pFTess).ScaleQty = 2;
  (*pFTess).ScaleCell = ut_alloc_2d_int ((*pFTess).ScaleQty,
					 (*pFTess).PolyQty + 1);

  for (i = 1; i <= (*pFTess).PolyQty; i++)
    (*pFTess).ScaleCell[1][i] = Flatten.PolyDom[i][1];

  return;
}
