<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
Hi, <BR>&nbsp;&nbsp; Thanks, but I believe if the code is to be used in the python programmable source function within ParaView it needs to be in Python script, and the example is in C++? <BR>&nbsp;<BR>Appreciate the link, it may help me produce the right code.&nbsp; <br><BR>Importing the xyz data and converting to points is no problem, really just need the code to take the points and turn them into a line. I've just started to try and puzzle this out having never used Python script or VTK coding&nbsp;before and thought that surely many people would have already produce a simple script for this purpose?&nbsp;&nbsp; <BR>&nbsp;<BR>Thanks again, <br><br><span class="ecxheadline">Ian&nbsp;</span><br><br><BR><div>&gt; Date: Sun, 20 Nov 2011 08:27:23 -0500<br>&gt; Subject: Re: [vtkusers] Automatically connecting x,y,z point data?<br>&gt; From: daviddoria@gmail.com<br>&gt; To: lesl4685@vandals.uidaho.edu<br>&gt; CC: vtkusers@vtk.org<br>&gt; <br>&gt; On Sat, Nov 19, 2011 at 11:28 PM, Ian Leslie<br>&gt; &lt;lesl4685@vandals.uidaho.edu&gt; wrote:<br>&gt; &gt; Hi,<br>&gt; &gt; &nbsp;&nbsp; I have a lot&nbsp;(hundreds)&nbsp;of spatial xyz points that I would like to<br>&gt; &gt; connect using a straight line or spline, without having to manually insert<br>&gt; &gt; the coordinates into the line or spline source tools.&nbsp; This is probably a<br>&gt; &gt; really easy python source or filter script, but I am a real novice with<br>&gt; &gt; python, any help would be greatly appreciated.<br>&gt; &gt;<br>&gt; &gt; Ian<br>&gt; <br>&gt; Is this what you're looking for?<br>&gt; <br>&gt; http://www.vtk.org/Wiki/VTK/Examples/Cxx/GeometricObjects/PolyLine<br>&gt; <br>&gt; David<br></div>                                               </div></body>
</html>