Wellenbecher d026|17 starting with a symetrical waveform which interfere with another wave and widen.

Wellenbecher d026|17

starting with a symetrical waveform which interfere with another wave and widen.

oSCAD code:
for (i=[0:5000])
{
y=5sin(i11+i/15*sin(i))+i/270;
rotate([0,0,i]) translate([0,20+y,i/+100])
rotate([0,0,45]) cube([2,2,4],center=true);
}

(form was smoothed after, else you get heavy vibrations while printing)
As pointed out by @Torleif_Ceder (see comments) the hull() command is great to get rid of edges.

Use hull() to join each pair of consecutive cubes for a significantly better mesh.

for (i=[0:5000])
{
hull(){
y=5sin(i11+i/15*sin(i))+i/270;
rotate([0,0,i]) translate([0,20+y,i/+100])
rotate([0,0,45]) cube([2,2,4],center=true);

          i2=i+1;
          y2=5*sin(i2*11+i2/15*sin(i2))+i2/270;
           rotate([0,0,i2]) translate([0,20+y2,i2/+100])
           rotate([0,0,45]) cube([2,2,4],center=true);
          }        

}

@Torleif_Ceder do you place that in front of the loop? That would fill the inside as well and you get a total different form (but smooth) - as there are 5000 elements it would take hours to render. A proper approach would be to create surface triangles as a polyhedron but i was lazy… using spheres instead also improve the mesh but you need some more GB RAM and also much more time to render (csg tree generation)…

@Torleif_Ceder ah ok (didn’t saw your second comment) thats nice! Thx! (interesting is that copy paste give an error , but removing the last “}” and put it again made it working)

Usually i also hull two cubes of the layer bellow but that’s not so easy with this approach.

it is (if i understood you correctly) I just added a 3rd block with i3=i+360 as this is one rotation above(next layer)

And if necessary a 4th block with i4 =i3+1.