1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-29 17:30:11 +02:00
This commit is contained in:
Justin Lin
2019-10-04 09:52:15 +08:00
parent 0badb22b54
commit 982cbefec5

View File

@@ -1,3 +1,8 @@
include <rotate_p.scad>;
include <cross_sections.scad>;
include <polysections.scad>;
include <ring_extrude.scad>;
include <crystal_ball.scad>;
include <util/fibseq.scad>; include <util/fibseq.scad>;
spirals = 10; spirals = 10;
@@ -7,10 +12,12 @@ module petal(radius, thickness) {
translate([-radius * 1.5, 0, radius * 2]) translate([-radius * 1.5, 0, radius * 2])
rotate([90, 120, 90]) rotate([90, 120, 90])
intersection() { intersection() {
difference() { crystal_ball(
sphere(radius * 2); radius = radius * 2,
sphere(radius * 2 - thickness); theta = 360,
} phi = 90,
thickness = thickness
);
linear_extrude(radius * 5) hull() { linear_extrude(radius * 5) hull() {
translate([radius * 1.25, 0, 0]) circle(radius / 3); translate([radius * 1.25, 0, 0]) circle(radius / 3);
@@ -52,11 +59,11 @@ module lotus_like_flower(spirals, petals_per_spiral) {
sphere(1); sphere(1);
translate([0, 0, -fib_diff * 2.25]) translate([0, 0, -fib_diff * 2.25])
difference() { crystal_ball(
sphere(fib_diff); radius = fib_diff,
translate([-fib_diff, -fib_diff, -fib_diff * 2]) theta = 360,
cube(fib_diff * 2); phi = 90
} );
} }
lotus_like_flower(spirals, petals_per_spiral + 1, $fn = 24); lotus_like_flower(spirals, petals_per_spiral + 1, $fn = 24);