openscad to icesl-forge

97 views
Skip to first unread message

Anton Achatz

unread,
Oct 19, 2020, 9:51:12 AM10/19/20
to IceSL
First of all, thanks for helping. After getting a profile for my printer (anycubic) from CycyX i will try to design something in forge. But i have a little bit of problems.

My question. Can someone translate my openscad example to forge. Maybe then i understand it a little bit more.

Thanks for help

Toni

/* [Auflösung] */
$fn=100;
/* [Parameter RAD] */
Hoehe=30;
Loch=5.6;
S_oben=15;
S_unten=5;
Senke=1.3;
//Durchmesser Kreis//
durchmesser=20;

color("grey") rotate_extrude() 
translate([Loch/2,0]){
union(){
difference(){
offset(0) polygon([[0,0],[2,0],[3,S_unten],[2+(durchmesser/2),S_unten],
    [2+(durchmesser/2),S_unten+Hoehe-S_oben-S_unten],[3,S_unten+Hoehe-S_oben-S_unten],
    [2,S_oben+S_unten+Hoehe-S_oben-S_unten],[0,S_oben+S_unten+Hoehe-S_oben-S_unten]]);

translate([2+(durchmesser/2),((Hoehe-S_oben-S_unten)/2)+S_unten])scale([Senke,1])circle(((Hoehe-(S_oben+S_unten))/2)-0.5);
}}}

Pierre Bedell

unread,
Oct 20, 2020, 7:54:32 AM10/20/20
to Anton Achatz, IceSL
Hello Toni,

I made a quick (and certainly dirty) translation of your script (attached to this message).
It may not be optimal, but I think it can give you a good idea on how you can create complexes shapes in IceSL.

You can refer to the documentation for the scripting language used in IceSL here if you want to go deeper in the arcanes of IceSL !


Pierre



--
You received this message because you are subscribed to the Google Groups "IceSL" group.
To unsubscribe from this group and stop receiving emails from it, send an email to icesl+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/icesl/483283a0-4cb6-4527-97a4-18b1054f5fa2n%40googlegroups.com.
openSCAD_to_IceSL.lua

Anton Achatz

unread,
Dec 11, 2020, 7:36:33 AM12/11/20
to IceSL

Its a Long time now, but trank you for helping. 
Reply all
Reply to author
Forward
0 new messages