[vtkusers] Using vtkMarchingCubes3D with vtkContourWidget

Karthik Krishnan karthik.krishnan at kitware.com
Sun Nov 7 01:12:08 EDT 2010


Ah.. yes.. This method was added on May 19, 2010. Perhaps you are
using a version of VTK prior to that.

Please see :
  http://vtk.org/gitweb?p=VTK.git;a=commitdiff;h=068a064cea7ba0fc7a4c4f9d2f7dfed6eb093674

Update your VTK.


On Sat, Nov 6, 2010 at 10:54 PM, Jonathan Morra <jonmorra at gmail.com> wrote:
> I couldn't find GetNextCell() at all in Java. I'm currently using version
> 5.6. Do you have any other suggestions?
>
> On Nov 6, 2010 9:05 AM, "Karthik Krishnan" <karthik.krishnan at kitware.com>
> wrote:
>
> Jonathan:
>
> Use the other signature of the method GetNextCell. [ int
> GetNextCell(vtkIdList *pts) ]That should be wrapped...
>
> The code to re-order the points based on the connectivity information
> would be written in java as :
>
>  vtkIdList idlist = new vtkIdList();
>  unorderedPolyData.GetLines().GetNextCell(idlist);
>  npts = idlist.GetNumberOfIds();
>  for ( int i = 0;  i < ( npts-1 );  i ++)
>    {
>    points.InsertPoint(i, unorderedPolyData.GetPoints().GetPoint(pts[i]));
>    }
>
> --
> karthik
>
> On Wed, Nov 3, 2010 at 7:29 AM, Jonathan Morra <jonmorra at gmail.com> wrote:
>> I have a 3D vtkPolyDat...
>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitwa...



More information about the vtkusers mailing list