1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-17 22:28:16 +01:00
This commit is contained in:
Justin Lin 2021-08-03 09:19:44 +08:00
parent 05737e0512
commit 9ad1835322

View File

@ -8,17 +8,7 @@ use <dragon_head.scad>;
use <dragon_scales.scad>;
use <dragon_claw.scad>;
dragon();
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(pow(dx, 2) + pow(dy, 2))),
za = atan2(dy, dx)
) [ya, za];
dragon_and_perl();
module one_segment(body_r, body_fn, one_scale_data) {
// scales
@ -110,7 +100,16 @@ module foot() {
dragon_claw();
}
module dragon() {
module dragon_and_perl() {
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(pow(dx, 2) + pow(dy, 2))),
za = atan2(dy, dx)
) [ya, za];
body_path = bezier_curve(0.0225, [
[0, 0, 15],
[0, 30, 0],