Is it possible to get coordinate of the end of turtle path?
see openning variable below
include <BOSL2/std.scad>
include <BOSL2/turtle3d.scad>
path = turtle3d([
"setdir",[ 1.0 , 0.0,0],
"move", 0*10.00764358854 ,
["arc", 75.682614126712 ,"left", 3.044556614139026 , "steps", 10 ],
["arc", 196.555240525069 ,"left", 3.32429442217898 , "steps", 10 ],
["arc", 61.539770594402 ,"left", 7.228224834098967 , "steps", 10 ],
],move([0,0,0]),transforms=true);
openning = 2.4; // adjusted manually ((
difference(){
cube([30,openning,14.9]);
%up(14.9)sweep(square([15,10]),path);
}
If you're trying to get opening then this will work:
pt = apply(last(path), [0,0,0]);
echo(pt);
Note that depending on what you're trying to do, you may be able to do it
using attachment to the endcaps of the sweep without having to compute the
coordinate point.
On Fri, May 22, 2026 at 4:42 AM yur_vol--- via Discuss <
discuss@lists.openscad.org> wrote:
Is it possible to get coordinate of the end of turtle path?
see openning variable below
include <BOSL2/std.scad>
include <BOSL2/turtle3d.scad>
path = turtle3d([
"setdir",[ 1.0 , 0.0,0],
"move", 0*10.00764358854 ,
["arc", 75.682614126712 ,"left", 3.044556614139026 , "steps", 10 ],
["arc", 196.555240525069 ,"left", 3.32429442217898 , "steps", 10 ],
["arc", 61.539770594402 ,"left", 7.228224834098967 , "steps", 10 ],
],move([0,0,0]),transforms=true);
openning = 2.4; // adjusted manually ((
difference(){
cube([30,openning,14.9]);
%up(14.9)sweep(square([15,10]),path);
}
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
Thank you! Solved!