POV-Ray : Newsgroups : povray.newusers : Possible to use coordinates from an external text file? : Re: Possible to use coordinates from an external text file? Server Time
19 Apr 2024 21:22:54 EDT (-0400)
  Re: Possible to use coordinates from an external text file?  
From: clipka
Date: 19 Oct 2015 11:53:30
Message: <562511fa$1@news.povray.org>
Am 19.10.2015 um 16:36 schrieb TomB:
> Hi,
> 
> I am brand new to POV-Ray, and want to use it to visualize some scientific data.
> I would like to know if it is possible to read in coordinates from an external
> text file. For example, if I want to create a number of spheres at coordinates
> [x,y,z], but these coordinates are stored in another file - I don't want to copy
> them all into the POV-Ray script. Or if anyone could point me to some resource
> online for this kind of thing?

You may want to have a look at POV-Ray's "#read" directive.

Alternatively, if you have full control over the format of the external
text file, you can use the "#include" directive in some creative way.


Post a reply to this message

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