Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
OpenSCAD example for rotating about arbitrary pivot point
module rotate_about(a, v, p=[0,0,0]) {
translate(p) rotate(a,v) translate(-p) children();
}
// example usage
rotate_about([0,45,0],p=[5,0,10])
cylinder(r=5,h=10);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment