[vtkusers] vtkcutter
Bill Lorensen
bill.lorensen at gmail.com
Fri May 21 08:51:46 EDT 2010
To find the point id of the first and last points on a line, you have
to get the cell for the line and query its point ids. There is no
guarantee that point id 0 is the first point n the line.
This example illustrates how to access the points along a polyline:
http://vtk.org/Wiki/VTK/Examples/ExtractPolyLinesFromPolyData
Bill
On Fri, May 21, 2010 at 8:42 AM, pablo p del castillo
<pablodecastillo at yahoo.es> wrote:
> Hi Bill,
>
> The script:
>
> - read the surface
> - loop subdivision (the mistake happends without subdivision too, maybe not in this sample)
> - generate cut and build tubes.
> - generate blue line between o and end point (how you can see the 0 point is not the initial point for cutter)
>
> Let me known your opinion.
>
> Thanks,
>
> Pablo
>
> --- El vie, 21/5/10, Bill Lorensen <bill.lorensen at gmail.com> escribió:
>
>> De: Bill Lorensen <bill.lorensen at gmail.com>
>> Asunto: Re: [vtkusers] vtkcutter
>> Para: "pablo p del castillo" <pablodecastillo at yahoo.es>
>> Fecha: viernes, 21 de mayo, 2010 14:32
>> Go ahead.
>>
>> On Fri, May 21, 2010 at 8:28 AM, pablo p del castillo
>> <pablodecastillo at yahoo.es>
>> wrote:
>> > I can send you a the surface and the tcl file.
>> >
>> > Pablo
>> >
>> > --- El vie, 21/5/10, Bill Lorensen <bill.lorensen at gmail.com>
>> escribió:
>> >
>> >> De: Bill Lorensen <bill.lorensen at gmail.com>
>> >> Asunto: Re: [vtkusers] vtkcutter
>> >> Para: "pablo p del castillo" <pablodecastillo at yahoo.es>
>> >> CC: "VTK Users" <vtkusers at vtk.org>
>> >> Fecha: viernes, 21 de mayo, 2010 14:21
>> >> Maybe there is some issue with the
>> >> surface being cut?
>> >>
>> >> On Fri, May 21, 2010 at 8:12 AM, pablo p del
>> castillo
>> >> <pablodecastillo at yahoo.es>
>> >> wrote:
>> >> > I did it, there is sections who are ok, but
>> sometimes
>> >> are bad like in the pic.
>> >> >
>> >> > Pablo
>> >> >
>> >> > --- El vie, 21/5/10, Bill Lorensen <bill.lorensen at gmail.com>
>> >> escribió:
>> >> >
>> >> >> De: Bill Lorensen <bill.lorensen at gmail.com>
>> >> >> Asunto: Re: [vtkusers] vtkcutter
>> >> >> Para: "pablo p del castillo" <pablodecastillo at yahoo.es>
>> >> >> CC: vtkusers at vtk.org
>> >> >> Fecha: viernes, 21 de mayo, 2010 14:09
>> >> >> Have you run the output of vtkCutter
>> >> >> through vtkStripper as shown in
>> >> >> this examaple?
>> >> >> http://www.vtk.org/Wiki/VTK/Examples/PolyData/FitSplineToCutterOutput
>> >> >>
>> >> >> Bill
>> >> >>
>> >> >> On Fri, May 21, 2010 at 8:04 AM, pablo p
>> del
>> >> castillo
>> >> >> <pablodecastillo at yahoo.es>
>> >> >> wrote:
>> >> >> > Attached pics, showing how points
>> are not
>> >> well sorted
>> >> >> in vtkcutter.
>> >> >> >
>> >> >> > Any idea?, to sort the points?
>> >> >> >
>> >> >> > Thanks,
>> >> >> >
>> >> >> >
>> >> >> > 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
>> >> >> >
>> >> >> >
>> >> >>
>> >> >
>> >> >
>> >> >
>> >> >
>> >>
>> >
>> >
>> >
>> >
>>
>
>
>
More information about the vtkusers
mailing list