mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-26 07:55:16 +02:00
use rand
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
use <line2d.scad>;
|
use <line2d.scad>;
|
||||||
use <arc.scad>;
|
use <arc.scad>;
|
||||||
|
use <util/rand.scad>;
|
||||||
|
|
||||||
number_of_circles = 15;
|
number_of_circles = 15;
|
||||||
minimum_radius = 3;
|
minimum_radius = 3;
|
||||||
@@ -36,7 +37,7 @@ module euler_maze(n, r, d, width = 1) {
|
|||||||
line2d(p3, p4, width = width, p1Style = "CAP_ROUND", p2Style = "CAP_ROUND");
|
line2d(p3, p4, width = width, p1Style = "CAP_ROUND", p2Style = "CAP_ROUND");
|
||||||
|
|
||||||
if(n != 0) {
|
if(n != 0) {
|
||||||
rand_a = rands(15, 180, 15)[0];
|
rand_a = rand(15, 180);
|
||||||
angle_between_gap = rand_a - gap_angle;
|
angle_between_gap = rand_a - gap_angle;
|
||||||
twoGapsCircle(outer_r, d,
|
twoGapsCircle(outer_r, d,
|
||||||
gap_angle,
|
gap_angle,
|
||||||
|
Reference in New Issue
Block a user