I have a 3D vtkPolyData mesh that I wish to convert into 2D vtkContourWidgets.  The poly data was generated with vtkMarchingCubes3D.  My process is to run vtkCutter on each slice of the poly data and use that as seed data to create my contour widgets.  However, when I create my contour widgets the points are all out of order.  I found the following post that seems to be stating what I want to do
<div><a href="http://vtk.1045678.n5.nabble.com/question-about-vtkContourWidget-vtkContourRepresentation-td1255118.html#a3247766">http://vtk.1045678.n5.nabble.com/question-about-vtkContourWidget-vtkContourRepresentation-td1255118.html#a3247766</a></div>
<div>however, this example is written in C++ and I&#39;m working in Java, and there doesn&#39;t appear to be any vtkCellArray.GetNextCell() method in Java&#39;s VTK.</div><div><br></div><div>1.  Is this the solution to my problem?</div>
<div>2.  If so can someone please translate this code into Java, and if this isn&#39;t the solution I&#39;m looking for, can someone suggest one?</div><div><br></div><div>Thanks</div>