1 | /*
|
---|
2 | TriMesh.h
|
---|
3 | */
|
---|
4 |
|
---|
5 | #ifndef _TRIMESH_H
|
---|
6 | #define _TRIMESH_H
|
---|
7 |
|
---|
8 |
|
---|
9 | #ifdef HAVE_CONFIG_H
|
---|
10 | #include <config.h>
|
---|
11 | #else
|
---|
12 | #error "Cannot compile with HAVE_CONFIG_H symbol! run configure first!"
|
---|
13 | #endif
|
---|
14 |
|
---|
15 | /*Very important definition in case we are compiling a python module!: needs to come before header files inclusion*/
|
---|
16 | #ifdef _HAVE_PYTHON_
|
---|
17 | #define PY_ARRAY_UNIQUE_SYMBOL PythonIOSymbol
|
---|
18 | #endif
|
---|
19 |
|
---|
20 | #include "../../c/include/globals.h"
|
---|
21 | #include "../../c/toolkits/toolkits.h"
|
---|
22 | #include "../../c/include/include.h"
|
---|
23 | #include "../../c/modules/modules.h"
|
---|
24 | #include "../../c/Container/Container.h"
|
---|
25 | #include "../../c/shared/shared.h"
|
---|
26 | #include "../../c/io/io.h"
|
---|
27 | #include "../../c/EnumDefinitions/EnumDefinitions.h"
|
---|
28 |
|
---|
29 | #ifdef _HAVE_MATLAB_
|
---|
30 | /* serial input macros: */
|
---|
31 | #define DOMAINOUTLINE (mxArray *)prhs[0]
|
---|
32 | #define AREA (mxArray *)prhs[1]
|
---|
33 | #define ORDER (mxArray *)prhs[2]
|
---|
34 |
|
---|
35 | /* serial output macros: */
|
---|
36 | #define INDEX (mxArray**)&plhs[0]
|
---|
37 | #define X (mxArray**)&plhs[1]
|
---|
38 | #define Y (mxArray**)&plhs[2]
|
---|
39 | #define SEGMENTS (mxArray**)&plhs[3]
|
---|
40 | #define SEGMENTMARKERLIST (mxArray**)&plhs[4]
|
---|
41 |
|
---|
42 | #endif
|
---|
43 | #ifdef _HAVE_PYTHON_
|
---|
44 | /* serial input macros: */
|
---|
45 | #define DOMAINOUTLINE PyTuple_GetItem(args,0)
|
---|
46 | #define AREA PyTuple_GetItem(args,1)
|
---|
47 | #define ORDER PyTuple_GetItem(args,2)
|
---|
48 |
|
---|
49 | /* serial output macros: */
|
---|
50 | #define INDEX output,0
|
---|
51 | #define X output,1
|
---|
52 | #define Y output,2
|
---|
53 | #define SEGMENTS output,3
|
---|
54 | #define SEGMENTMARKERLIST output,4
|
---|
55 | #endif
|
---|
56 |
|
---|
57 | /* local prototypes: */
|
---|
58 | void TriMeshUsage(void);
|
---|
59 |
|
---|
60 | #undef __FUNCT__
|
---|
61 | #define __FUNCT__ "TriMesh"
|
---|
62 |
|
---|
63 | /* serial arg counts: */
|
---|
64 | #undef NLHS
|
---|
65 | #define NLHS 5
|
---|
66 | #undef NRHS
|
---|
67 | #define NRHS 3
|
---|
68 |
|
---|
69 | #endif /* _TRIMESH_H */
|
---|