discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

wave washer

SP
Sanjeev Prabhakar
Mon, Feb 17, 2025 4:36 PM

As simple method to model wave washers

https://youtu.be/j98QOT6z0sM

[image: Screenshot 2025-02-17 at 10.03.27 PM.png]

As simple method to model wave washers https://youtu.be/j98QOT6z0sM [image: Screenshot 2025-02-17 at 10.03.27 PM.png]
M
mikeonenine@web.de
Tue, Feb 18, 2025 11:56 PM

That’s cool, but the code is a little hard to follow in the video.

I did this for a drawing. It’s the half of the washer that is visible. When it’s almost fully compressed, as it would be when installed, the steps don’t show!

h=1; // half height (c to c)

w=4; // width

for (i=[0:180])

rotate([0, h*sin(8*i), i])

translate([-50, 0])

ccube(w, 1, 1);

That’s cool, but the code is a little hard to follow in the video. I did this for a drawing. It’s the half of the washer that is visible. When it’s almost fully compressed, as it would be when installed, the steps don’t show! `h=1; // half height (c to c)` `w=4; // width` `for (i=[0:180])` `rotate([0, h*sin(8*i), i])` `translate([-50, 0])` `ccube(w, 1, 1);`
SP
Sanjeev Prabhakar
Wed, Feb 19, 2025 1:47 AM

Basic idea here is to draw a sinewave in x-z plane and draw a circular path
to wrap the sinewave in x-y plane.

The function which i wrote in python for such wrapping is
"extrude_wave2path".
Number of points in sinewave should match number of points of circular path.

This weapped sinewave will make a path and then extrude a rectangular
section through this path to create a wave washer.

On Wed, 19 Feb, 2025, 5:27 am Caddiy via Discuss, <
discuss@lists.openscad.org> wrote:

That’s cool, but the code is a little hard to follow in the video.

I did this for a drawing. It’s the half of the washer that is visible.
When it’s almost fully compressed, as it would be when installed, the steps
don’t show!

h=1; // half height (c to c)

w=4; // width

for (i=[0:180])

rotate([0, hsin(8i), i])

translate([-50, 0])

ccube(w, 1, 1);


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

Basic idea here is to draw a sinewave in x-z plane and draw a circular path to wrap the sinewave in x-y plane. The function which i wrote in python for such wrapping is "extrude_wave2path". Number of points in sinewave should match number of points of circular path. This weapped sinewave will make a path and then extrude a rectangular section through this path to create a wave washer. On Wed, 19 Feb, 2025, 5:27 am Caddiy via Discuss, < discuss@lists.openscad.org> wrote: > That’s cool, but the code is a little hard to follow in the video. > > I did this for a drawing. It’s the half of the washer that is visible. > When it’s almost fully compressed, as it would be when installed, the steps > don’t show! > > h=1; // half height (c to c) > > w=4; // width > > for (i=[0:180]) > > rotate([0, h*sin(8*i), i]) > > translate([-50, 0]) > > ccube(w, 1, 1); > > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
SP
Sanjeev Prabhakar
Thu, Feb 20, 2025 12:56 AM

your code is very nice, it is much faster and meets the intent

On Wed, 19 Feb 2025 at 05:27, Caddiy via Discuss discuss@lists.openscad.org
wrote:

That’s cool, but the code is a little hard to follow in the video.

I did this for a drawing. It’s the half of the washer that is visible.
When it’s almost fully compressed, as it would be when installed, the steps
don’t show!

h=1; // half height (c to c)

w=4; // width

for (i=[0:180])

rotate([0, hsin(8i), i])

translate([-50, 0])

ccube(w, 1, 1);


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

your code is very nice, it is much faster and meets the intent On Wed, 19 Feb 2025 at 05:27, Caddiy via Discuss <discuss@lists.openscad.org> wrote: > That’s cool, but the code is a little hard to follow in the video. > > I did this for a drawing. It’s the half of the washer that is visible. > When it’s almost fully compressed, as it would be when installed, the steps > don’t show! > > h=1; // half height (c to c) > > w=4; // width > > for (i=[0:180]) > > rotate([0, h*sin(8*i), i]) > > translate([-50, 0]) > > ccube(w, 1, 1); > > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >