1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-13 18:24:28 +02:00
This commit is contained in:
Justin Lin
2020-01-27 16:47:18 +08:00
parent 606aba22a9
commit 1cf53c0c6d

View File

@@ -1,8 +1,7 @@
include <helix.scad>;
include <bezier_curve.scad>;
include <along_with.scad>;
include <shape_trapezium.scad>;
include <ellipse_extrude.scad>;
use <helix.scad>;
use <along_with.scad>;
use <shape_trapezium.scad>;
use <ellipse_extrude.scad>;
r1 = 25;
r2 = 15;
@@ -180,6 +179,14 @@ module dragon() {
$fn = 36
);
function __angy_angz(p1, p2) =
let(
dx = p2[0] - p1[0],
dy = p2[1] - p1[1],
dz = p2[2] - p1[2],
ya = atan2(dz, sqrt(dx * dx + dy * dy)),
za = atan2(dy, dx)
) [ya, za];
angy_angz = __angy_angz(path_pts[0], path_pts[1]);