mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-07 07:16:36 +02:00
remove offset
This commit is contained in:
@@ -13,12 +13,12 @@ sides = 3;
|
|||||||
|
|
||||||
module ring_regular_polygon(radius, thickness, sides) {
|
module ring_regular_polygon(radius, thickness, sides) {
|
||||||
hollow_out(thickness)
|
hollow_out(thickness)
|
||||||
circle(radius + thickness, $fn = sides);
|
circle(radius + thickness / 2, $fn = sides);
|
||||||
}
|
}
|
||||||
|
|
||||||
module ring_regular_polygon_sector(radius, angle, thickness, width, sides) {
|
module ring_regular_polygon_sector(radius, angle, thickness, width, sides) {
|
||||||
intersection() {
|
intersection() {
|
||||||
ring_regular_polygon(radius - 0.1, thickness + 0.2, sides);
|
ring_regular_polygon(radius, thickness + 0.2, sides);
|
||||||
rotate([0, 0, angle])
|
rotate([0, 0, angle])
|
||||||
line2d([0, 0], [0, radius * 3 + width], width);
|
line2d([0, 0], [0, radius * 3 + width], width);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user