

Pumpkin design
Presentation
•
Computers
•
6th Grade
•
Practice Problem
•
Hard
ICT Lab4
Used 3+ times
FREE Resource
5 Slides • 0 Questions
1
Make a 3D Printable Pumpkin With Codeblocks!: Page 7
2
Make a 3D Printable Pumpkin With Codeblocks!: Page 8
3
Step 4: Another Variable for Our Loop!
Now we have our loop ready, we need to put some code into it!Now we have our loop ready, we need to put some code into it!
First thing you’ll need is a Copy Copy block from the Modify Modify section (purple) - this will make a copy of the
shape we last created (the ring shape) but if you run your code at this point, you’ll see that it’ll just
duplicate the shape 12 times in the same spot so we need to move the copy with each loop.
We’re aiming for a circular shape here so each frame needs to be equally rotated to form a circular shape at the end - we want
to use 12 frames so what we really want is for each copy to be rotated by 30 30 degrees each time because 360 / 12 = 30360 / 12 = 30
Our FramesFrames variable can take the place of 12 12 in this equation already so we just need a variable to take the place of 360 360 �
Let’s grab another Create VariableCreate Variable block from the Math Math section (green) and place it underneath our
Frames variable at the top - we’ll call this one RRotation otation and set it to 360360.
To use this variable in our loop, we next need a Rotate Rotate block from the ModifyModify section (purple) - this will
go within the loop bracket.
We’ll be rotating around the Z axisZ axis.
In the box for byby you’ll need to replace the value with another block - you can �nd it in the
Make a 3D Printable Pumpkin With Codeblocks!: Page 11
4
Math Math section (green) and it’ll say ‘0 + 0’ ‘0 + 0’ on it by default.
From the DataData section (blue) grab a Rotation Rotation variable block and replace the �rst ‘0’ ‘0’ with
this, change the operator operator from ‘+’ to ‘/’ ‘/’ and then replace the second ‘0’‘0’ with a FramesFrames
variable block. - you've now coded our equation from earlier 360/12 or Rotation/Frames!
Finally, you’ll need to change the pivot pivot too - by default, the Rotate block will rotate the
In the empty space beside Pivot Pivot in the Rotate AroundRotate Around block, you’ll need
another block from the Math Math section (green) it should say X:0 Y:0 Z:0X:0 Y:0 Z:0 - just
Now, I still think this is making a shape that’s a little too round for a pumpkin so let’s use another MoveMove
Great! That was de�nitely the most complex part of the whole make so just double check your work by running yourGreat! That was de�nitely the most complex part of the whole make so just double check your work by running your
code and making sure you see something like the gif above and the end shape looks like the last pic above too! Yourcode and making sure you see something like the gif above and the end shape looks like the last pic above too! Your
code should look something like the �rst pic!code should look something like the �rst pic!
Make a 3D Printable Pumpkin With Codeblocks!: Page 12
5
Make a 3D Printable Pumpkin With Codeblocks!: Page 18
Make a 3D Printable Pumpkin With Codeblocks!: Page 7
Show answer
Auto Play
Slide 1 / 5
SLIDE
Similar Resources on Wayground
6 questions
Five Themes of Geography
Presentation
•
6th Grade
6 questions
6.5 Lesson Quiz
Presentation
•
6th Grade
6 questions
Ecosystems - Competiton
Presentation
•
6th Grade
3 questions
Informatika
Presentation
•
10th Grade
3 questions
Biological IPM 9.2.5
Presentation
•
7th Grade
4 questions
L1: Formatting the Page
Presentation
•
6th Grade
3 questions
sample paper SA2 5& 6
Presentation
•
5th - 6th Grade
1 questions
video games and roblox games
Presentation
•
5th Grade
Popular Resources on Wayground
20 questions
Math Review
Quiz
•
3rd Grade
15 questions
Fast food
Quiz
•
7th Grade
20 questions
Context Clues
Quiz
•
6th Grade
20 questions
Inferences
Quiz
•
4th Grade
19 questions
Classifying Quadrilaterals
Quiz
•
3rd Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
10 questions
Identify Fractions, Mixed Numbers & Improper Fractions
Quiz
•
3rd - 4th Grade
Discover more resources for Computers
20 questions
Context Clues
Quiz
•
6th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
10 questions
Candy
Quiz
•
4th - 8th Grade
10 questions
Fact Check Ice Breaker: Two truths and a lie
Quiz
•
5th - 12th Grade
22 questions
Dot Plots and Histograms
Quiz
•
6th Grade
10 questions
Memorial Day History and Traditions
Interactive video
•
5th - 8th Grade
15 questions
Histograms
Quiz
•
6th Grade
14 questions
Context Clues
Quiz
•
4th - 6th Grade