lib loading in forge ...

26 views
Skip to first unread message

christophe malvasio

unread,
Oct 5, 2019, 8:16:53 AM10/5/19
to IceSL
hi
coming from openscad forge is friendly
but 2 missing features are stoping me to work wih it :
1) the $fn var : simple way to have a polygone of a cylinder
2) the loading of lib (include,use) to use functions objects ... defined in it : this one is overkill to me
is it possible to  think of those in forge    ???

Loïc Fejoz

unread,
Oct 5, 2019, 11:49:06 AM10/5/19
to IceSL
Hi,

both are already possible with IceSL.

1) look at the function linear_extrude in the documentation. You can look at the Screw examples (icesl-models/screw_n_bolt.lua) on how to build a table of points
2) It does exist: it is a Lua feature called dofile. Again you will find samples using this feature.

And best of all, you can now mix those two feature to avoid copy'n paster the exact same code to build polygonal cylinders. :-D

Regards,
Loïc

christophe malvasio

unread,
Oct 6, 2019, 3:29:53 AM10/6/19
to IceSL
thanks loîc 
Reply all
Reply to author
Forward
0 new messages