1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-06 23:06:43 +02:00

fixed module name

This commit is contained in:
Justin Lin
2017-03-19 08:09:37 +08:00
parent 75e5050b75
commit 629ca4b706

View File

@@ -10,7 +10,7 @@
* *
* @see https://openhome.cc/eGossip/OpenSCAD/lib-arc.html * @see https://openhome.cc/eGossip/OpenSCAD/lib-arc.html
* *
**/ **/
module arc(radius, angles, width, width_mode = "LINE_CROSS", fn = 24) { module arc(radius, angles, width, width_mode = "LINE_CROSS", fn = 24) {
w_offset = width_mode == "LINE_CROSS" ? [width / 2, -width / 2] : ( w_offset = width_mode == "LINE_CROSS" ? [width / 2, -width / 2] : (
@@ -18,7 +18,7 @@ module arc(radius, angles, width, width_mode = "LINE_CROSS", fn = 24) {
); );
difference() { difference() {
sector(radius + w_offset[0], angles, fn); circular_sector(radius + w_offset[0], angles, fn);
sector(radius + w_offset[1], angles, fn); circular_sector(radius + w_offset[1], angles, fn);
} }
} }