Made small change to a code of yours that have seen on a blog #38
UMineiro
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
This module is adapted from the one described on https://openhome.cc/eGossip/OpenSCAD/SectorArc.html
Just added an eccentricity parameter to draw ellipses too and set the fn parameter to the global $fn value by default
module sector(radius, angles, eccentricity = [ 1, 1], fn = $fn) {
r = radius / cos(180 / fn);
step = -360 / fn;
}
module arc(radius, angles, width = 1, eccentricity = [ 1, 1], fn = $fn) {
scale ( eccentricity ) difference() {
sector(radius + width, angles, fn);
sector(radius, angles, fn);
}
}
Beta Was this translation helpful? Give feedback.
All reactions