I wish to draw in openscad a motor mount for rc car.
Most of what I need I can do but cannot find a way to draw 3 of 1mm circles each exactly 8.5mm from center of 12 mm radius circle and exactly 120degrees apart.
Hi,
I do not know OpenSCAD as I use FreeCAD.
The solution is easy. Draw 1 circle and then use the function “PolarPattern” if that exists in OpenSCAD.
PolarPattern asks you how many circles you want in a certain amount of degrees, eg. in your case that would be 3 circles in 360°.
regards Rainer
Did you find a solution for this? I can help with this if you are still in need.
Thank you for the offer and yes I would like a solution in openscad.
I’m not sure what you mean by circles exactly, but I’m guessing you mean holes, so you might want something like this:
$fn = 30;
eps = 0.001;
height = 2;
difference() {
cylinder(h = height, r = 12.0, center = true);
translate([8.5, 0, 0])
cylinder(h = height + eps, d = 1.0, center = true);
rotate([0, 0, 120])
translate([8.5, 0, 0])
cylinder(h = height + eps, d = 1.0, center = true);
rotate([0, 0, 240])
translate([8.5, 0, 0])
cylinder(h = height + eps, d = 1.0, center = true);
}
I should mention that this code could be made cleaner, refactored, etc., but I wanted to make the simplest code possible here so that it’s easier to read.
Thank you. That does exactly what I wanted.