discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Library Announcement aggregator needed IMHO

M
MichaelAtOz
Mon, Jun 21, 2021 7:15 AM

-----Original Message-----
From: karl.exler@meinklang.cc [mailto:karl.exler@meinklang.cc]
Sent: Mon, 21 Jun 2021 14:34
To: OpenSCAD general discussion
Subject: [OpenSCAD] Text in OpenScad

Friends
I never used the Text command until now.. But yesterday I tried some things bit could not
succeed.
Let's say I design a cylinder and would like to have the Text "Karl" engraved along the
height.
Can I do something with OpenScad?
Thank you
Karl

Diese Nachricht wurde von unterwegs gesendet...


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

--
This email has been checked for viruses by AVG.
https://www.avg.com

See this library https://github.com/brodykenrick/text_on_OpenSCAD > -----Original Message----- > From: karl.exler@meinklang.cc [mailto:karl.exler@meinklang.cc] > Sent: Mon, 21 Jun 2021 14:34 > To: OpenSCAD general discussion > Subject: [OpenSCAD] Text in OpenScad > > Friends > I never used the Text command until now.. But yesterday I tried some things bit could not > succeed. > Let's say I design a cylinder and would like to have the Text "Karl" engraved along the > height. > Can I do something with OpenScad? > Thank you > Karl > -- > Diese Nachricht wurde von unterwegs gesendet... > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org -- This email has been checked for viruses by AVG. https://www.avg.com
GH
Gene Heskett
Mon, Jun 21, 2021 11:08 AM

On Monday 21 June 2021 03:08:32 Michael Möller wrote:

Just in case the small item is not obvious : text is a 2D object, so
you must use linear_extrude() to make it solid, then you can add it or
use it difference() to engrave
difference() {
translate([0,0,-8]) rotate([0,90,0]) cylinder(h=30,d=20);
linear_extrude(height=3) translate([0,-5,0]) text("Karl");
}

This is an interesting idea, and I'd like to "engrave" on the outer wall
of a part thats only 5mm tall, the var that sets its size, for auto
marking a stack of parts made by stairstepping until the fit is perfect,
so how do I switch the "karl" to the text character version of a var?
Formatted to a floating point that reads 30.75 if someplace else in that
scope, the var sz is set to 30.75?

Cheers, Gene Heskett

"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.

On Monday 21 June 2021 03:08:32 Michael Möller wrote: > Just in case the small item is not obvious : text is a 2D object, so > you must use linear_extrude() to make it solid, then you can add it or > use it difference() to engrave > difference() { > translate([0,0,-8]) rotate([0,90,0]) cylinder(h=30,d=20); > linear_extrude(height=3) translate([0,-5,0]) text("Karl"); > } > This is an interesting idea, and I'd like to "engrave" on the outer wall of a part thats only 5mm tall, the var that sets its size, for auto marking a stack of parts made by stairstepping until the fit is perfect, so how do I switch the "karl" to the text character version of a var? Formatted to a floating point that reads 30.75 if someplace else in that scope, the var sz is set to 30.75? Cheers, Gene Heskett -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) If we desire respect for the law, we must first make the law respectable. - Louis D. Brandeis Genes Web page <http://geneslinuxbox.net:6309/gene>
NH
nop head
Mon, Jun 21, 2021 11:32 AM

str(var) will convert var to a string.

On Mon, 21 Jun 2021 at 12:08, Gene Heskett gheskett@shentel.net wrote:

On Monday 21 June 2021 03:08:32 Michael Möller wrote:

Just in case the small item is not obvious : text is a 2D object, so
you must use linear_extrude() to make it solid, then you can add it or
use it difference() to engrave
difference() {
translate([0,0,-8]) rotate([0,90,0]) cylinder(h=30,d=20);
linear_extrude(height=3) translate([0,-5,0]) text("Karl");
}

This is an interesting idea, and I'd like to "engrave" on the outer wall
of a part thats only 5mm tall, the var that sets its size, for auto
marking a stack of parts made by stairstepping until the fit is perfect,
so how do I switch the "karl" to the text character version of a var?
Formatted to a floating point that reads 30.75 if someplace else in that
scope, the var sz is set to 30.75?

Cheers, Gene Heskett

"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
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

str(var) will convert var to a string. On Mon, 21 Jun 2021 at 12:08, Gene Heskett <gheskett@shentel.net> wrote: > On Monday 21 June 2021 03:08:32 Michael Möller wrote: > > > Just in case the small item is not obvious : text is a 2D object, so > > you must use linear_extrude() to make it solid, then you can add it or > > use it difference() to engrave > > difference() { > > translate([0,0,-8]) rotate([0,90,0]) cylinder(h=30,d=20); > > linear_extrude(height=3) translate([0,-5,0]) text("Karl"); > > } > > > This is an interesting idea, and I'd like to "engrave" on the outer wall > of a part thats only 5mm tall, the var that sets its size, for auto > marking a stack of parts made by stairstepping until the fit is perfect, > so how do I switch the "karl" to the text character version of a var? > Formatted to a floating point that reads 30.75 if someplace else in that > scope, the var sz is set to 30.75? > > Cheers, Gene Heskett > -- > "There are four boxes to be used in defense of liberty: > soap, ballot, jury, and ammo. Please use in that order." > -Ed Howdershelt (Author) > If we desire respect for the law, we must first make the law respectable. > - Louis D. Brandeis > Genes Web page <http://geneslinuxbox.net:6309/gene> > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
GH
Gene Heskett
Mon, Jun 21, 2021 7:51 PM

On Monday 21 June 2021 07:32:36 nop head wrote:

str(var) will convert var to a string.

Ahh, thank you.

Cheers, Gene Heskett

"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.

On Monday 21 June 2021 07:32:36 nop head wrote: > str(var) will convert var to a string. Ahh, thank you. Cheers, Gene Heskett -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) If we desire respect for the law, we must first make the law respectable. - Louis D. Brandeis Genes Web page <http://geneslinuxbox.net:6309/gene>
TP
Torsten Paul
Thu, Jun 24, 2021 6:39 PM

On 20.06.21 22:25, pproj@posteo.de wrote:

i am not so much of a font-end guy, and usually with little
spare time..., but how and what do you think to implement?
may be i'll gve it a try, when i find some time

I'm not sure actually. I have 2 rough ideas, but if those are
the best ones, I don't know:

  1. Just use the small space currently used for the IRC info,
    maybe max 2 or 3 lines high and use that via CSS ticker.
    Something like: https://cssdeck.com/labs/css-news-ticker

  2. Add a media query and introduce a 3rd column if the screen
    is wide enough. Have a bigger news feed there. This could even
    include (scaled down) images.

ciao,
Torsten.

On 20.06.21 22:25, pproj@posteo.de wrote: > i am not so much of a font-end guy, and usually with little > spare time..., but how and what do you think to implement? > may be i'll gve it a try, when i find some time I'm not sure actually. I have 2 rough ideas, but if those are the best ones, I don't know: 1) Just use the small space currently used for the IRC info, maybe max 2 or 3 lines high and use that via CSS ticker. Something like: https://cssdeck.com/labs/css-news-ticker 2) Add a media query and introduce a 3rd column if the screen is wide enough. Have a bigger news feed there. This could even include (scaled down) images. ciao, Torsten.