Skip to content

Instantly share code, notes, and snippets.

@raster
Last active November 7, 2023 16:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raster/494b4f9dacae0d335a6d95a63ac5ffa1 to your computer and use it in GitHub Desktop.
Save raster/494b4f9dacae0d335a6d95a63ac5ffa1 to your computer and use it in GitHub Desktop.
OpenSCAD code to position things in a circular fashion...
$fn=100;
distance = 10;
howMany = 3;
holeSize = 10;
startAngle = 30;
difference() {
translate([0,0,0])
cylinder(d=40, h=3, center=true);
for(variable = [startAngle : 360/howMany : 360+startAngle]) {
rotate([0,0,variable])
translate([distance,0,0])
cylinder(d=holeSize, h=3.1, center=true);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment