|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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.
All The Best,
Roland
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
>Is there a utility that will allow me to create a .pov file from these
>coordinates and represent them as small spheres?
You should be able to do this right in POV-Ray. Use the #fopen
directive to open the file, then use the #read directive in a #while
loop to read the values. You can create the spheres in the loop also.
Look for #read in the POV-Ray help file.
Kyle
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Rolandd 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?
sed "s?^?sphere{<?;s?\$?>,RADIUS}?"
Christoph
--
POV-Ray tutorials, include files, Landscape of the week:
http://www.imagico.de/ (Last updated 31 Oct. 2005)
MegaPOV with mechanics simulation: http://megapov.inetart.net/
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
|
|