discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Re: Is there a "Polar" translate transformation?

BC
Bob Carlson
Mon, Aug 15, 2022 4:58 PM

I have this in my library. It uses a function from BOSL2.

module moveSP(r, theta, phi) {
move(spherical_to_xyz(r, theta, phi)) children();
}

-Bob
Tucson AZ

On Aug 14, 2022, at 20:18, William Lugg via Discuss discuss@lists.openscad.org wrote:

From: William Lugg luggw1@protonmail.com
Subject: [OpenSCAD] Is there a "Polar" translate transformation?
Date: August 14, 2022 at 20:18:37 MST
To: Jan Öhman via Discuss discuss@lists.openscad.org
Reply-To: William Lugg luggw1@protonmail.com, OpenSCAD general discussion discuss@lists.openscad.org

I have a situation where it would be helpful to be able to specify a
transformation as a distance and a direction, say as a rotation about
the Z axis from the positive X axis, for example.  Is there such a tool
in OpenSCAD?

I looked on the cheat sheet and one didn't pop out at me, but I wondered
if I might have missed it.

Thanks
Bill Lugg


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

I have this in my library. It uses a function from BOSL2. module moveSP(r, theta, phi) { move(spherical_to_xyz(r, theta, phi)) children(); } -Bob Tucson AZ On Aug 14, 2022, at 20:18, William Lugg via Discuss <discuss@lists.openscad.org> wrote: From: William Lugg <luggw1@protonmail.com> Subject: [OpenSCAD] Is there a "Polar" translate transformation? Date: August 14, 2022 at 20:18:37 MST To: Jan Öhman via Discuss <discuss@lists.openscad.org> Reply-To: William Lugg <luggw1@protonmail.com>, OpenSCAD general discussion <discuss@lists.openscad.org> I have a situation where it would be helpful to be able to specify a transformation as a distance and a direction, say as a rotation about the Z axis from the positive X axis, for example. Is there such a tool in OpenSCAD? I looked on the cheat sheet and one didn't pop out at me, but I wondered if I might have missed it. Thanks Bill Lugg _______________________________________________ OpenSCAD mailing list To unsubscribe send an email to discuss-leave@lists.openscad.org