POV-Ray : Newsgroups : povray.binaries.utilities : Wood design program test version : Re: Wood design program test version Server Time
17 Apr 2024 18:06:36 EDT (-0400)
  Re: Wood design program test version  
From: Thomas de Groot
Date: 5 Jul 2022 07:47:49
Message: <62c424e5@news.povray.org>
Op 5-7-2022 om 09:53 schreef And:
> Thomas de Groot <tho### [at] degrootorg> wrote:
>> Exactly. The issue here is whether the 'comma' represents a 'Thousands
>> separator' (example: 3,943,200.00) or - and I guess this is what is
>> intended here - the 'decimal dot' (example: 3943200,00). Neither can be
>> used by POV-Ray.
>>
> 
>>
>> As far as I understand this issue, the use of 'thousands separators' is
>> only a visually attractive(?) trick, while calculations on those numbers
>> ignore them (obviously). My advice would be to drop them altogether,
>> especially for input to POV-Ray.
>>
>> --
>> Thomas
> 
> What the length unit does you use? Because my outputting number is usually small
> with this program(while meter is the length unit).
> 
The length units I use are from the metric system; whether they are mm, 
cm, m, or km, is of no importance and only relevant within a given scene 
of course.

Where things go wrong, starts with the exported ****_radial_speed.inc 
file where

#local r_pos = array[7][4] {
{ 0,00, 0,053815, 0,10493, 0,161445 },
{ 0,161445, 0,217235, 0,273236, 0,336914 },
{ 0,336914, 0,397284, 0,47667, 0,533589 },
{ 0,533589, 0,571795, 0,600867, 0,622288 },
{ 0,622288, 0,662945, 0,675592, 0,719823 },
{ 0,719823, 0,749311, 0,79926, 0,843443 },
{ 0,843443, 0,891902, 0,946315, 0,99775 },
}

#local year_pos = array[7][4] {
{ 0,00, 2,60, 5,20, 7,80 },
{ 7,80, 10,366667, 12,933333, 15,50 },
{ 15,50, 17,933333, 20,366667, 22,80 },
{ 22,80, 24,433333, 26,066667, 27,70 },
{ 27,70, 30,80, 33,90, 37,00 },
{ 37,00, 39,066667, 41,133333, 43,20 },
{ 43,20, 45,466667, 47,733333, 50,00 },
}

and all other exported include files where something like this is 
written. POV-Ray does not like it. :-)

It would be OK if this were:

#local r_pos = array[7][4] {
{ 0.00, 0.053815, 0.10493, 0.161445 },
{ 0.161445, 0.217235, 0.273236, 0.336914 },
{ 0.336914, 0.397284, 0.47667, 0.533589 },
{ 0.533589, 0.571795, 0.600867, 0.622288 },
{ 0.622288, 0.662945, 0.675592, 0.719823 },
{ 0.719823, 0.749311, 0.79926, 0.843443 },
{ 0.843443, 0.891902, 0.946315, 0.99775 },
}

#local year_pos = array[7][4] {
{ 0.00, 2.60, 5.20, 7.80 },
{ 7.80, 10.366667, 12.933333, 15.50 },
{ 15.50, 17.933333, 20.366667, 22.80 },
{ 22.80, 24.433333, 26.066667, 27.70 },
{ 27.70, 30.80, 33.90, 37.00 },
{ 37.00, 39.066667, 41.133333, 43.20 },
{ 43.20, 45.466667, 47.733333, 50.00 },
}

which, I suppose, is what you intend.

-- 
Thomas


Post a reply to this message

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