POV-Ray : Newsgroups : povray.newusers : help about matrices in Povray : Re: help about matrices in Povray Server Time
28 Jul 2024 20:35:34 EDT (-0400)
  Re: help about matrices in Povray  
From: Warp
Date: 5 Aug 2007 16:32:29
Message: <46b633dd@news.povray.org>
Katherina <nomail@nomail> wrote:
> I looked at the link that you sent to me, but my problem is that I have a
> huge data and there are no commas between elements and also between rows as
> in the Povray definition below:

  If there are no negative numbers then it's actually possible to read them
as if they were separated by commas (by using #fopen and then a #while loop
with a #read inside it to read the values from the file and assign them to
the array). If there are negative values, however, then it's not possible
(because povray will interpret it as a substraction of two numbers).

  Depending on how the file is formatted it may be easy to search&replace
whitespace with commas with almost any text editor.

-- 
                                                          - Warp


Post a reply to this message

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