Page 66 - Ai Robogenius
P. 66
DESIGN A PATTERN WITH MIXED SHAPES
In Tinkercad Codeblocks, you can design patterns using mixed shapes by combining various 3D
objects and arranging them in a pattern through code. To create a pattern, follow the given steps:
STEP - 1 Click on the Create Template button from the Templates blocks, type Flower in the
textbox and click on the OK button.
STEP - 2 Inside the Define Template Flower block, drag and place the following blocks:
Drag and drop the Add Cylinder block from the Shapes blocks and change its
colour to Crimson Red.
Drag and drop the Scale block from the Modify blocks and change its values for
X, Y and Z to 2, 0.5 and 1 respectively.
Drag and drop the Move block from the Modify blocks and set its values for X, Y
and Z to -20, 0 and 0 respectively.
Drag and drop the Repeat Times block, set it to 17 times and snap the following
blocks inside it:
∑ Copy block from the Modify blocks.
∑ Rotate block from the Modify blocks and change the Axis to Z and the angle
to 140 degrees.
∑ Drag and drop the XYZ block from the Math blocks inside the Rotate block.
Drag and drop the Add Cylinder block from the Shapes blocks and change its
values for Radius, H, Sides, edge and Edge Steps to 12, 2 and 30 respectively and
set it colour to Pastel Pink.
Drag and drop the Move block from the Modify blocks and set its Z value to 10.
Define Template Flower
Add
Scale: X: 2 Y: 0.5 Z: 1 from: center
Move: X: -20 Y: 0 Z: 0
Repeat 17 Times
Copy
Rotate around Axis z by 140 Degrees from Pivot X: 0 Y: 0 Z: 0
Add Radius 12 H 2 Sides 30 edge 0 Edge Steps 1
Move: X: 0 Y: 0 Z: 10
AI RoboGenius - VI
64

