[vtkusers] [Enthought-dev] [MayaVi-users] converting xyz(txt) to unstructured grid(vtk)
Thomas Lecocq
thlecocq at msn.com
Thu May 8 15:10:52 EDT 2008
edit: FW to vtk-users too...
>Caly
>Dear Thomas
>Thank you for the previous reply, I need your help in something theoretical, i read the VTK book and I understand that there are fee techniques >used to convert unstructured points to unstructured grid.. are we using Delaunay 3D to. or ... can I know more about the code as in what >technique is being used..Splatting.. Interpolation or Triangulation.. . thanks for ur help..
***
Mmm ... Well ... I have, actually, never done that... You may want to try the PointToCellData Filter in Mayavi2 ... (??)
(I never read "the book"...)
Thomas
On 4/10/08, Cally K <kalpana0611 at gmail.com> wrote:
Thank You so much, you really made my day. i managed to run the new
python program. I had to enter the "import string" at the top also,
but thank you so much again.
On 4/9/08, Thomas Lecocq <thlecocq at msn.com> wrote:
> Hi,
>
> The message you see is an error that says that you don't have a package
> called "Scientific" ..
>
> It isn't actually needed in order to read/write a file.
>
> See the attached file, I did modify it... Normaly, it should work fine.
>
> 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
>
> HTH
>
> Thomas
>
> **********************
> Thomas Lecocq
>
> Geologist
> Ph.D.Student (Seismology)
> Royal Observatory of Belgium
> **********************
>
> Date: Wed, 9 Apr 2008 14:30:26 +0800
> From: kalpana0611 at gmail.com
> To: mayavi-users at lists.sourceforge.net
> Subject: [MayaVi-users] converting xyz(txt) to unstructured grid(vtk)
>
> Hi
>
> I found this link
> http://mayavi.sourceforge.net/mwiki/PointCloudson 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...?
>
>
> anyway, i tried running the script without much knowledge of course, in
> windows, I received this error
>
> Traceback (most recent call last):
> File "C:\Documents and Settings\kalpanak\Desktop\ppp\xyz2vtk.py", line 1,
> in <module>
> from Scientific.IO.TextFile import pointclouddatafile
> ImportError: No module named Scientific.IO.TextFile
>
>
>
> I hope someone could guide me...
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080508/07151070/attachment.htm>
More information about the vtkusers
mailing list