POV-Ray : Newsgroups : povray.binaries.utilities : Wood design program test version Server Time
26 Apr 2024 02:40:18 EDT (-0400)
  Wood design program test version (Message 17 to 26 of 39)  
<<< Previous 10 Messages Goto Latest 10 Messages Next 10 Messages >>>
From: Thomas de Groot
Subject: Re: Wood design program test version
Date: 4 Jul 2022 08:06:39
Message: <62c2d7cf$1@news.povray.org>
Op 27-6-2022 om 17:56 schreef And:
> First release.

Thanks And!

Test version, so I shall not (yet) comment on the visual aspects and so on.

However, one very important thing is the way decimals are written to the 
example include files. My system uses 'dots' (example: 3.9432) instead 
of 'commas' (example: 3,9432) like is done by your app. I guess that 
some countries/systems do so standard, but not all. My system uses 
'dots'. If this is an issue for better international use, could you make 
this an initial choice to make by the user? Or is there another way to 
change this easily?

-- 
Thomas


Post a reply to this message

From: And
Subject: Re: Wood design program test version
Date: 4 Jul 2022 12:30:00
Message: <web.62c314a84b788a98f10dbcecaa81652d@news.povray.org>
Thomas de Groot <tho### [at] degrootorg> wrote:
> Op 27-6-2022 om 17:56 schreef And:
> > First release.
>
> Thanks And!
>
> Test version, so I shall not (yet) comment on the visual aspects and so on.
>

Thanks for understanding.


> However, one very important thing is the way decimals are written to the
> example include files. My system uses 'dots' (example: 3.9432) instead
> of 'commas' (example: 3,9432) like is done by your app. I guess that
> some countries/systems do so standard, but not all.

I use 'meter' as the length unit, so that output result is caused by my habit.
The dots are decimal points.
I want to ask a question, a number contain commas can be read as 'one' number
correct by POV-Ray?
Can 3,9432 be a number?

> If this is an issue for better international use, could you make
> this an initial choice to make by the user? Or is there another way to
> change this easily?
>
> --
> Thomas

Currently You might need use 'scale' to the pigment to convert it to your
customary unit. I will add a list(menu) to select unit on the "Basic
Profile"(first page) in the future version. But I need time to research this.


Post a reply to this message

From: And
Subject: Re: Wood design program test version
Date: 4 Jul 2022 12:50:00
Message: <web.62c3191f4b788a98f10dbcecaa81652d@news.povray.org>
Excuse me, I upload the same version but compress to the .zip


Post a reply to this message


Attachments:
Download 'wooddesignprogram alpha ver20220627.zip' (987 KB)

From: Bald Eagle
Subject: Re: Wood design program test version
Date: 4 Jul 2022 14:55:00
Message: <web.62c3373a4b788a981f9dae3025979125@news.povray.org>
"And" <49341109@ntnu.edu.tw> wrote:

> > However, one very important thing is the way decimals are written to the
> > example include files. My system uses 'dots' (example: 3.9432) instead
> > of 'commas' (example: 3,9432) like is done by your app. I guess that
> > some countries/systems do so standard, but not all.
>
> I use 'meter' as the length unit, so that output result is caused by my habit.
> The dots are decimal points.

Units don't appear to be the issue.   The representation of decimal fractions is
what Thomas is concerned about.

> I want to ask a question, a number contain commas can be read as 'one' number
> correct by POV-Ray?
> Can 3,9432 be a number?

Nope.  That would be a string.  AFAIK, all versions of POV-Ray use only numerals
and the "+,-, and ." glyphs to represent numerical values.  Formatting those
values using str and probably a macro would be necessary to show the usual
commas between every step of 10^3.


> > If this is an issue for better international use, could you make
> > this an initial choice to make by the user? Or is there another way to
> > change this easily?
> >
> > --
> > Thomas
>
> Currently You might need use 'scale' to the pigment to convert it to your
> customary unit. I will add a list(menu) to select unit on the "Basic
> Profile"(first page) in the future version. But I need time to research this.

I think he means "Is there a way to specify whether to use "," or "." for the
data's output format.


Post a reply to this message

From: Thomas de Groot
Subject: Re: Wood design program test version
Date: 5 Jul 2022 02:37:36
Message: <62c3dc30$1@news.povray.org>
Op 04/07/2022 om 20:53 schreef Bald Eagle:
> "And" <49341109@ntnu.edu.tw> wrote:
> 
>>> However, one very important thing is the way decimals are written to the
>>> example include files. My system uses 'dots' (example: 3.9432) instead
>>> of 'commas' (example: 3,9432) like is done by your app. I guess that
>>> some countries/systems do so standard, but not all.
>>
>> I use 'meter' as the length unit, so that output result is caused by my habit.
>> The dots are decimal points.
> 
> Units don't appear to be the issue.   The representation of decimal fractions is
> what Thomas is concerned about.
> 
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.

>> I want to ask a question, a number contain commas can be read as 'one' number
>> correct by POV-Ray?
>> Can 3,9432 be a number?
> 
> Nope.  That would be a string.  AFAIK, all versions of POV-Ray use only numerals
> and the "+,-, and ." glyphs to represent numerical values.  Formatting those
> values using str and probably a macro would be necessary to show the usual
> commas between every step of 10^3.
> 
> 
>>> If this is an issue for better international use, could you make
>>> this an initial choice to make by the user? Or is there another way to
>>> change this easily?
>>>
>>> --
>>> Thomas
>>
>> Currently You might need use 'scale' to the pigment to convert it to your
>> customary unit. I will add a list(menu) to select unit on the "Basic
>> Profile"(first page) in the future version. But I need time to research this.
> 
> I think he means "Is there a way to specify whether to use "," or "." for the
> data's output format.
> 

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


Post a reply to this message

From: And
Subject: Re: Wood design program test version
Date: 5 Jul 2022 03:35:00
Message: <web.62c3e8524b788a98d75d356baa81652d@news.povray.org>
"Bald Eagle" <cre### [at] netscapenet> wrote:
> "And" <49341109@ntnu.edu.tw> wrote:
>
> > > However, one very important thing is the way decimals are written to the
> > > example include files. My system uses 'dots' (example: 3.9432) instead
> > > of 'commas' (example: 3,9432) like is done by your app. I guess that
> > > some countries/systems do so standard, but not all.
> >
> > I use 'meter' as the length unit, so that output result is caused by my habit.
> > The dots are decimal points.
>
> Units don't appear to be the issue.   The representation of decimal fractions is
> what Thomas is concerned about.
>

Labeling titles and units on diagram is important I know. I will label them.


> > I want to ask a question, a number contain commas can be read as 'one' number
> > correct by POV-Ray?
> > Can 3,9432 be a number?
>
> Nope.  That would be a string.  AFAIK, all versions of POV-Ray use only numerals
> and the "+,-, and ." glyphs to represent numerical values.  Formatting those
> values using str and probably a macro would be necessary to show the usual
> commas between every step of 10^3.
>
>
> > > If this is an issue for better international use, could you make
> > > this an initial choice to make by the user? Or is there another way to
> > > change this easily?
> > >
> > > --
> > > Thomas
> >
>
> I think he means "Is there a way to specify whether to use "," or "." for the
> data's output format.


I'm not clear this time. POV-Ray cannot use a number contains commas as you
said, why I need add commas between every step of 10^3. I attach a picture, this
picture is what I saw on my output data. Is the same format on your output data?


Post a reply to this message


Attachments:
Download 'radial_speed_output.png' (96 KB)

Preview of image 'radial_speed_output.png'
radial_speed_output.png


 

From: And
Subject: Re: Wood design program test version
Date: 5 Jul 2022 03:55:00
Message: <web.62c3ee104b788a98d75d356baa81652d@news.povray.org>
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).


Post a reply to this message

From: Thomas de Groot
Subject: Re: Wood design program test version
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

From: And
Subject: Re: Wood design program test version
Date: 5 Jul 2022 12:15:00
Message: <web.62c462e14b788a98d75d356baa81652d@news.povray.org>
Thomas de Groot <tho### [at] degrootorg> wrote:
> 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


Oh, this is important. I just fix it(but need you testing). Thank you.

No any other change. except in demo scene, I rotate<0,0,0> instead of
rotate<0,0,90> the wood-block.


Post a reply to this message


Attachments:
Download 'wooddesignprogram alpha ver20220705.rar.dat' (966 KB)

From: And
Subject: Re: Wood design program test version
Date: 5 Jul 2022 12:15:00
Message: <web.62c463484b788a98d75d356baa81652d@news.povray.org>
compress to .zip


Post a reply to this message


Attachments:
Download 'wooddesignprogram alpha ver20220705.zip' (980 KB)

<<< Previous 10 Messages Goto Latest 10 Messages Next 10 Messages >>>

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