mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-20 05:21:38 +02:00
add gcd
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
use <sweep.scad>;
|
use <sweep.scad>;
|
||||||
|
|
||||||
module loft(sections, slices = 1) {
|
module loft(sections, slices = 1) {
|
||||||
|
function gcd(m, n) = n == 0 ? m : gcd(n, m % n);
|
||||||
function lcm(m, n) = m * n / gcd(m, n);
|
function lcm(m, n) = m * n / gcd(m, n);
|
||||||
|
|
||||||
function inter_pts(p1, p2, n) =
|
function inter_pts(p1, p2, n) =
|
||||||
|
Reference in New Issue
Block a user