[vtkusers] vtkSphericalTransform

Alessandro Artusi artusialessandro4 at googlemail.com
Fri Oct 23 15:18:31 EDT 2009


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/20091023/86941bdc/attachment.htm>


More information about the vtkusers mailing list