I tried to run this code
use <BOSL2/common.scad>
use <BOSL2/arrays.scad>
use <text_on.scad>
text = reverse("A long text example to wrap around a cylinder, possibly
for a few times.");
L = 4len(text);
maxang = 360L/(PI50);
spiral = [for(a=[0:-1:-maxang]) [25cos(a), 25sin(a), 10+30/maxanga]];
difference() {
cyl(d=50, h=50);
path_spread(spiral, len(text))
atext(text[$idx], size=5,
anchor=str("baseline",CENTER),orient=DOWN);
}
from here
https://github.com/revarbat/BOSL2/issues/81
At first, I was getting these errors:
WARNING: Ignoring unknown function 'str_join' in file
../../Users/jon/Documents/OpenSCAD/libraries/BOSL2/arrays.scad, line 459
WARNING: len() parameter could not be converted in file , line 6
WARNING: undefined operation (number * undefined) in file OpenSCAD, line 6
WARNING: undefined operation (number * undefined) in file OpenSCAD, line 7
WARNING: undefined operation (undefined / number) in file OpenSCAD, line 7
WARNING: undefined operation (-undefined) in file OpenSCAD, line 8
WARNING: Ignoring unknown module 'cyl' in file , line 10
WARNING: Ignoring unknown module 'path_spread' in file , line 11
Compiling design (CSG Products generation)...
I then downloaded the latest BOSL2 and discovered that common.scad was
missing from BOSL2 entirely.
At that point I gave up.
Any clues about what BOSL2 library to use and how to get the example to run?
Thanks!
Jon
I tried the text_on_cylinder.scad that came with the examples and it
failed with:
WARNING: undefined operation (number * undefined) in file
../text_on.scad, line 148
TRACE: called by 'rotation_for_center_text_string_and_rotate' in file
../text_on.scad, line 282
TRACE: called by 'rotate' in file ../text_on.scad, line 282
TRACE: called by 'if' in file ../text_on.scad, line 229
TRACE: called by 'text_on_cylinder' in file text_on_cylinder.scad, line 11
TRACE: called by 'translate' in file text_on_cylinder.scad, line 7
It hasn't been updated in 4 years, so it's probably a lost cause.
Also you need to include BOSL2/std.scad instead of BOSL2/common and
BOSL2/arrays.scad doesn't exist
--
Bob
On 3/18/22 11:30, jon wrote:
I tried to run this code
use <BOSL2/common.scad> use <BOSL2/arrays.scad> use <text_on.scad>
text = reverse("A long text example to wrap around a cylinder,
possibly for a few times."); L = 4len(text); maxang = 360L/(PI50);
spiral = [for(a=[0:-1:-maxang]) [25cos(a), 25sin(a),
10+30/maxanga]]; difference() { cyl(d=50, h=50);
path_spread(spiral, len(text)) atext(text[$idx], size=5,
anchor=str("baseline",CENTER),orient=DOWN); }
from here
https://github.com/revarbat/BOSL2/issues/81
At first, I was getting these errors:
WARNING: Ignoring unknown function 'str_join' in file
../../Users/jon/Documents/OpenSCAD/libraries/BOSL2/arrays.scad, line 459
WARNING: len() parameter could not be converted in file , line 6
WARNING: undefined operation (number * undefined) in file OpenSCAD,
line 6
WARNING: undefined operation (number * undefined) in file OpenSCAD,
line 7
WARNING: undefined operation (undefined / number) in file OpenSCAD,
line 7
WARNING: undefined operation (-undefined) in file OpenSCAD, line 8
WARNING: Ignoring unknown module 'cyl' in file , line 10
WARNING: Ignoring unknown module 'path_spread' in file , line 11
Compiling design (CSG Products generation)...
I then downloaded the latest BOSL2 and discovered that common.scad was
missing from BOSL2 entirely.
At that point I gave up.
Any clues about what BOSL2 library to use and how to get the example
to run?
Thanks!
Jon
OpenSCAD mailing list
To unsubscribe send an email todiscuss-leave@lists.openscad.org
I'm not sure what text_on_cylinder is, but I suggest that if you want
to write text on a cylinder that you use the path_text() module, which
is part of the current version of BOSL2, and which was ultimately the
final outcome from that issue. I don't recommend digging up code
fragments from old issues. The BOSL2 manual is actually rendered by
BOSL2 so if there is an example in the wiki then it proves that the
code works. As noted, you should start BOSL2 programs with
"include<BOSL2/std.scad>". The various other files are included
automatically by that single include.
https://github.com/revarbat/BOSL2/wiki/shapes3d.scad#module-path_text
See examples 4, 5 and 8 for text on a cylinder.
On Fri, Mar 18, 2022 at 5:12 PM Bob Ewart jinnicky@bobsown.net wrote:
I tried the text_on_cylinder.scad that came with the examples and it failed with:
WARNING: undefined operation (number * undefined) in file ../text_on.scad, line 148
TRACE: called by 'rotation_for_center_text_string_and_rotate' in file ../text_on.scad, line 282
TRACE: called by 'rotate' in file ../text_on.scad, line 282
TRACE: called by 'if' in file ../text_on.scad, line 229
TRACE: called by 'text_on_cylinder' in file text_on_cylinder.scad, line 11
TRACE: called by 'translate' in file text_on_cylinder.scad, line 7
It hasn't been updated in 4 years, so it's probably a lost cause.
Also you need to include BOSL2/std.scad instead of BOSL2/common and BOSL2/arrays.scad doesn't exist
--
Bob
On 3/18/22 11:30, jon wrote:
I tried to run this code
use <BOSL2/common.scad> use <BOSL2/arrays.scad> use <text_on.scad> text = reverse("A long text example to wrap around a cylinder, possibly for a few times."); L = 4len(text); maxang = 360L/(PI50); spiral = [for(a=[0:-1:-maxang]) [25cos(a), 25sin(a), 10+30/maxanga]]; difference() { cyl(d=50, h=50); path_spread(spiral, len(text)) atext(text[$idx], size=5, anchor=str("baseline",CENTER),orient=DOWN); }
from here
https://github.com/revarbat/BOSL2/issues/81
At first, I was getting these errors:
WARNING: Ignoring unknown function 'str_join' in file ../../Users/jon/Documents/OpenSCAD/libraries/BOSL2/arrays.scad, line 459
WARNING: len() parameter could not be converted in file , line 6
WARNING: undefined operation (number * undefined) in file OpenSCAD, line 6
WARNING: undefined operation (number * undefined) in file OpenSCAD, line 7
WARNING: undefined operation (undefined / number) in file OpenSCAD, line 7
WARNING: undefined operation (-undefined) in file OpenSCAD, line 8
WARNING: Ignoring unknown module 'cyl' in file , line 10
WARNING: Ignoring unknown module 'path_spread' in file , line 11
Compiling design (CSG Products generation)...
I then downloaded the latest BOSL2 and discovered that common.scad was missing from BOSL2 entirely.
At that point I gave up.
Any clues about what BOSL2 library to use and how to get the example to run?
Thanks!
Jon
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
Thank you, Adrian.
On 3/18/2022 6:27 PM, Adrian Mariano wrote:
I'm not sure what text_on_cylinder is, but I suggest that if you want
to write text on a cylinder that you use the path_text() module, which
is part of the current version of BOSL2, and which was ultimately the
final outcome from that issue. I don't recommend digging up code
fragments from old issues. The BOSL2 manual is actually rendered by
BOSL2 so if there is an example in the wiki then it proves that the
code works. As noted, you should start BOSL2 programs with
"include<BOSL2/std.scad>". The various other files are included
automatically by that single include.
https://github.com/revarbat/BOSL2/wiki/shapes3d.scad#module-path_text
See examples 4, 5 and 8 for text on a cylinder.
On Fri, Mar 18, 2022 at 5:12 PM Bob Ewart jinnicky@bobsown.net wrote:
I tried the text_on_cylinder.scad that came with the examples and it failed with:
WARNING: undefined operation (number * undefined) in file ../text_on.scad, line 148
TRACE: called by 'rotation_for_center_text_string_and_rotate' in file ../text_on.scad, line 282
TRACE: called by 'rotate' in file ../text_on.scad, line 282
TRACE: called by 'if' in file ../text_on.scad, line 229
TRACE: called by 'text_on_cylinder' in file text_on_cylinder.scad, line 11
TRACE: called by 'translate' in file text_on_cylinder.scad, line 7
It hasn't been updated in 4 years, so it's probably a lost cause.
Also you need to include BOSL2/std.scad instead of BOSL2/common and BOSL2/arrays.scad doesn't exist
--
BobOn 3/18/22 11:30, jon wrote:
I tried to run this code
use <BOSL2/common.scad> use <BOSL2/arrays.scad> use <text_on.scad> text = reverse("A long text example to wrap around a cylinder, possibly for a few times."); L = 4len(text); maxang = 360L/(PI50); spiral = [for(a=[0:-1:-maxang]) [25cos(a), 25sin(a), 10+30/maxanga]]; difference() { cyl(d=50, h=50); path_spread(spiral, len(text)) atext(text[$idx], size=5, anchor=str("baseline",CENTER),orient=DOWN); }
from here
https://github.com/revarbat/BOSL2/issues/81
At first, I was getting these errors:
WARNING: Ignoring unknown function 'str_join' in file ../../Users/jon/Documents/OpenSCAD/libraries/BOSL2/arrays.scad, line 459
WARNING: len() parameter could not be converted in file , line 6
WARNING: undefined operation (number * undefined) in file OpenSCAD, line 6
WARNING: undefined operation (number * undefined) in file OpenSCAD, line 7
WARNING: undefined operation (undefined / number) in file OpenSCAD, line 7
WARNING: undefined operation (-undefined) in file OpenSCAD, line 8
WARNING: Ignoring unknown module 'cyl' in file , line 10
WARNING: Ignoring unknown module 'path_spread' in file , line 11
Compiling design (CSG Products generation)...
I then downloaded the latest BOSL2 and discovered that common.scad was missing from BOSL2 entirely.
At that point I gave up.
Any clues about what BOSL2 library to use and how to get the example to run?
Thanks!
Jon
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 to discuss-leave@lists.openscad.org