# Euler Vase - Possible Openscad?

8 messages
Open this post in threaded view
|

## Euler Vase - Possible Openscad?

 Euler Vase http://www.instructables.com/id/Euler-Vase/It looks like a polygon with truncations and snubs.  Flattened on the bottom and the top and a boolean (difference) cylinder. This can be done in Blender using Math Solids under Extra Objects and the Boolean Modifier. Is it possible to do this programmatically using OpenSCAD?
Open this post in threaded view
|

## Re: Euler Vase - Possible Openscad?

 Administrator Yes, you could build all the polygons yourself, but I'd map the points of the vertices and hull it. Like so: Admin - email* me if you need anything, or if I've done something stupid... * click on my MichaelAtOz label, there is a link to email me. Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above. The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ time is running out!
Open this post in threaded view
|

## Re: Euler Vase - Possible Openscad?

 In reply to this post by unkerjay Thus unkerjay hast written on Mon, Mar 13, 2017 at 06:09:00PM -0700, and, according to prophecy, it shall come to pass that: > Euler Vase > http://www.instructables.com/id/Euler-Vase/> > It looks like a polygon with truncations and snubs.  Flattened on the bottom > and the top and a boolean (difference) cylinder. > > Is it possible to do this programmatically using OpenSCAD? I would make this by starting with a rectangular cube, and differencing off a bunch of other cubes that have been rotate() { translate() { rotate() } } at various  distances and angles. _______________________________________________ OpenSCAD mailing list [hidden email] http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Open this post in threaded view
|

## Re: Euler Vase - Possible Openscad?

 In reply to this post by unkerjay The vase is a simple polyhedron so it is certainly possible. Doing it randomly is easy. n  = 50; // number of facets d  = 40; // approx. center diameter h  = 80; // vase height r  = 80; // trimming radius hd = 15; // hole diameter difference(){     intersection() {         cube([d,d,h], center=true);         intersection_for(i=[0:n-1]) {             a = rands(-1,1,2);             b = asin(h/r/2)/2;             rotate(b*a[0],[-sin(360*a[1]),cos(360*a[1]),0])             rotate([0,0,360*a[1]])                 translate([r-d/2,0,0])                     cube(2*r, center=true);         }     }     // the hole     translate([0,0,-h/2+1])         cylinder(r=hd/2,h=h); } Although the result may be disappointing :)
Open this post in threaded view
|

## Re: Euler Vase - Possible Openscad?

Open this post in threaded view
|