add models

This commit is contained in:
Кобелев Андрей Андреевич 2024-12-12 10:59:23 +03:00
parent 73fa334d7f
commit 6a0cc985d9
4 changed files with 130 additions and 87 deletions

View File

@ -9,93 +9,119 @@ assert(Version>=useVersion,str("lib version ",Version," detected, install ",useV
license="CC0"; license="CC0";
/*[Basics]*/ /*[Basics]*/
nozzle=.2; nozzle=.6;
bed=true; bed=false;
pPos=[0,0]; pPos=[10,10];
info=true; info=true;
name=undef; name=undef;
// Parameters for the snake-like candle
snake_length = 50; // Length of the candle
snake_radius = 20; // Base radius of the candle
twist_amount = 20; // Amount of twist in the snake shape
height_variation = 6; // Variation in height to create a snake-like effect
// translate([10,0,-15]){
// %cylinder(h = 20, r1 = 22, r2 = 20, $fn = 100);
// }
// intersection() {
// cylinder(h = 120, r1 = 10, r2 = 10, $fn = 100);
// translate([0,0,0]){
// Coil(10, grad=4635,rot=2,points=Kreis(6,rand=0),help=true);
// }
// }
Buchtung(help=true, l = 15, fn= 100, fn2=20);
// //
translate([15,0,0]){
Buchtung(help=true, l = 15, r=[2.5, 0, 0, 0], rmin=[2.0, 2.0, 2.0, 2.0], deltaPhi=-360, phase=360, fn= 100, fn2=20);
WaveEx(
grad=0,
h=snake_length,
r=snake_radius,
ry=twist_amount,
f=3,
fy=height_variation, // 😃
a=0,
ay=1.3, //
fv=1.4,
fvy=4,
tf=5,
trx=0,
try=0,
tfy=3.2,
tfv=6,
tfvy=10,
ta=1.5,
tay=1.7,
fn=150,
fn2=150,
rot=0,
scale=1,
scaley=1,
close=false,
p=4,
name=undef,
help=1
);
hull() {
hull() {
hull() {
sphere(d=20);
translate([0,0,50]){
minkowski() {
sphere(r = 20, d=20, $fn=5);
cylinder(r=2,h=1, center=true);
}
}
} }
translate([10,10,25]){
rotate([10,80,40])
minkowski() {
sphere(d=20, $fn=5);
cylinder(r=2,h=1, center=true);
}
}
}
translate([-10,-10,25]){
rotate([10,30,40])
minkowski() {
OctaH(help=true, d=20);
cylinder(r=2,h=1, $fn=50);
}
}
}
// // Parameters for the snake-like candle
// snake_length = 50; // Length of the candle
// snake_radius = 20; // Base radius of the candle
// twist_amount = 20; // Amount of twist in the snake shape
// height_variation = 6; // Variation in height to create a snake-like effect
// //
// WaveEx(
// grad=0,
// h=snake_length,
// r=snake_radius,
// ry=twist_amount,
// f=3,
// fy=height_variation, // 😃
// a=0,
// ay=1.3, //
// fv=1.4,
// fvy=4,
// tf=5,
// trx=0,
// try=0,
// tfy=3.2,
// tfv=6,
// tfvy=10,
// ta=1.5,
// tay=1.7,
// fn=150,
// fn2=150,
// rot=0,
// scale=1,
// scaley=1,
// close=false,
// p=4,
// name=undef,
// help=1
// );
// hull() {
// hull() {
// hull() {
// sphere(d=20);
// translate([0,0,50]){
// minkowski() {
// sphere(r = 20, d=20, $fn=5);
// cylinder(r=2,h=1, center=true);
// }
// }
// }
// translate([10,10,25]){
// rotate([10,80,40])
// minkowski() {
// sphere(d=20, $fn=5);
// cylinder(r=2,h=1, center=true);
// }
// }
// }
// translate([-10,-10,25]){
// rotate([10,30,40])
// minkowski() {
// OctaH(help=true, d=20);
// cylinder(r=2,h=1, $fn=50);
// }
// }
// }
// Spirale(help=1, grad=10, radius=0, exp=1, fn=2)Linse( messpunkt=false); // Spirale(help=1, grad=10, radius=0, exp=1, fn=2)Linse( messpunkt=false);
// Rundrum(fn=40, grad=40, r=3, twist=1, x=25, y=10, r=195)Linse(help=1, dia=12, r=6.5, messpunkt=false); // Rundrum(fn=40, grad=40, r=3, twist=1, x=25, y=10, r=195)Linse(help=1, dia=12, r=6.5, messpunkt=false);

View File

@ -4,7 +4,7 @@ include <tube.scad>;
designVersion="1.0"; designVersion="1.0";
designer="Andey Belvedersky"; designer="Andey Belvedersky";
minkowski() { // minkowski() {
// Стакан // Стакан
union(){ union(){
// Поднимаем на 40 мм вверх // Поднимаем на 40 мм вверх
@ -25,6 +25,6 @@ minkowski() {
} }
} }
} }
sphere(.5, $fn = 5); // sphere(.5, $fn = 5);
} //}
render(); render();

View File

@ -9,26 +9,25 @@ color([0.5,0.2,0.2]) {
union() { union() {
// Сама ручка // Сама ручка
// Толщина 10мм, радиус 40 мм, высота 15мм, разрешение 150 // Толщина 10мм, радиус 40 мм, высота 15мм, разрешение 150
minkowski() { // minkowski() {
tube(10, 40, 40, 15, 150); tube(10, 40, 40, 15, 150);
sphere(.35, $fn = 20); //sphere(.35, $fn = 20);
} }
// Площадка // Площадка
translate([ 40, 0, 7.5 ]) { translate([ 40, 0, 7.5 ]) {
minkowski() { // minkowski() {
cube(center = true, size = [ 10, 20, 15 ], $fn = 150); cube(center = true, size = [ 10, 20, 15 ], $fn = 150);
sphere(.35, $fn = 20); // sphere(.35, $fn = 20);
} //}
} }
// Литник // Литник
translate([ 39.7, -5, 0 ]) { translate([ 39.7, -5, 0 ]) {
minkowski() { // minkowski() {
cube(center = false, size = [ 25, 10, 15 ], $fn = 100); cube(center = false, size = [ 25, 10, 15 ], $fn = 100);
sphere(.35, $fn = 20); // sphere(.35, $fn = 20);
} // }
}
} }
} }
render(); render();

18
models/garland/box.scad Normal file
View File

@ -0,0 +1,18 @@
minkowski() {
difference(){
cube([13.5+4,34,7+2],center=true);
translate([0,2,0]){
cube([13.5,34,7],center=true);
translate([0,-18.5,0]){
cube([4,4,2],center=true);
}
}
}
cylinder(r=0.1, center=false);
}
render();