Cap that Hole

by Zivbot, published

Cap that Hole by Zivbot Dec 6, 2016



Design Tools


Liked By

View All

Give a Shout Out

If you print this Thing and display it in public proudly give attribution by printing and displaying this tag.

Print Thing Tag


Thing Statistics

53316Views 11877Downloads Found in Replacement Parts


Customizes covers for holes in surfaces such as countertops, etc.


  1. Enter hole's dimensions: shape (circular/square/rectangular), dimensions, fillet radius.
  2. Define cover: overlap, thickness
  3. Define plug dimensions: length, clearance
  4. Choose if you like to have snaps or fins
  5. Don't forget to TURN OFF "SHOW SLICE", so you'll get a full cap when you generate it.

For best cover surface quality, print upside-down (cover on printing surface)

More from Replacement Parts

view more

All Apps

Upgrade this Thing with Thingiverse Apps


Edit, personalize, or revise this Thing

Customizer is the easiest way to take great 3D printable designs and make them your own. Make your OpenSCAD designs infinitely more valuable by empowering the community to customize them.

App Info Launch App
Customizer Thing App

Do the current parameters allow for making a solid plug - one with a solid bottom and infill inside?

Maybe i'm being nooby here - but when I render this (i'm trying a round cap) it only comes up with half the cap - 180 degrees of it - not the full round cap. Is this to be expected?

See instructions-
Don't forget to TURN OFF "SHOW SLICE", so you'll get a full cap when you generate it.

Aha - ok, I saw that and didn't realise that 'show' slice would render the slice too :-)

Thanks - very cool design.

The app https://www.thingiverse.com/thing:1943463/apps/#apps does not work anymore, because a file is missing server side I think:

/usr/local/bin/openscad/openscad: error while loading shared libraries: libCGAL.so.10: cannot open shared object file: No such file or directory

be nice if this could be fixed, very useful app!

Cap that Hole
by Zivbot

Download openscad, and you can do it on your local system.

Hi, nice work,

I quick hacked your code to add unsnap function. Basically I added this and make some corrections @ remove:

features = "Hold"; // [Snaps, Fins, Hold, None]
snaps = features == "Snaps";
                if (hold) {
                    hull() {
                        gen_hole_shape(hole_dimension1, hole_dimension2, hole_radius_safe);

                        gen_hole_shape(hole_dimension1, hole_dimension2, hole_radius_safe);

                        gen_hole_shape(hole_dimension1, hole_dimension2, hole_radius_safe);

Would be nice if you integrate this feature and/or share your code @ github for pull requests.

What do you open this with I have cut some ikea lack table legs down and need to fill the hollow void
many thanks

This is an OpenSCAD file. It is free software.

amazing, thank you very much

thank you for sharing.

What the units are for "Hole Dimensions" and "Hole Depth"? Are they all in mm is that just for the plug measurements?

Yes - they're all mm and the plug measurements are deducted from the hole size + plug clearance.

Very handy. Thank you!

Could you possibly make one of these with a hole in the middle to pass cables through? I fiddled with it in sketchup, but I feel like a caveman.

Also, what do you recommend when using the fins? I feel if I print it upside down, I won't get enough support under the fins to be able to print them, but if I print it top-up, I won't have enough support to print the top. Has anyone successfully printed one with the fins instead of the snaps?

What type of flexible material do you recommend to print these caps? I tried PLA on one and the snaps just broke off too easily.

I see what you mean, they're weak due to the layering. I've been using PLA but with very small snap overlaps so as not to stress them.
Perhaps code should also generate a rib supporting each snap, or make them thicker at the base. I'll see if i can get to it sometime.

Is it possible to make a cap in the oval shape, as shown in the initial illustration?

A real oval is not supported in the base code, but you can make a rounded rectangle (top left in the illustration) by choosing rectangle, and setting a high "hole radius" value.

Very well organized code.
This Thing double as a nice trim if you open a center hole

Thanks. Good point about the trim, maybe I'll get around to it (or someone else will).

I don't have a need at the moment but I may soon. Just bought some flexible for another job. The two together should work very well.