mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-09-02 03:02:34 +02:00
rename
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
use <shape_taiwan.scad>;
|
||||
use <pixel/px_polyline.scad>;
|
||||
use <pixel/px_sphere.scad>;
|
||||
use <pixel/px_cylinder.scad>;
|
||||
use <pixel/px_polygon.scad>;
|
||||
use <voxel/vx_polyline.scad>;
|
||||
use <voxel/vx_sphere.scad>;
|
||||
use <voxel/vx_cylinder.scad>;
|
||||
use <voxel/vx_polygon.scad>;
|
||||
|
||||
module blocks(points) {
|
||||
for(pt = points) {
|
||||
@@ -14,32 +14,32 @@ module blocks(points) {
|
||||
// Well, quick and dirty!!
|
||||
color("MediumSeaGreen")
|
||||
translate([3, -5, -27])
|
||||
for(pt = px_polygon([for(p = shape_taiwan(92, distance = 1)) [round(p[0]), round(p[1])]], filled = true)) {
|
||||
for(pt = vx_polygon([for(p = shape_taiwan(92, distance = 1)) [round(p[0]), round(p[1])]], filled = true)) {
|
||||
translate(pt)
|
||||
linear_extrude(1, scale = 0.5)
|
||||
square(1, center = true);
|
||||
}
|
||||
|
||||
color(c = [0.3, 0.3, 0.3]) {
|
||||
blocks(px_sphere(10));
|
||||
translate([7, 0, 9]) blocks(px_sphere(3));
|
||||
translate([-7, 0, 9]) blocks(px_sphere(3));
|
||||
translate([0, 0, -13]) blocks(px_sphere(12));
|
||||
translate([6, 0, -26]) blocks(px_cylinder([3, 4], 6));
|
||||
translate([-6, 0, -26]) blocks(px_cylinder([3, 4], 6))
|
||||
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))
|
||||
translate([10, 0, -13]) cube([6, 5, 10], center = true);
|
||||
translate([-10, 0, -13]) cube([6, 5, 10], center = true);
|
||||
}
|
||||
color("white") {
|
||||
translate([3, -7, 2]) blocks(px_sphere(2));
|
||||
translate([-3, -7, 2]) blocks(px_sphere(2));
|
||||
translate([0, -7, 0]) blocks(px_sphere(3));
|
||||
translate([0, -9, -4]) blocks(px_sphere(1));
|
||||
blocks(px_polyline([[0, -12, -10], [5, -9, -7], [8, -6, -6]]));
|
||||
blocks(px_polyline([[0, -12, -10], [5, -9, -8], [8, -6, -7]]));
|
||||
blocks(px_polyline([[0, -12, -10], [5, -9, -9], [8, -6, -8]]));
|
||||
blocks(px_polyline([[0, -12, -10], [5, -9, -9], [8, -6, -8]]));
|
||||
blocks(px_polyline([[0, -12, -10], [-5, -9, -7], [-8, -6, -6]]));
|
||||
blocks(px_polyline([[0, -12, -10], [-5, -9, -8], [-8, -6, -7]]));
|
||||
blocks(px_polyline([[0, -12, -10], [-5, -9, -9], [-8, -6, -8]]));
|
||||
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]]));
|
||||
}
|
@@ -1,4 +1,4 @@
|
||||
use <pixel/px_gray.scad>;
|
||||
use <voxel/vx_gray.scad>;
|
||||
use <shape_taiwan.scad>;
|
||||
|
||||
levels = [
|
||||
@@ -132,7 +132,7 @@ levels = [
|
||||
[196, 188, 193, 191, 185, 194, 191, 190, 196, 191, 194, 195, 162, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
|
||||
];
|
||||
|
||||
dots = px_gray(levels, center = true, invert = true, normalize = true);
|
||||
dots = vx_gray(levels, center = true, invert = true, normalize = true);
|
||||
linear_extrude(1.5) difference() {
|
||||
translate([6.5, -10])
|
||||
rotate(22.5)
|
||||
|
Reference in New Issue
Block a user