discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

mouse3D moves in BOSL2

JB
Jon Bondy
Mon, Jun 23, 2025 1:28 PM

Is there a way to jump to a point in 3D space (without leaving a mouse
trail) and then start a mouse trail?

--
This email has been checked for viruses by AVG antivirus software.
www.avg.com

Is there a way to jump to a point in 3D space (without leaving a mouse trail) and then start a mouse trail? -- This email has been checked for viruses by AVG antivirus software. www.avg.com
AM
Adrian Mariano
Mon, Jun 23, 2025 8:27 PM

Do you mean turtle3d?  Doesn't "jump" do what you want?

On Mon, Jun 23, 2025 at 9:29 AM Jon Bondy via Discuss <
discuss@lists.openscad.org> wrote:

Is there a way to jump to a point in 3D space (without leaving a mouse
trail) and then start a mouse trail?

--
This email has been checked for viruses by AVG antivirus software.
www.avg.com


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

Do you mean turtle3d? Doesn't "jump" do what you want? On Mon, Jun 23, 2025 at 9:29 AM Jon Bondy via Discuss < discuss@lists.openscad.org> wrote: > Is there a way to jump to a point in 3D space (without leaving a mouse > trail) and then start a mouse trail? > > > -- > This email has been checked for viruses by AVG antivirus software. > www.avg.com > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
JB
Jon Bondy
Mon, Jun 23, 2025 9:09 PM

Adrian:

Yes, I mean turtle3d.  I get my vertebrates and and invertebrates
confused.  Perhaps it was the mouse that was in my paw when I wrote the
question.

The definition of "move" is "move the turtle", and the definition of
"jump" is "move the turtle.  Since the descriptions were virtually
identical, I figured they did the same thing.  I guess I figured wrong.

Thanks!

Jon

On 6/23/2025 4:27 PM, Adrian Mariano via Discuss wrote:

Do you mean turtle3d?  Doesn't "jump" do what you want?

On Mon, Jun 23, 2025 at 9:29 AM Jon Bondy via Discuss
discuss@lists.openscad.org wrote:

 Is there a way to jump to a point in 3D space (without leaving a
 mouse
 trail) and then start a mouse trail?


 -- 
 This email has been checked for viruses by AVG antivirus software.
 www.avg.com <http://www.avg.com>
 _______________________________________________
 OpenSCAD mailing list
 To unsubscribe send an email to discuss-leave@lists.openscad.org

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

Adrian: Yes, I mean turtle3d.  I get my vertebrates and and invertebrates confused.  Perhaps it was the mouse that was in my paw when I wrote the question. The definition of "move" is "move the turtle", and the definition of "jump" is "move the turtle.  Since the descriptions were virtually identical, I figured they did the same thing.  I guess I figured wrong. Thanks! Jon On 6/23/2025 4:27 PM, Adrian Mariano via Discuss wrote: > Do you mean turtle3d?  Doesn't "jump" do what you want? > > > On Mon, Jun 23, 2025 at 9:29 AM Jon Bondy via Discuss > <discuss@lists.openscad.org> wrote: > > Is there a way to jump to a point in 3D space (without leaving a > mouse > trail) and then start a mouse trail? > > > -- > This email has been checked for viruses by AVG antivirus software. > www.avg.com <http://www.avg.com> > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org > > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email todiscuss-leave@lists.openscad.org
JJ
jon jonbondy.com
Mon, Jun 23, 2025 10:00 PM

In fact, "jump" does leave a turtle trail, so it does not do what I want:

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

naPath = turtle3d([
"move", 20,
"jump", [50, 50, 50],
"move", 10
]);
path_sweep(circle(r = 1, $fn = 6), naPath);

[cid:part1.KmH7fFh1.z8Sd3tHx@jonbondy.com]

On 6/23/2025 5:09 PM, Jon Bondy via Discuss wrote:

Adrian:

Yes, I mean turtle3d.  I get my vertebrates and and invertebrates confused.  Perhaps it was the mouse that was in my paw when I wrote the question.

The definition of "move" is "move the turtle", and the definition of "jump" is "move the turtle.  Since the descriptions were virtually identical, I figured they did the same thing.  I guess I figured wrong.

Thanks!

Jon

On 6/23/2025 4:27 PM, Adrian Mariano via Discuss wrote:
Do you mean turtle3d?  Doesn't "jump" do what you want?

On Mon, Jun 23, 2025 at 9:29 AM Jon Bondy via Discuss <discuss@lists.openscad.orgmailto:discuss@lists.openscad.org> wrote:
Is there a way to jump to a point in 3D space (without leaving a mouse
trail) and then start a mouse trail?

--
This email has been checked for viruses by AVG antivirus software.
www.avg.comhttp://www.avg.com


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


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

[https://s-install.avcdn.net/ipm/preview/icons/icon-envelope-tick-green-avg-v1.png]http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient Virus-free.www.avg.comhttp://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient


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

In fact, "jump" does leave a turtle trail, so it does not do what I want: include <BOSL2/std.scad> include <BOSL2/turtle3d.scad> naPath = turtle3d([ "move", 20, "jump", [50, 50, 50], "move", 10 ]); path_sweep(circle(r = 1, $fn = 6), naPath); [cid:part1.KmH7fFh1.z8Sd3tHx@jonbondy.com] On 6/23/2025 5:09 PM, Jon Bondy via Discuss wrote: Adrian: Yes, I mean turtle3d. I get my vertebrates and and invertebrates confused. Perhaps it was the mouse that was in my paw when I wrote the question. The definition of "move" is "move the turtle", and the definition of "jump" is "move the turtle. Since the descriptions were virtually identical, I figured they did the same thing. I guess I figured wrong. Thanks! Jon On 6/23/2025 4:27 PM, Adrian Mariano via Discuss wrote: Do you mean turtle3d? Doesn't "jump" do what you want? On Mon, Jun 23, 2025 at 9:29 AM Jon Bondy via Discuss <discuss@lists.openscad.org<mailto:discuss@lists.openscad.org>> wrote: Is there a way to jump to a point in 3D space (without leaving a mouse trail) and then start a mouse trail? -- This email has been checked for viruses by AVG antivirus software. www.avg.com<http://www.avg.com> _______________________________________________ OpenSCAD mailing list To unsubscribe send an email to discuss-leave@lists.openscad.org<mailto:discuss-leave@lists.openscad.org> _______________________________________________ OpenSCAD mailing list To unsubscribe send an email to discuss-leave@lists.openscad.org<mailto:discuss-leave@lists.openscad.org> [https://s-install.avcdn.net/ipm/preview/icons/icon-envelope-tick-green-avg-v1.png]<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> Virus-free.www.avg.com<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> _______________________________________________ OpenSCAD mailing list To unsubscribe send an email to discuss-leave@lists.openscad.org<mailto:discuss-leave@lists.openscad.org>
AM
Adrian Mariano
Mon, Jun 23, 2025 10:58 PM

Ah, right.  I think you need to start a new turtle at the desired spot.
Since turtle returns a path there's no way to skip a segment.

On Mon, Jun 23, 2025 at 6:00 PM jon jonbondy.com via Discuss <
discuss@lists.openscad.org> wrote:

In fact, "jump" does leave a turtle trail, so it does not do what I want:

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

naPath = turtle3d([
"move", 20,
"jump", [50, 50, 50],
"move", 10
]);
path_sweep(circle(r = 1, $fn = 6), naPath);

On 6/23/2025 5:09 PM, Jon Bondy via Discuss wrote:

Adrian:

Yes, I mean turtle3d.  I get my vertebrates and and invertebrates
confused.  Perhaps it was the mouse that was in my paw when I wrote the
question.

The definition of "move" is "move the turtle", and the definition of
"jump" is "move the turtle.  Since the descriptions were virtually
identical, I figured they did the same thing.  I guess I figured wrong.

Thanks!

Jon

On 6/23/2025 4:27 PM, Adrian Mariano via Discuss wrote:

Do you mean turtle3d?  Doesn't "jump" do what you want?

On Mon, Jun 23, 2025 at 9:29 AM Jon Bondy via Discuss <
discuss@lists.openscad.org> wrote:

Is there a way to jump to a point in 3D space (without leaving a mouse
trail) and then start a mouse trail?

--
This email has been checked for viruses by AVG antivirus software.
www.avg.com


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


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

http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient
Virus-free.www.avg.com
http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient
<#m_-7977682886462475400_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>


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


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

Ah, right. I think you need to start a new turtle at the desired spot. Since turtle returns a path there's no way to skip a segment. On Mon, Jun 23, 2025 at 6:00 PM jon jonbondy.com via Discuss < discuss@lists.openscad.org> wrote: > In fact, "jump" does leave a turtle trail, so it does not do what I want: > > include <BOSL2/std.scad> > include <BOSL2/turtle3d.scad> > > naPath = turtle3d([ > "move", 20, > "jump", [50, 50, 50], > "move", 10 > ]); > path_sweep(circle(r = 1, $fn = 6), naPath); > > > On 6/23/2025 5:09 PM, Jon Bondy via Discuss wrote: > > Adrian: > > Yes, I mean turtle3d. I get my vertebrates and and invertebrates > confused. Perhaps it was the mouse that was in my paw when I wrote the > question. > > The definition of "move" is "move the turtle", and the definition of > "jump" is "move the turtle. Since the descriptions were virtually > identical, I figured they did the same thing. I guess I figured wrong. > > Thanks! > > Jon > > > On 6/23/2025 4:27 PM, Adrian Mariano via Discuss wrote: > > Do you mean turtle3d? Doesn't "jump" do what you want? > > > On Mon, Jun 23, 2025 at 9:29 AM Jon Bondy via Discuss < > discuss@lists.openscad.org> wrote: > >> Is there a way to jump to a point in 3D space (without leaving a mouse >> trail) and then start a mouse trail? >> >> >> -- >> This email has been checked for viruses by AVG antivirus software. >> www.avg.com >> _______________________________________________ >> OpenSCAD mailing list >> To unsubscribe send an email to discuss-leave@lists.openscad.org >> > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org > > > > <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> > Virus-free.www.avg.com > <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> > <#m_-7977682886462475400_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
JB
Jon Bondy
Mon, Jun 23, 2025 11:03 PM

How do I start a turtle3D at a specific spot.  I don't need to jump
(skip a segment).  I want to start at a location different than the origin.

On 6/23/2025 6:58 PM, Adrian Mariano via Discuss wrote:

Ah, right.  I think you need to start a new turtle at the desired
spot.  Since turtle returns a path there's no way to skip a segment.

On Mon, Jun 23, 2025 at 6:00 PM jon jonbondy.com http://jonbondy.com
via Discuss discuss@lists.openscad.org wrote:

 In fact, "jump" does leave a turtle trail, so it does not do what
 I want:

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

 naPath = turtle3d([
         "move", 20,
         "jump", [50, 50, 50],
         "move", 10
         ]);
     path_sweep(circle(r = 1, $fn = 6), naPath);


 On 6/23/2025 5:09 PM, Jon Bondy via Discuss wrote:
 Adrian:

 Yes, I mean turtle3d.  I get my vertebrates and and invertebrates
 confused.  Perhaps it was the mouse that was in my paw when I
 wrote the question.

 The definition of "move" is "move the turtle", and the definition
 of "jump" is "move the turtle.  Since the descriptions were
 virtually identical, I figured they did the same thing.  I guess
 I figured wrong.

 Thanks!

 Jon


 On 6/23/2025 4:27 PM, Adrian Mariano via Discuss wrote:
 Do you mean turtle3d?  Doesn't "jump" do what you want?


 On Mon, Jun 23, 2025 at 9:29 AM Jon Bondy via Discuss
 <discuss@lists.openscad.org> wrote:

     Is there a way to jump to a point in 3D space (without
     leaving a mouse
     trail) and then start a mouse trail?


     -- 
     This email has been checked for viruses by AVG antivirus
     software.
     www.avg.com <http://www.avg.com>
     _______________________________________________
     OpenSCAD mailing list
     To unsubscribe send an email to discuss-leave@lists.openscad.org


 _______________________________________________
 OpenSCAD mailing list
 To unsubscribe send an email todiscuss-leave@lists.openscad.org
 <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>
 	Virus-free.www.avg.com
 <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>



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

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

--
This email has been checked for viruses by AVG antivirus software.
www.avg.com

How do I start a turtle3D at a specific spot.  I don't need to jump (skip a segment).  I want to start at a location different than the origin. On 6/23/2025 6:58 PM, Adrian Mariano via Discuss wrote: > Ah, right.  I think you need to start a new turtle at the desired > spot.  Since turtle returns a path there's no way to skip a segment. > > On Mon, Jun 23, 2025 at 6:00 PM jon jonbondy.com <http://jonbondy.com> > via Discuss <discuss@lists.openscad.org> wrote: > > In fact, "jump" does leave a turtle trail, so it does not do what > I want: > > include <BOSL2/std.scad> > include <BOSL2/turtle3d.scad> > > naPath = turtle3d([ >         "move", 20, >         "jump", [50, 50, 50], >         "move", 10 >         ]); >     path_sweep(circle(r = 1, $fn = 6), naPath); > > > On 6/23/2025 5:09 PM, Jon Bondy via Discuss wrote: >> >> Adrian: >> >> Yes, I mean turtle3d.  I get my vertebrates and and invertebrates >> confused.  Perhaps it was the mouse that was in my paw when I >> wrote the question. >> >> The definition of "move" is "move the turtle", and the definition >> of "jump" is "move the turtle.  Since the descriptions were >> virtually identical, I figured they did the same thing.  I guess >> I figured wrong. >> >> Thanks! >> >> Jon >> >> >> On 6/23/2025 4:27 PM, Adrian Mariano via Discuss wrote: >>> Do you mean turtle3d?  Doesn't "jump" do what you want? >>> >>> >>> On Mon, Jun 23, 2025 at 9:29 AM Jon Bondy via Discuss >>> <discuss@lists.openscad.org> wrote: >>> >>> Is there a way to jump to a point in 3D space (without >>> leaving a mouse >>> trail) and then start a mouse trail? >>> >>> >>> -- >>> This email has been checked for viruses by AVG antivirus >>> software. >>> www.avg.com <http://www.avg.com> >>> _______________________________________________ >>> OpenSCAD mailing list >>> To unsubscribe send an email to discuss-leave@lists.openscad.org >>> >>> >>> _______________________________________________ >>> OpenSCAD mailing list >>> To unsubscribe send an email todiscuss-leave@lists.openscad.org >> >> <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> >> Virus-free.www.avg.com >> <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> >> >> >> >> _______________________________________________ >> OpenSCAD mailing list >> To unsubscribe send an email todiscuss-leave@lists.openscad.org > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org > > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email todiscuss-leave@lists.openscad.org -- This email has been checked for viruses by AVG antivirus software. www.avg.com
AM
Adrian Mariano
Mon, Jun 23, 2025 11:13 PM

I think it depends on what you're doing.  If you're just getting a path
then you can move() the path you get.  But if you're getting a transform
list then you would need to move everything in the transform list, which is
somewhat more trouble.  If you pass the transform list to sweep() you could
move() the result of sweep.  I wonder if turtle3d needs a special option
for this.

On Mon, Jun 23, 2025 at 7:03 PM Jon Bondy jon@jonbondy.com wrote:

How do I start a turtle3D at a specific spot.  I don't need to jump (skip
a segment).  I want to start at a location different than the origin.

On 6/23/2025 6:58 PM, Adrian Mariano via Discuss wrote:

Ah, right.  I think you need to start a new turtle at the desired spot.
Since turtle returns a path there's no way to skip a segment.

On Mon, Jun 23, 2025 at 6:00 PM jon jonbondy.com via Discuss <
discuss@lists.openscad.org> wrote:

In fact, "jump" does leave a turtle trail, so it does not do what I want:

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

naPath = turtle3d([
"move", 20,
"jump", [50, 50, 50],
"move", 10
]);
path_sweep(circle(r = 1, $fn = 6), naPath);

On 6/23/2025 5:09 PM, Jon Bondy via Discuss wrote:

Adrian:

Yes, I mean turtle3d.  I get my vertebrates and and invertebrates
confused.  Perhaps it was the mouse that was in my paw when I wrote the
question.

The definition of "move" is "move the turtle", and the definition of
"jump" is "move the turtle.  Since the descriptions were virtually
identical, I figured they did the same thing.  I guess I figured wrong.

Thanks!

Jon

On 6/23/2025 4:27 PM, Adrian Mariano via Discuss wrote:

Do you mean turtle3d?  Doesn't "jump" do what you want?

On Mon, Jun 23, 2025 at 9:29 AM Jon Bondy via Discuss <
discuss@lists.openscad.org> wrote:

Is there a way to jump to a point in 3D space (without leaving a mouse
trail) and then start a mouse trail?

--
This email has been checked for viruses by AVG antivirus software.
www.avg.com


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


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

I think it depends on what you're doing. If you're just getting a path then you can move() the path you get. But if you're getting a transform list then you would need to move everything in the transform list, which is somewhat more trouble. If you pass the transform list to sweep() you could move() the result of sweep. I wonder if turtle3d needs a special option for this. On Mon, Jun 23, 2025 at 7:03 PM Jon Bondy <jon@jonbondy.com> wrote: > How do I start a turtle3D at a specific spot. I don't need to jump (skip > a segment). I want to start at a location different than the origin. > > > On 6/23/2025 6:58 PM, Adrian Mariano via Discuss wrote: > > Ah, right. I think you need to start a new turtle at the desired spot. > Since turtle returns a path there's no way to skip a segment. > > On Mon, Jun 23, 2025 at 6:00 PM jon jonbondy.com via Discuss < > discuss@lists.openscad.org> wrote: > >> In fact, "jump" does leave a turtle trail, so it does not do what I want: >> >> include <BOSL2/std.scad> >> include <BOSL2/turtle3d.scad> >> >> naPath = turtle3d([ >> "move", 20, >> "jump", [50, 50, 50], >> "move", 10 >> ]); >> path_sweep(circle(r = 1, $fn = 6), naPath); >> >> >> On 6/23/2025 5:09 PM, Jon Bondy via Discuss wrote: >> >> Adrian: >> >> Yes, I mean turtle3d. I get my vertebrates and and invertebrates >> confused. Perhaps it was the mouse that was in my paw when I wrote the >> question. >> >> The definition of "move" is "move the turtle", and the definition of >> "jump" is "move the turtle. Since the descriptions were virtually >> identical, I figured they did the same thing. I guess I figured wrong. >> >> Thanks! >> >> Jon >> >> >> On 6/23/2025 4:27 PM, Adrian Mariano via Discuss wrote: >> >> Do you mean turtle3d? Doesn't "jump" do what you want? >> >> >> On Mon, Jun 23, 2025 at 9:29 AM Jon Bondy via Discuss < >> discuss@lists.openscad.org> wrote: >> >>> Is there a way to jump to a point in 3D space (without leaving a mouse >>> trail) and then start a mouse trail? >>> >>> >>> -- >>> This email has been checked for viruses by AVG antivirus software. >>> www.avg.com >>> _______________________________________________ >>> OpenSCAD mailing list >>> To unsubscribe send an email to discuss-leave@lists.openscad.org >>> >> >> _______________________________________________ >> OpenSCAD mailing list >> To unsubscribe send an email to discuss-leave@lists.openscad.org >> >> >> >> <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> >> Virus-free.www.avg.com >> <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> >> >> _______________________________________________ >> OpenSCAD mailing list >> To unsubscribe send an email to discuss-leave@lists.openscad.org >> >> _______________________________________________ >> OpenSCAD mailing list >> To unsubscribe send an email to discuss-leave@lists.openscad.org >> > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org > >
JJ
jon jonbondy.com
Tue, Jun 24, 2025 12:14 AM

I have a list  of 3D points I'm trying to hit, so starting at one of the points would be optimal, rather than adding the offsets after the fact.

Not sure if anyone else would find this feature to be useful.

Jon

On 6/23/2025 7:13 PM, Adrian Mariano wrote:
I think it depends on what you're doing.  If you're just getting a path then you can move() the path you get.  But if you're getting a transform list then you would need to move everything in the transform list, which is somewhat more trouble.  If you pass the transform list to sweep() you could move() the result of sweep.  I wonder if turtle3d needs a special option for this.

On Mon, Jun 23, 2025 at 7:03 PM Jon Bondy <jon@jonbondy.commailto:jon@jonbondy.com> wrote:

How do I start a turtle3D at a specific spot.  I don't need to jump (skip a segment).  I want to start at a location different than the origin.

On 6/23/2025 6:58 PM, Adrian Mariano via Discuss wrote:
Ah, right.  I think you need to start a new turtle at the desired spot.  Since turtle returns a path there's no way to skip a segment.

On Mon, Jun 23, 2025 at 6:00 PM jon jonbondy.comhttp://jonbondy.com via Discuss <discuss@lists.openscad.orgmailto:discuss@lists.openscad.org> wrote:

In fact, "jump" does leave a turtle trail, so it does not do what I want:

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

naPath = turtle3d([
"move", 20,
"jump", [50, 50, 50],
"move", 10
]);
path_sweep(circle(r = 1, $fn = 6), naPath);

[cid:part1.eNP7AFYZ.4YHeHGWP@jonbondy.com]

On 6/23/2025 5:09 PM, Jon Bondy via Discuss wrote:

Adrian:

Yes, I mean turtle3d.  I get my vertebrates and and invertebrates confused.  Perhaps it was the mouse that was in my paw when I wrote the question.

The definition of "move" is "move the turtle", and the definition of "jump" is "move the turtle.  Since the descriptions were virtually identical, I figured they did the same thing.  I guess I figured wrong.

Thanks!

Jon

On 6/23/2025 4:27 PM, Adrian Mariano via Discuss wrote:
Do you mean turtle3d?  Doesn't "jump" do what you want?

On Mon, Jun 23, 2025 at 9:29 AM Jon Bondy via Discuss <discuss@lists.openscad.orgmailto:discuss@lists.openscad.org> wrote:
Is there a way to jump to a point in 3D space (without leaving a mouse
trail) and then start a mouse trail?

--
This email has been checked for viruses by AVG antivirus software.
www.avg.comhttp://www.avg.com


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


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

[https://s-install.avcdn.net/ipm/preview/icons/icon-envelope-tick-green-avg-v1.png]http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient Virus-free.www.avg.comhttp://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient


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


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


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

I have a list of 3D points I'm trying to hit, so starting at one of the points would be optimal, rather than adding the offsets after the fact. Not sure if anyone else would find this feature to be useful. Jon On 6/23/2025 7:13 PM, Adrian Mariano wrote: I think it depends on what you're doing. If you're just getting a path then you can move() the path you get. But if you're getting a transform list then you would need to move everything in the transform list, which is somewhat more trouble. If you pass the transform list to sweep() you could move() the result of sweep. I wonder if turtle3d needs a special option for this. On Mon, Jun 23, 2025 at 7:03 PM Jon Bondy <jon@jonbondy.com<mailto:jon@jonbondy.com>> wrote: How do I start a turtle3D at a specific spot. I don't need to jump (skip a segment). I want to start at a location different than the origin. On 6/23/2025 6:58 PM, Adrian Mariano via Discuss wrote: Ah, right. I think you need to start a new turtle at the desired spot. Since turtle returns a path there's no way to skip a segment. On Mon, Jun 23, 2025 at 6:00 PM jon jonbondy.com<http://jonbondy.com> via Discuss <discuss@lists.openscad.org<mailto:discuss@lists.openscad.org>> wrote: In fact, "jump" does leave a turtle trail, so it does not do what I want: include <BOSL2/std.scad> include <BOSL2/turtle3d.scad> naPath = turtle3d([ "move", 20, "jump", [50, 50, 50], "move", 10 ]); path_sweep(circle(r = 1, $fn = 6), naPath); [cid:part1.eNP7AFYZ.4YHeHGWP@jonbondy.com] On 6/23/2025 5:09 PM, Jon Bondy via Discuss wrote: Adrian: Yes, I mean turtle3d. I get my vertebrates and and invertebrates confused. Perhaps it was the mouse that was in my paw when I wrote the question. The definition of "move" is "move the turtle", and the definition of "jump" is "move the turtle. Since the descriptions were virtually identical, I figured they did the same thing. I guess I figured wrong. Thanks! Jon On 6/23/2025 4:27 PM, Adrian Mariano via Discuss wrote: Do you mean turtle3d? Doesn't "jump" do what you want? On Mon, Jun 23, 2025 at 9:29 AM Jon Bondy via Discuss <discuss@lists.openscad.org<mailto:discuss@lists.openscad.org>> wrote: Is there a way to jump to a point in 3D space (without leaving a mouse trail) and then start a mouse trail? -- This email has been checked for viruses by AVG antivirus software. www.avg.com<http://www.avg.com> _______________________________________________ OpenSCAD mailing list To unsubscribe send an email to discuss-leave@lists.openscad.org<mailto:discuss-leave@lists.openscad.org> _______________________________________________ OpenSCAD mailing list To unsubscribe send an email to discuss-leave@lists.openscad.org<mailto:discuss-leave@lists.openscad.org> [https://s-install.avcdn.net/ipm/preview/icons/icon-envelope-tick-green-avg-v1.png]<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> Virus-free.www.avg.com<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> _______________________________________________ OpenSCAD mailing list To unsubscribe send an email to discuss-leave@lists.openscad.org<mailto:discuss-leave@lists.openscad.org> _______________________________________________ OpenSCAD mailing list To unsubscribe send an email to discuss-leave@lists.openscad.org<mailto:discuss-leave@lists.openscad.org> _______________________________________________ OpenSCAD mailing list To unsubscribe send an email to discuss-leave@lists.openscad.org<mailto:discuss-leave@lists.openscad.org>
FH
Father Horton
Tue, Jun 24, 2025 12:44 AM

I would love an easy way to set the starting point for a turtle, 2D or 3D.

On Mon, Jun 23, 2025 at 7:14 PM jon jonbondy.com via Discuss <
discuss@lists.openscad.org> wrote:

I have a list  of 3D points I'm trying to hit, so starting at one of the
points would be optimal, rather than adding the offsets after the fact.

Not sure if anyone else would find this feature to be useful.

Jon

On 6/23/2025 7:13 PM, Adrian Mariano wrote:

I think it depends on what you're doing.  If you're just getting a path
then you can move() the path you get.  But if you're getting a transform
list then you would need to move everything in the transform list, which is
somewhat more trouble.  If you pass the transform list to sweep() you could
move() the result of sweep.  I wonder if turtle3d needs a special option
for this.

On Mon, Jun 23, 2025 at 7:03 PM Jon Bondy jon@jonbondy.com wrote:

How do I start a turtle3D at a specific spot.  I don't need to jump (skip
a segment).  I want to start at a location different than the origin.

On 6/23/2025 6:58 PM, Adrian Mariano via Discuss wrote:

Ah, right.  I think you need to start a new turtle at the desired spot.
Since turtle returns a path there's no way to skip a segment.

On Mon, Jun 23, 2025 at 6:00 PM jon jonbondy.com via Discuss <
discuss@lists.openscad.org> wrote:

In fact, "jump" does leave a turtle trail, so it does not do what I want:

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

naPath = turtle3d([
"move", 20,
"jump", [50, 50, 50],
"move", 10
]);
path_sweep(circle(r = 1, $fn = 6), naPath);

On 6/23/2025 5:09 PM, Jon Bondy via Discuss wrote:

Adrian:

Yes, I mean turtle3d.  I get my vertebrates and and invertebrates
confused.  Perhaps it was the mouse that was in my paw when I wrote the
question.

The definition of "move" is "move the turtle", and the definition of
"jump" is "move the turtle.  Since the descriptions were virtually
identical, I figured they did the same thing.  I guess I figured wrong.

Thanks!

Jon

On 6/23/2025 4:27 PM, Adrian Mariano via Discuss wrote:

Do you mean turtle3d?  Doesn't "jump" do what you want?

On Mon, Jun 23, 2025 at 9:29 AM Jon Bondy via Discuss <
discuss@lists.openscad.org> wrote:

Is there a way to jump to a point in 3D space (without leaving a mouse
trail) and then start a mouse trail?

--
This email has been checked for viruses by AVG antivirus software.
www.avg.com


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


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


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

I would love an easy way to set the starting point for a turtle, 2D or 3D. On Mon, Jun 23, 2025 at 7:14 PM jon jonbondy.com via Discuss < discuss@lists.openscad.org> wrote: > I have a list of 3D points I'm trying to hit, so starting at one of the > points would be optimal, rather than adding the offsets after the fact. > > Not sure if anyone else would find this feature to be useful. > > Jon > > > On 6/23/2025 7:13 PM, Adrian Mariano wrote: > > I think it depends on what you're doing. If you're just getting a path > then you can move() the path you get. But if you're getting a transform > list then you would need to move everything in the transform list, which is > somewhat more trouble. If you pass the transform list to sweep() you could > move() the result of sweep. I wonder if turtle3d needs a special option > for this. > > On Mon, Jun 23, 2025 at 7:03 PM Jon Bondy <jon@jonbondy.com> wrote: > >> How do I start a turtle3D at a specific spot. I don't need to jump (skip >> a segment). I want to start at a location different than the origin. >> >> >> On 6/23/2025 6:58 PM, Adrian Mariano via Discuss wrote: >> >> Ah, right. I think you need to start a new turtle at the desired spot. >> Since turtle returns a path there's no way to skip a segment. >> >> On Mon, Jun 23, 2025 at 6:00 PM jon jonbondy.com via Discuss < >> discuss@lists.openscad.org> wrote: >> >>> In fact, "jump" does leave a turtle trail, so it does not do what I want: >>> >>> include <BOSL2/std.scad> >>> include <BOSL2/turtle3d.scad> >>> >>> naPath = turtle3d([ >>> "move", 20, >>> "jump", [50, 50, 50], >>> "move", 10 >>> ]); >>> path_sweep(circle(r = 1, $fn = 6), naPath); >>> >>> >>> On 6/23/2025 5:09 PM, Jon Bondy via Discuss wrote: >>> >>> Adrian: >>> >>> Yes, I mean turtle3d. I get my vertebrates and and invertebrates >>> confused. Perhaps it was the mouse that was in my paw when I wrote the >>> question. >>> >>> The definition of "move" is "move the turtle", and the definition of >>> "jump" is "move the turtle. Since the descriptions were virtually >>> identical, I figured they did the same thing. I guess I figured wrong. >>> >>> Thanks! >>> >>> Jon >>> >>> >>> On 6/23/2025 4:27 PM, Adrian Mariano via Discuss wrote: >>> >>> Do you mean turtle3d? Doesn't "jump" do what you want? >>> >>> >>> On Mon, Jun 23, 2025 at 9:29 AM Jon Bondy via Discuss < >>> discuss@lists.openscad.org> wrote: >>> >>>> Is there a way to jump to a point in 3D space (without leaving a mouse >>>> trail) and then start a mouse trail? >>>> >>>> >>>> -- >>>> This email has been checked for viruses by AVG antivirus software. >>>> www.avg.com >>>> _______________________________________________ >>>> OpenSCAD mailing list >>>> To unsubscribe send an email to discuss-leave@lists.openscad.org >>>> >>> >>> _______________________________________________ >>> OpenSCAD mailing list >>> To unsubscribe send an email to discuss-leave@lists.openscad.org >>> >>> >>> >>> <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> >>> Virus-free.www.avg.com >>> <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> >>> >>> _______________________________________________ >>> OpenSCAD mailing list >>> To unsubscribe send an email to discuss-leave@lists.openscad.org >>> >>> _______________________________________________ >>> OpenSCAD mailing list >>> To unsubscribe send an email to discuss-leave@lists.openscad.org >>> >> >> _______________________________________________ >> OpenSCAD mailing list >> To unsubscribe send an email to discuss-leave@lists.openscad.org >> >> _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
AM
Adrian Mariano
Tue, Jun 24, 2025 1:45 AM

For furtle in 2D there is really no reason not to simply wrap your turtle
command in move().  There's no reason for me to implement a new option that
just calls move for you.  Basically you're asking for
move(pt,turtle(....)) to be augmented with an identically acting
turtle(....., move=pt).  You can of course in either turtle, specify a
starting state, though whether that counts as "easy" is debatable.

I took a closer look at turtle3d(), and it turns out that the "state"
parameter can accept a transformation matrix as an argument.  So actually
the desired feature already exists---it just wasn't documented.  In other
words, you can do turtle3d(....., state=move(pt)) to start the turtle at
pt.  I did notice that if I give a transformation matrix with a rotation I
sometimes get the reverse of the expected effect.  I'm not sure what is
going on there.

On Mon, Jun 23, 2025 at 8:45 PM Father Horton via Discuss <
discuss@lists.openscad.org> wrote:

I would love an easy way to set the starting point for a turtle, 2D or 3D.

On Mon, Jun 23, 2025 at 7:14 PM jon jonbondy.com via Discuss <
discuss@lists.openscad.org> wrote:

I have a list  of 3D points I'm trying to hit, so starting at one of the
points would be optimal, rather than adding the offsets after the fact.

Not sure if anyone else would find this feature to be useful.

Jon

On 6/23/2025 7:13 PM, Adrian Mariano wrote:

I think it depends on what you're doing.  If you're just getting a path
then you can move() the path you get.  But if you're getting a transform
list then you would need to move everything in the transform list, which is
somewhat more trouble.  If you pass the transform list to sweep() you could
move() the result of sweep.  I wonder if turtle3d needs a special option
for this.

On Mon, Jun 23, 2025 at 7:03 PM Jon Bondy jon@jonbondy.com wrote:

How do I start a turtle3D at a specific spot.  I don't need to jump
(skip a segment).  I want to start at a location different than the origin.

On 6/23/2025 6:58 PM, Adrian Mariano via Discuss wrote:

Ah, right.  I think you need to start a new turtle at the desired spot.
Since turtle returns a path there's no way to skip a segment.

On Mon, Jun 23, 2025 at 6:00 PM jon jonbondy.com via Discuss <
discuss@lists.openscad.org> wrote:

In fact, "jump" does leave a turtle trail, so it does not do what I
want:

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

naPath = turtle3d([
"move", 20,
"jump", [50, 50, 50],
"move", 10
]);
path_sweep(circle(r = 1, $fn = 6), naPath);

On 6/23/2025 5:09 PM, Jon Bondy via Discuss wrote:

Adrian:

Yes, I mean turtle3d.  I get my vertebrates and and invertebrates
confused.  Perhaps it was the mouse that was in my paw when I wrote the
question.

The definition of "move" is "move the turtle", and the definition of
"jump" is "move the turtle.  Since the descriptions were virtually
identical, I figured they did the same thing.  I guess I figured wrong.

Thanks!

Jon

On 6/23/2025 4:27 PM, Adrian Mariano via Discuss wrote:

Do you mean turtle3d?  Doesn't "jump" do what you want?

On Mon, Jun 23, 2025 at 9:29 AM Jon Bondy via Discuss <
discuss@lists.openscad.org> wrote:

Is there a way to jump to a point in 3D space (without leaving a mouse
trail) and then start a mouse trail?

--
This email has been checked for viruses by AVG antivirus software.
www.avg.com


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


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


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


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

For furtle in 2D there is really no reason not to simply wrap your turtle command in move(). There's no reason for me to implement a new option that just calls move for you. Basically you're asking for `move(pt,turtle(....))` to be augmented with an identically acting `turtle(....., move=pt)`. You can of course in either turtle, specify a starting state, though whether that counts as "easy" is debatable. I took a closer look at turtle3d(), and it turns out that the "state" parameter can accept a transformation matrix as an argument. So actually the desired feature already exists---it just wasn't documented. In other words, you can do turtle3d(....., state=move(pt)) to start the turtle at pt. I did notice that if I give a transformation matrix with a rotation I sometimes get the reverse of the expected effect. I'm not sure what is going on there. On Mon, Jun 23, 2025 at 8:45 PM Father Horton via Discuss < discuss@lists.openscad.org> wrote: > I would love an easy way to set the starting point for a turtle, 2D or 3D. > > On Mon, Jun 23, 2025 at 7:14 PM jon jonbondy.com via Discuss < > discuss@lists.openscad.org> wrote: > >> I have a list of 3D points I'm trying to hit, so starting at one of the >> points would be optimal, rather than adding the offsets after the fact. >> >> Not sure if anyone else would find this feature to be useful. >> >> Jon >> >> >> On 6/23/2025 7:13 PM, Adrian Mariano wrote: >> >> I think it depends on what you're doing. If you're just getting a path >> then you can move() the path you get. But if you're getting a transform >> list then you would need to move everything in the transform list, which is >> somewhat more trouble. If you pass the transform list to sweep() you could >> move() the result of sweep. I wonder if turtle3d needs a special option >> for this. >> >> On Mon, Jun 23, 2025 at 7:03 PM Jon Bondy <jon@jonbondy.com> wrote: >> >>> How do I start a turtle3D at a specific spot. I don't need to jump >>> (skip a segment). I want to start at a location different than the origin. >>> >>> >>> On 6/23/2025 6:58 PM, Adrian Mariano via Discuss wrote: >>> >>> Ah, right. I think you need to start a new turtle at the desired spot. >>> Since turtle returns a path there's no way to skip a segment. >>> >>> On Mon, Jun 23, 2025 at 6:00 PM jon jonbondy.com via Discuss < >>> discuss@lists.openscad.org> wrote: >>> >>>> In fact, "jump" does leave a turtle trail, so it does not do what I >>>> want: >>>> >>>> include <BOSL2/std.scad> >>>> include <BOSL2/turtle3d.scad> >>>> >>>> naPath = turtle3d([ >>>> "move", 20, >>>> "jump", [50, 50, 50], >>>> "move", 10 >>>> ]); >>>> path_sweep(circle(r = 1, $fn = 6), naPath); >>>> >>>> >>>> On 6/23/2025 5:09 PM, Jon Bondy via Discuss wrote: >>>> >>>> Adrian: >>>> >>>> Yes, I mean turtle3d. I get my vertebrates and and invertebrates >>>> confused. Perhaps it was the mouse that was in my paw when I wrote the >>>> question. >>>> >>>> The definition of "move" is "move the turtle", and the definition of >>>> "jump" is "move the turtle. Since the descriptions were virtually >>>> identical, I figured they did the same thing. I guess I figured wrong. >>>> >>>> Thanks! >>>> >>>> Jon >>>> >>>> >>>> On 6/23/2025 4:27 PM, Adrian Mariano via Discuss wrote: >>>> >>>> Do you mean turtle3d? Doesn't "jump" do what you want? >>>> >>>> >>>> On Mon, Jun 23, 2025 at 9:29 AM Jon Bondy via Discuss < >>>> discuss@lists.openscad.org> wrote: >>>> >>>>> Is there a way to jump to a point in 3D space (without leaving a mouse >>>>> trail) and then start a mouse trail? >>>>> >>>>> >>>>> -- >>>>> This email has been checked for viruses by AVG antivirus software. >>>>> www.avg.com >>>>> _______________________________________________ >>>>> OpenSCAD mailing list >>>>> To unsubscribe send an email to discuss-leave@lists.openscad.org >>>>> >>>> >>>> _______________________________________________ >>>> OpenSCAD mailing list >>>> To unsubscribe send an email to discuss-leave@lists.openscad.org >>>> >>>> >>>> >>>> <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> >>>> Virus-free.www.avg.com >>>> <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> >>>> >>>> _______________________________________________ >>>> OpenSCAD mailing list >>>> To unsubscribe send an email to discuss-leave@lists.openscad.org >>>> >>>> _______________________________________________ >>>> OpenSCAD mailing list >>>> To unsubscribe send an email to discuss-leave@lists.openscad.org >>>> >>> >>> _______________________________________________ >>> OpenSCAD mailing list >>> To unsubscribe send an email to discuss-leave@lists.openscad.org >>> >>> _______________________________________________ >> OpenSCAD mailing list >> To unsubscribe send an email to discuss-leave@lists.openscad.org >> > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >