Fixed corner and top/bottom edge orientations.

This commit is contained in:
Revar Desmera
2019-04-22 01:08:41 -07:00
parent cc36235736
commit 7e1598d66d
18 changed files with 550 additions and 465 deletions

View File

@@ -1,17 +1,13 @@
include <BOSL2/constants.scad>
include <BOSL2/transforms.scad>
include <BOSL2/primitives.scad>
include <BOSL2/shapes.scad>
include <BOSL2/debug.scad>
include <BOSL2/std.scad>
cuboid([60,40,40], fillet=5, edges=EDGES_Z_ALL, align="bottom") {
attach("top") rounded_prismoid([60,40],[20,20], h=50, r1=5, r2=10) {
attach("top") cylinder(d=20, h=30) {
attach("top") cylinder(d1=50, d2=30, h=12);
cuboid([60,40,40], fillet=5, edges=EDGES_Z_ALL, align=BOTTOM) {
attach(TOP, BOTTOM) rounded_prismoid([60,40],[20,20], h=50, r1=5, r2=10) {
attach(TOP) cylinder(d=20, h=30) {
attach(TOP) cylinder(d1=50, d2=30, h=12);
}
for (a = ["front", "back", "left", "right"]) {
for (a = [FRONT, BACK, LEFT, RIGHT]) {
attach(a) cylinder(d1=14, d2=5, h=20) {
attach("top", "left", overlap=5) prismoid([30,20], [20,20], h=10, shift=[-7,0]);
attach(TOP, LEFT, overlap=5) prismoid([30,20], [20,20], h=10, shift=[-7,0]);
}
}
}

View File

@@ -1,7 +1,6 @@
include <BOSL2/constants.scad>
use <BOSL2/transforms.scad>
use <BOSL2/beziers.scad>
use <BOSL2/math.scad>
include <BOSL2/std.scad>
include <BOSL2/paths.scad>
include <BOSL2/beziers.scad>
function CR_corner(size, orient=[0,0,0], trans=[0,0,0]) =

View File

@@ -0,0 +1,8 @@
include <BOSL2/std.scad>
include <BOSL2/debug.scad>
cylinder(h=30, d1=50, d2=30) show_connectors();
// vim: noexpandtab tabstop=4 shiftwidth=4 softtabstop=4 nowrap

View File

@@ -0,0 +1,8 @@
include <BOSL2/std.scad>
include <BOSL2/debug.scad>
cube(40, center=true) show_connectors();
// vim: noexpandtab tabstop=4 shiftwidth=4 softtabstop=4 nowrap

View File

@@ -1,9 +1,8 @@
include <BOSL2/constants.scad>
include <BOSL2/primitives.scad>
include <BOSL2/std.scad>
include <BOSL2/debug.scad>
cylinder(h=30, d1=50, d2=30) show_connectors("cylinder");
cylinder(h=30, d=30) show_connectors();
// vim: noexpandtab tabstop=4 shiftwidth=4 softtabstop=4 nowrap

View File

@@ -1,6 +1,5 @@
include <BOSL2/constants.scad>
include <BOSL2/transforms.scad>
include <BOSL2/primitives.scad>
include <BOSL2/std.scad>
include <BOSL2/paths.scad>
include <BOSL2/beziers.scad>
module leaf(s) {
@@ -18,7 +17,7 @@ module leaf(s) {
module branches(minsize){
if($parent_size2.x>minsize) {
attach("top")
attach(TOP)
zrot(gaussian_rand(90,10))
zring(n=floor(log_rand(2,5,4)))
zrot(gaussian_rand(0,5))
@@ -32,7 +31,7 @@ module branches(minsize){
branches(minsize);
} else {
recolor("springgreen")
attach("top") zrot(90)
attach(TOP) zrot(90)
leaf(gaussian_rand(100,5));
}
}

View File

@@ -1,6 +1,4 @@
use <BOSL2/transforms.scad>
use <BOSL2/math.scad>
include <BOSL2/constants.scad>
include <BOSL2/std.scad>
// Shows all the orientations on cubes in their correct rotations.

View File

@@ -1,5 +1,4 @@
include <BOSL2/constants.scad>
include <BOSL2/shapes.scad>
include <BOSL2/std.scad>
include <BOSL2/debug.scad>

View File

@@ -0,0 +1,8 @@
include <BOSL2/std.scad>
include <BOSL2/debug.scad>
sphere(d=30) show_connectors();
// vim: noexpandtab tabstop=4 shiftwidth=4 softtabstop=4 nowrap

View File

@@ -1,7 +1,4 @@
include <BOSL2/constants.scad>
include <BOSL2/transforms.scad>
include <BOSL2/primitives.scad>
include <BOSL2/shapes.scad>
include <BOSL2/std.scad>
diff("hole", "body pole")