discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

noob OpenSCAD question on using libraries

JD
John David
Mon, Mar 4, 2024 2:04 AM

Looking at the documentation, it looks like all I need to do is to download
the libraries into "$HOME/.local/share/OpenSCAD/libraries", but either that
is not working properly or BOSL2 examples are broken (I suspect I'm doing
it wrong).  I am also not sure if that is considered best practice.

For example, when I try to render BOSL2logo.scad I get the following
warnings and errors:

...

Used file cache size: 1 files

Compiling design (CSG Tree generation)...

WARNING: variable pitch_angle not specified as parameter in file
BOSL2logo.scad, line 24
<24,/home/ebo/.local/share/OpenSCAD/libraries/BOSL2/examples/BOSL2logo.scad>

WARNING: variable spiral_angle not specified as parameter in file
BOSL2logo.scad, line 24
<24,/home/ebo/.local/share/OpenSCAD/libraries/BOSL2/examples/BOSL2logo.scad>

ERROR: Assertion '((all_integer([teeth, mate_teeth]) && (teeth >= 3)) &&
(mate_teeth >= 3))' failed: "Must give teeth and mate_teeth, integers
greater than or equal to 3" in file ../gears.scad, line 2433
<2433,/home/ebo/.local/share/OpenSCAD/libraries/BOSL2/gears.scad>

TRACE: called by 'bevel_gear' in file ../gears.scad, line 2600
<2600,/home/ebo/.local/share/OpenSCAD/libraries/BOSL2/gears.scad>

TRACE: called by 'bevel_gear' in file BOSL2logo.scad, line 24
<24,/home/ebo/.local/share/OpenSCAD/libraries/BOSL2/examples/BOSL2logo.scad>

TRACE: called by 'children' in file ../color.scad, line 47
<47,/home/ebo/.local/share/OpenSCAD/libraries/BOSL2/color.scad>

TRACE: called by 'recolor' in file BOSL2logo.scad, line 23
<23,/home/ebo/.local/share/OpenSCAD/libraries/BOSL2/examples/BOSL2logo.scad>

TRACE: called by 'children' in file ../distributors.scad, line 1883
<1883,/home/ebo/.local/share/OpenSCAD/libraries/BOSL2/distributors.scad>

TRACE: called by 'translate' in file ../distributors.scad, line 1883
<1883,/home/ebo/.local/share/OpenSCAD/libraries/BOSL2/distributors.scad>

TRACE: called by 'for' in file ../distributors.scad, line 1880
<1880,/home/ebo/.local/share/OpenSCAD/libraries/BOSL2/distributors.scad>

TRACE: called by 'xdistribute' in file BOSL2logo.scad, line 10
<10,/home/ebo/.local/share/OpenSCAD/libraries/BOSL2/examples/BOSL2logo.scad>

...

and with a number of others I also get the error:

ERROR: The given mesh is not closed! Unable to convert to
CGAL_Nef_Polyhedron.

Does anyone have any suggestions?

EBo --

Looking at the documentation, it looks like all I need to do is to download the libraries into "$HOME/.local/share/OpenSCAD/libraries", but either that is not working properly or BOSL2 examples are broken (I suspect I'm doing it wrong). I am also not sure if that is considered best practice. For example, when I try to render BOSL2logo.scad I get the following warnings and errors: ... Used file cache size: 1 files Compiling design (CSG Tree generation)... WARNING: variable pitch_angle not specified as parameter in file BOSL2logo.scad, line 24 <24,/home/ebo/.local/share/OpenSCAD/libraries/BOSL2/examples/BOSL2logo.scad> WARNING: variable spiral_angle not specified as parameter in file BOSL2logo.scad, line 24 <24,/home/ebo/.local/share/OpenSCAD/libraries/BOSL2/examples/BOSL2logo.scad> ERROR: Assertion '((all_integer([teeth, mate_teeth]) && (teeth >= 3)) && (mate_teeth >= 3))' failed: "Must give teeth and mate_teeth, integers greater than or equal to 3" in file ../gears.scad, line 2433 <2433,/home/ebo/.local/share/OpenSCAD/libraries/BOSL2/gears.scad> TRACE: called by 'bevel_gear' in file ../gears.scad, line 2600 <2600,/home/ebo/.local/share/OpenSCAD/libraries/BOSL2/gears.scad> TRACE: called by 'bevel_gear' in file BOSL2logo.scad, line 24 <24,/home/ebo/.local/share/OpenSCAD/libraries/BOSL2/examples/BOSL2logo.scad> TRACE: called by 'children' in file ../color.scad, line 47 <47,/home/ebo/.local/share/OpenSCAD/libraries/BOSL2/color.scad> TRACE: called by 'recolor' in file BOSL2logo.scad, line 23 <23,/home/ebo/.local/share/OpenSCAD/libraries/BOSL2/examples/BOSL2logo.scad> TRACE: called by 'children' in file ../distributors.scad, line 1883 <1883,/home/ebo/.local/share/OpenSCAD/libraries/BOSL2/distributors.scad> TRACE: called by 'translate' in file ../distributors.scad, line 1883 <1883,/home/ebo/.local/share/OpenSCAD/libraries/BOSL2/distributors.scad> TRACE: called by 'for' in file ../distributors.scad, line 1880 <1880,/home/ebo/.local/share/OpenSCAD/libraries/BOSL2/distributors.scad> TRACE: called by 'xdistribute' in file BOSL2logo.scad, line 10 <10,/home/ebo/.local/share/OpenSCAD/libraries/BOSL2/examples/BOSL2logo.scad> ... and with a number of others I also get the error: ERROR: The given mesh is not closed! Unable to convert to CGAL_Nef_Polyhedron. Does anyone have any suggestions? EBo --
JB
Jordan Brown
Mon, Mar 4, 2024 2:36 AM

On 3/3/2024 6:04 PM, John David via Discuss wrote:

Looking at the documentation, it looks like all I need to do is to
download the libraries into "$HOME/.local/share/OpenSCAD/libraries",
but either that is not working properly or BOSL2 examples are broken
(I suspect I'm doing it wrong).  I am also not sure if that is
considered best practice.

For example, when I try to render BOSL2logo.scad I get the following
warnings and errors:

...

Used file cache size: 1 files

Compiling design (CSG Tree generation)...

WARNING: variable pitch_angle not specified as parameter in file
BOSL2logo.scad, line 24
<24,/home/ebo/.local/share/OpenSCAD/libraries/BOSL2/examples/BOSL2logo.scad> 

WARNING: variable spiral_angle not specified as parameter in file
BOSL2logo.scad, line 24
<24,/home/ebo/.local/share/OpenSCAD/libraries/BOSL2/examples/BOSL2logo.scad> 

Yep, I get that too.

My guess is that the example got stale, that it didn't keep up with the
evolution of the library.

I think that some of the examples (e.g. boolean_geometry.scad) are not
intended to be 3D objects.  I see a couple of errors on some of the
others in that directory (e.g. spherical_patch.scad previews OK but
doesn't want to render).

Revar?  Adrian?

On 3/3/2024 6:04 PM, John David via Discuss wrote: > Looking at the documentation, it looks like all I need to do is to > download the libraries into "$HOME/.local/share/OpenSCAD/libraries", > but either that is not working properly or BOSL2 examples are broken > (I suspect I'm doing it wrong).  I am also not sure if that is > considered best practice. > > > For example, when I try to render BOSL2logo.scad I get the following > warnings and errors: > > ... > > Used file cache size: 1 files > > Compiling design (CSG Tree generation)... > > WARNING: variable pitch_angle not specified as parameter in file > BOSL2logo.scad, line 24 > <24,/home/ebo/.local/share/OpenSCAD/libraries/BOSL2/examples/BOSL2logo.scad>  > > WARNING: variable spiral_angle not specified as parameter in file > BOSL2logo.scad, line 24 > <24,/home/ebo/.local/share/OpenSCAD/libraries/BOSL2/examples/BOSL2logo.scad>  > Yep, I get that too. My guess is that the example got stale, that it didn't keep up with the evolution of the library. I think that some of the examples (e.g. boolean_geometry.scad) are not intended to be 3D objects.  I see a couple of errors on some of the others in that directory (e.g. spherical_patch.scad previews OK but doesn't want to render). Revar?  Adrian?
RD
Revar Desmera
Mon, Mar 4, 2024 3:21 AM

Well, that's embarrassing.  Yes, the examples got stale.  I've checked in fixes for both errors I saw in the examples folder.

  • Revar

On Mar 3, 2024, at 6:36 PM, Jordan Brown via Discuss discuss@lists.openscad.org wrote:

On 3/3/2024 6:04 PM, John David via Discuss wrote:

Looking at the documentation, it looks like all I need to do is to download the libraries into "$HOME/.local/share/OpenSCAD/libraries", but either that is not working properly or BOSL2 examples are broken (I suspect I'm doing it wrong).  I am also not sure if that is considered best practice.

For example, when I try to render BOSL2logo.scad I get the following warnings and errors:

...
Used file cache size: 1 files
Compiling design (CSG Tree generation)...

WARNING: variable pitch_angle not specified as parameter in file BOSL2logo.scad, line 24 x-msg://4/24,/home/ebo/.local/share/OpenSCAD/libraries/BOSL2/examples/BOSL2logo.scad

WARNING: variable spiral_angle not specified as parameter in file BOSL2logo.scad, line 24 x-msg://4/24,/home/ebo/.local/share/OpenSCAD/libraries/BOSL2/examples/BOSL2logo.scad

Yep, I get that too.

My guess is that the example got stale, that it didn't keep up with the evolution of the library.

I think that some of the examples (e.g. boolean_geometry.scad) are not intended to be 3D objects.  I see a couple of errors on some of the others in that directory (e.g. spherical_patch.scad previews OK but doesn't want to render).

Revar?  Adrian?


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

Well, that's embarrassing. Yes, the examples got stale. I've checked in fixes for both errors I saw in the examples folder. - Revar > On Mar 3, 2024, at 6:36 PM, Jordan Brown via Discuss <discuss@lists.openscad.org> wrote: > > On 3/3/2024 6:04 PM, John David via Discuss wrote: >> Looking at the documentation, it looks like all I need to do is to download the libraries into "$HOME/.local/share/OpenSCAD/libraries", but either that is not working properly or BOSL2 examples are broken (I suspect I'm doing it wrong). I am also not sure if that is considered best practice. >> >> >> For example, when I try to render BOSL2logo.scad I get the following warnings and errors: >> >> ... >> Used file cache size: 1 files >> Compiling design (CSG Tree generation)... >> >> WARNING: variable pitch_angle not specified as parameter in file BOSL2logo.scad, line 24 <x-msg://4/24,/home/ebo/.local/share/OpenSCAD/libraries/BOSL2/examples/BOSL2logo.scad> >> >> WARNING: variable spiral_angle not specified as parameter in file BOSL2logo.scad, line 24 <x-msg://4/24,/home/ebo/.local/share/OpenSCAD/libraries/BOSL2/examples/BOSL2logo.scad> >> > > Yep, I get that too. > > My guess is that the example got stale, that it didn't keep up with the evolution of the library. > > I think that some of the examples (e.g. boolean_geometry.scad) are not intended to be 3D objects. I see a couple of errors on some of the others in that directory (e.g. spherical_patch.scad previews OK but doesn't want to render). > > Revar? Adrian? > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org
JD
John David
Mon, Mar 4, 2024 3:40 AM

Revar, no biggie.  It happens to the best of us.  Let me know if you need
help breaking anything else ;-)

On Sun, Mar 3, 2024 at 10:21 PM Revar Desmera revarbat@gmail.com wrote:

Well, that's embarrassing.  Yes, the examples got stale.  I've checked in
fixes for both errors I saw in the examples folder.

  • Revar

On Mar 3, 2024, at 6:36 PM, Jordan Brown via Discuss <
discuss@lists.openscad.org> wrote:

On 3/3/2024 6:04 PM, John David via Discuss wrote:

Looking at the documentation, it looks like all I need to do is to
download the libraries into "$HOME/.local/share/OpenSCAD/libraries", but
either that is not working properly or BOSL2 examples are broken (I suspect
I'm doing it wrong).  I am also not sure if that is considered best
practice.

For example, when I try to render BOSL2logo.scad I get the following
warnings and errors:

...
Used file cache size: 1 files

Compiling design (CSG Tree generation)...

WARNING: variable pitch_angle not specified as parameter in file
BOSL2logo.scad, line 24

WARNING: variable spiral_angle not specified as parameter in file
BOSL2logo.scad, line 24

Yep, I get that too.

My guess is that the example got stale, that it didn't keep up with the
evolution of the library.

I think that some of the examples (e.g. boolean_geometry.scad) are not
intended to be 3D objects.  I see a couple of errors on some of the others
in that directory (e.g. spherical_patch.scad previews OK but doesn't want
to render).

Revar?  Adrian?


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

Revar, no biggie. It happens to the best of us. Let me know if you need help breaking anything else ;-) On Sun, Mar 3, 2024 at 10:21 PM Revar Desmera <revarbat@gmail.com> wrote: > Well, that's embarrassing. Yes, the examples got stale. I've checked in > fixes for both errors I saw in the examples folder. > > - Revar > > > On Mar 3, 2024, at 6:36 PM, Jordan Brown via Discuss < > discuss@lists.openscad.org> wrote: > > On 3/3/2024 6:04 PM, John David via Discuss wrote: > > Looking at the documentation, it looks like all I need to do is to > download the libraries into "$HOME/.local/share/OpenSCAD/libraries", but > either that is not working properly or BOSL2 examples are broken (I suspect > I'm doing it wrong). I am also not sure if that is considered best > practice. > > > For example, when I try to render BOSL2logo.scad I get the following > warnings and errors: > > ... > Used file cache size: 1 files > > Compiling design (CSG Tree generation)... > > WARNING: variable pitch_angle not specified as parameter in file > BOSL2logo.scad, line 24 > > WARNING: variable spiral_angle not specified as parameter in file > BOSL2logo.scad, line 24 > > > Yep, I get that too. > > My guess is that the example got stale, that it didn't keep up with the > evolution of the library. > > I think that some of the examples (e.g. boolean_geometry.scad) are not > intended to be 3D objects. I see a couple of errors on some of the others > in that directory (e.g. spherical_patch.scad previews OK but doesn't want > to render). > > Revar? Adrian? > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org > > >