POV-Ray : Newsgroups : povray.general : Reading coordinates into povray from an ascii file : Reading coordinates into povray from an ascii file Server Time
29 Jul 2024 18:29:44 EDT (-0400)
  Reading coordinates into povray from an ascii file  
From: John
Date: 12 Dec 2010 23:00:00
Message: <web.4d05993a67d8c71bd6b9b2630@news.povray.org>
All -

I'm trying to render a collection of rods in 3-space using a .txt file in
Windows which contains the {x,y,z} centers of the rods as well as the
{theta,phi} angles of orientation of the rods as well.

I'm very well versed in R and Matlab, but am a total neophyte in povray and need
help setting up this small but important routine.

I've managed to #fopen and apparently #read the file successfully -- well, at
least without throwing an error -- but don't know how to assign the read
material into an array that can be used in a while loop for rendering the many
(e.g., hundreds) of rods specified in the text file.

Any syntactic hints?

Thanks!

John


Post a reply to this message

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