Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- width = 200;
- height= 200;
- depth = 4;
- butt = 100;
- taper = 30;
- difference(){
- polyhedron(
- points = [
- [0,0,0], //0
- [width + 2, 0,0], //1
- [width + 2, 10, 0], //2
- [(width/2)+1+10, butt + 10, 2 + taper], //3
- [(width/2)-1-10, butt + 10, 2 + taper], //4
- [0,10,0], //5
- [0,0,height + 4], //6
- [width + 2, 0, height + 4], //7
- [width + 2, 10, height + 4], //8
- [(width/2)+1+10, butt + 10, height + 5 - taper],//9
- [(width/2)-1-10, butt + 10, height + 5 - taper],//10
- [0,10,height + 4]], //11
- faces = [
- [0,1,2,5], //bottom front
- [2, 3, 4, 5], //bottom back
- [6, 7, 8, 11], //top front
- [8, 9, 10, 11], //top back
- [6, 7, 1, 0], //front
- [7, 8, 2, 1], //right front
- [8, 9, 3, 2], //right back
- [9,10, 4, 3], //back
- [10, 11, 5, 4], //left back
- [11,6,0,5]] //left front
- );
- color("blue", 1.0){
- polyhedron(
- points = [
- [2,-1,2], //0
- [width + 0.2, -1, 2], //1
- [width + 0.2,10, 2], //2
- [(width/2)+10.1, butt + 8, 5 + taper], //3
- [(width/2)-10.1, butt + 8, 5 + taper], //4
- [2,10,2], //5
- [2,-1,height + 2.2], //6
- [width + 0.2, -1, height + 2.2], //7
- [width + 0.2, 10, height + 2.2], //8
- [(width/2)+10.1, butt + 8, height + 2 - taper],//9
- [(width/2)-10.1, butt + 8, height + 2 - taper],//10
- [2,10,height + 2]], //11
- faces = [
- [0,1,2,5], //bottom front
- [2, 3, 4, 5], //bottom back
- [6, 7, 8, 11], //top front
- [8, 9, 10, 11], //top back
- [6, 7, 1, 0], //front
- [7, 8, 2, 1], //right front
- [8, 9, 3, 2], //right back
- [9,10, 4, 3], //back
- [10, 11, 5, 4], //left back
- [11,6,0,5]] //left front
- );
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment