Navigation

    CreatiCode Scratch Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • CreatiCode

    Cylinders and Tubes

    3D Blocks
    1
    1
    342
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • info-creaticode
      CreatiCode last edited by admin

       

      Prerequisite

      • Adding Boxes
      • Material Settings

       

      Introduction

      A cylinder shape is like a tree trunk, with round top and bottom faces.

       

      The “Add Cylinder” Block

       

       

      Color Selection

      You can set the initial diffusion color when you add a cylinder. You can update its diffusion/emission color, roughness or brightness later.

       

      Top Diameter, Bottom Diameter and Height

      The top and bottom faces of a cylinder are circle-shaped, but they do not have to be the same size. When one of the diameters is 0, you get a cone.

       

      Arc

      If you think of the cylinder as a cake, we can cut off a slice of it, and the “arc” controls the percentage of the cake that remains. If the arc is 100, then you get the full cake. Here are some example “arc” values:

       

      Open vs Closed Section

      When the “arc” is not 100%, we are cutting off a piece of the cake, and we have the option to set the cutting section open or closed. When the section is not closed, we can see inside the cylinder:

       

      Cap Type

      You can also control whether the top and bottom faces are covered up or open with the “cap” type:

       

      Sides

      The body of a cylinder is composed of rectangle faces, and the “sides” input controls how many such side faces are used. The more sides you use, the smoother the cylinder looks:

       

      Combining Multiple Inputs

      By combining different settings for different inputs, you can get interesting shapes that do not look like cylinders at all. For example, you can get a “curved wall” when you run this block:

       

       
       

      Tubes

      Tubes are closely related to cylinders. You can get a tube by cutting a cylinder with a smaller cylinder:

      Therefore, the block to add a tube has very similar input parameters:

       

      Thickness

      The only new input added for tubes is “thickness”, which controls the thickness of the “wall” of the tube. It should never be more than half of the top or bottom diameter.

      1 Reply Last reply Reply Quote 0
      • Pinned by  info-creaticode info-creaticode 
      • First post
        Last post