1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-29 20:08:21 +01:00

changed parameter name and supported single value

This commit is contained in:
Justin Lin 2017-05-22 08:25:52 +08:00
parent cb50b6f1cc
commit 926ec6684f

View File

@ -11,12 +11,15 @@
**/
include <__private__/__frags.scad>;
include <__private__/__is_vector.scad>;
include <__private__/__ra_to_xy.scad>;
module pie(radius, angles) {
module pie(radius, angle) {
a_step = 360 / __frags(radius);
angles = __is_vector(angle) ? angle : [0, angle];
m = floor(angles[0] / a_step) + 1;
n = floor(angles[1] / a_step);