discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Re: Why does this BOSL library example not display a result?

L
LenStruttmann
Thu, May 20, 2021 6:39 PM

Actually, normally, those includes that are documented in the BOSL2 library
are instructions for what you need to include in your part file(s).
Generally, people do not edit the library files, but use them only as
includes.  For example, in a file that I have to create a gear, I could
have:

//--------------------------------------------
$fn = 24;

include <BOSL2/std.scad>
include <BOSL2/gears.scad>

gearCircularPitch = 10;
gearTeeth = 20;
gearLength = 5;

spur_gear( gearCircularPitch, _gearTeeth, splineL );

--
Sent from: http://forum.openscad.org/

Actually, normally, those includes that are documented in the BOSL2 library are instructions for what you need to include in your part file(s). Generally, people do not edit the library files, but use them only as includes. For example, in a file that I have to create a gear, I could have: //-------------------------------------------- $fn = 24; include <BOSL2/std.scad> include <BOSL2/gears.scad> gearCircularPitch = 10; gearTeeth = 20; gearLength = 5; spur_gear( gearCircularPitch, _gearTeeth, splineL ); -- Sent from: http://forum.openscad.org/
T
Terrypin
Fri, May 21, 2021 5:38 PM

Thanks Len, very helpful. That's exactly the sort of truly basic stuff I need
to learn about libraries.

--
Sent from: http://forum.openscad.org/

Thanks Len, very helpful. That's exactly the sort of truly basic stuff I need to learn about libraries. -- Sent from: http://forum.openscad.org/
T
Terrypin
Fri, May 21, 2021 5:52 PM

How did you decide which includes to include? <BOSL2/gears.scad> obviously,
but <BOSL2/std.scad> ?

And what are the basic rules about folder locations for the library and your
fresh scad file please?

Terry

--
Sent from: http://forum.openscad.org/

How did you decide which includes to include? <BOSL2/gears.scad> obviously, but <BOSL2/std.scad> ? And what are the basic rules about folder locations for the library and your fresh scad file please? Terry -- Sent from: http://forum.openscad.org/