## Introduction: 3 Dimensional Tire Ball

Just thinking of writing repetitive code may seem really boring and painful to endure, but with the use of variables and loops through the interface of Tinkercad Codeblocks you can create a 150 Primitive project that turns into a really cool 3D Tire Ball.

Hope You Enjoy!

## Supplies

Otherwise Use my Code Below

## Step 1: Creating the Variables

These may seem to be some very wacky numbers right?

They become the base layer for the actual design, but can be formatted if you would like

• Start with creating a variable named length, and set that as the Square Root of 3 plus 4 times 5
• Add a second Variable named Width, and set that as length divided by the square root of 2 minus length
• Add a third Variable named Depth, and set as length times Width plus Length minus Width
• Add a Fourth Variable named Spacing and set that as Length times Width times Depth plus the Square Root of length minus Width + 3.14
• Add a Fifth Variable named Area Form, and set that as length divided by width times Depth minus Spacing plus (Sin) 12.345
• Finally Add a Sixth Variable named #oftimescreated and set this to be one

Note: At this point in time this Variable can only be set to one currently because Tinkercad limits the amount of Primitives to be 200

## Step 2: Creating the Three Dimensional Layers

The Three dimensional layers consist completely of Tubes and grouping

• Start by creating a New Object
• Add a count with loop set as, count with (any) from 1 to #oftimescreated by 1

Inside:

• Add a rotate around Axis x by Area Form Degrees from pivot (x:0 y:0 z:0)
• Add a count with loop set as count with Area Form from 1 to 100 by 2

Dimension #1
Inside:

• Add a Solid Tube With a Radius of length times width times 1 divided by Depth
• Add a Scale of (x:5 y:5 z:5)
• Add a Rotate set as, Rotate around Axis X by Area Form times Spacing Degrees from pivot (x:0 y:0 z:0)

End The Loop:

• Add a Create Group (multicolored)
• Add a Rotate set as, Rotate around Axis x by 90 degrees from Pivot (x:0 y:0 z:0)
• Add a count with loop set as, count with Area Form from 1 to 100 by 2

Dimension #2
Inside:

• Add a Solid Tube With a Radius of length times width times 1 divided by Depth
• Add a Scale of (x:5 y:5 z:5)
• Add a Rotate set as, Rotate around Axis X by Area Form times Spacing Degrees from pivot (x:0 y:0 z:0)

End The Loop:

• Add a Create Group (black)
• Add a Rotate set as, Rotate around Axis y by 90 degrees from Pivot (x:0 y:0 z:0)
• Add a count with loop set as, count with Area Form from 1 to 100 by 2

Dimension #3

Inside:

• Add a Solid Tube With a Radius of length times width times 1 divided by Depth
• Add a Scale of (x:5 y:5 z:5)
• Add a Rotate set as, Rotate around Axis X by Area Form times Spacing Degrees from pivot (x:0 y:0 z:0)

End The Loop:

• Add a Create Group (black)

End All Loops

Note: If you would like to increase the #oftimescreated turn up the number of the variable and turn up the number of steps taken in the three innermost loops Ex: count with Area Form from 1 to 100 by 2 —> 3-5

## Step 3: Some Finishing Touches

All that is left to do is to add in that sphere hole in the middle of the ball and to Create it as a Group 