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]
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);
}
}

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]
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
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]
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);
}}
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