[vtkusers] vtkTubeFilter and vtkpolyline problems

Ugur BOZKAYA u.bozkaya at fmcon.com
Sun Apr 16 09:14:30 EDT 2006


You have to have the polydata that represents the boundary anyway. It only 
changes the line thickness of the boundary actor primitives.
Ugur



----- Original Message ----- 
From: "Dominik Szczerba" <domi at vision.ee.ethz.ch>
Cc: <vtkusers at vtk.org>
Sent: Sunday, April 16, 2006 4:06 PM
Subject: Re: [vtkusers] vtkTubeFilter and vtkpolyline problems


> dont you need extract surface and then linewidth?
> --ds
>
> Ugur BOZKAYA wrote:
>> I am not sure if this is the correct answer but you might check the
>> following. You can change the width of a line(it should be only in 
>> OpenGL)
>> by first getting the corresponding actors vtkProperty and setting the
>> SetLineWidth method. This way you do not need to use tubefilter. Also
>> another solution can be to use vtkOutlineFilter if the boundary is
>> rectangular and apply the same solution. I did not implement the above so 
>> I
>> am not sure about it.
>> Hope this helps
>>
>> Ugur BOZKAYA
>>
>>
>>
>>>
>>>>
>>>>>
>>>>> ----- Original Message ----- From: <David.Pont at ensisjv.com>
>>>>> To: "Franke, Stephan" <Stephan.Franke at inpro.de>
>>>>> Cc: <vtkusers at vtk.org>
>>>>> Sent: Wednesday, March 22, 2006 10:37 PM
>>>>> Subject: Re: [vtkusers] vtkTubeFilter and vtkpolyline problems
>>>>>
>>>>>
>>>>> "Franke, Stephan" <Stephan.Franke at inpro.de>g wrote on 23/03/2006
>>>>> 00:28:07:
>>>>>
>>>>>> Hi all,
>>>>>>
>>>>>> Long time ago that this question was posted inside this forum, but I
>>>>>> have the same problem and could not find an answer with a solution
>>>>>> for this problem here.
>>>>>> So I want to ask this question once again in hope to get a solution.
>>>>>> Thank you in advance for your help.
>>>>>>
>>>>>> Best regards,
>>>>>> Stephan Franke
>>>>>>
>>>>>>
>>>>>> OLD POST
>>>>>> -------------------------------------------------------------------------
>>>>>>
>>>>>> Hi all,
>>>>>>
>>>>>> I am writing a program where I would like to display a boundary. The
>>>>>> boundary must be like a thick line.
>>>>>> If I use a polyline I get, when the line thickness is larger then 1,
>>>>>> nasty looking joints at the vertices and if I use the tubefilter the
>>>>>> thickness of the tube is not constant especially there where I have
>>>>>> sharp angles.
>>>>>>
>>>>>> Are there any options I can use to overcome these problems?
>>>>>> Thank you
>>>>>>
>>>>>>
>>>>> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
>>>>>
>>>>>
>>>>>>
>>>>>> Dipl. Ing.  Stephan Franke
>>>>>> Arbeitsfeld Aufbau (AB)
>>>>>> Umform- und Fügesimulation
>>>>>>
>>>>>> INPRO Innovationsgesellschaft für
>>>>>> fortgeschrittene Produktionssysteme
>>>>>> in der Fahrzeugindustrie mbH
>>>>>> Hallerstraße 1, D-10587 Berlin
>>>>>>
>>>>>> Telefon:  +49 (0)30 399 97-278
>>>>>> Fax:         +49 (0)30 399 97-117
>>>>>> E-Mail:     Stephan.Franke at inpro.de
>>>>>> Web:        www.inpro.de
>>>>>>  _______________________________________________
>>>>>> This is the private VTK discussion list.
>>>>>> Please keep messages on-topic. Check the FAQ at: http://www.vtk.
>>>>>> org/Wiki/VTK_FAQ
>>>>>> Follow this link to subscribe/unsubscribe:
>>>>>> http://www.vtk.org/mailman/listinfo/vtkusers
>>>>>
>>>>>
>>>>>
>>>>> You could use vtkImplicitModeller and vtkContourFilter on a
>>>>> polyline. In
>>>>> theory this will give tubes with constant radius and 'smooth' joins.
>>>>> But
>>>>> with SampleDimensions high enough to get adequate resolution on
>>>>> relatively
>>>>> narrow 'tubes' it could be very slow!
>>>>>
>>>>>    Dave P
>>>>>
>>>>> _______________________________________________
>>>>> This is the private VTK discussion list.
>>>>> Please keep messages on-topic. Check the FAQ at:
>>>>> http://www.vtk.org/Wiki/VTK_FAQ
>>>>> Follow this link to subscribe/unsubscribe:
>>>>> http://www.vtk.org/mailman/listinfo/vtkusers
>>>>
>>>>
>>>
>>
>> _______________________________________________
>> This is the private VTK discussion list. Please keep messages on-topic.
>> Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkuser
>> s
>
> -- 
> Dominik Szczerba, Dr.
> Computer Vision Lab CH-8092 Zurich
> http://www.vision.ee.ethz.ch/~domi
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: 
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
> 




More information about the vtkusers mailing list