GH
gene heskett
Fri, Sep 6, 2024 10:03 PM
On 9/6/24 17:13, Jordan Brown wrote:
On 9/6/2024 1:37 PM, gene heskett via Discuss wrote:
The problem is that text gets stripped to just "1","2" etc if the
following decimal point is .0 then only the 2 etc gets printed.
technically 2 or whatever is correct but that is not what I think I'm
telling it to do.
That's actually totally unrelated and, amusingly, not related to text()
per se either.
None of the mechanisms available in OpenSCAD for translating numbers
into text offer any control over the number of decimal places - nor over
any other aspect of the presentation that results. (Offhand, those
mechanisms are str() and echo(), though there might be a few other
places where numbers get automatically converted into strings.)
I think it would be good to add this as a built-in feature, but in the
meantime there's a BOSL2 function that will do what you need:
https://github.com/BelfrySCAD/BOSL2/wiki/strings.scad#function-format_fixed
Well I had a hunch it might be a separate problem. Now the question is
rendering time. F6 for the nuts is minutes, F5 is downright boring for
quite a few minutes, time enough to go get a 6 pack and drink one of
them, If I was still drinking, my diabetes has made that dangerous.
Thanks for the clarification, Jordan. I'll see if I can reconfigure to
use BOSL2 instead.
Cheers, Gene Heskett, CET.
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
On 9/6/24 17:13, Jordan Brown wrote:
> On 9/6/2024 1:37 PM, gene heskett via Discuss wrote:
>> The problem is that text gets stripped to just "1","2" etc if the
>> following decimal point is .0 then only the 2 etc gets printed.
>> technically 2 or whatever is correct but that is not what I think I'm
>> telling it to do.
>
> That's actually totally unrelated and, amusingly, not related to text()
> per se either.
>
> None of the mechanisms available in OpenSCAD for translating numbers
> into text offer any control over the number of decimal places - nor over
> any other aspect of the presentation that results. (Offhand, those
> mechanisms are str() and echo(), though there might be a few other
> places where numbers get automatically converted into strings.)
>
> I think it would be good to add this as a built-in feature, but in the
> meantime there's a BOSL2 function that will do what you need:
> https://github.com/BelfrySCAD/BOSL2/wiki/strings.scad#function-format_fixed
>
Well I had a hunch it might be a separate problem. Now the question is
rendering time. F6 for the nuts is minutes, F5 is downright boring for
quite a few minutes, time enough to go get a 6 pack and drink one of
them, If I was still drinking, my diabetes has made that dangerous.
Thanks for the clarification, Jordan. I'll see if I can reconfigure to
use BOSL2 instead.
Cheers, Gene Heskett, CET.
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
- Louis D. Brandeis
MM
Michael Marx (spintel)
Sat, Sep 7, 2024 1:13 AM
Gene,
You can make a function to do this str() method.
int=4;
float=4.2;
echo(int=int,float=float);
echo(str("int = ",int,", float = ",float));
echo(str("int = ",int,int==abs(int)? ".0" : "",", float = ",float));
ECHO: int = 4, float = 4.2
ECHO: "int = 4, float = 4.2"
ECHO: "int = 4.0, float = 4.2"
-----Original Message-----
From: gene heskett via Discuss [mailto:discuss@lists.openscad.org]
Sent: Sat, 7 Sep 2024 08:04
To: Jordan Brown; OpenSCAD general discussion Mailing-list
Cc: gene heskett
Subject: [OpenSCAD] Re: decimal point in text disappearing
On 9/6/24 17:13, Jordan Brown wrote:
On 9/6/2024 1:37 PM, gene heskett via Discuss wrote:
The problem is that text gets stripped to just "1","2" etc if the
following decimal point is .0 then only the 2 etc gets printed.
technically 2 or whatever is correct but that is not what I think I'm
telling it to do.
That's actually totally unrelated and, amusingly, not related to text()
per se either.
None of the mechanisms available in OpenSCAD for translating numbers
into text offer any control over the number of decimal places - nor over
any other aspect of the presentation that results. (Offhand, those
mechanisms are str() and echo(), though there might be a few other
places where numbers get automatically converted into strings.)
I think it would be good to add this as a built-in feature, but in the
meantime there's a BOSL2 function that will do what you need:
https://github.com/BelfrySCAD/BOSL2/wiki/strings.scad#function-format_fixed
Well I had a hunch it might be a separate problem. Now the question is
rendering time. F6 for the nuts is minutes, F5 is downright boring for
quite a few minutes, time enough to go get a 6 pack and drink one of
them, If I was still drinking, my diabetes has made that dangerous.
Thanks for the clarification, Jordan. I'll see if I can reconfigure to
use BOSL2 instead.
Cheers, Gene Heskett, CET.
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
Gene,
You can make a function to do this str() method.
int=4;
float=4.2;
echo(int=int,float=float);
echo(str("int = ",int,", float = ",float));
echo(str("int = ",int,int==abs(int)? ".0" : "",", float = ",float));
ECHO: int = 4, float = 4.2
ECHO: "int = 4, float = 4.2"
ECHO: "int = 4.0, float = 4.2"
> -----Original Message-----
> From: gene heskett via Discuss [mailto:discuss@lists.openscad.org]
> Sent: Sat, 7 Sep 2024 08:04
> To: Jordan Brown; OpenSCAD general discussion Mailing-list
> Cc: gene heskett
> Subject: [OpenSCAD] Re: decimal point in text disappearing
>
> On 9/6/24 17:13, Jordan Brown wrote:
> > On 9/6/2024 1:37 PM, gene heskett via Discuss wrote:
> >> The problem is that text gets stripped to just "1","2" etc if the
> >> following decimal point is .0 then only the 2 etc gets printed.
> >> technically 2 or whatever is correct but that is not what I think I'm
> >> telling it to do.
> >
> > That's actually totally unrelated and, amusingly, not related to text()
> > per se either.
> >
> > None of the mechanisms available in OpenSCAD for translating numbers
> > into text offer any control over the number of decimal places - nor over
> > any other aspect of the presentation that results. (Offhand, those
> > mechanisms are str() and echo(), though there might be a few other
> > places where numbers get automatically converted into strings.)
> >
> > I think it would be good to add this as a built-in feature, but in the
> > meantime there's a BOSL2 function that will do what you need:
> > https://github.com/BelfrySCAD/BOSL2/wiki/strings.scad#function-format_fixed
> >
> Well I had a hunch it might be a separate problem. Now the question is
> rendering time. F6 for the nuts is minutes, F5 is downright boring for
> quite a few minutes, time enough to go get a 6 pack and drink one of
> them, If I was still drinking, my diabetes has made that dangerous.
>
> Thanks for the clarification, Jordan. I'll see if I can reconfigure to
> use BOSL2 instead.
>
> Cheers, Gene Heskett, CET.
> --
> "There are four boxes to be used in defense of liberty:
> soap, ballot, jury, and ammo. Please use in that order."
> -Ed Howdershelt (Author, 1940)
> If we desire respect for the law, we must first make the law respectable.
> - Louis D. Brandeis
> _______________________________________________
> OpenSCAD mailing list
> To unsubscribe send an email to discuss-leave@lists.openscad.org
NH
nop head
Sat, Sep 7, 2024 8:32 AM
Not sure how F5 can be slower than F6 and how it can take minutes to render
nuts.
It only takes 1.352 seconds to draw all these with threads:
[image: image.png]
No time for beer for me!
On Sat, 7 Sept 2024 at 02:14, Michael Marx (spintel) via Discuss <
discuss@lists.openscad.org> wrote:
Gene,
You can make a function to do this str() method.
int=4;
float=4.2;
echo(int=int,float=float);
echo(str("int = ",int,", float = ",float));
echo(str("int = ",int,int==abs(int)? ".0" : "",", float = ",float));
ECHO: int = 4, float = 4.2
ECHO: "int = 4, float = 4.2"
ECHO: "int = 4.0, float = 4.2"
-----Original Message-----
From: gene heskett via Discuss [mailto:discuss@lists.openscad.org]
Sent: Sat, 7 Sep 2024 08:04
To: Jordan Brown; OpenSCAD general discussion Mailing-list
Cc: gene heskett
Subject: [OpenSCAD] Re: decimal point in text disappearing
On 9/6/24 17:13, Jordan Brown wrote:
On 9/6/2024 1:37 PM, gene heskett via Discuss wrote:
The problem is that text gets stripped to just "1","2" etc if the
following decimal point is .0 then only the 2 etc gets printed.
technically 2 or whatever is correct but that is not what I think I'm
telling it to do.
That's actually totally unrelated and, amusingly, not related to text()
per se either.
None of the mechanisms available in OpenSCAD for translating numbers
into text offer any control over the number of decimal places - nor
any other aspect of the presentation that results. (Offhand, those
mechanisms are str() and echo(), though there might be a few other
places where numbers get automatically converted into strings.)
I think it would be good to add this as a built-in feature, but in the
meantime there's a BOSL2 function that will do what you need:
Well I had a hunch it might be a separate problem. Now the question is
rendering time. F6 for the nuts is minutes, F5 is downright boring for
quite a few minutes, time enough to go get a 6 pack and drink one of
them, If I was still drinking, my diabetes has made that dangerous.
Thanks for the clarification, Jordan. I'll see if I can reconfigure to
use BOSL2 instead.
Cheers, Gene Heskett, CET.
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
Not sure how F5 can be slower than F6 and how it can take minutes to render
nuts.
It only takes 1.352 seconds to draw all these with threads:
[image: image.png]
No time for beer for me!
On Sat, 7 Sept 2024 at 02:14, Michael Marx (spintel) via Discuss <
discuss@lists.openscad.org> wrote:
> Gene,
>
> You can make a function to do this str() method.
>
> int=4;
> float=4.2;
> echo(int=int,float=float);
> echo(str("int = ",int,", float = ",float));
> echo(str("int = ",int,int==abs(int)? ".0" : "",", float = ",float));
>
> ECHO: int = 4, float = 4.2
> ECHO: "int = 4, float = 4.2"
> ECHO: "int = 4.0, float = 4.2"
>
> > -----Original Message-----
> > From: gene heskett via Discuss [mailto:discuss@lists.openscad.org]
> > Sent: Sat, 7 Sep 2024 08:04
> > To: Jordan Brown; OpenSCAD general discussion Mailing-list
> > Cc: gene heskett
> > Subject: [OpenSCAD] Re: decimal point in text disappearing
> >
> > On 9/6/24 17:13, Jordan Brown wrote:
> > > On 9/6/2024 1:37 PM, gene heskett via Discuss wrote:
> > >> The problem is that text gets stripped to just "1","2" etc if the
> > >> following decimal point is .0 then only the 2 etc gets printed.
> > >> technically 2 or whatever is correct but that is not what I think I'm
> > >> telling it to do.
> > >
> > > That's actually totally unrelated and, amusingly, not related to text()
> > > per se either.
> > >
> > > None of the mechanisms available in OpenSCAD for translating numbers
> > > into text offer any control over the number of decimal places - nor
> over
> > > any other aspect of the presentation that results. (Offhand, those
> > > mechanisms are str() and echo(), though there might be a few other
> > > places where numbers get automatically converted into strings.)
> > >
> > > I think it would be good to add this as a built-in feature, but in the
> > > meantime there's a BOSL2 function that will do what you need:
> > >
> https://github.com/BelfrySCAD/BOSL2/wiki/strings.scad#function-format_fixed
> > >
> > Well I had a hunch it might be a separate problem. Now the question is
> > rendering time. F6 for the nuts is minutes, F5 is downright boring for
> > quite a few minutes, time enough to go get a 6 pack and drink one of
> > them, If I was still drinking, my diabetes has made that dangerous.
> >
> > Thanks for the clarification, Jordan. I'll see if I can reconfigure to
> > use BOSL2 instead.
> >
> > Cheers, Gene Heskett, CET.
> > --
> > "There are four boxes to be used in defense of liberty:
> > soap, ballot, jury, and ammo. Please use in that order."
> > -Ed Howdershelt (Author, 1940)
> > If we desire respect for the law, we must first make the law respectable.
> > - Louis D. Brandeis
> > _______________________________________________
> > OpenSCAD mailing list
> > To unsubscribe send an email to discuss-leave@lists.openscad.org
> _______________________________________________
> OpenSCAD mailing list
> To unsubscribe send an email to discuss-leave@lists.openscad.org
>
CK
Chun Kit LAM
Sat, Sep 7, 2024 2:38 PM
In fact I am pretty curious if there are scripts in which F5 is
significantly faster than F6 with manifold enabled. By meaningfully
faster I mean at least several hundred milliseconds.
Feel like F6 is already pretty fast now except for minkowski, but F5
cannot deal with minkowski anyway.
On 7/9/2024 16:32, nop head via Discuss wrote:
Not sure how F5 can be slower than F6 and how it can take minutes to
render nuts.
It only takes 1.352 seconds to draw all these with threads:
image.png
No time for beer for me!
On Sat, 7 Sept 2024 at 02:14, Michael Marx (spintel) via Discuss
discuss@lists.openscad.org wrote:
Gene,
You can make a function to do this str() method.
int=4;
float=4.2;
echo(int=int,float=float);
echo(str("int = ",int,", float = ",float));
echo(str("int = ",int,int==abs(int)? ".0" : "",", float = ",float));
ECHO: int = 4, float = 4.2
ECHO: "int = 4, float = 4.2"
ECHO: "int = 4.0, float = 4.2"
-----Original Message-----
From: gene heskett via Discuss [mailto:discuss@lists.openscad.org]
Sent: Sat, 7 Sep 2024 08:04
To: Jordan Brown; OpenSCAD general discussion Mailing-list
Cc: gene heskett
Subject: [OpenSCAD] Re: decimal point in text disappearing
On 9/6/24 17:13, Jordan Brown wrote:
On 9/6/2024 1:37 PM, gene heskett via Discuss wrote:
The problem is that text gets stripped to just "1","2" etc if the
following decimal point is .0 then only the 2 etc gets printed.
technically 2 or whatever is correct but that is not what I
That's actually totally unrelated and, amusingly, not related
per se either.
None of the mechanisms available in OpenSCAD for translating
into text offer any control over the number of decimal places
any other aspect of the presentation that results. (Offhand, those
mechanisms are str() and echo(), though there might be a few other
places where numbers get automatically converted into strings.)
I think it would be good to add this as a built-in feature,
meantime there's a BOSL2 function that will do what you need:
https://github.com/BelfrySCAD/BOSL2/wiki/strings.scad#function-format_fixed
Well I had a hunch it might be a separate problem. Now the
rendering time. F6 for the nuts is minutes, F5 is downright
quite a few minutes, time enough to go get a 6 pack and drink one of
them, If I was still drinking, my diabetes has made that dangerous.
Thanks for the clarification, Jordan. I'll see if I can
use BOSL2 instead.
Cheers, Gene Heskett, CET.
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law
_______________________________________________
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
OpenSCAD mailing list
To unsubscribe send an email todiscuss-leave@lists.openscad.org
In fact I am pretty curious if there are scripts in which F5 is
significantly faster than F6 with manifold enabled. By meaningfully
faster I mean at least several hundred milliseconds.
Feel like F6 is already pretty fast now except for minkowski, but F5
cannot deal with minkowski anyway.
On 7/9/2024 16:32, nop head via Discuss wrote:
> Not sure how F5 can be slower than F6 and how it can take minutes to
> render nuts.
>
> It only takes 1.352 seconds to draw all these with threads:
>
> image.png
>
> No time for beer for me!
>
> On Sat, 7 Sept 2024 at 02:14, Michael Marx (spintel) via Discuss
> <discuss@lists.openscad.org> wrote:
>
> Gene,
>
> You can make a function to do this str() method.
>
> int=4;
> float=4.2;
> echo(int=int,float=float);
> echo(str("int = ",int,", float = ",float));
> echo(str("int = ",int,int==abs(int)? ".0" : "",", float = ",float));
>
> ECHO: int = 4, float = 4.2
> ECHO: "int = 4, float = 4.2"
> ECHO: "int = 4.0, float = 4.2"
>
> > -----Original Message-----
> > From: gene heskett via Discuss [mailto:discuss@lists.openscad.org]
> > Sent: Sat, 7 Sep 2024 08:04
> > To: Jordan Brown; OpenSCAD general discussion Mailing-list
> > Cc: gene heskett
> > Subject: [OpenSCAD] Re: decimal point in text disappearing
> >
> > On 9/6/24 17:13, Jordan Brown wrote:
> > > On 9/6/2024 1:37 PM, gene heskett via Discuss wrote:
> > >> The problem is that text gets stripped to just "1","2" etc if the
> > >> following decimal point is .0 then only the 2 etc gets printed.
> > >> technically 2 or whatever is correct but that is not what I
> think I'm
> > >> telling it to do.
> > >
> > > That's actually totally unrelated and, amusingly, not related
> to text()
> > > per se either.
> > >
> > > None of the mechanisms available in OpenSCAD for translating
> numbers
> > > into text offer any control over the number of decimal places
> - nor over
> > > any other aspect of the presentation that results. (Offhand, those
> > > mechanisms are str() and echo(), though there might be a few other
> > > places where numbers get automatically converted into strings.)
> > >
> > > I think it would be good to add this as a built-in feature,
> but in the
> > > meantime there's a BOSL2 function that will do what you need:
> > >
> https://github.com/BelfrySCAD/BOSL2/wiki/strings.scad#function-format_fixed
> > >
> > Well I had a hunch it might be a separate problem. Now the
> question is
> > rendering time. F6 for the nuts is minutes, F5 is downright
> boring for
> > quite a few minutes, time enough to go get a 6 pack and drink one of
> > them, If I was still drinking, my diabetes has made that dangerous.
> >
> > Thanks for the clarification, Jordan. I'll see if I can
> reconfigure to
> > use BOSL2 instead.
> >
> > Cheers, Gene Heskett, CET.
> > --
> > "There are four boxes to be used in defense of liberty:
> > soap, ballot, jury, and ammo. Please use in that order."
> > -Ed Howdershelt (Author, 1940)
> > If we desire respect for the law, we must first make the law
> respectable.
> > - Louis D. Brandeis
> > _______________________________________________
> > OpenSCAD mailing list
> > To unsubscribe send an email to discuss-leave@lists.openscad.org
> _______________________________________________
> OpenSCAD mailing list
> To unsubscribe send an email to discuss-leave@lists.openscad.org
>
>
> _______________________________________________
> OpenSCAD mailing list
> To unsubscribe send an email todiscuss-leave@lists.openscad.org
GH
gene heskett
Sat, Sep 7, 2024 3:08 PM
On 9/6/24 21:14, Michael Marx (spintel) via Discuss wrote:
Gene,
You can make a function to do this str() method.
int=4;
float=4.2;
echo(int=int,float=float);
echo(str("int = ",int,", float = ",float));
echo(str("int = ",int,int==abs(int)? ".0" : "",", float = ",float));
upchucks here
"ECHO": int = 4, float = 4.2
ECHO: "int = 4, float = 4.2"
ECHO: "int = 4.0, float = 4.2"
-----Original Message-----
From: gene heskett via Discuss [mailto:discuss@lists.openscad.org]
Sent: Sat, 7 Sep 2024 08:04
To: Jordan Brown; OpenSCAD general discussion Mailing-list
Cc: gene heskett
Subject: [OpenSCAD] Re: decimal point in text disappearing
On 9/6/24 17:13, Jordan Brown wrote:
On 9/6/2024 1:37 PM, gene heskett via Discuss wrote:
The problem is that text gets stripped to just "1","2" etc if the
following decimal point is .0 then only the 2 etc gets printed.
technically 2 or whatever is correct but that is not what I think I'm
telling it to do.
That's actually totally unrelated and, amusingly, not related to text()
per se either.
None of the mechanisms available in OpenSCAD for translating numbers
into text offer any control over the number of decimal places - nor over
any other aspect of the presentation that results. (Offhand, those
mechanisms are str() and echo(), though there might be a few other
places where numbers get automatically converted into strings.)
I think it would be good to add this as a built-in feature, but in the
meantime there's a BOSL2 function that will do what you need:
https://github.com/BelfrySCAD/BOSL2/wiki/strings.scad#function-format_fixed
Well I had a hunch it might be a separate problem. Now the question is
rendering time. F6 for the nuts is minutes, F5 is downright boring for
quite a few minutes, time enough to go get a 6 pack and drink one of
them, If I was still drinking, my diabetes has made that dangerous.
Thanks for the clarification, Jordan. I'll see if I can reconfigure to
use BOSL2 instead.
Cheers, Gene Heskett, CET.
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
- Louis D. Brandeis
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
Cheers, Gene Heskett, CET.
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
On 9/6/24 21:14, Michael Marx (spintel) via Discuss wrote:
> Gene,
>
> You can make a function to do this str() method.
>
> int=4;
> float=4.2;
> echo(int=int,float=float);
> echo(str("int = ",int,", float = ",float));
> echo(str("int = ",int,int==abs(int)? ".0" : "",", float = ",float));
> upchucks here
> "ECHO": int = 4, float = 4.2
> ECHO: "int = 4, float = 4.2"
> ECHO: "int = 4.0, float = 4.2"
>
>> -----Original Message-----
>> From: gene heskett via Discuss [mailto:discuss@lists.openscad.org]
>> Sent: Sat, 7 Sep 2024 08:04
>> To: Jordan Brown; OpenSCAD general discussion Mailing-list
>> Cc: gene heskett
>> Subject: [OpenSCAD] Re: decimal point in text disappearing
>>
>> On 9/6/24 17:13, Jordan Brown wrote:
>>> On 9/6/2024 1:37 PM, gene heskett via Discuss wrote:
>>>> The problem is that text gets stripped to just "1","2" etc if the
>>>> following decimal point is .0 then only the 2 etc gets printed.
>>>> technically 2 or whatever is correct but that is not what I think I'm
>>>> telling it to do.
>>>
>>> That's actually totally unrelated and, amusingly, not related to text()
>>> per se either.
>>>
>>> None of the mechanisms available in OpenSCAD for translating numbers
>>> into text offer any control over the number of decimal places - nor over
>>> any other aspect of the presentation that results. (Offhand, those
>>> mechanisms are str() and echo(), though there might be a few other
>>> places where numbers get automatically converted into strings.)
>>>
>>> I think it would be good to add this as a built-in feature, but in the
>>> meantime there's a BOSL2 function that will do what you need:
>>> https://github.com/BelfrySCAD/BOSL2/wiki/strings.scad#function-format_fixed
>>>
>> Well I had a hunch it might be a separate problem. Now the question is
>> rendering time. F6 for the nuts is minutes, F5 is downright boring for
>> quite a few minutes, time enough to go get a 6 pack and drink one of
>> them, If I was still drinking, my diabetes has made that dangerous.
>>
>> Thanks for the clarification, Jordan. I'll see if I can reconfigure to
>> use BOSL2 instead.
>>
>> Cheers, Gene Heskett, CET.
>> --
>> "There are four boxes to be used in defense of liberty:
>> soap, ballot, jury, and ammo. Please use in that order."
>> -Ed Howdershelt (Author, 1940)
>> If we desire respect for the law, we must first make the law respectable.
>> - Louis D. Brandeis
>> _______________________________________________
>> OpenSCAD mailing list
>> To unsubscribe send an email to discuss-leave@lists.openscad.org
> _______________________________________________
> OpenSCAD mailing list
> To unsubscribe send an email to discuss-leave@lists.openscad.org
> .
Cheers, Gene Heskett, CET.
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
- Louis D. Brandeis
GH
gene heskett
Sat, Sep 7, 2024 3:13 PM
On 9/6/24 21:14, Michael Marx (spintel) via Discuss wrote:
Probably not making much sense, sugar is 165, legs on fire from edema
blisters
You can make a function to do this str() method.
int=4;
float=4.2;
echo(int=int,float=float);
echo(str("int = ",int,", float = ",float));
echo(str("int = ",int,int==abs(int)? ".0" : "",", float = ",float));
ECHO: int = 4, float = 4.2
ECHO: "int = 4, float = 4.2"
ECHO: "int = 4.0, float = 4.2"
-----Original Message-----
From: gene heskett via Discuss [mailto:discuss@lists.openscad.org]
Sent: Sat, 7 Sep 2024 08:04
To: Jordan Brown; OpenSCAD general discussion Mailing-list
Cc: gene heskett
Subject: [OpenSCAD] Re: decimal point in text disappearing
On 9/6/24 17:13, Jordan Brown wrote:
On 9/6/2024 1:37 PM, gene heskett via Discuss wrote:
The problem is that text gets stripped to just "1","2" etc if the
following decimal point is .0 then only the 2 etc gets printed.
technically 2 or whatever is correct but that is not what I think I'm
telling it to do.
That's actually totally unrelated and, amusingly, not related to text()
per se either.
None of the mechanisms available in OpenSCAD for translating numbers
into text offer any control over the number of decimal places - nor over
any other aspect of the presentation that results. (Offhand, those
mechanisms are str() and echo(), though there might be a few other
places where numbers get automatically converted into strings.)
I think it would be good to add this as a built-in feature, but in the
meantime there's a BOSL2 function that will do what you need:
https://github.com/BelfrySCAD/BOSL2/wiki/strings.scad#function-format_fixed
Well I had a hunch it might be a separate problem. Now the question is
rendering time. F6 for the nuts is minutes, F5 is downright boring for
quite a few minutes, time enough to go get a 6 pack and drink one of
them, If I was still drinking, my diabetes has made that dangerous.
Thanks for the clarification, Jordan. I'll see if I can reconfigure to
use BOSL2 instead.
Cheers, Gene Heskett, CET.
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
- Louis D. Brandeis
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
Cheers, Gene Heskett, CET.
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
On 9/6/24 21:14, Michael Marx (spintel) via Discuss wrote:
> Gene,
Probably not making much sense, sugar is 165, legs on fire from edema
blisters
> You can make a function to do this str() method.
>
> int=4;
> float=4.2;
> echo(int=int,float=float);
> echo(str("int = ",int,", float = ",float));
> echo(str("int = ",int,int==abs(int)? ".0" : "",", float = ",float));
>
> ECHO: int = 4, float = 4.2
> ECHO: "int = 4, float = 4.2"
> ECHO: "int = 4.0, float = 4.2"
>
>> -----Original Message-----
>> From: gene heskett via Discuss [mailto:discuss@lists.openscad.org]
>> Sent: Sat, 7 Sep 2024 08:04
>> To: Jordan Brown; OpenSCAD general discussion Mailing-list
>> Cc: gene heskett
>> Subject: [OpenSCAD] Re: decimal point in text disappearing
>>
>> On 9/6/24 17:13, Jordan Brown wrote:
>>> On 9/6/2024 1:37 PM, gene heskett via Discuss wrote:
>>>> The problem is that text gets stripped to just "1","2" etc if the
>>>> following decimal point is .0 then only the 2 etc gets printed.
>>>> technically 2 or whatever is correct but that is not what I think I'm
>>>> telling it to do.
>>>
>>> That's actually totally unrelated and, amusingly, not related to text()
>>> per se either.
>>>
>>> None of the mechanisms available in OpenSCAD for translating numbers
>>> into text offer any control over the number of decimal places - nor over
>>> any other aspect of the presentation that results. (Offhand, those
>>> mechanisms are str() and echo(), though there might be a few other
>>> places where numbers get automatically converted into strings.)
>>>
>>> I think it would be good to add this as a built-in feature, but in the
>>> meantime there's a BOSL2 function that will do what you need:
>>> https://github.com/BelfrySCAD/BOSL2/wiki/strings.scad#function-format_fixed
>>>
>> Well I had a hunch it might be a separate problem. Now the question is
>> rendering time. F6 for the nuts is minutes, F5 is downright boring for
>> quite a few minutes, time enough to go get a 6 pack and drink one of
>> them, If I was still drinking, my diabetes has made that dangerous.
>>
>> Thanks for the clarification, Jordan. I'll see if I can reconfigure to
>> use BOSL2 instead.
>>
>> Cheers, Gene Heskett, CET.
>> --
>> "There are four boxes to be used in defense of liberty:
>> soap, ballot, jury, and ammo. Please use in that order."
>> -Ed Howdershelt (Author, 1940)
>> If we desire respect for the law, we must first make the law respectable.
>> - Louis D. Brandeis
>> _______________________________________________
>> OpenSCAD mailing list
>> To unsubscribe send an email to discuss-leave@lists.openscad.org
> _______________________________________________
> OpenSCAD mailing list
> To unsubscribe send an email to discuss-leave@lists.openscad.org
> .
Cheers, Gene Heskett, CET.
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
- Louis D. Brandeis
GH
gene heskett
Sat, Sep 7, 2024 7:18 PM
On 9/7/24 04:32, nop head via Discuss wrote:
Not sure how F5 can be slower than F6 and how it can take minutes to
render nuts.
F5 has been tons slower than F6 for at least a year. Maybe longer.
From the about: OpenSCAD version 2024.06.04.ai19515 but I just dl the
latest, F6 render for this is Total rendering time: 0:00:07.011,
F5 is Total rendering time: 0:00:01.059 Which does not agree with the
time it takes to refresh the viewscreen, which is about 3 minutes. Why?
Besides that these nuts are made by differences by first making the bolt
from a polygon tooth, then subtracting it from the block that is a half
nut. But the thread is a 2 start, so the nuts are alike. Typical pair as
rendered by this OpenSXAD attached. The actual bolt itself is made on a
pair of cnc milling machines I've built, Using gcode I wrote. Tooth
shape is buttress, made from the same polygon list in both OpenSCAD and
gcode. The hard maple stick starts as a 2x2 about 23" long. Warpage of
the stick as its sawed results in screws of up to 3mm different
diameters by the time the stick is made round until no flats remain.
The next plank of maple I buy will get a year under vacuum so its DRY.
A different plank about 4" thick I made a BP thumhole stock out of
jumped out of its skin with the first try. 2nd pass I used a
refrigeration punp to keep it under 29" of vacuum for about a year. I
don't think it moved a thou when I started carving on it. Beautiful, and
for a BP, prints less than 2" groups at 50 yards, but part of that is
the real bolt and firing pin lighting up a m209 primer since a #11 cap
won't light blackhorn 209 powder. I could not keep it on the paper when
new. Now its a real deer rifle
It only takes 1.352 seconds to draw all these with threads:
image.png
No time for beer for me!
On Sat, 7 Sept 2024 at 02:14, Michael Marx (spintel) via Discuss
<discuss@lists.openscad.org mailto:discuss@lists.openscad.org> wrote:
Gene,
You can make a function to do this str() method.
int=4;
float=4.2;
echo(int=int,float=float);
echo(str("int = ",int,", float = ",float));
echo(str("int = ",int,int==abs(int)? ".0" : "",", float = ",float));
ECHO: int = 4, float = 4.2
ECHO: "int = 4, float = 4.2"
ECHO: "int = 4.0, float = 4.2"
<mailto:discuss@lists.openscad.org>]
Sent: Sat, 7 Sep 2024 08:04
To: Jordan Brown; OpenSCAD general discussion Mailing-list
Cc: gene heskett
Subject: [OpenSCAD] Re: decimal point in text disappearing
On 9/6/24 17:13, Jordan Brown wrote:
On 9/6/2024 1:37 PM, gene heskett via Discuss wrote:
The problem is that text gets stripped to just "1","2" etc if the
following decimal point is .0 then only the 2 etc gets printed.
technically 2 or whatever is correct but that is not what I
That's actually totally unrelated and, amusingly, not related
per se either.
None of the mechanisms available in OpenSCAD for translating
into text offer any control over the number of decimal places -
any other aspect of the presentation that results. (Offhand, those
mechanisms are str() and echo(), though there might be a few other
places where numbers get automatically converted into strings.)
I think it would be good to add this as a built-in feature, but
meantime there's a BOSL2 function that will do what you need:
https://github.com/BelfrySCAD/BOSL2/wiki/strings.scad#function-format_fixed <https://github.com/BelfrySCAD/BOSL2/wiki/strings.scad#function-format_fixed>
Well I had a hunch it might be a separate problem. Now the
rendering time. F6 for the nuts is minutes, F5 is downright
quite a few minutes, time enough to go get a 6 pack and drink one of
them, If I was still drinking, my diabetes has made that dangerous.
Thanks for the clarification, Jordan. I'll see if I can
use BOSL2 instead.
Cheers, Gene Heskett, CET.
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law
<mailto:discuss-leave@lists.openscad.org>
_______________________________________________
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
<mailto:discuss-leave@lists.openscad.org>
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
Cheers, Gene Heskett, CET.
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
On 9/7/24 04:32, nop head via Discuss wrote:
> Not sure how F5 can be slower than F6 and how it can take minutes to
> render nuts.
F5 has been tons slower than F6 for at least a year. Maybe longer.
From the about: OpenSCAD version 2024.06.04.ai19515 but I just dl the
latest, F6 render for this is Total rendering time: 0:00:07.011,
F5 is Total rendering time: 0:00:01.059 Which does not agree with the
time it takes to refresh the viewscreen, which is about 3 minutes. Why?
Besides that these nuts are made by differences by first making the bolt
from a polygon tooth, then subtracting it from the block that is a half
nut. But the thread is a 2 start, so the nuts are alike. Typical pair as
rendered by this OpenSXAD attached. The actual bolt itself is made on a
pair of cnc milling machines I've built, Using gcode I wrote. Tooth
shape is buttress, made from the same polygon list in both OpenSCAD and
gcode. The hard maple stick starts as a 2x2 about 23" long. Warpage of
the stick as its sawed results in screws of up to 3mm different
diameters by the time the stick is made round until no flats remain.
The next plank of maple I buy will get a year under vacuum so its DRY.
A different plank about 4" thick I made a BP thumhole stock out of
jumped out of its skin with the first try. 2nd pass I used a
refrigeration punp to keep it under 29" of vacuum for about a year. I
don't think it moved a thou when I started carving on it. Beautiful, and
for a BP, prints less than 2" groups at 50 yards, but part of that is
the real bolt and firing pin lighting up a m209 primer since a #11 cap
won't light blackhorn 209 powder. I could not keep it on the paper when
new. Now its a real deer rifle
> It only takes 1.352 seconds to draw all these with threads:
>
> image.png
>
> No time for beer for me!
>
> On Sat, 7 Sept 2024 at 02:14, Michael Marx (spintel) via Discuss
> <discuss@lists.openscad.org <mailto:discuss@lists.openscad.org>> wrote:
>
> Gene,
>
> You can make a function to do this str() method.
>
> int=4;
> float=4.2;
> echo(int=int,float=float);
> echo(str("int = ",int,", float = ",float));
> echo(str("int = ",int,int==abs(int)? ".0" : "",", float = ",float));
>
> ECHO: int = 4, float = 4.2
> ECHO: "int = 4, float = 4.2"
> ECHO: "int = 4.0, float = 4.2"
>
> > -----Original Message-----
> > From: gene heskett via Discuss [mailto:discuss@lists.openscad.org
> <mailto:discuss@lists.openscad.org>]
> > Sent: Sat, 7 Sep 2024 08:04
> > To: Jordan Brown; OpenSCAD general discussion Mailing-list
> > Cc: gene heskett
> > Subject: [OpenSCAD] Re: decimal point in text disappearing
> >
> > On 9/6/24 17:13, Jordan Brown wrote:
> > > On 9/6/2024 1:37 PM, gene heskett via Discuss wrote:
> > >> The problem is that text gets stripped to just "1","2" etc if the
> > >> following decimal point is .0 then only the 2 etc gets printed.
> > >> technically 2 or whatever is correct but that is not what I
> think I'm
> > >> telling it to do.
> > >
> > > That's actually totally unrelated and, amusingly, not related
> to text()
> > > per se either.
> > >
> > > None of the mechanisms available in OpenSCAD for translating
> numbers
> > > into text offer any control over the number of decimal places -
> nor over
> > > any other aspect of the presentation that results. (Offhand, those
> > > mechanisms are str() and echo(), though there might be a few other
> > > places where numbers get automatically converted into strings.)
> > >
> > > I think it would be good to add this as a built-in feature, but
> in the
> > > meantime there's a BOSL2 function that will do what you need:
> > >
> https://github.com/BelfrySCAD/BOSL2/wiki/strings.scad#function-format_fixed <https://github.com/BelfrySCAD/BOSL2/wiki/strings.scad#function-format_fixed>
> > >
> > Well I had a hunch it might be a separate problem. Now the
> question is
> > rendering time. F6 for the nuts is minutes, F5 is downright
> boring for
> > quite a few minutes, time enough to go get a 6 pack and drink one of
> > them, If I was still drinking, my diabetes has made that dangerous.
> >
> > Thanks for the clarification, Jordan. I'll see if I can
> reconfigure to
> > use BOSL2 instead.
> >
> > Cheers, Gene Heskett, CET.
> > --
> > "There are four boxes to be used in defense of liberty:
> > soap, ballot, jury, and ammo. Please use in that order."
> > -Ed Howdershelt (Author, 1940)
> > If we desire respect for the law, we must first make the law
> respectable.
> > - Louis D. Brandeis
> > _______________________________________________
> > OpenSCAD mailing list
> > To unsubscribe send an email to discuss-leave@lists.openscad.org
> <mailto:discuss-leave@lists.openscad.org>
> _______________________________________________
> OpenSCAD mailing list
> To unsubscribe send an email to discuss-leave@lists.openscad.org
> <mailto:discuss-leave@lists.openscad.org>
>
>
> _______________________________________________
> OpenSCAD mailing list
> To unsubscribe send an email to discuss-leave@lists.openscad.org
Cheers, Gene Heskett, CET.
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
- Louis D. Brandeis
GH
gene heskett
Sat, Sep 7, 2024 7:29 PM
On 9/7/24 10:38, Chun Kit LAM via Discuss wrote:
In fact I am pretty curious if there are scripts in which F5 is
significantly faster than F6 with manifold enabled. By meaningfully
faster I mean at least several hundred milliseconds.
F5 is hugely slower here.
Feel like F6 is already pretty fast now except for minkowski, but F5
cannot deal with minkowski anyway.
On 7/9/2024 16:32, nop head via Discuss wrote:
Not sure how F5 can be slower than F6 and how it can take minutes to
render nuts.
It only takes 1.352 seconds to draw all these with threads:
image.png
Little, dinky even compared to mine. The nuts I just posted are 70mm long.
Been at least a year, my diabetes does not tolerate it anymore.
On Sat, 7 Sept 2024 at 02:14, Michael Marx (spintel) via Discuss
discuss@lists.openscad.org wrote:
Gene,
You can make a function to do this str() method.
int=4;
float=4.2;
echo(int=int,float=float);
echo(str("int = ",int,", float = ",float));
echo(str("int = ",int,int==abs(int)? ".0" : "",", float = ",float));
ECHO: int = 4, float = 4.2
ECHO: "int = 4, float = 4.2"
ECHO: "int = 4.0, float = 4.2"
Cheers, Gene Heskett, CET.
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
On 9/7/24 10:38, Chun Kit LAM via Discuss wrote:
> In fact I am pretty curious if there are scripts in which F5 is
> significantly faster than F6 with manifold enabled. By meaningfully
> faster I mean at least several hundred milliseconds.
>
F5 is hugely slower here.
> Feel like F6 is already pretty fast now except for minkowski, but F5
> cannot deal with minkowski anyway.
>
> On 7/9/2024 16:32, nop head via Discuss wrote:
>> Not sure how F5 can be slower than F6 and how it can take minutes to
>> render nuts.
>>
>> It only takes 1.352 seconds to draw all these with threads:
>>
>> image.png
>>
Little, dinky even compared to mine. The nuts I just posted are 70mm long.
>> No time for beer for me!
Been at least a year, my diabetes does not tolerate it anymore.
>>
>> On Sat, 7 Sept 2024 at 02:14, Michael Marx (spintel) via Discuss
>> <discuss@lists.openscad.org> wrote:
>>
>> Gene,
>>
>> You can make a function to do this str() method.
>>
>> int=4;
>> float=4.2;
>> echo(int=int,float=float);
>> echo(str("int = ",int,", float = ",float));
>> echo(str("int = ",int,int==abs(int)? ".0" : "",", float = ",float));
>>
>> ECHO: int = 4, float = 4.2
>> ECHO: "int = 4, float = 4.2"
>> ECHO: "int = 4.0, float = 4.2"
Cheers, Gene Heskett, CET.
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
- Louis D. Brandeis
NH
nop head
Sat, Sep 7, 2024 7:34 PM
Try wrapping it with render() { ... }
That will make it as fast as F6.
On Sat, 7 Sept 2024, 20:29 gene heskett via Discuss, <
discuss@lists.openscad.org> wrote:
On 9/7/24 10:38, Chun Kit LAM via Discuss wrote:
In fact I am pretty curious if there are scripts in which F5 is
significantly faster than F6 with manifold enabled. By meaningfully
faster I mean at least several hundred milliseconds.
F5 is hugely slower here.
Feel like F6 is already pretty fast now except for minkowski, but F5
cannot deal with minkowski anyway.
On 7/9/2024 16:32, nop head via Discuss wrote:
Not sure how F5 can be slower than F6 and how it can take minutes to
render nuts.
It only takes 1.352 seconds to draw all these with threads:
image.png
Little, dinky even compared to mine. The nuts I just posted are 70mm long.
Been at least a year, my diabetes does not tolerate it anymore.
On Sat, 7 Sept 2024 at 02:14, Michael Marx (spintel) via Discuss
discuss@lists.openscad.org wrote:
Gene,
You can make a function to do this str() method.
int=4;
float=4.2;
echo(int=int,float=float);
echo(str("int = ",int,", float = ",float));
echo(str("int = ",int,int==abs(int)? ".0" : "",", float = ",float));
ECHO: int = 4, float = 4.2
ECHO: "int = 4, float = 4.2"
ECHO: "int = 4.0, float = 4.2"
Cheers, Gene Heskett, CET.
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
Try wrapping it with render() { ... }
That will make it as fast as F6.
On Sat, 7 Sept 2024, 20:29 gene heskett via Discuss, <
discuss@lists.openscad.org> wrote:
> On 9/7/24 10:38, Chun Kit LAM via Discuss wrote:
> > In fact I am pretty curious if there are scripts in which F5 is
> > significantly faster than F6 with manifold enabled. By meaningfully
> > faster I mean at least several hundred milliseconds.
> >
> F5 is hugely slower here.
> > Feel like F6 is already pretty fast now except for minkowski, but F5
> > cannot deal with minkowski anyway.
> >
> > On 7/9/2024 16:32, nop head via Discuss wrote:
> >> Not sure how F5 can be slower than F6 and how it can take minutes to
> >> render nuts.
> >>
> >> It only takes 1.352 seconds to draw all these with threads:
> >>
> >> image.png
> >>
> Little, dinky even compared to mine. The nuts I just posted are 70mm long.
>
> >> No time for beer for me!
> Been at least a year, my diabetes does not tolerate it anymore.
> >>
> >> On Sat, 7 Sept 2024 at 02:14, Michael Marx (spintel) via Discuss
> >> <discuss@lists.openscad.org> wrote:
> >>
> >> Gene,
> >>
> >> You can make a function to do this str() method.
> >>
> >> int=4;
> >> float=4.2;
> >> echo(int=int,float=float);
> >> echo(str("int = ",int,", float = ",float));
> >> echo(str("int = ",int,int==abs(int)? ".0" : "",", float = ",float));
> >>
> >> ECHO: int = 4, float = 4.2
> >> ECHO: "int = 4, float = 4.2"
> >> ECHO: "int = 4.0, float = 4.2"
>
> Cheers, Gene Heskett, CET.
> --
> "There are four boxes to be used in defense of liberty:
> soap, ballot, jury, and ammo. Please use in that order."
> -Ed Howdershelt (Author, 1940)
> If we desire respect for the law, we must first make the law respectable.
> - Louis D. Brandeis
> _______________________________________________
> OpenSCAD mailing list
> To unsubscribe send an email to discuss-leave@lists.openscad.org
>