1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-04-27 09:32:25 +02:00
This commit is contained in:
Justin Lin 2021-08-08 19:25:56 +08:00
parent a129aa547c
commit da08e75e73
5 changed files with 10 additions and 7 deletions

View File

@ -122,11 +122,13 @@ module dragon_and_perl() {
[-5, 170, 0]
]);
leng_body_path = len(body_path);
angy_angz = __angy_angz(body_path[0], body_path[1]);
translate([1, 7, 14])
rotate([-135, 0, 3])
scale(1.15)
dragon_head(__angy_angz(body_path[0], body_path[1]));
rotate([0, angy_angz[0], angy_angz[1]])
dragon_head();
body_r = 6;
body_fn = 12;

View File

@ -5,7 +5,7 @@ use <paths2sections.scad>;
use <shape_trapezium.scad>;
use <ptf/ptf_rotate.scad>;
module dragon_head(angy_angz) {
module dragon_head() {
module hair() {
for(i = [16:36]) {
rotate(i * 10 + rands(0, 5, 1, i)[0])
@ -93,7 +93,7 @@ module dragon_head(angy_angz) {
circle(1, $fn = 8);
}
rotate([0, angy_angz[0] + 15, angy_angz[1]])
rotate([0, 15, 0])
translate([0, 0, -25 / 2])
scale(1.15) {
scale([0.8, 0.9, 1]) hair();

View File

@ -59,7 +59,7 @@ module hilbert_dragon() {
translate([0, 0, -2.5])
scale(0.035)
dragon_head([0, 0]);
dragon_head();
}

View File

@ -84,7 +84,8 @@ module spiral_dragon() {
translate([17.5, 0, 63])
rotate([95, 0, -10])
dragon_head(angy_angz);
rotate([0, angy_angz[0], angy_angz[1]])
dragon_head();
}
module flame_mountain(beginning_radius, fn, amplitude,curve_step, smoothness) {

View File

@ -35,9 +35,9 @@ module torus_knot_dragon() {
h_angy_angz = __angy_angz(d_path[len(d_path) - 2], d_path[len(d_path) - 1]);
translate([2.5, -1.1, .55])
rotate([0, 28, 245])
scale(0.07)
dragon_head(h_angy_angz);
rotate([0, h_angy_angz[0] + 28, h_angy_angz[1] + 245])
dragon_head();
t_angy_angz = __angy_angz(d_path[1], d_path[0]);