Last active
November 7, 2023 16:51
-
-
Save raster/494b4f9dacae0d335a6d95a63ac5ffa1 to your computer and use it in GitHub Desktop.
OpenSCAD code to position things in a circular fashion...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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