1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-11 09:14:29 +02:00
This commit is contained in:
Justin Lin
2021-08-23 08:44:51 +08:00
parent 82ec74eee1
commit d875d41e4c
2 changed files with 7 additions and 7 deletions

View File

@@ -7,11 +7,11 @@ font_size = 14;
smoothing = false; // warning: previewing is slow if it's true. smoothing = false; // warning: previewing is slow if it's true.
scale(smoothing ? 0.985 : 1) scale(smoothing ? 0.985 : 1)
tumbler(); daruma();
wish_decoration(text, font, font_size); wish_decoration(text, font, font_size);
module tumbler() { module daruma() {
radius = 10; radius = 10;
module body() { module body() {

View File

@@ -1,16 +1,16 @@
use <tumbler.scad>; use <daruma.scad>;
use <arc.scad>; use <arc.scad>;
use <hull_polyline2d.scad>; use <hull_polyline2d.scad>;
text = "順暢"; text = "順暢";
font = "思源黑體 Heavy"; font = "思源黑體 Heavy";
font_size = 14; font_size = 14;
model = "both"; // [tumbler, helmet, both] model = "both"; // [daruma, helmet, both]
if(model == "tumbler") { if(model == "daruma") {
difference() { difference() {
union() { union() {
tumbler(); daruma();
wish_decoration(text, font, font_size); wish_decoration(text, font, font_size);
} }
translate([0, 0, -23]) translate([0, 0, -23])
@@ -25,7 +25,7 @@ if(model == "tumbler") {
else { else {
difference() { difference() {
union() { union() {
tumbler(); daruma();
wish_decoration(text, font, font_size); wish_decoration(text, font, font_size);
} }
translate([0, 0, -23]) translate([0, 0, -23])