discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

sinwave glass

SP
Sanjeev Prabhakar
Sat, Aug 26, 2023 4:04 AM

A sinwave glass glass

file is heavy 12.5 mb , so here is the link
https://github.com/sprabhakar2006/openSCAD/blob/main/sinwave_glass.scad

[image: Screenshot 2023-08-26 at 9.24.41 AM.png]

A sinwave glass glass file is heavy 12.5 mb , so here is the link https://github.com/sprabhakar2006/openSCAD/blob/main/sinwave_glass.scad [image: Screenshot 2023-08-26 at 9.24.41 AM.png]
RD
Revar Desmera
Sat, Aug 26, 2023 12:24 PM

On Aug 25, 2023, at 9:04 PM, Sanjeev Prabhakar sprabhakar2006@gmail.com wrote:

A sinwave glass glass

file is heavy 12.5 mb , so here is the link
https://github.com/sprabhakar2006/openSCAD/blob/main/sinwave_glass.scad

<Screenshot 2023-08-26 at 9.24.41 AM.png>

Slightly smaller scadfile:

include <BOSL2/std.scad>
h = 100;
r = 30;
wall = 1;
n = h/5;
tscale = 1;
tex = [
for (i=[0:31]) [
for (j=[0:31])
sin(i/32360) * sin(j/32360)
]
];
difference() {
cyl(h=h, r=r, texture=tex, tex_size=[n,n], tex_scale=tscale, anchor=BOT);
difference() {
cyl(h=h+0.01, r=r-wall, texture=tex, tex_size=[n,n], tex_scale=tscale, anchor=BOT);
cyl(h=wall, r=r*2, anchor=BOT);
}
}

  • Revar
> On Aug 25, 2023, at 9:04 PM, Sanjeev Prabhakar <sprabhakar2006@gmail.com> wrote: > > A sinwave glass glass > > file is heavy 12.5 mb , so here is the link > https://github.com/sprabhakar2006/openSCAD/blob/main/sinwave_glass.scad > > <Screenshot 2023-08-26 at 9.24.41 AM.png> Slightly smaller scadfile: include <BOSL2/std.scad> h = 100; r = 30; wall = 1; n = h/5; tscale = 1; tex = [ for (i=[0:31]) [ for (j=[0:31]) sin(i/32*360) * sin(j/32*360) ] ]; difference() { cyl(h=h, r=r, texture=tex, tex_size=[n,n], tex_scale=tscale, anchor=BOT); difference() { cyl(h=h+0.01, r=r-wall, texture=tex, tex_size=[n,n], tex_scale=tscale, anchor=BOT); cyl(h=wall, r=r*2, anchor=BOT); } }  - Revar
SP
Sanjeev Prabhakar
Sat, Aug 26, 2023 1:45 PM

Great
This is much simpler to use in pure openscad

On Sat, 26 Aug, 2023, 5:55 pm Revar Desmera, revarbat@gmail.com wrote:

On Aug 25, 2023, at 9:04 PM, Sanjeev Prabhakar sprabhakar2006@gmail.com
wrote:

A sinwave glass glass

file is heavy 12.5 mb , so here is the link
https://github.com/sprabhakar2006/openSCAD/blob/main/sinwave_glass.scad

<Screenshot 2023-08-26 at 9.24.41 AM.png>

Slightly smaller scadfile:

include <BOSL2/std.scad>
h = 100;
r = 30;
wall = 1;
n = h/5;
tscale = 1;
tex = [
for (i=[0:31]) [
for (j=[0:31])
sin(i/32360) * sin(j/32360)
]
];
difference() {
cyl(h=h, r=r, texture=tex, tex_size=[n,n], tex_scale=tscale,
anchor=BOT);
difference() {
cyl(h=h+0.01, r=r-wall, texture=tex, tex_size=[n,n],
tex_scale=tscale, anchor=BOT);
cyl(h=wall, r=r*2, anchor=BOT);
}
}

[image: Screenshot 2023-08-26 at 5.17.44 AM.png]

  • Revar

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

Great This is much simpler to use in pure openscad On Sat, 26 Aug, 2023, 5:55 pm Revar Desmera, <revarbat@gmail.com> wrote: > > On Aug 25, 2023, at 9:04 PM, Sanjeev Prabhakar <sprabhakar2006@gmail.com> > wrote: > > A sinwave glass glass > > file is heavy 12.5 mb , so here is the link > https://github.com/sprabhakar2006/openSCAD/blob/main/sinwave_glass.scad > > <Screenshot 2023-08-26 at 9.24.41 AM.png> > > > Slightly smaller scadfile: > > include <BOSL2/std.scad> > h = 100; > r = 30; > wall = 1; > n = h/5; > tscale = 1; > tex = [ > for (i=[0:31]) [ > for (j=[0:31]) > sin(i/32*360) * sin(j/32*360) > ] > ]; > difference() { > cyl(h=h, r=r, texture=tex, tex_size=[n,n], tex_scale=tscale, > anchor=BOT); > difference() { > cyl(h=h+0.01, r=r-wall, texture=tex, tex_size=[n,n], > tex_scale=tscale, anchor=BOT); > cyl(h=wall, r=r*2, anchor=BOT); > } > } > > [image: Screenshot 2023-08-26 at 5.17.44 AM.png] > > - Revar > > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
M
mikeonenine@web.de
Sat, Aug 26, 2023 11:19 PM

Sanjeev Prabhakar wrote:

Great
This is much simpler to use in pure openscad

On Sat, 26 Aug, 2023, 5:55 pm Revar Desmera, revarbat@gmail.com wrote:

On Aug 25, 2023, at 9:04 PM, Sanjeev Prabhakar sprabhakar2006@gmail.com
wrote:

A sinwave glass glass

file is heavy 12.5 mb , so here is the link
https://github.com/sprabhakar2006/openSCAD/blob/main/sinwave_glass.scad

<Screenshot 2023-08-26 at 9.24.41 AM.png>

Slightly smaller scadfile:

include <BOSL2/std.scad>
h = 100;
r = 30;
wall = 1;
n = h/5;
tscale = 1;
tex = [
for (i=[0:31]) [
for (j=[0:31])
sin(i/32360) * sin(j/32360)
]
];
difference() {
cyl(h=h, r=r, texture=tex, tex_size=[n,n], tex_scale=tscale,
anchor=BOT);
difference() {
cyl(h=h+0.01, r=r-wall, texture=tex, tex_size=[n,n],
tex_scale=tscale, anchor=BOT);
cyl(h=wall, r=r*2, anchor=BOT);
}
}

[image: Screenshot 2023-08-26 at 5.17.44 AM.png]

  • Revar

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

Doesn’t seem to work with my version 2021.01. I get a glass without the texture.

Also quite nice:

difference()
{
union()
{
linear_extrude(30, twist=360/2, convexity=3)
offset(5)
circle(5, $fn=6, center=true);

linear_extrude(30, twist=-360/2, convexity=3)
offset(5)
circle(5, $fn=6, center=true);
}

translate([0,0,1])
{
linear_extrude(30, twist=360/2, convexity=3)
offset(4)
circle(5, $fn=6, center=true);

linear_extrude(30, twist=-360/2, convexity=3)
offset(4)
circle(5, $fn=6, center=true);
}}

Sanjeev Prabhakar wrote: > Great > This is much simpler to use in pure openscad > > On Sat, 26 Aug, 2023, 5:55 pm Revar Desmera, [revarbat@gmail.com](mailto:revarbat@gmail.com) wrote: > > > On Aug 25, 2023, at 9:04 PM, Sanjeev Prabhakar [sprabhakar2006@gmail.com](mailto:sprabhakar2006@gmail.com) > > wrote: > > > > A sinwave glass glass > > > > file is heavy 12.5 mb , so here is the link > > https://github.com/sprabhakar2006/openSCAD/blob/main/sinwave_glass.scad > > > > <Screenshot 2023-08-26 at 9.24.41 AM.png> > > > > Slightly smaller scadfile: > > > > include <BOSL2/std.scad> > > h = 100; > > r = 30; > > wall = 1; > > n = h/5; > > tscale = 1; > > tex = \[ > > for (i=\[0:31\]) \[ > > for (j=\[0:31\]) > > sin(i/32*360) \* sin(j/32*360) > > \] > > \]; > > difference() { > > cyl(h=h, r=r, texture=tex, tex_size=\[n,n\], tex_scale=tscale, > > anchor=BOT); > > difference() { > > cyl(h=h+0.01, r=r-wall, texture=tex, tex_size=\[n,n\], > > tex_scale=tscale, anchor=BOT); > > cyl(h=wall, r=r\*2, anchor=BOT); > > } > > } > > > > \[image: Screenshot 2023-08-26 at 5.17.44 AM.png\] > > > > * Revar > > > > --- > > > > OpenSCAD mailing list > > To unsubscribe send an email to discuss-leave@lists.openscad.org Doesn’t seem to work with my version 2021.01. I get a glass without the texture. Also quite nice: difference()\ {\ union()\ {\ linear_extrude(30, twist=360/2, convexity=3)\ offset(5)\ circle(5, $fn=6, center=true); linear_extrude(30, twist=-360/2, convexity=3)\ offset(5)\ circle(5, $fn=6, center=true);\ } translate(\[0,0,1\])\ {\ linear_extrude(30, twist=360/2, convexity=3)\ offset(4)\ circle(5, $fn=6, center=true); linear_extrude(30, twist=-360/2, convexity=3)\ offset(4)\ circle(5, $fn=6, center=true);\ }}
SP
Sanjeev Prabhakar
Sun, Aug 27, 2023 5:57 AM

Here is another one
sinwave box:
https://github.com/sprabhakar2006/openSCAD/blob/main/sinwave_box.scad
[image: Screenshot 2023-08-27 at 11.20.38 AM.png]

On Sun, 27 Aug 2023 at 04:49, mikeonenine@web.de wrote:

Sanjeev Prabhakar wrote:

Great This is much simpler to use in pure openscad

On Sat, 26 Aug, 2023, 5:55 pm Revar Desmera, revarbat@gmail.com wrote:

On Aug 25, 2023, at 9:04 PM, Sanjeev Prabhakar sprabhakar2006@gmail.com
wrote:

A sinwave glass glass

file is heavy 12.5 mb , so here is the link
https://github.com/sprabhakar2006/openSCAD/blob/main/sinwave_glass.scad

<Screenshot 2023-08-26 at 9.24.41 AM.png>

Slightly smaller scadfile:

include <BOSL2/std.scad> h = 100; r = 30; wall = 1; n = h/5; tscale = 1;
tex = [ for (i=[0:31]) [ for (j=[0:31]) sin(i/32360) * sin(j/32360) ]
]; difference() { cyl(h=h, r=r, texture=tex, tex_size=[n,n],
tex_scale=tscale, anchor=BOT); difference() { cyl(h=h+0.01, r=r-wall,
texture=tex, tex_size=[n,n], tex_scale=tscale, anchor=BOT); cyl(h=wall,
r=r*2, anchor=BOT); } }

[image: Screenshot 2023-08-26 at 5.17.44 AM.png]

-

Revar

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

Doesn’t seem to work with my version 2021.01. I get a glass without the
texture.

Also quite nice:

difference()
{
union()
{
linear_extrude(30, twist=360/2, convexity=3)
offset(5)
circle(5, $fn=6, center=true);

linear_extrude(30, twist=-360/2, convexity=3)
offset(5)
circle(5, $fn=6, center=true);
}

translate([0,0,1])
{
linear_extrude(30, twist=360/2, convexity=3)
offset(4)
circle(5, $fn=6, center=true);

linear_extrude(30, twist=-360/2, convexity=3)
offset(4)
circle(5, $fn=6, center=true);
}}


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

Here is another one sinwave box: https://github.com/sprabhakar2006/openSCAD/blob/main/sinwave_box.scad [image: Screenshot 2023-08-27 at 11.20.38 AM.png] On Sun, 27 Aug 2023 at 04:49, <mikeonenine@web.de> wrote: > Sanjeev Prabhakar wrote: > > Great This is much simpler to use in pure openscad > > On Sat, 26 Aug, 2023, 5:55 pm Revar Desmera, revarbat@gmail.com wrote: > > On Aug 25, 2023, at 9:04 PM, Sanjeev Prabhakar sprabhakar2006@gmail.com > wrote: > > A sinwave glass glass > > file is heavy 12.5 mb , so here is the link > https://github.com/sprabhakar2006/openSCAD/blob/main/sinwave_glass.scad > > <Screenshot 2023-08-26 at 9.24.41 AM.png> > > Slightly smaller scadfile: > > include <BOSL2/std.scad> h = 100; r = 30; wall = 1; n = h/5; tscale = 1; > tex = [ for (i=[0:31]) [ for (j=[0:31]) sin(i/32*360) * sin(j/32*360) ] > ]; difference() { cyl(h=h, r=r, texture=tex, tex_size=[n,n], > tex_scale=tscale, anchor=BOT); difference() { cyl(h=h+0.01, r=r-wall, > texture=tex, tex_size=[n,n], tex_scale=tscale, anchor=BOT); cyl(h=wall, > r=r*2, anchor=BOT); } } > > [image: Screenshot 2023-08-26 at 5.17.44 AM.png] > > - > > Revar > > ------------------------------ > > OpenSCAD mailing list To unsubscribe send an email to > discuss-leave@lists.openscad.org > > Doesn’t seem to work with my version 2021.01. I get a glass without the > texture. > > Also quite nice: > > difference() > { > union() > { > linear_extrude(30, twist=360/2, convexity=3) > offset(5) > circle(5, $fn=6, center=true); > > linear_extrude(30, twist=-360/2, convexity=3) > offset(5) > circle(5, $fn=6, center=true); > } > > translate([0,0,1]) > { > linear_extrude(30, twist=360/2, convexity=3) > offset(4) > circle(5, $fn=6, center=true); > > linear_extrude(30, twist=-360/2, convexity=3) > offset(4) > circle(5, $fn=6, center=true); > }} > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >