Changeset 15396 for issm/trunk/src/c/modules/TriMeshx/TriMeshx.cpp
- Timestamp:
- 07/02/13 09:24:16 (12 years ago)
- Location:
- issm/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk
- Property svn:ignore
-
old new 1 par 2 ad 3 proj-* 1 4 projects 2 5 autom4te.cache
-
- Property svn:mergeinfo changed
/issm/trunk-jpl merged: 14311,14313,14316-14506,14508-15387,15390-15392
- Property svn:ignore
-
issm/trunk/src
- Property svn:mergeinfo changed
-
issm/trunk/src/c/modules/TriMeshx/TriMeshx.cpp
r14310 r15396 6 6 #include "./TriMeshx.h" 7 7 #include "../../shared/shared.h" 8 #include "../../include/include.h"9 #include "../../io/io.h"10 8 #include "../../toolkits/toolkits.h" 11 #include "../../EnumDefinitions/EnumDefinitions.h"12 9 /*ANSI_DECLARATORS needed to call triangle library: */ 13 10 #if defined(_HAVE_TRIANGLE_) … … 22 19 /*}}}*/ 23 20 24 void TriMeshx( SeqMat<int>** pindex,SeqVec<IssmPDouble>** px,SeqVec<IssmPDouble>** py,SeqMat<int>** psegments,SeqVec<int>** psegmentmarkerlist,DataSet* domain,DataSet* rifts,double area){21 void TriMeshx(int** pindex,IssmPDouble** px,IssmPDouble** py,int** psegments,int** psegmentmarkerlist,int* pnels,int* pnods, int* pnsegs,Contours* domain,Contours* rifts,double area){ 25 22 26 23 #if !defined(_HAVE_TRIANGLE_) … … 31 28 32 29 /*output: */ 33 int *index = NULL; 34 SeqMat<int> *index_matrix = NULL; 35 double *x = NULL; 36 double *y = NULL; 37 int *segments = NULL; 38 SeqMat<int> *segments_matrix = NULL; 39 int *segmentmarkerlist = NULL; 30 int *index = NULL; 31 double *x = NULL; 32 double *y = NULL; 33 int *segments = NULL; 34 int *segmentmarkerlist = NULL; 40 35 41 36 /*intermediary: */ … … 197 192 198 193 /*Output : */ 199 index_matrix=new SeqMat<int>(index,out.numberoftriangles,3,1); 200 *pindex=index_matrix; 201 202 segments_matrix=new SeqMat<int>(segments,out.numberofsegments,3,1); 203 *psegments=segments_matrix; 204 205 *px=new SeqVec<IssmPDouble>(x,out.numberofpoints); 206 *py=new SeqVec<IssmPDouble>(y,out.numberofpoints); 207 *psegmentmarkerlist=new SeqVec<int>(segmentmarkerlist,out.numberofsegments); 194 *pindex=index; 195 *px=x; 196 *py=y; 197 *psegments=segments; 198 *psegmentmarkerlist=segmentmarkerlist; 199 *pnels=out.numberoftriangles; 200 *pnods=out.numberofpoints; 201 *pnsegs=out.numberofsegments; 208 202 #endif 209 203 }
Note:
See TracChangeset
for help on using the changeset viewer.