OpenSCAD render of the toilet-roll holder: a wall disc with a horizontal and a vertical arm

Toilet-roll holder

Designed to fit two existing drill holes — a holder whose hole spacing can be adjusted via a single variable. With the complete OpenSCAD source.

OpenSCAD render of the holder

To fit two existing drill holes, I designed a toilet-roll holder. By adjusting the value of the variable a, the spacing of the holes can easily be increased.

The rounding of the vertical cylinder is achieved in lines 40–41 by adding a truncated cone on top.

// hole spacing in the wall
a = 25.46;
// diameter of the wall disc
b = a*2;
// height of the wall disc
c= 8;
// diameter of the wall-mounting hole
d = 3;
// length of the lower arm
e = 81.28;
// diameter of the lower arm
f = 18;
// length of the upper arm
g = 120;
// diameter of the upper arm
h = 16;
// offset of the upper arm from 0
i = 81.28;
$fn=100;
Bodenplatte();
translate([0,0,c])
cylinder(d=f,h=e);
translate([0,0,i])
rotate([0,90,0])
union() {
    cylinder(d=h, h = g-1);
    translate([0,0,g-1])
    cylinder(d1=h, d2=h-2, h = 1);
}
module Bodenplatte() {
    difference() {
        cylinder(d=b, h =c);
        translate([0,a/2,0])
        Loch();
        translate([0,-a/2,0])
        Loch();
    }
}
module Loch() {
    cylinder(d=d, h =c-1);
    translate([0,0,c-1])
    cylinder(d1=d, d2=d+2, h =1);
}

And this is how the printed result looks:

The finished printed holder

Es ist ein unerwarteter Fehler aufgetreten. Neu laden 🗙

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.