Last active
October 14, 2016 12:24
-
-
Save t-paul/51d2349ff7e8d994eac95169ecca68ba to your computer and use it in GitHub Desktop.
CAM profile animation
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
function d(a) = a % 360 < 180 ? 30 + 5 * sin(3 * a) : 30; | |
points = [ for (a = [0 : 359]) let(t = a + $t * 360) [ | |
d(t) * -sin(a), | |
d(t) * cos(a) | |
] ]; | |
polygon(points); | |
translate([-d($t * 360 + 90) - 10, 0]) { | |
color("blue") square([20, 1], center = true); | |
color("red") circle(3); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment