From the course: Creating a Captive Sphere with OpenSCAD

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Increasing the resolution

Increasing the resolution

- Now the sphere as we've drawn it looks rather too highly-faceted. You can see it's made up of all these little panels. And when we print it, we're going to see those individual panels rather than as a smooth sphere. We need to tell OpenSCAD to up the smoothness: to increase the number of facets. And while we could use the common words cube and sphere to draw a cube and a sphere, we have to use a bit of specific code here. Let's go right up to the top. We'll type a return so that it moves the cube and sphere down a line, and then in the line above, we can type the following code: $fn=50 Once again, we have to type a ; to tell OpenSCAD it's the end of a line. And what that does, is it tells it to smooth it with a value of 50. Let's see how that looks. There we go, that looks quite a lot better. If we wanted, we could increase the smoothness. We could say, change that to $fn=100 and that will look smoother still. But for general purposes, 50 is going to be enough to produce a…

Contents