3D MANDALA CODING
Let's create your first Coded 3D Model...We're about to do a simple programming (aka coding) with aspects of simple 3D Modeling OF 3D mandala.
We gonna use CODEBLOCKS in TINKERCAD.
The results of BlocksCAD code are 3D Models which can be downloaded in STL format for 3D Printing or for use in other programs which import STL files or could be exported as GIF file of the animated mandala building process.
Supplies
TINKERCAD user
GET STARTED TO MAKE a 3D MANDALA WITH CODE BLOCKS
To get started in Code Blocks TINKERCAD:
1. Sign up and log in to your account.
2. Find the the Design Area category on the left side part and click it.
3. Click the +New icon on the upper right part, drag it down and choose the Codeblocks.
4. Look for the New Design icon also on the upper right part and click it to enter the Codeblocks interface.
INSERT THE FIRST SHAPE OF THE INNER LAYER OF THE MANDALA
At first, we need to create the inner mandala circle by dragging the appropriate blocks for the first layer of mandala.
We need to choose the first shape of the blocks for the first layers. Choose from the given 3D blocks shapes and drag it to the working area and then, we need to move this block to the appropriate place on the work plane. For that, click the Modify option on the upper left side and drag the Move block to the working area and connect it under the shape block.
ROTATE THE SHAPE IN a CIRCULAR MANNER
After that, rotate the shape around the Y-axis by some degrees, in between of 40 degrees to 360 degrees. For that one, we need to drag the Rotate block and connect it under the Move block
Duplicate the First Shape in a Circular Manner
To duplicate the shape in a circular way around the Y axis, at equal distances from each other, click on the control area, select the "count with" loop and enter the size of "i"- the spacing between the shapes up to 360 degrees: "count with "i from 1 to 360 by 40" . In this case, the space between the shapes in the first circle of the mandala will be 40 degrees. In this first circle, the number of shapes will be 360 divided by 40 degrees. That means the amount of shapes will be 9 shapes arranged in a circle.
ADD ANOTHER LAYER TO THE MANDALA
To add another larger circle to the mandala, we will duplicate the loop block code that we created in the previous section and change the shape type to another shape, increase the radius of rotation around the Y axis to 40 instead of 20 and connect the new loop code blocks with the previous loop.
To add another larger circle to the mandala, we will duplicate the last loop block code again and again increase the radius of rotation around the Y axis from 40 to 60 and connect to the previous loop. Each time we will increase the radius of the circle by 20 mm.
For more details, please look at the attached photos or get inside the project in tinkercad in this link.