Connectivity: Finding / setting adjacent points in a curve?
Mathew Koshy
koshy at aracor.com
Fri Mar 3 21:32:19 EST 2000
Audrius,
I had a similar problem. In my case, as in perhaps your case, the curve
was obtained
from vtkMarchingSquares or vtkContourFilter.
>From a graph theory point of view, vtkCellArray in this
case simply provides an (unordered) list of (undirected) edges in a
graph. One simply
needs to extract all "paths" in such a graph. Actually, there is a
little more
structure to the graph -- each node has maximum degree of 2.
Hope this helps.
Mathew Koshy
ARACOR
Audrius Stundzia wrote:
>
> Dear vtker's
>
> Is there a way to do the following in vtk?
>
> I have a list of points that forms a curve. However, geometrically adjacent
> points are scattered throughout the list. If I read the list
> sequentially and insert the points into vtkCellArray to form
> a polyline, I have the polyline jumping all over the place,
> as opposed to simply connecting adjacent points.
>
> Is there a way of remedying this problem using vtk?
>
> Any help / insight would be appreciated.
>
> Btw, is there a searchable archive for the vtk newsgoup?
>
> Regards,
>
> Audrius
> ______________________________________________________
> Get Your Private, Free Email at http://www.hotmail.com
>
> --------------------------------------------------------------------
> This is the private VTK discussion list. Please keep messages on-topic.
> Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
> <majordomo at public.kitware.com>. For help, send message body containing
> "info vtkusers" to the same address.
> --------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: koshy.vcf
Type: text/x-vcard
Size: 322 bytes
Desc: Card for Mathew Koshy
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20000303/cdbb81c2/attachment-0001.vcf>
More information about the vtkusers
mailing list