Skip to content

3DprintFIT/B252A-OpenSCAD2-Assignment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 

Repository files navigation

🇬🇧 English | 🇨🇿 Čeština


English

OpenSCAD Exercise #2 Assignment

Before submitting the assignment via GitHub, you must consent to personal data processing.

Grading

  • Your task is to sign up for the assignment using this link: https://classroom.github.com/a/GTZ6uuSy
    • Complete solution of 1 task (1 point)
    • Task does not meet the requirements (0 points)
    • Task does not follow the provided interface (0 points)
    • Maximum score is 3 points — if you complete more than 3 tasks correctly, you are doing it just for your own satisfaction.

Do not use the ^ operator. Verification is done with an older version of OpenSCAD. You can use the pow function.

Possible Point Deductions

  • The task must be written as a module (otherwise 0 points)
  • The task does not respond at all or responds incorrectly to a parameter (-1/(number of task parameters) point)

Notes

  • Make sure your models are oriented and positioned the same way as the tests, so that visual verification can be more accurate. You can use the STL files for reference.

Čeština

Zadání cvičení na OpenSCAD #2

Před odevzdáním úlohy přes GitHub je třeba projevit souhlas se zpracováním osobních údajů.

Hodnocení

  • Vaším úkolem je přihlásit se k úkolu pomocí tohoto linku: https://classroom.github.com/a/GTZ6uuSy
    • Kompletní řešení 1 úlohy (1 bod)
    • Úloha nesplňuje zadání (0 bodů)
    • Úloha nesplňuje dodaný interface (0 bodů)
    • Maximální bodový zisk je 3 body, čili když uděláte více jak 3 úlohy spravně děláte to pouze pro váš dobrý pocit.

Nepoužívejte operátor ^. Kontrola probíhá starší verzí OpenSCADu. Můžete použít funkci pow.

Možné bodové srážky

  • Úloha musí být napsána jako modul (jinak 0 bodů)
  • Úloha nereaguje vůbec nebo reaguje nesprávně na parametr (-1/(počet parametrů úlohy) bodu)

Dodatek

  • Tentokrát se ujistěte, že máte modely orientované a napozicované stejně, jako testy, aby mohla být vizuální kontrola přesnější. Můžete si na pomoc vzít STL soubory.

Tasks / Úlohy

STL file / soubor Image / Obrázek
Arm Arm
Batman Batman
Disc Disc
Helix Helix
Mask Mask
Snowman Snowman
Whistle Whistle

Example Issue / Ukázková issue

Arm

testArm1

distance() arm();
Student Reference
testArm1.student.png testArm1.reference.png

Similarity score / Skóre podobnosti: 0.9600207100235263


testArm2

distance() arm(height=20, offset=10, number_holes=4, hole_radius=2, thick=2);
Student Reference
testArm2.student.png testArm2.reference.png

Similarity score / Skóre podobnosti: 0.9509241468815477


Disc

testDisc1

distance(0.4) translate([50, -50, 50]) wheel();
$fn=20;
Student Reference
testDisc1.student.png testDisc1.reference.png

Similarity score / Skóre podobnosti: 0.8879827001780332


testDisc2

distance(0.8) translate([15, -15, 15]) wheel(radius=25,height=5,r_hole=1,reduce_offset=1.75,reduce_num=6);
$fn=20;
Student Reference
testDisc2.student.png testDisc2.reference.png

Similarity score / Skóre podobnosti: 0.8961577895354784


testDisc3

distance(0.8) translate([30, -30, 30]) wheel(radius=10,height=10,r_hole=0,reduce_offset=5,reduce_num=3);
$fn=20;
Student Reference
testDisc3.student.png testDisc3.reference.png

Similarity score / Skóre podobnosti: 0.9639876472323983


Batman

testBatman1

distance(0.5) translate([-30, 0, 0]) batman();
Student Reference
testBatman1.student.png testBatman1.reference.png

Similarity score / Skóre podobnosti: 0.879238323652946


testBatman2

distance(0.5) batman(
	x=70,
	y=100,
	z=5,
	thick=7
);
Student Reference
testBatman2.student.png testBatman2.reference.png

Similarity score / Skóre podobnosti: 0.9277314097333825


Snowman

testSnowman1

distance(0.1) sideView() for(b=[0:4])
    translate([b*100-100,0,0]) snowman(balls=b);
Student Reference
testSnowman1.student.png testSnowman1.reference.png

Similarity score / Skóre podobnosti: 0.9226590154252609


testSnowman2

distance(0.2) sideView() snowman(r=25, factor=1, overlap=0);
Student Reference
testSnowman2.student.png testSnowman2.reference.png

Similarity score / Skóre podobnosti: 0.9608065674829648


testSnowman3

distance(0.2) sideView() snowman(r=25, factor=0.5, overlap=0.5);
Student Reference
testSnowman3.student.png testSnowman3.reference.png

Similarity score / Skóre podobnosti: 0.9862668145308523


Whistle

testWhistle1

distance() whistle();
Student Reference
testWhistle1.student.png testWhistle1.reference.png

Similarity score / Skóre podobnosti: 0.9144380787551549


testWhistle2

topView() {
  difference() {
    whistle();
    translate([-50, -25, 10]) cube([100, 50, 20]);
  }
}
Student Reference
testWhistle2.student.png testWhistle2.reference.png

Similarity score / Skóre podobnosti: 0.9018984182790376


testWhistle3

translate([20, 0, 0]) distance(0.5) rotate([0, 0, 180]) whistle(radius=20,height=10,r_handle=2,thickness=2,beak_length=60,beak_thick=4,hole_width=1);
Student Reference
testWhistle3.student.png testWhistle3.reference.png

Similarity score / Skóre podobnosti: 0.9591173539601038


Helix

testHelix1

distance(0.5) helix();
$fn=20;
Student Reference
testHelix1.student.png testHelix1.reference.png

Similarity score / Skóre podobnosti: 0.972888482607625


testHelix2

distance() helix(d=10,o=0.5,h=25,s=72,db=11,hb=0.25);
$fn=20;
Student Reference
testHelix2.student.png testHelix2.reference.png

Similarity score / Skóre podobnosti: 0.9526434576915117


testHelix3

distance() helix(d=10,o=4,h=25,s=4,db=18,hb=2);
$fn=20;
Student Reference
testHelix3.student.png testHelix3.reference.png

Similarity score / Skóre podobnosti: 0.9355733284267496


Mask

testMask1

distance(0.4) translate([20, 0, 0]) mask();
Student Reference
testMask1.student.png testMask1.reference.png

Similarity score / Skóre podobnosti: 0.9332758382627029


testMask2

distance(0.25) translate([40, 0, 0]) mask(
	eye_offset=80,
	wall=5,
	eye_radius=20,
	outer_radius=40,
	nose1=40,
	nose2=20,
	nose_length=100
);
Student Reference
testMask2.student.png testMask2.reference.png

Similarity score / Skóre podobnosti: 0.9125760752533941

Releases

No releases published

Packages

 
 
 

Contributors