POV-Ray : Newsgroups : povray.general : Read data and draw sphere? : Re: Read data and draw sphere? Server Time
1 Aug 2024 10:12:06 EDT (-0400)
  Re: Read data and draw sphere?  
From: Tim Nikias
Date: 26 Nov 2005 09:20:13
Message: <43886f1d$1@news.povray.org>
> I looked at some answers to read data and to draw spheres in 3D BOX. I am
> very interested in that. So, I am trying to do those. But, drawn spheres
is
> not matched with data as a position. My data file is 'practice.txt'. Also,
> format is as following:
>
> 100.2 200.3 0
> 200.1 100.2 0
> 10.2 23.1 0
> etc

Povray requires commas between the various values, even at the end of line
(but not at the end of file!). In regard to your other questions: it can
read integers or floats (where a "." separates integer-part from float-part,
like "3.51" or "2135.98124"), or strings surrounded by " (e.g. "string").

You could also have a look at my IO-Macros, the link to my website is in the
sig.

Regards,
Tim

-- 
aka "Tim Nikias v2.0"
Homepage: <http://www.nolights.de>


Post a reply to this message

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