/*
	ContourToMesh.h
*/

#ifndef _CONTOURTOMESH_H
#define _CONTOURTOMESH_H

#ifdef HAVE_CONFIG_H
	#include <config.h>
#else
	#error "Cannot compile with HAVE_CONFIG_H symbol! run configure first!"
#endif

/*For python modules: needs to come before header files inclusion*/
#ifdef _HAVE_PYTHON_
#define PY_ARRAY_UNIQUE_SYMBOL PythonIOSymbol
#endif

/*Header files: */
#include "../../c/include/globals.h"
#include "../../c/toolkits/toolkits.h"
#include "../../c/include/include.h"
#include "../../c/modules/modules.h"
#include "../../c/Container/Container.h"
#include "../../c/shared/shared.h"
#include "../bindings.h"
#include "../../c/io/io.h"
#include "../../c/EnumDefinitions/EnumDefinitions.h"

#undef __FUNCT__
#define __FUNCT__ "ContourToMesh"

#ifdef _HAVE_MATLAB_MODULES_
/* serial input macros: */
#define INDEX       prhs[0]
#define X           prhs[1]
#define Y           prhs[2]
#define CONTOUR     prhs[3]
#define INTERPTYPE  prhs[4]
#define EDGEVALUE   prhs[5]
/* serial output macros: */
#define PLHS0 (mxArray**)&plhs[0]
#define PLHS1 (mxArray**)&plhs[1]
#endif

#ifdef _HAVE_PYTHON_MODULES_
/* serial input macros: */
#define INDEX       PyTuple_GetItem(args,0)
#define X           PyTuple_GetItem(args,1)
#define Y           PyTuple_GetItem(args,2)
#define CONTOUR     PyTuple_GetItem(args,3)
#define INTERPTYPE  PyTuple_GetItem(args,4)
#define EDGEVALUE   PyTuple_GetItem(args,5)
/* serial output macros: */
#define PLHS0 output,0
#define PLHS1 output,1
#endif

/* serial arg counts: */
#undef NLHS
#define NLHS  2
#undef NRHS
#define NRHS 6

#endif  /* _CONTOURTOMESH_H */

