This term we are coding for a 3D printer. We are using Beetle Blocks as the code. Beetle blocks looks a lot like “snap” and “scratch”. It is a block based code. These are all the codes I have done…

### Challenge 1: SQUARE This is what each block does to make the finished square:
– The “Start Extruding [lines]” block makes the beetle draw a thick line whenever and wherever it moves to. If you use a “Start Drawing” block it makes a very thin line. You need to us the “Start Extruding” block to print.

-The “Repeat” block(s) makes whatever is in it repeat 10 times. You can change the variable to whatever number you want. If I changed the number t 11 depending on what the finished shape is, it can completely change what it looks like.

– The “Move [0.1]” block determines how far it moves. The [0.1] is the distance. Just like the “Repeat” block, you can change the variable (which is the 0.1)

-The “Sphere Dia [0.5]” block changes the width of the “Start Extruding” block lines.

-The “Rotate [z] by ” block is the direction it turns. The first variable can be changed to 3 letters. [Y], [Z] and [X]. If you put in [Y] then the square will be standing.If you use [Z] then the square will look like it does on the picture. It stays on the “ground”. Finally, if you use [X] it will make a big line  because you are telling the beetle to flip (to go under the grid) and then move forward. So it just makes a straight line. The second variable is . It is exactly the same as degrees. Since I am making a square, I put  there.

##### These Are Some Photos Of [Y], [X], [Z] In The Code:  This is the [Y] Square                                           This is the [X] (meant to be) square

#### Challenge 2: Polygon

A Polygon has 3 sides.