Again, many many thanks. After following your suggestions (and looking at Mike's code which is really helpfull) this is what I'm doing but my program crashes:<br><br>// "oPolyDataDel" is a vtkPolyData where I store the output of Delaunay filter . As I set the Aplha value,
<br>// some lines and points appear in the triangulation (I've read in the documentation that this is to happen when you set<br>// alpha value) but I only want triangles."vTriangulos" is an array of ints where I wish to store triangle values consecutively
<br>// So this is what I've written:<br><br> int j=0; <br> int npts,*pts;<br> vtkCellArray* oCellArr= vtkCellArray::New();<br> oCellArr=oPolyDataDel->GetPolys(); <br> for(int i=0;i<oPolyDataDel->GetNumberOfPolys();i++)
<br> {<br> oCellArr->GetNextCell(npts,pts);<br> vTriangulos[j]= pts[0];<br> vTriangulos[j+1]= pts[1];<br> vTriangulos[j+2]= pts[2];<br><br> j+=3; <br> }
<br><div><div><br>Is that correct? Again, Many thanks<br> </div><br></div><br>