[vtkusers] vtkSplineFilter

Bill Lorensen bill.lorensen at gmail.com
Wed May 5 12:16:00 EDT 2010


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> 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>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
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100505/4d476d81/attachment.htm>


More information about the vtkusers mailing list