POV-Ray : Newsgroups : povray.newusers : X,Y,Z : Re: X,Y,Z Server Time
29 Jul 2024 12:18:54 EDT (-0400)
  Re: X,Y,Z  
From: Mike Williams
Date: 2 Dec 2005 00:48:05
Message: <7aCN5RA6+9jDFw4y@econym.demon.co.uk>
Wasn't it Rolandd who wrote:
>I have many (thousands) of coordinates in an ascii file in the format:
>
>x,y,z
>x,y,z
>x,y,z
>....
>
>Is there a utility that will allow me to create a .pov file from these
>coordinates and represent them as small spheres?  I have tried openbabel
>but it doesn't appear to support a text file in this format or for the most
>recent version of PovRay.  I am ready to write a python script to do this
>but I wanted to check first.

You'll need to convert that format to

x,y,z,
x,y,z,
x,y,z,
...

before you can read it directly with POV. The #read command in POV
requires the comma to be present between values even if they're on
different lines.

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.