Skip to content

3DprintFIT/B242A-OpenSCAD2-Assignment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 

Repository files navigation

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/R3BhTLwg
    • 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.

Úlohy

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

Ukázková issue

Arm

testArm1

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

Similarity score: 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: 0.9509241468815477


Disc

testDisc1

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

Similarity score: 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: 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: 0.9639876472323983


Batman

testBatman1

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

Similarity score: 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: 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: 0.9226590154252609


testSnowman2

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

Similarity score: 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: 0.9862668145308523


Whistle

testWhistle1

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

Similarity score: 0.9144380787551549


testWhistle2

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

Similarity score: 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: 0.9591173539601038


Helix

testHelix1

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

Similarity score: 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: 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: 0.9355733284267496


Mask

testMask1

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

Similarity score: 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: 0.9125760752533941

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •