[vtkusers] Missing method for vtkInteractorStyleDrawPolygon?
Todd Martin
nztoddler at yahoo.com
Tue Apr 10 22:13:25 EDT 2018
Hi Robby
Yes. vtkVector2i is a template based (generic) class, so it isn't wrapped.
You could add a couple of helper methods to VTKint GetPolygonPointCount();
void GetPolygonPoint(int index, int &x, int &y);
Todd Martin, Ph.D.
Freelance Engineer/Software Architect.
On Wednesday, April 11, 2018, 8:37:04 AM GMT+12, Robby Aungst <robert.aungst at gmail.com> wrote:
I'm trying to implement vtkInteractorStyleDrawPolygon in Python and I'm following the test: https://www.vtk.org/gitweb?p=VTK.git;a=blob;f=Rendering/Core/Testing/Cxx/TestPolygonSelection.cxx
But, vtkInteractorStyleDrawPolygon doesn't have a method for 'GetPolygonPoints' in Python. It's in the header, source and documentation, but python doesn't know about it. Is it because it returns a vtkVector2i? I'm using VTK 8.1. Any ideas?
Thanks!
_______________________________________________
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
Search the list archives at: http://markmail.org/search/?q=vtkusers
Follow this link to subscribe/unsubscribe:
https://vtk.org/mailman/listinfo/vtkusers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://vtk.org/pipermail/vtkusers/attachments/20180411/dc0a94cb/attachment.html>
More information about the vtkusers
mailing list