[vtkusers] labelling iso-lines

Jothy jothybasu at gmail.com
Wed May 19 13:46:32 EDT 2010


Could someone convert it to python. I tried, but it throws some error at

vtkIdType *indices;
  vtkIdType numberOfPoints;
  unsigned int lineCount = 0;
  for (cells->InitTraversal();
       cells->GetNextCell(numberOfPoints, indices);
       lineCount++)


Thanks,

Jothy



On Wed, May 19, 2010 at 1:24 PM, Bill Lorensen <bill.lorensen at gmail.com>wrote:

> I've added an example that illustrates one way to place labels on
> isolines generated by vtkContourFilter.
>
> http://vtk.org/Wiki/VTK/Examples/Visualization/LabelContours
>
> Bill
>
> On Tue, May 18, 2010 at 9:35 PM, rashedk <rashed.vtk at googlemail.com>
> wrote:
> >
> > Thanks Bill!  I agree to your T&C :)
> >
> >
> >
> > rashedk wrote:
> >>
> >> Hi all,
> >>
> >> vtkContourFilter can draw contours on a dataset, however, is it possible
> >> to label/annotate these contours? I looked at vtkLabeledDataMapper but
> it
> >> only seems to label points, cells, etc.
> >>
> >> Rashed.
> >>
> >
> > --
> > View this message in context:
> http://old.nabble.com/labelling-iso-lines-tp28597889p28603314.html
> > Sent from the VTK - Users mailing list archive at Nabble.com.
> >
> > _______________________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> >
> > Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtkusers
> >
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100519/32f0dedf/attachment.htm>


More information about the vtkusers mailing list