Home / How To / Fraction Action With Coding: 6 Steps

Fraction Action With Coding: 6 Steps



Context

3D modeling can be useful for visualizing and exploring concepts without objects needing 3D printing. This activity is based on Tinkercad Codeblocks where the users "design with code" – which makes 3D models using dragable blocks of code. Codeblocks are easy for beginners to learn, and are a useful tool for learning and practicing coding and mathematics as well as 3D modeling.

Functions of code blocks:

  • There are calculation blocks for common mathematical functions including: () + ̵
    1; * * /.
  • Objects can be moved around the design surface of standard X, Y, Z axes and can also be scaled along these axes.
  • Designers can create and set variables for objects and mathematical quantities and can call them into mathematical calculation blocks.
  • Counting and Repeating Loops are Available to Easily Copy Items
  • All common Tinkercad 3D modeling capabilities to build with primitive shapes that can be fixed or hole and group to create new shapes.

*********************************************** **************************

The first step is to get acquainted with the block-based programming environment in Tinkercad Codeblocks. See the Quick Start Guide on Codeblock's website to learn how to snap and speed blocks. Explore and practice these studies:

1. Work plan and origin

a. The work plan measures 200 mm x 200 mm. The origin is the midpoint where X = O, Y = O and Z = O

b. Objects enter the work plane with their centers of origin. To set items to specific positions, it is necessary to move them in the X, Y and Z directions. One convenient way to do this is to move the object by half the size in the X, Y and Z directions. Some objects allow you to set the width, length and height when they are created, others that you can determine by moving them around.

2. Moving

a. Choose a shape. Click and drag it to the black workspace.

b. Find the "Move" function. Click and drag it into the code space until it attaches to shape:

c. Play around with the values ​​X, Y and Z individually.

  • At what position do all shapes start when they are imported?

  • Source link