Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • CreatiCode
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

CreatiCode Scratch Forum

  1. CreatiCode Forum
  2. Knowledge Base
  3. 3D Blocks
  4. Cylinders and Tubes

Cylinders and Tubes

Scheduled Pinned Locked Moved 3D Blocks
1 Posts 1 Posters 1.1k Views
  • 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.
  • CreatiCodeI Offline
    CreatiCodeI Offline
    CreatiCode
    wrote on last edited by admin
    #1

     

    Prerequisite

    • Adding Boxes
    • Material Settings

     

    Introduction

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

     

    The “Add Cylinder” Block

     
    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/b0392a55-8610-46a7-a7f6-1de4dd14dd5b.png" width="1000" style="filter: drop-shadow(0.35rem 0.35rem 0.4rem rgba(0, 0, 0, 0.5));">

     

    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.

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/6131f3be-d240-4849-bfd9-e203b8c627b7.gif" width="1000" style="border-radius: 5px; border: 1px solid #29622d;">

     

    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:

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/0e2c2bd8-76da-4c88-9803-c9f4d37bb1f5.gif" width="500" style="border-radius: 5px; border: 1px solid #29622d;">

     

    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:

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/806fd51d-e159-4c97-8528-5988eeefd9b2.gif" width="500" style="border-radius: 5px; border: 1px solid #29622d;">

     

    Cap Type

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

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/eff6af95-3b57-4192-827b-aabe7c97a67d.gif" width="500" style="border-radius: 5px; border: 1px solid #29622d;">

     

    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:

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/9965eb5c-2331-4383-8e5a-e7a171fcd2d2.gif" width="500" style="border-radius: 5px; border: 1px solid #29622d;">

     

    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:

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/9099862b-409a-4132-9921-57e3756fa0fa.png" width="800" style="filter: drop-shadow(0.35rem 0.35rem 0.4rem rgba(0, 0, 0, 0.5));">

     
    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/0a48d1f0-4eee-40ad-bb41-b7f660385fba.gif" width="400" style="border-radius: 5px; border: 1px solid #29622d;">

     
     

    Tubes

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

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/ce9167da-aab2-4a1e-aaa0-827de1acd37d.gif" width="500" style="border-radius: 5px; border: 1px solid #29622d;">

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

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/a65c4619-4b4e-46cd-90ae-8a6a9afc1cef.png" width="1000" style="filter: drop-shadow(0.35rem 0.35rem 0.4rem rgba(0, 0, 0, 0.5));">

     

    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
    0
    • CreatiCodeI CreatiCode pinned this topic on

    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

    With your input, this post could be even better 💗

    Register Login
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • CreatiCode