mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-10 08:44:20 +02:00
changed parameter name and supported single value
This commit is contained in:
@@ -11,12 +11,15 @@
|
|||||||
**/
|
**/
|
||||||
|
|
||||||
include <__private__/__frags.scad>;
|
include <__private__/__frags.scad>;
|
||||||
|
include <__private__/__is_vector.scad>;
|
||||||
include <__private__/__ra_to_xy.scad>;
|
include <__private__/__ra_to_xy.scad>;
|
||||||
|
|
||||||
module pie(radius, angles) {
|
module pie(radius, angle) {
|
||||||
|
|
||||||
a_step = 360 / __frags(radius);
|
a_step = 360 / __frags(radius);
|
||||||
|
|
||||||
|
angles = __is_vector(angle) ? angle : [0, angle];
|
||||||
|
|
||||||
m = floor(angles[0] / a_step) + 1;
|
m = floor(angles[0] / a_step) + 1;
|
||||||
n = floor(angles[1] / a_step);
|
n = floor(angles[1] / a_step);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user