1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-17 14:18:13 +01:00
dotSCAD/examples/taiwan/TaiwaneseBlackBear.scad

45 lines
1.7 KiB
OpenSCAD
Raw Normal View History

2020-01-28 09:52:16 +08:00
use <shape_taiwan.scad>;
2020-05-20 16:54:02 +08:00
use <voxel/vx_polyline.scad>;
use <voxel/vx_sphere.scad>;
use <voxel/vx_cylinder.scad>;
use <voxel/vx_polygon.scad>;
2019-07-05 21:09:48 +08:00
2019-07-06 07:51:14 +08:00
module blocks(points) {
for(pt = points) {
translate(pt)
cube(1, center = true);
}
}
2019-07-05 21:09:48 +08:00
// Well, quick and dirty!!
color("MediumSeaGreen")
translate([3, -5, -27])
2020-05-20 16:54:02 +08:00
for(pt = vx_polygon([for(p = shape_taiwan(92, distance = 1)) [round(p[0]), round(p[1])]], filled = true)) {
2019-07-05 21:09:48 +08:00
translate(pt)
linear_extrude(1, scale = 0.5)
square(1, center = true);
}
color(c = [0.3, 0.3, 0.3]) {
2020-05-20 16:54:02 +08:00
blocks(vx_sphere(10));
translate([7, 0, 9]) blocks(vx_sphere(3));
translate([-7, 0, 9]) blocks(vx_sphere(3));
translate([0, 0, -13]) blocks(vx_sphere(12));
translate([6, 0, -26]) blocks(vx_cylinder([3, 4], 6));
translate([-6, 0, -26]) blocks(vx_cylinder([3, 4], 6))
2019-07-05 21:09:48 +08:00
translate([10, 0, -13]) cube([6, 5, 10], center = true);
translate([-10, 0, -13]) cube([6, 5, 10], center = true);
}
color("white") {
2020-05-20 16:54:02 +08:00
translate([3, -7, 2]) blocks(vx_sphere(2));
translate([-3, -7, 2]) blocks(vx_sphere(2));
translate([0, -7, 0]) blocks(vx_sphere(3));
translate([0, -9, -4]) blocks(vx_sphere(1));
blocks(vx_polyline([[0, -12, -10], [5, -9, -7], [8, -6, -6]]));
blocks(vx_polyline([[0, -12, -10], [5, -9, -8], [8, -6, -7]]));
blocks(vx_polyline([[0, -12, -10], [5, -9, -9], [8, -6, -8]]));
blocks(vx_polyline([[0, -12, -10], [5, -9, -9], [8, -6, -8]]));
blocks(vx_polyline([[0, -12, -10], [-5, -9, -7], [-8, -6, -6]]));
blocks(vx_polyline([[0, -12, -10], [-5, -9, -8], [-8, -6, -7]]));
blocks(vx_polyline([[0, -12, -10], [-5, -9, -9], [-8, -6, -8]]));
2019-07-05 21:09:48 +08:00
}