#include "auxiliar.h" using namespace Geometry; // FUNCIONES DE ALLOCATE uint32 **Allocate2DArrayINT(uint32 nRows, uint32 nCols){ //uint32 **Allocate2DArrayINT(uint32 nRows, uint32 nCols){ uint32 **ppi,*pool,*curPtr; //unsigned short int **ppi,*pool,*curPtr; //(step 1) allocate memory for array of elements of column ppi = new uint32*[nRows]; //(step 2) allocate memory for array of elements of each row pool = new uint32 [nRows * nCols]; // Now point the pointers in the right place curPtr = pool; for(unsigned int i = 0; i < nRows; i++) { *(ppi + i) = curPtr; curPtr += nCols; } return ppi; }