Hi all. Does anyone know of a python script that can import an XYZ file in order to triangulate a mesh. I’m looking for a script that can do this. At work I’m trying to generate a terrain from an XYZ file. I have searched a lot on the internet but don’t seem to find anything :(. Anyone know of anything?
http://www2.informatik.hu-berlin.de/~kutin/chemblender.html
You could also use some other app to convert to say .obj or something and import that.
%<
You have to do a 2d delauney triangulation of the points (ignore the z coordinate at this stage). Free programs which can do this are “geompack” and “qhull” – google for them. Then you would need a script to read the resultant text file of triangles (including z coordinate) into blender and remove the doubles. The script would be easy to write if you have any programming skills.
GreyBeard
Fligh - I’ll check it out
Greybeard: Thanks I’ll have a look at that right now. I do have some programming experience, was thinking maybe someone wrote a script to do it already.
I’m actually looking for a script that will read in point cloud data and then ‘connect the dots’. But if I don’t find anything i’ll give it a go 
Thanks for the feedback
Okay when I said I had some programming experience… I wasn’t trying to code a rocket science system
uh…hmm…that qHull seems quite nasty… going to check out the geompack one now… I don’t really have time to do programming as work is crazy. And I only have net access at work to look up on the internet if I get stuck…
Will have to do this later…
Fligh - that chem blender is only for chemical combinations though… but maybe I can borrow some of the script content to write my own. ![]()