[vtkusers] vtkSphericalTransform
Jérôme
jerome.velut at gmail.com
Sun Oct 25 08:41:53 EDT 2009
I don't understand... vtkTransformPolyDataFilter is specialized for
polygonal datasets, and vtkContourFilter's output is also polygonal.
Did you change the GetOutput( ) to GetOutputPort( ) as I told you? The best
you can do is to copy/paste the error message, it would be very helpful for
our understanding.
Best regards,
Jerome
2009/10/23 Alessandro Artusi <artusialessandro4 at googlemail.com>
> Hi Jerome,
>
> what i get is an error vtkTransformPolydataFilter is expecting as input
> not a Polydata as the output from the vtkcontourFilter.
>
> Any idea?
>
> Thanks,
> Alessandro.
> On Fri, Oct 23, 2009 at 5:30 PM, Jérôme <jerome.velut at gmail.com> wrote:
>
>> Hi,
>> You should have to use "GetOutputPort" together with SetInputConnection.
>> You should also say what does not work !
>>
>> Hope that helps,
>> Jerome
>>
>> 2009/10/23 Alessandro Artusi <artusialessandro4 at googlemail.com>
>>
>>> Hi,
>>>
>>> I want to transform the output of the vtkConoturFilter in spherical
>>> coordinates.
>>>
>>> I am using vtkTransformPolydataFilter to apply the vtkSphericalTransform
>>> to thr utput of the vtkcontourFilter but does not work.
>>>
>>> code:
>>> sp = vtkSphericalTransform()
>>> t = vtkvtkTransformPolydataFilter()
>>> t.SetInputConnection(contour.GetOutput()) #conotur is the output of the
>>> vtkContourFilter
>>> t.SetTransform(sp)
>>>
>>> Some one can help?
>>>
>>> Thanks,
>>> AA
>>>
>>> _______________________________________________
>>> 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/20091025/5d72058d/attachment.htm>
More information about the vtkusers
mailing list