[vtkusers] vtkSphericalTransform
Alessandro Artusi
artusialessandro4 at googlemail.com
Mon Oct 26 04:00:15 EDT 2009
Thanks a lot Jerome, now I got the mapping on spherical coordinates. I have
other problems but the spherical transform is working.
Thanks a lot,
Alessandro.
On Sun, Oct 25, 2009 at 2:41 PM, Jérôme <jerome.velut at gmail.com> wrote:
> 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/20091026/d005e79a/attachment.htm>
More information about the vtkusers
mailing list