1 00:00:00,620 --> 00:00:09,619 Well, this tutorial is to explain how to use OpenSCAD. 2 00:00:09,619 --> 00:00:25,620 OpenSCAD is an open source software that you can download the zip format from your virtual 3 00:00:25,620 --> 00:00:26,620 classroom. 4 00:00:26,620 --> 00:00:37,619 You must unzip and click inside, and inside you can see the program which you can accept. 5 00:00:37,619 --> 00:00:51,060 It's not necessary if you don't want to set up in your computer. 6 00:00:51,060 --> 00:01:24,310 Well, firstly, the most interesting thing of this program is the same model as you have in QCAT, but in QCAT you have two-dimension figures and in OpenSCAD you have three-dimension figures. 7 00:01:24,310 --> 00:01:31,909 So, in this area you can know the result, and here you can tell the commands. 8 00:01:31,909 --> 00:01:41,209 Well, there are three main figures that can change using different parameters. 9 00:01:41,209 --> 00:01:43,769 The easiest one is cube. 10 00:01:43,769 --> 00:02:03,269 You have three parameters, weight, length, and height, so you must type the value of 11 00:02:03,269 --> 00:02:23,680 parameters using the keyboard, at the end type semicolon and finally press F5 12 00:02:23,680 --> 00:02:34,280 and this is the result, this is the cube. If you want to create a cylinder you 13 00:02:34,280 --> 00:02:47,139 must type cylinder and then you have three parameters which are height for example 14 00:02:49,539 --> 00:03:00,419 and the radio of the two bases then then semicolon and at the end a five 15 00:03:00,419 --> 00:03:12,180 With cylinder you can also have horizontal cone, if you type one of the bases O, you 16 00:03:12,180 --> 00:03:15,099 have a cone. 17 00:03:15,099 --> 00:03:29,030 And finally you have spheres, you can have spheres, spheres just only have one parameter, 18 00:03:29,030 --> 00:03:34,639 which is the radio, that is the result. 19 00:03:34,639 --> 00:03:42,300 But as you can see, indeed, the sphere has so many faces. 20 00:03:42,300 --> 00:03:54,400 You can change the number of faces using $ and this is the result. 21 00:03:54,400 --> 00:04:00,139 You can also use this command if you want to create pyramids, for example. 22 00:04:00,139 --> 00:04:22,250 If you see a cylinder, you can create pyramid and prismas, for example, we're going to do 23 00:04:22,250 --> 00:04:23,250 10. 24 00:04:23,250 --> 00:04:24,250 10. 25 00:04:24,250 --> 00:04:32,509 If you do it in this way, you have a cylinder. 26 00:04:32,509 --> 00:04:59,529 you added this parameter you have another figure and if you change this 27 00:04:59,529 --> 00:05:12,149 other parameter you have pyramid of different faces but apart from this you 28 00:05:12,149 --> 00:05:16,810 You can also move the different figures. 29 00:05:16,810 --> 00:05:25,389 You see two possibilities that are Translate, Translation and Rotation. 30 00:05:25,389 --> 00:05:27,389 We come back to our cube. 31 00:05:27,389 --> 00:05:47,279 We have cube, we have a cube of 20, 20, 20 and this is the result. 32 00:05:47,279 --> 00:06:02,290 If you want to translate the cube in the middle of the space, you can type CENTER-THROUGH. 33 00:06:02,290 --> 00:06:04,290 And this is the result. 34 00:06:04,290 --> 00:06:24,050 But if you want to translate it sliding the cube, you must use TRANSLATE. 35 00:06:24,050 --> 00:06:32,170 and the vector of translation, for example, 10 or 20, 20, 20, 0, 0. 36 00:06:51,379 --> 00:06:59,959 Be careful when you type, because if you fail, there's only one figure, there's only one vector. 37 00:07:02,339 --> 00:07:04,399 So this is the result of translation. 38 00:07:04,720 --> 00:07:07,560 You can also do a rotation. 39 00:07:15,310 --> 00:07:17,829 This is the result of rotation. 40 00:07:18,050 --> 00:08:15,509 And you can combine rotation and translation as you have in your book. But be careful because they are not, it's not the same. For example if you rotate this is the result and if you do the translation in this way this is the result. 41 00:08:15,509 --> 00:08:34,549 is not the same if you do it in this order than in immersed. So be careful when you do 42 00:08:34,549 --> 00:08:43,649 the difference, the difference operation. Well, apart from this, you can also, you can 43 00:08:43,649 --> 00:08:55,870 also use your design using more than one figure. For example, if you want to create a dream, 44 00:08:55,870 --> 00:09:06,549 must use a difference, the operation difference. For example, I have a cylinder. 45 00:09:06,549 --> 00:09:40,850 This is the cylinder, this is our cylinder, and I want to do a hole in the middle of 46 00:09:40,850 --> 00:10:11,330 this cylinder. So the first thing is create another cylinder, and this is 47 00:10:11,330 --> 00:10:18,909 the result. But if this cylinder is the drill, it must be in the middle, so I'm going to 48 00:10:18,909 --> 00:10:59,970 translate. And now, if I want to create the hole, I must do one logical operation, that 49 00:10:59,970 --> 00:11:36,129 is difference. Be careful because at movements difference aren't something that is the result, 50 00:11:36,129 --> 00:11:55,649 you have the whole. So this is the exercise 5 on page 63. And finally you can join different parts 51 00:11:55,649 --> 00:12:22,090 using union. If you use union, it means that you have not just only two parts, you have 52 00:12:22,090 --> 00:12:32,070 just only one part. For example, if I want to create a complex, as you have in your book 53 00:12:32,070 --> 00:12:44,610 exercise is you have to the parts we have a ceiling we have a one is the 54 00:12:44,610 --> 00:13:28,370 cylinder this is the height and the number of faces is for example three 55 00:13:28,370 --> 00:14:27,330 That's this one. The other is, for example, asmola, and the number of faces is 8. 56 00:14:34,120 --> 00:14:41,639 So we have two figures. We're going to just lay this one. 57 00:15:10,789 --> 00:15:21,149 So this is the result, for example. This is the result. It's a complex figure. 58 00:15:21,149 --> 00:15:29,149 But if I want that this figure is just only one, I must to do the union. 59 00:15:29,149 --> 00:15:37,590 Union is the same, the same of difference, but in this case what you have is just only one figure. 60 00:15:37,590 --> 00:15:56,570 So union of this one, the result is the same but what is the difference? 61 00:15:56,570 --> 00:16:36,389 The difference is in this case is you want to, for example, translate or rotate. You do the translation of the whole object, not just only one part. For example, what you have in your book, rotate, well you have rotation indeed, not translation. 62 00:16:36,389 --> 00:17:04,299 But you can do the translation, for example, or you can do the rotation. That's what you have in your book, the exercise six of your book. 63 00:17:04,299 --> 00:17:20,690 And that is all of what you have in your book, so what I want is that when you finish, you 64 00:17:20,690 --> 00:17:35,250 just do the screen captures of different exercises, 2, 3, 4, 5 and 6, and the screen shoot you 65 00:17:35,250 --> 00:17:48,769 You can paste in a test file and then submit the exercise and it is all for today. 66 00:17:48,769 --> 00:17:55,569 I hope you enjoyed the exercise.