[vtkusers] Plot lines between all points

Boogiedoll boogiedoll at yahoo.com
Fri Dec 27 11:17:49 EST 2013


Bill,

Thanks for the example. In my case, I would like to connect each point to all points, so there will be nCr number of lines (where n=number of points, r=2). Is there any simpler way in vtk other than doing iterations?

Regards,
Harold

2013/12/28 0:25、Bill Lorensen <bill.lorensen at gmail.com> のメッセージ:

> http://vtk.org/Wiki/VTK/Examples/Cxx/GeometricObjects/PolyLine
> 
> 
> On Fri, Dec 27, 2013 at 9:14 AM, Harold <boogiedoll at yahoo.com> wrote:
>> Hi,
>> 
>> I have N number of 2D points. How do I plot lines between all the points,
>> then store the vertices and line segments as polydata?
>> 
>> Thank & Regards,
>> Harold
>> 
>> _______________________________________________
>> 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
> 
> 
> 
> -- 
> Unpaid intern in BillsBasement at noware dot com


More information about the vtkusers mailing list