[Paraview] [vtkusers] vtkSplineFilter

Jérôme jerome.velut at gmail.com
Thu May 6 05:08:15 EDT 2010


Hi,
I forward this e-mail from the VTK mailing list, as ParaView users may be
interested
and not necessary VTK subscribers...

I add a note: the concerned vtkStripper is called Triangle Strips in the
ParaView Filters list.
But it can be used to strip lines as well as triangles!

Jerome

2010/5/5 pablo p del castillo <pablodecastillo at yahoo.es>

> Thanks Bill and Jeff, with vtkStripper is working nice.
>
> Pablo
>
> --- El *mié, 5/5/10, Bill Lorensen <bill.lorensen at gmail.com>* escribió:
>
>
> De: Bill Lorensen <bill.lorensen at gmail.com>
> Asunto: Re: [vtkusers] vtkSplineFilter
> Para: "Jeff Lee" <jlee1549 at gmail.com>
> CC: "pablo p del castillo" <pablodecastillo at yahoo.es>, vtkusers at vtk.org
> Fecha: miércoles, 5 de mayo, 2010 18:16
>
>
> I just added an example that is closer to what you want...
> http://www.vtk.org/Wiki/VTK/Examples/PolyData/FitSplineToCutterOutput
>
> Bill
>
> On Wed, May 5, 2010 at 11:09 AM, Jeff Lee <jlee1549 at gmail.com<http://mc/compose?to=jlee1549@gmail.com>
> > wrote:
>
>> I have come across some cases where the stripper doesn't produce
>> continuous polylines from input line segments which are continuous - it
>> happens when the line is not closed, and a start segment is chosen from the
>> middle of the polyline, produces a continuous polyline to the end (i.e. no
>> more neigbors), then produces other parts of the polyline as it encounters
>> them in the loop - so what should be a single continuous polyline typically
>> ends up being multiple polylines.  I have a fix for this but haven't had
>> time to check it in yet.  SplineFilter will subdivide the polylines
>> independently.
>> Regards,
>> -Jeff
>>
>>
>> On Wed, May 5, 2010 at 10:56 AM, Bill Lorensen <bill.lorensen at gmail.com<http://mc/compose?to=bill.lorensen@gmail.com>
>> > wrote:
>>
>>> Look at this example:
>>> http://vtk.org/Wiki/VTK/Examples/ExtractPolyLinesFromPolyData
>>>
>>> it shows how to connect the segments produced by the cutter into
>>> polylines.
>>>
>>> On Tue, May 4, 2010 at 4:08 PM, pablo p del castillo <
>>> pablodecastillo at yahoo.es<https://mail.google.com/a/cdnorthamerica.com/?view=cm&tf=0&to=pablodecastillo@yahoo.es>
>>> > wrote:
>>>
>>>>  Hello,
>>>>
>>>> I am trying to improve the visualization of sections of surface mesh, so
>>>> i create a cutter and the apply vtksplinefilter like this;
>>>>
>>>> vtkSplineFilter sf
>>>>     #sf SetInput planeCut
>>>>     sf SetInputConnection [planeCut GetOutputPort]
>>>>     sf SetNumberOfSubdivisions 6
>>>>     sf Update
>>>>    # sf SetLength 0.01
>>>> vtkTubeFilter rf
>>>>     rf SetInput [sf GetOutput]
>>>>     rf SetRadius 0.1
>>>>     rf SetNumberOfSides 6
>>>>
>>>> But only i get the initial section with tubes.
>>>> Any idea?
>>>>
>>>> Pablo
>>>>
>>>>
>>>> _______________________________________________
>>>> 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
>>>>
>>>>
>>>
>>> _______________________________________________
>>> 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
>>>
>>>
>>
>
>
> _______________________________________________
> 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.paraview.org/pipermail/paraview/attachments/20100506/db9518f7/attachment.htm>


More information about the ParaView mailing list