9 _printf_(
"CONTOURTOMESH - Flag the elements or nodes inside a contour\n");
12 _printf_(
" [in_nod,in_elem]=ContourToMesh(index,x,y,contourname,interptype,edgevalue)\n");
14 _printf_(
" index,x,y: mesh triangulation.\n");
15 _printf_(
" contourname: name of .exp file containing the contours.\n");
16 _printf_(
" interptype: string definining type of interpolation ('element', or 'node').\n");
17 _printf_(
" edgevalue: integer (0, 1 or 2) defining the value associated to the nodes on the edges of the polygons.\n");
18 _printf_(
" in_nod: vector of flags (0 or 1), of size nods if interptype is set to 'node' or 'element and node', \n");
19 _printf_(
" or of size 0 otherwise.\n");
20 _printf_(
" in_elem: vector of flags (0 or 1), of size nel if interptype is set to 'element' or 'element and node', \n");
21 _printf_(
" or of size 0 otherwise.\n");
24 _printf_(
" in_nod=ContourToMesh(md.elements,md.x,md.y,'Contour.exp','node',1)\n");
25 _printf_(
" in_elements=ContourToMesh(md.elements,md.x,md.y,'Contour.exp','element',0)\n");
26 _printf_(
" [in_nodes,in_elements]=ContourToMesh(md.elements,md.x,md.y,'Contour.exp','element and node',0)\n");
37 char *interptype = NULL;
41 double *in_nod = NULL;
42 double *in_elem = NULL;
48 #ifdef _HAVE_MATLAB_MODULES_
49 if(nlhs!=1 && nlhs!=2){
69 ContourToMeshx( &in_nod,&in_elem,index,x,y,contours,interptype,nel,nods,edgevalue);
76 xDelete<double>(index);
79 xDelete<char>(interptype);
81 xDelete<double>(in_nod);
82 xDelete<double>(in_elem);