Changeset 11944 for issm/trunk-jpl/src/c/modules/TriMeshx/TriMeshx.cpp
- Timestamp:
- 04/05/12 14:54:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified issm/trunk-jpl/src/c/modules/TriMeshx/TriMeshx.cpp ¶
r11880 r11944 20 20 /*output: */ 21 21 double* index=NULL; 22 Matrix* index_matrix=NULL; 22 23 double* x=NULL; 23 24 double* y=NULL; 24 25 double* segments=NULL; 26 Matrix* segments_matrix=NULL; 25 27 double* segmentmarkerlist=NULL; 26 28 … … 90 92 backcounter=counter; 91 93 } 94 92 95 93 96 /*Build regions: */ … … 124 127 125 128 sprintf(options,"%s%lf","pQzDq30ia",area); /*replace V by Q to quiet down the logging*/ 129 126 130 127 131 triangulate(options, &in, &out, NULL); 132 128 133 /*report(&out, 0, 1, 1, 1, 1, 0);*/ 134 129 135 130 136 /*Allocate index, x and y: */ … … 151 157 } 152 158 159 160 153 161 /*Associate elements with segments: */ 154 162 AssociateSegmentToElement(&segments,out.numberofsegments,index,out.numberoftriangles); … … 159 167 } 160 168 161 printf("%i %i %i\n",out.numberoftriangles,out.numberofpoints,out.numberofsegments);162 169 163 170 /*Output : */ 164 *pindex=new Matrix(index,out.numberoftriangles,3,1); 171 index_matrix=new Matrix(index,out.numberoftriangles,3,1); 172 index_matrix->Convert(DENSE_SEQUENTIAL); 173 *pindex=index_matrix; 174 175 segments_matrix=new Matrix(segments,out.numberofsegments,3,1); segments_matrix->Convert(DENSE_SEQUENTIAL); 176 *psegments=segments_matrix; 177 165 178 *px=new Vector(x,out.numberofpoints); 166 179 *py=new Vector(y,out.numberofpoints); 167 *psegments=new Matrix(segments,out.numberofsegments,3,1);168 180 *psegmentmarkerlist=new Vector(segmentmarkerlist,out.numberofsegments); 181 169 182 }
Note:
See TracChangeset
for help on using the changeset viewer.