awesome! that is very interesting.

On Sat, Feb 20, 2010 at 10:05 AM, Clifford Wolf

<[hidden email]> wrote:

Hi Zach,

On Thu, Feb 18, 2010 at 09:20:42PM -0500, Zach Smith wrote:

> first off, i have no idea what sort of math this would entail, so if

> its crazy, then lemme know.Â :)

> i'd love to get some sort of corner rounding/chamfer tool.Â it would

> really step up the capabilities.Â but how do you apply a chamfer to 3D

> objects created with booleans?

> the idea is to use a primitive to define a volume to apply a curving

> function to.Â i could get by with cubes, but it would be REALLY rad if

> you could use any old 3d object.

the current OpenSCAD svn head (r446) now has support for 3d minkowski sums.

So a cube with round edges and corners can be generated like this:

minkowski() {

cube(100);

sphere(20);

}

unfortunately minkowski sums are pretty cpu-intensitive. (the above code

took 5 minutes to compile on my machine)

I do plan to also add support for 2d minkowski sums, minkowski sums of 3d

objects and 3d paths (aka glides), the four 3d subdivision algorithms

supported by cgal and the two triangulated surface mesh simplification

algorithms that are supported by CGAL.

yours,

- clifford

--

bash -c "gcc -o mysdldemo -Wall -O2 -lSDL -lm -pthread -x c <( echo -e '

#include <SDL/SDL.h>\n#include <complex.h>\nint main(){SDL_Surface*s;SDL_Event

e;int x,y,n;SDL_Init(SDL_INIT_VIDEO);s=SDL_SetVideoMode(640,480,32,0);for(x=0;

x<640;x++)for(y=0;y<480;y++){float _Complex z=0, c=((x-400)/200.0) + ((y-240)/

200.0)*1.0fi;for(n=1;n<64;n++){z=z*z+c;if(cabsf(z)>2){((Uint32*)s->pixels)[x+y

*640]=n<<3;n=99;}}}SDL_UpdateRect(s,0,0,s->w,s->h);do SDL_WaitEvent(&e); while

(e.type!=SDL_QUIT&&e.type!=SDL_KEYDOWN);SDL_Quit();return 0;}' ); ./mysdldemo"

_______________________________________________

OpenSCAD mailing list

[hidden email]

http://rocklinux.net/mailman/listinfo/openscad

--

Zach Smith

MakerBot Industries