mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-17 00:24:05 +02:00
Fixed corner and top/bottom edge orientations.
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -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]) =
|
||||
|
8
examples/conical_connectors.scad
Normal file
8
examples/conical_connectors.scad
Normal 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
|
8
examples/cube_connectors.scad
Normal file
8
examples/cube_connectors.scad
Normal 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
|
@@ -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
|
||||
|
@@ -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));
|
||||
}
|
||||
}
|
||||
|
@@ -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.
|
||||
|
||||
|
@@ -1,5 +1,4 @@
|
||||
include <BOSL2/constants.scad>
|
||||
include <BOSL2/shapes.scad>
|
||||
include <BOSL2/std.scad>
|
||||
include <BOSL2/debug.scad>
|
||||
|
||||
|
||||
|
8
examples/sphere_connectors.scad
Normal file
8
examples/sphere_connectors.scad
Normal 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
|
@@ -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")
|
||||
|
Reference in New Issue
Block a user