<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'><div style="text-align: left;"><br>FW from another list, but same subject :<br><br>---------<br><br></div>NOTE : you have to ADD "import string" at the beginning of the script.<br><br><br>There is also another solution, using a PointCloud.py python script :<br><br><blockquote><blockquote><div style="text-align: left;"><br>See the attached file, I did modify it... Normaly, it should work fine.<br><br>you have to call the program from a command line "python PointCloud.py input.txt" where input.txt contains one "X Y Z" per line<br><br></div></blockquote></blockquote><div style="text-align: left;">HTH<br></div><blockquote><blockquote><div style="text-align: left;"><br></div></blockquote></blockquote><div style="text-align: left;">Thomas<br></div><br>**********************<br>Thomas Lecocq
<br>Geologist<br>Ph.D.Student (Seismology)<br>Royal Observatory of Belgium<br>**********************<br><blockquote><blockquote><br><blockquote><hr id="EC_EC_EC_stopSpelling">Date: Wed, 9 Apr 2008 14:30:26 +0800<br>From: kalpana0611@gmail.com<br>To: mayavi-users@lists.sourceforge.net<br>Subject: [MayaVi-users] converting xyz(txt) to unstructured grid(vtk)<br><br><div>Hi</div>
<div> </div>
<div>I found this link
<div><a href="http://mayavi.sourceforge.net/mwiki/PointClouds" target="_blank">http://mayavi.sourceforge.net/mwiki/PointClouds</a></div>on converting point clouds to vtk's unstructured grid form. Unfortunately, I dun know python, is there a C++ program that I can use or could someone show me how to convert the file, I have installed python on windows and linux. I dun need to install vtk to run this program rite.. I can just run it from the console...?</div>
<div> </div>
<div>anyway, i tried running the script without much knowledge of course, in windows, I received this error</div>
<div> </div>
<div>Traceback (most recent call last):<br> File "C:\Documents and Settings\kalpanak\Desktop\ppp\xyz2vtk.py", line 1, in <module><br> from Scientific.IO.TextFile import pointclouddatafile<br>ImportError: No module named Scientific.IO.TextFile</div>
<div> </div>
<div> </div>
<div>I hope someone could guide me...</div>
</blockquote>
</blockquote>
</blockquote></body>
</html>