[vtkusers] vtk contour representation in python
hsyed88 at yahoo.com
Thu Jun 24 15:59:50 EDT 2010
I am using the vtkContourWidget for segmentation and need to retrieve the node locations. I have the following code in C++ which works! but I need to implement this in Python. I am having trouble translating the last line of the code.
// Create a contour widget
vtkSmartPointer<vtkContourWidget> contourWidget =
vtkContourRepresentation* rep = static_cast<vtkContourRepresentation *>(contourWidget->GetRepresentation());
Since there is no casting in python, how do I create a vtkContourRepresentation in Python given the subclass vtkOrientedGlyphContourRepresentation, i.e. how do I translate:
vtkContourRepresentation* rep = static_cast<vtkContourRepresentation
Any help would be appreciated.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vtkusers