initial upload

This commit is contained in:
kaisa-marysia 2024-01-06 21:04:09 +01:00
parent 27e8f2dac8
commit 1dd60887f1
16 changed files with 377 additions and 1 deletions

23
Amulett/Amulett.scad Normal file
View file

@ -0,0 +1,23 @@
RING = "ring1.svg"; // Outer Ring Graphic
SYM = "symbol1.svg"; // Inner Symbol Graphic
union() { // Union block for amulett and ring
translate([0,0,0]) { // on which height should outer ring and symbol start
scale([1,1,10]) { // scale and thinkness of outer ring and symbol
color([0.5,0.5,0.5]) linear_extrude(1) {
import(file = RING, center = true, dpi = 300); // import outer ring vector graphic with a dpi of 300 }
import(file = SYM, center = true, dpi = 300); // import inner symbol vector graphic with a dpi of 300
}
}
};
color([0.2,0.2,0.2]) cylinder(h = 8, r = 128, center = true); // the base on which ring + symbol should be printed
translate([-4,135,-4]){ // move ring for chain on top of amulett
color([0.2,0.2,0.2]) difference() { // create a diference between two cylinders to a ring for a chain
cylinder(h = 14, r = 20, center = false); // cylinder with filling
translate([0,0,-1])
cylinder(h=20,r=16, center= false); // cylinder which is cut off
};
};
};

3
Amulett/README.md Normal file
View file

@ -0,0 +1,3 @@
![](https://github.com/Kaisa-Marysia/OSCAD/blob/main/Amulett/output.gif?raw=true)
There are three different rings and graphics as SVG in this repository. Just change the name under `RING` or `SYM` from e.g. ring1.svg -> ring2.svg

BIN
Amulett/output.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 752 KiB

37
Amulett/ring1.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 13 KiB

38
Amulett/ring2.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 49 KiB

37
Amulett/ring3.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 32 KiB

41
Amulett/symbol1.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 18 KiB

37
Amulett/symbol2.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 12 KiB

37
Amulett/symbol3.svg Normal file
View file

@ -0,0 +1,37 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="174.491mm"
height="173.144mm"
viewBox="0 0 174.491 173.144"
version="1.1"
id="svg1"
inkscape:version="1.3.2 (091e20ef0f, 2023-11-25, custom)"
sodipodi:docname="symbol3.svg"
xml:space="preserve"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg"><sodipodi:namedview
id="namedview1"
pagecolor="#505050"
bordercolor="#ffffff"
borderopacity="1"
inkscape:showpageshadow="0"
inkscape:pageopacity="0"
inkscape:pagecheckerboard="1"
inkscape:deskcolor="#d1d1d1"
inkscape:document-units="mm"
inkscape:zoom="0.26613263"
inkscape:cx="259.26922"
inkscape:cy="619.99162"
inkscape:current-layer="layer1"
showgrid="false" /><defs
id="defs1" /><g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"><path
id="path5"
style="fill:#000000;fill-rule:evenodd;stroke-width:0.665;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.8;paint-order:stroke fill markers"
d="M 76.335392 0 A 87.245341 87.245341 0 0 0 0 86.465007 A 87.245341 87.245341 0 0 0 87.245837 173.71033 A 87.245341 87.245341 0 0 0 174.49116 86.465007 A 87.245341 87.245341 0 0 0 98.853398 0.016536458 A 56.782043 56.782043 0 0 1 144.0279 55.588855 A 56.782043 56.782043 0 0 1 118.70697 102.53328 A 56.469048 56.469048 0 0 1 117.42591 103.46862 A 56.782043 56.782043 0 0 1 114.07624 105.29797 A 56.469048 56.469048 0 0 1 108.99593 107.81667 A 56.782043 56.782043 0 0 1 106.48807 108.75253 A 56.469048 56.469048 0 0 1 99.616659 110.80151 A 56.782043 56.782043 0 0 1 98.09117 111.13327 A 56.469048 56.469048 0 0 1 89.232279 112.21124 A 29.719889 29.719889 0 0 1 116.96547 141.85026 A 29.719889 29.719889 0 0 1 87.245837 171.57041 A 29.719889 29.719889 0 0 1 57.525688 141.85026 A 29.719889 29.719889 0 0 1 85.575138 112.26705 A 56.469048 56.469048 0 0 1 38.088631 83.831576 A 56.782043 56.782043 0 0 1 37.60804 82.952043 A 56.469048 56.469048 0 0 1 34.290413 75.723027 A 56.782043 56.782043 0 0 1 33.579862 73.819267 A 56.469048 56.469048 0 0 1 31.835783 67.237756 A 56.782043 56.782043 0 0 1 31.250806 64.549032 A 56.469048 56.469048 0 0 1 30.771248 59.0889 A 56.782043 56.782043 0 0 1 30.463774 55.588855 A 56.782043 56.782043 0 0 1 30.99294 49.614543 A 56.469048 56.469048 0 0 1 31.168123 47.632751 A 56.782043 56.782043 0 0 1 32.560286 41.233142 A 56.469048 56.469048 0 0 1 33.041911 39.4255 A 56.782043 56.782043 0 0 1 35.488273 32.866728 A 56.469048 56.469048 0 0 1 35.886698 32.002698 A 56.782043 56.782043 0 0 1 76.335392 0 z M 32.731335 21.484993 A 3.4271454 3.4271454 0 0 1 36.158516 24.912174 A 3.4271454 3.4271454 0 0 1 32.731335 28.339355 A 3.4271454 3.4271454 0 0 1 29.304154 24.912174 A 3.4271454 3.4271454 0 0 1 32.731335 21.484993 z M 141.8208 21.484993 A 3.4271454 3.4271454 0 0 1 145.24798 24.912174 A 3.4271454 3.4271454 0 0 1 141.8208 28.339355 A 3.4271454 3.4271454 0 0 1 138.39362 24.912174 A 3.4271454 3.4271454 0 0 1 141.8208 21.484993 z M 24.187154 31.443559 A 5.3899654 5.3899654 0 0 1 29.577523 36.833927 A 5.3899654 5.3899654 0 0 1 24.187154 42.223263 A 5.3899654 5.3899654 0 0 1 18.797302 36.833927 A 5.3899654 5.3899654 0 0 1 24.187154 31.443559 z M 148.40696 31.443559 A 5.3899654 5.3899654 0 0 1 153.79681 36.833927 A 5.3899654 5.3899654 0 0 1 148.40696 42.223263 A 5.3899654 5.3899654 0 0 1 143.01711 36.833927 A 5.3899654 5.3899654 0 0 1 148.40696 31.443559 z M 148.40696 31.804777 A 5.0290491 5.0290491 0 0 0 143.37781 36.833927 A 5.0290491 5.0290491 0 0 0 148.40696 41.862561 A 5.0290491 5.0290491 0 0 0 153.43611 36.833927 A 5.0290491 5.0290491 0 0 0 148.40696 31.804777 z M 24.187154 31.896244 A 4.9373269 4.9373269 0 0 0 19.250505 36.833927 A 4.9373269 4.9373269 0 0 0 24.187154 41.771094 A 4.9373269 4.9373269 0 0 0 29.124837 36.833927 A 4.9373269 4.9373269 0 0 0 24.187154 31.896244 z M 163.88715 58.397986 A 9.1278826 9.1278826 0 0 1 155.08201 65.169149 A 9.1278826 9.1278826 0 0 1 151.72976 64.508207 A 58.079988 58.079988 0 0 0 163.88715 58.397986 z M 8.8966146 58.606242 A 58.079988 58.079988 0 0 0 20.892265 64.551615 A 9.1278826 9.1278826 0 0 1 17.65577 65.168632 A 9.1278826 9.1278826 0 0 1 8.8966146 58.606242 z M 17.282149 71.711385 A 14.787037 14.787037 0 0 1 32.060575 86.153914 A 58.079988 58.079988 0 0 0 19.554362 84.774154 A 58.079988 58.079988 0 0 0 2.5569499 87.363143 A 14.787037 14.787037 0 0 1 2.4949382 86.497563 A 14.787037 14.787037 0 0 1 17.282149 71.711385 z M 155.84837 71.711385 A 14.787037 14.787037 0 0 1 170.63558 86.497563 A 14.787037 14.787037 0 0 1 170.62059 86.71047 A 58.079988 58.079988 0 0 0 155.79979 84.774154 A 58.079988 58.079988 0 0 0 141.08079 86.769381 A 14.787037 14.787037 0 0 1 141.06167 86.497563 A 14.787037 14.787037 0 0 1 155.84837 71.711385 z M 36.47736 99.577384 A 20.79661 20.79661 0 0 1 53.800334 108.87036 A 21.750487 21.750487 0 0 0 41.587126 105.11296 A 21.750487 21.750487 0 0 0 19.836515 126.86357 A 21.750487 21.750487 0 0 0 21.28759 134.52047 A 20.79661 20.79661 0 0 1 15.680697 120.37405 A 20.79661 20.79661 0 0 1 36.47736 99.577384 z M 136.91567 99.577384 A 20.79661 20.79661 0 0 1 157.71234 120.37405 A 20.79661 20.79661 0 0 1 151.61452 135.01088 A 21.750487 21.750487 0 0 0 153.24904 126.86357 A 21.750487 21.750487 0 0 0 131.49843 105.11296 A 21.750487 21.750487 0 0 0 119.91413 108.47038 A 20.79661 20.79661 0 0 1 136.91567 99.577384 z " /></g></svg>

After

Width:  |  Height:  |  Size: 5.5 KiB

69
Badge/Badge.scad Normal file
View file

@ -0,0 +1,69 @@
string = "Name"; // Name which should be printed
logo = "Logo.svg"; // Path To File
logopos = -50; // Logoposition
center = true; // [true/false]
font = "Ubuntu:style=bold"; // Font name and style
letter_size = 50;
height = 10;
offset = 20;
spacing = 0.9;
current_color = "ALL";
hi_color = "#3FFF21";
lo_color = "#FB48C4";
module multicolor(color) {
if (current_color != "ALL" && current_color != color) {
} else {
color(color)
children();
}
}
union(){
translate([logopos,-5,0]) {
union(){
multicolor(lo_color) resize([0,0,5]) translate([0,0,-0.8]) {
linear_extrude(1) offset(offset*1.5) resize([letter_size*2,letter_size*2,0]) {
import(logo, center=center);
}
}
translate([0,0,0.1]){
multicolor(hi_color) linear_extrude(height) resize([letter_size*2,letter_size*2,0]) {
import(logo, center=center);
}
}
}
}
}
union(){
multicolor(lo_color) resize([0,0,5]) translate([0,0,-0.8]) {
linear_extrude(1) offset(offset*1.5) text(string, size = letter_size, font = font, $fn = 64, spacing = spacing);
}
translate([0,0,0.1]){
multicolor(hi_color) linear_extrude(height) text(string, size = letter_size, font = font, $fn = 64, spacing = spacing);
}
}
translate([0,0,0.1]){
multicolor(hi_color) difference(){
union(){
linear_extrude(height) offset(offset*1.5) text(string, size = letter_size, font = font, $fn = 64, spacing = spacing);
translate([logopos,-5,0]) {
linear_extrude(height) offset(offset*1.5) resize([letter_size*2,letter_size*2,0]) {
import(logo, center=center);
}
}
}
multicolor(hi_color) union(){
linear_extrude(height*1.1) offset(offset) text(string, size = letter_size, font = font, $fn = 64, spacing = spacing);
translate([logopos,-5,0]) {
linear_extrude(height*1.1) offset(offset) resize([letter_size*2,letter_size*2,0]) {
import(logo, center=center);
}
}
}
}
}

4
Badge/README.md Normal file
View file

@ -0,0 +1,4 @@
This file creates a Badge with your name and a graphic asset. Just enter under `string` your name and name the path to your svg under `logo`.
You are able to set the position of the graphic under `logopos`
![](https://raw.githubusercontent.com/Kaisa-Marysia/OSCAD/main/Badge/output.gif)

BIN
Badge/output.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1,002 KiB

View file

@ -1,2 +1,3 @@
# OSCAD # OSCAD
In this repository I share my Open SCAD Files, for generative modells.
As long nothing else is mentioned, all files linced under [Creative Commons CC-BY](https://creativecommons.org/licenses/by/4.0/)

1
Rock-Generator/README.md Normal file
View file

@ -0,0 +1 @@
![3D Modell off a random generated crystal](https://raw.githubusercontent.com/Kaisa-Marysia/OSCAD/main/Rock-Generator/output.gif).

View file

@ -0,0 +1,48 @@
scale=30;
r_facets = rands(5,10,1)[0];
facets=r_facets;
r_height = rands(2,4,1)[0];
height=r_height;
r_plane = rands(0,10,1)[0];
plane=r_plane;
r_top = rands(1,2,1)[0];
top=1;
r_cut = rands(0,20,1)[0];
cut=r_cut;
half=scale/1.5;
$fn=facets;
// Rock Generator
translate([0,0,-10]){
difference(){
// Base model
union(){
translate([0,0,0])
cylinder(h=scale*height-cut,d1=scale,d2=half*3);
translate([0,0,0+scale*height-cut])
cylinder(h=(half*3)/top,d1=half*3,d2=plane);
}
// Model which should be removed from the base model
scale([0.8,0.8,0.95]){
union(){
translate([0,0,0])
cylinder(h=scale*height-cut,d1=scale,d2=half*3);
translate([0,0,0+scale*height-cut])
cylinder(h=(half*3)/top,d1=half*3,d2=plane);
}
}
}
}
// Socket
translate([50,0,-5]){
difference(){
cylinder(h=10,d1=scale*1.3,d2=scale*1.3, center= true);
union(){
translate([0,0,0])
cylinder(h=scale*height-cut,d1=scale,d2=half*3);
translate([0,0,0+scale*height-cut])
cylinder(h=(half*3)/top,d1=half*3,d2=plane);
}
}
}

BIN
Rock-Generator/output.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 967 KiB