Thingiverse

box in one line of code by Predsedatel
by Thingiverse
Last crawled date: 4 years, 2 months ago
include <"box.scad">;
boxM(A, srez, h){
/*here is the code of the figure from which to make the box*/
};
let's say so
boxM(50, 20, 10){
cube(100, true);
};
or so
boxM(50, 20, 10){
minkowski(){
cube(100, true);
sphere(5, $fn=30);
};
};
or so
include<"box.scad">;
color("green")
boxM(80, 20, 4, 0.97, 0.98, 0.97)
minkowski(){
linear_extrude(height = 100, center = true)
polygon( for(a=[0:3:359])
[(5*sin(6*a)+55)*sin(a), (5*sin(6*a)+55)*cos(a)]
] );
sphere(5,$fn=30);
};
module boxM(A, srez, h, nak=1, zak=0.98, k=0.98, x=0.9, y=0.9, z=0.9)
The first three parameters are required the rest are set by default.
A - the position in the XY-plane lid {X=A, Y=A} and box {X=A, Y=-A};
srez - offset of the cut line between the lid and the box relative to the middle;
h - the height of the rim;
nak - the slope of the rim;
zak - the adjustable parameter is the tightness of the closure;
k - adjusts the ratio of the thickness of the sides on the lid and box;
x,y,z - the volume of the cut cavity axis X, Y, Z (0.9 --> 90%), wall thickness 5%;
www.nashkolxoz.ru made by Predsedatel.
boxM(A, srez, h){
/*here is the code of the figure from which to make the box*/
};
let's say so
boxM(50, 20, 10){
cube(100, true);
};
or so
boxM(50, 20, 10){
minkowski(){
cube(100, true);
sphere(5, $fn=30);
};
};
or so
include<"box.scad">;
color("green")
boxM(80, 20, 4, 0.97, 0.98, 0.97)
minkowski(){
linear_extrude(height = 100, center = true)
polygon( for(a=[0:3:359])
[(5*sin(6*a)+55)*sin(a), (5*sin(6*a)+55)*cos(a)]
] );
sphere(5,$fn=30);
};
module boxM(A, srez, h, nak=1, zak=0.98, k=0.98, x=0.9, y=0.9, z=0.9)
The first three parameters are required the rest are set by default.
A - the position in the XY-plane lid {X=A, Y=A} and box {X=A, Y=-A};
srez - offset of the cut line between the lid and the box relative to the middle;
h - the height of the rim;
nak - the slope of the rim;
zak - the adjustable parameter is the tightness of the closure;
k - adjusts the ratio of the thickness of the sides on the lid and box;
x,y,z - the volume of the cut cavity axis X, Y, Z (0.9 --> 90%), wall thickness 5%;
www.nashkolxoz.ru made by Predsedatel.