BlocksCAD: Difference between revisions
m (→Introduction) |
|||
(29 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
[[fr:BlocksCAD]] | |||
== Introduction == | == Introduction == | ||
BlocksCAD is a | [https://www.blockscad3d.com/ BlocksCAD] is a development environment that provides access to computer-aided design (CAD). It is based on [https://developers.google.com/blockly Blockly], a software allowing an easy access to programming by a graphic assembly of blocks, like [[Scratch]] for example. This software is designed to be used by children as well as people with little knowledge of computers and programming. It is notably used by [http://www.einsteinsworkshop.com/ Einstein's Workshop], a workshop for children to promote technical skills. | ||
In the footer of one project (Oct 2019), it says: {{quotation|BlocksCAD is an education technology company dedicated to creating tools that help students of all ages pursue their love of science, technology, engineering, art, and math (STEAM). Our signature product, BlocksCAD, is a cloud-based 3D modeling tool that encourages users to learn math, computational thinking and coding concepts through visualization and designing models to be 3D printed}} | |||
[https://www.blockscad3d.com/ BlocksCAD] runs in the web browser with HTML 5. So it does not depend on Adobe Flash. However, on Google Chrome or Firefox, it requires the activation of [[WebGL|WEbGL]]. BlocksCAD generates STL (StereoLythography) and XML files. The code can also be exported and used in [[OpenSCAD]]. | |||
== | It was developed in the framework of the [http://www.einsteinsworkshop.com/ Einstein's Worskhop] in the United States with the financial support of the DARPA (Defense Advanced Research Projects Agency). It is released as an open source project under GPL v3. | ||
Currently, BlocksCAD is available in 11 different languages. | |||
[[Beetle Blocks]] is a similar environment. | |||
== Application to education == | |||
Initially, BlocksCAD was designed to teach computer science. In this sense, their [https://blockscad.teachable.com/website] offers various resources both free and paid to promote learning in this area. | |||
The Blockscad [https://www.youtube.com/channel/UCovK2cRIjoaZNzRwpQP2sFg Youtube channel] is a free resource with about 20 videos for all levels ranging from a [https://www.youtube.com/watch?v=5RNKVn7lijM "quick start"] to "training videos" dealing with more complex features. The [https://www.blockscad3d.com/community BlocksCAD community] is also an important resource for learning by downloading projects and sharing information and questions through their [https://www.blockscad3d.com/community/forum forum]. | |||
BlocksCAD offers paid online [https://blockscad.teachable.com/ courses], including [https://blockscad.teachable.com/p/blockscad-101 ''BlocksCAD 101''], specifically aimed at teachers wishing to learn in the field. | |||
Finally, the platform also seeks to promote the teaching of programming by supporting institutions wishing to launch such a project. Thus, courses from 4 hours to 2 days, either face-to-face or online, are offered. These courses offer the possibility to acquire better personal knowledge as well as ideas for activities to be carried out with students. To go even further, BlocksCAD offers to implement their project in schools. This implementation includes instructor [[onboarding]], lessons aligned to a common core, and a management dashboard for an initial fee of approximately $7.50 per student per year. | |||
More specific information can be found on the [https://www.blockscad3d.com/educators BlocksCAD for Education] and [https://www.blockscad3d.com/training-resources Training Resources and Professional Development] pages. | |||
== Interface == | |||
[[File:Interface ENG BlokcsCAD.png|thumb|488x488px|Interface of BlocksCAD (2021)]] | |||
The BlockCAD interface is divided into four parts: | |||
# On the left, vertically, a block toolbar (blue) | |||
# In the middle, your workspace (white space with red box) | |||
# On the right, a visual rendering window (orange) | |||
# At the top, horizontally, a menu to manage your project and profile (green) | |||
=== Block toolbar === | |||
[[File:Block Toolbar.png|left|thumb|314x314px]] | |||
The block toolbar contains 11 groups of blocks, each represented by a different color. It is possible to divide them into three categories : | |||
# Basic blocks which are defined by parameters defining their shape | |||
#* 3D shapes (Sphere, cubes, cylinders, torus) | |||
#* 2D shapes (circle, rectangles) | |||
#* Text (2D and 3D writing) | |||
#* Experimental (triangles) | |||
# The "overblocks" which generate an action on the basic blocks. They are therefore necessarily composed of basic block | |||
#* Transformations (positioning, rotations, scale, color) | |||
#* Constructive solid geometry operations (merge and subtract objects) | |||
#* Loops | |||
#* Functions (creation of subprograms and functions) | |||
# Expressions, variables and constants, used for example to define dynamic parameters | |||
#* Math (constants and arithmetic blocks) | |||
#* Logic (logical and conditional operators) | |||
#* Variables (defining a variable) | |||
=== Workspace === | |||
The workspace is located in the middle of the screen. To insert elements, simply click on the desired block and drag it into the workspace. At the bottom right, you have three buttons to manage the zoom and positioning of your project in the workspace. | |||
=== Rendering window === | |||
The rendering window is used to visualize the objects created in the workspace. It is a system of orthonormal axes in which : | |||
* The x axis is green | |||
* The y axis is red | |||
* The z axis is black (vertical) | |||
The three axes x, y and z intersect at the origin, i.e. the center of your rendering window defined by the following coordinate (0;0;0). When the line is dashed, it means that the coordinate is negative. There is no unit (cm, mm) because it is chosen at the time of printing. | |||
The visualization does not work interactively, so it is necessary to press the "Generate rendering" button to visualize the changes. A small horizontal toolbar allows you to change colors (1), to make the axes appear and disappear (2), to zoom (3), to change the point of view (4) or to take a picture (5). | |||
Finally, this is also the place where you can export your project in STL format by clicking on the "Generate STL" button | |||
=== Horizontal menu === | |||
This menu is divided into two lines. The first one allows you to change the language (sphere), to download projects or to connect and save your account. The second line allows you to name your project and to navigate in your workspace. Note that the keyboard shortcut <code>CTRL+Z</code> to go back also works as it is possible to delete a block with the delete key of the keyboard. | |||
On the right hand side, you can choose to display either "blocks" to view your elements in the workspace or "code" to have access to your code. However, this code cannot be modified. | |||
== Creating a project == | |||
To program a project, three different approaches are possible: | |||
# By combining blocks | |||
# By linear and circular extrusion of 2D shapes | |||
# By importing a file (dxf format for example) | |||
To start a project, go to the BlocksCAD editing page. You can also go to the main page and click on the orange "Create Now" button in the upper right corner. | |||
=== Combining blocks === | |||
This subchapter focuses on the basic functionality of combining blocks. To approach these notions, we will analyze different parts of a touch memory using the following notions | |||
* Moving and rotating objects | |||
* Union and subtraction of objects | |||
* Loop for repeating objects | |||
== Examples == | |||
=== A simple flower === | |||
The [https://www.blockscad3d.com/community/projects/248709 "flower"] described below was created to explore basic functionality. It took a few attempts to understand how to use loop variables (tip: check under "variables", then drag them). | The [https://www.blockscad3d.com/community/projects/248709 "flower"] described below was created to explore basic functionality. It took a few attempts to understand how to use loop variables (tip: check under "variables", then drag them). | ||
Line 24: | Line 101: | ||
[[image:blockscad-flower-2.jpg|600px|none|thumb|BlocksCAD flower printing]] | [[image:blockscad-flower-2.jpg|600px|none|thumb|BlocksCAD flower printing]] | ||
[[image:blockscad-flower-3.jpg|600px|none|thumb|BlocksCAD flower printed]] | [[image:blockscad-flower-3.jpg|600px|none|thumb|BlocksCAD flower printed]] | ||
== Import a project == | |||
Thanks to the Blockscad community, you have access to a gallery from which you can import projects, modify them and print them. This is an interesting solution to learn how to master more complex features. | |||
=== Examples === | |||
As an example, we are going to set up a flower in order to adapt it to our desires. This flower uses the functions described in the previous chapter. Each arm is made of a cube which is moved on the x & y axis allowing to make waves and which is transformed with the check mark "hull" to create a unique arm. | |||
To add a parameter, click on the brown block menu "variable" and insert a "set (...) to" item at the top of the "subtraction" item. Add the variable by clicking on the arrow. Here you can choose the name of your variables. Then, add from the block menu "math" in blue the element allowing you to define your variable. You get variables (brown) defined by absolute numbers (blue) | |||
The flower has 8 elements that can be defined. | |||
# '''n_petal''': number of petals | |||
# '''bloc_l''': width of the blocks forming the petals | |||
# '''bloc_h''': height of the blocks forming the petals | |||
# '''tube_r''': radius of the central tube | |||
# '''tube_h''': height of the central tube | |||
# '''hole_r''': radius of hole (i.e., of the subtracted sphere) | |||
# '''n_petal_block''': number of blocks forming each petal | |||
# '''deg_petals''' '''= 360 / n_petals''': number of arms | |||
The last step consists in inserting the variables in the place of each element defined before by an absolute number. You can then parameterize your flower by changing the variables in the brown elements at the top of your code. This way you get different flower models (code available under the images). | |||
The next example shows how to use parameters, i.e. a user can change seven different parameters to create different shapes. See the comments in the exported OpenSCAD code below. | |||
[[file:octopus-flower-generator-code.png|800px|none|thumb|Octopus flower generator]] | |||
One generated example can seen in the following picture: | |||
[[file:blockscad-flower-5.jpg|600px|none|thumb|Octopus flower with 10 petals]] | |||
Generated OpenSCAD code: | |||
<source lang="javascript"> | |||
//!OpenSCAD | |||
// Number of petals. A number between 2 and 15 maybe. | |||
n_petals = 8; | |||
// Building block of a petal. Each petal is defined as a string of block with a "hull" around it. | |||
block_width = 10; | |||
// Building block of a petal. Height should be anything that is printable, e.g. between 0.5 and 20. | |||
block_height = 2; | |||
// Radius of the hub. A good value is 10, i.e. a width of 2cm. | |||
hub_radius = 10; | |||
// Radius of the hole. 4-5 mm is about the size of a pen. Must be at least 1.5 smaller than radius. | |||
hole_radius = 5; | |||
// Height of the hub in the middle. Something between 5 and 30 ? | |||
hub_height = 15; | |||
// Petal length in terms of blocks. Try between 2 and 10. | |||
N_petal_blocks = 5; | |||
deg_petals = 360 / n_petals; | |||
difference() { | |||
// Flower without the hole. It has a hub plus petals. | |||
union(){ | |||
translate([0, 0, hub_height]){ | |||
// Sphere embedded on top of the hub | |||
sphere(r=hub_radius); | |||
} | |||
// The lower part of the hub | |||
cylinder(r1=hub_radius, r2=hub_radius, h=hub_height, center=false); | |||
// Loop to create N petals. Each one is rotated | |||
for (rot = [0 : abs(deg_petals) : 360 - deg_petals]) { | |||
rotate([0, 0, rot]){ | |||
// Untick hull for a postmodern experience... | |||
// chain hull | |||
for (pos = [0 : abs(1) : N_petal_blocks - 1]) { | |||
hull() { | |||
// This formula will create a curved line. You can try others.... | |||
translate([(pos * (2 * block_width)), ((pos * pos) * 1), 0]){ | |||
cube([block_width, block_width, block_height], center=false); | |||
} | |||
// This formula will create a curved line. You can try others.... | |||
translate([((pos + 1) * (2 * block_width)), (((pos + 1) * (pos + 1)) * 1), 0]){ | |||
cube([block_width, block_width, block_height], center=false); | |||
} | |||
} // end hull (in loop) | |||
} // end loop | |||
} | |||
} | |||
} | |||
// Three objects that will be subtracted to create the hole. One stick plus a ball on top. The cylinder at the bottom will shave off stuff that inhibits 3D printing. | |||
union(){ | |||
translate([0, 0, (1 * hub_height)]){ | |||
sphere(r=hole_radius); | |||
} | |||
translate([0, 0, (0 - hub_height)]){ | |||
cylinder(r1=hole_radius, r2=hole_radius, h=(2 * hub_height), center=false); | |||
} | |||
translate([0, 0, (0 - 3 * hub_height)]){ | |||
cylinder(r1=hub_radius, r2=hub_radius, h=(3 * hub_height), center=false); | |||
} | |||
} | |||
} | |||
</source> | |||
== Registration, export == | |||
In order to save your project on the platform, you are required to register. You can also download your project as an XML or STL file and save it directly on your computer. The STL file allows you to print your project directly with a 3D printer. | |||
It is possible to export the project to OpenSCAD and work with the code. This solution is recommended for complex projects because working with the code becomes easier to realize the project in question. However, it is not possible to import an OpenSCAD project. | |||
== Alternatives == | == Alternatives == | ||
Line 31: | Line 205: | ||
== Links == | == Links == | ||
=== Tutorials === | |||
To go further in programming, tutorials are available. | |||
* [https://www.youtube.com/channel/UCovK2cRIjoaZNzRwpQP2sFg YouTube's channel of BlocksCAD] | |||
* [https://www.youtube.com/channel/UCnxMaGMCrWAQgwF61ISRpGw YouTube's channel of mathcodeprint]. This channel offers tutorials for OpenSCAD as well as for BlocksCAD. You can search according to your needs. | |||
*[https://www.blockscad3d.com/editor/docs/index.html BlockSCAD 3D documentation] | |||
=== Official === | === Official === | ||
Line 38: | Line 219: | ||
* [https://www.blockscad3d.com/community Community], featured projects, blog posts, news. | * [https://www.blockscad3d.com/community Community], featured projects, blog posts, news. | ||
* [https://twitter.com/BlocksCAD On Twitter] | * [https://twitter.com/BlocksCAD On Twitter] | ||
=== In french === | === In french === | ||
* [http://blockly.technologiescollege.fr/BlocksCAD/?lang=fr# BlocksCAD] ( | * [http://blockly.technologiescollege.fr/BlocksCAD/?lang=fr# BlocksCAD] (in French) at http://blockly.technologiescollege.fr/ | ||
* [http://blogpeda.ac-poitiers.fr/lp2i-si/2016/03/20/blockscad-un-logiciel-de-cao-pour-concevoir-rapidement-des-pieces-a-imprimer-en-3d/ BlocksCAD : | * [http://blogpeda.ac-poitiers.fr/lp2i-si/2016/03/20/blockscad-un-logiciel-de-cao-pour-concevoir-rapidement-des-pieces-a-imprimer-en-3d/ BlocksCAD : CAD software to quickly design parts for 3D printing] (with quite advanced examples) | ||
* [https://drive.google.com/file/d/0BylI2DCyFdKFSHRMUzZHV0RKYjQ/view Guides | * [https://drive.google.com/file/d/0BylI2DCyFdKFSHRMUzZHV0RKYjQ/view Guides of things] Very complete tutorial/transparent by Cyril Vignet. | ||
=== Others === | === Others === | ||
* [https://scratch-dach.info/wiki/BlocksCAD BlocksCAD] (In German) A concise introduction. | * [https://scratch-dach.info/wiki/BlocksCAD BlocksCAD] (In German) A concise introduction. | ||
* Page [[:fr:BlocksCAD|BlocksCAD]] in French Edutechwiki | |||
== Bibliography == | == Bibliography == | ||
* Berdik, C. (2017). Kids Code Their Own 3D Creations with New Blocks-Based Design Program. Tech Directions, 76(9), 23. | * Berdik, C. (2017). Kids Code Their Own 3D Creations with New Blocks-Based Design Program. Tech Directions, 76(9), 23. | ||
* Chytas, C., Diethelm, I., & Tsilingiris, A. (2018, April). Learning programming through design: An analysis of parametric design projects in digital fabrication labs and an online makerspace. In Global Engineering Education Conference (EDUCON), 2018 IEEE (pp. 1978-1987). IEEE. | * Chytas, C., Diethelm, I., & Tsilingiris, A. (2018, April). Learning programming through design: An analysis of parametric design projects in digital fabrication labs and an online makerspace. In Global Engineering Education Conference (EDUCON), 2018 IEEE (pp. 1978-1987). IEEE. | ||
* Chytas, C., Diethelm, I., & Lund, M. Parametric Design and Digital Fabrication in Computer Science Education. | * Chytas, C., Diethelm, I., & Lund, M. Parametric Design and Digital Fabrication in Computer Science Education. | ||
* Romagosa Carrasquer, Bernat. (2016). From the turtle to the beetle. Universitat Oberta de Catalunya http://openaccess.uoc.edu/webapps/o2/handle/10609/52807 | * Romagosa Carrasquer, Bernat. (2016). From the turtle to the beetle. Universitat Oberta de Catalunya http://openaccess.uoc.edu/webapps/o2/handle/10609/52807 | ||
* Williams, K. (2015). Girls, Boys, and'Bots: The St. Clare's robotics team [Pipelining: Attractive Programs for Women]. IEEE Women in Engineering Magazine, 9(1), 25-28. | |||
[[category:programming]] | |||
[[category: 3D printing]] | |||
[[category: computational making]] |
Latest revision as of 16:35, 3 October 2022
Introduction
BlocksCAD is a development environment that provides access to computer-aided design (CAD). It is based on Blockly, a software allowing an easy access to programming by a graphic assembly of blocks, like Scratch for example. This software is designed to be used by children as well as people with little knowledge of computers and programming. It is notably used by Einstein's Workshop, a workshop for children to promote technical skills.
In the footer of one project (Oct 2019), it says: “BlocksCAD is an education technology company dedicated to creating tools that help students of all ages pursue their love of science, technology, engineering, art, and math (STEAM). Our signature product, BlocksCAD, is a cloud-based 3D modeling tool that encourages users to learn math, computational thinking and coding concepts through visualization and designing models to be 3D printed”
BlocksCAD runs in the web browser with HTML 5. So it does not depend on Adobe Flash. However, on Google Chrome or Firefox, it requires the activation of WEbGL. BlocksCAD generates STL (StereoLythography) and XML files. The code can also be exported and used in OpenSCAD.
It was developed in the framework of the Einstein's Worskhop in the United States with the financial support of the DARPA (Defense Advanced Research Projects Agency). It is released as an open source project under GPL v3.
Currently, BlocksCAD is available in 11 different languages.
Beetle Blocks is a similar environment.
Application to education
Initially, BlocksCAD was designed to teach computer science. In this sense, their [1] offers various resources both free and paid to promote learning in this area.
The Blockscad Youtube channel is a free resource with about 20 videos for all levels ranging from a "quick start" to "training videos" dealing with more complex features. The BlocksCAD community is also an important resource for learning by downloading projects and sharing information and questions through their forum.
BlocksCAD offers paid online courses, including BlocksCAD 101, specifically aimed at teachers wishing to learn in the field.
Finally, the platform also seeks to promote the teaching of programming by supporting institutions wishing to launch such a project. Thus, courses from 4 hours to 2 days, either face-to-face or online, are offered. These courses offer the possibility to acquire better personal knowledge as well as ideas for activities to be carried out with students. To go even further, BlocksCAD offers to implement their project in schools. This implementation includes instructor onboarding, lessons aligned to a common core, and a management dashboard for an initial fee of approximately $7.50 per student per year.
More specific information can be found on the BlocksCAD for Education and Training Resources and Professional Development pages.
Interface
The BlockCAD interface is divided into four parts:
- On the left, vertically, a block toolbar (blue)
- In the middle, your workspace (white space with red box)
- On the right, a visual rendering window (orange)
- At the top, horizontally, a menu to manage your project and profile (green)
Block toolbar
The block toolbar contains 11 groups of blocks, each represented by a different color. It is possible to divide them into three categories :
- Basic blocks which are defined by parameters defining their shape
- 3D shapes (Sphere, cubes, cylinders, torus)
- 2D shapes (circle, rectangles)
- Text (2D and 3D writing)
- Experimental (triangles)
- The "overblocks" which generate an action on the basic blocks. They are therefore necessarily composed of basic block
- Transformations (positioning, rotations, scale, color)
- Constructive solid geometry operations (merge and subtract objects)
- Loops
- Functions (creation of subprograms and functions)
- Expressions, variables and constants, used for example to define dynamic parameters
- Math (constants and arithmetic blocks)
- Logic (logical and conditional operators)
- Variables (defining a variable)
Workspace
The workspace is located in the middle of the screen. To insert elements, simply click on the desired block and drag it into the workspace. At the bottom right, you have three buttons to manage the zoom and positioning of your project in the workspace.
Rendering window
The rendering window is used to visualize the objects created in the workspace. It is a system of orthonormal axes in which :
- The x axis is green
- The y axis is red
- The z axis is black (vertical)
The three axes x, y and z intersect at the origin, i.e. the center of your rendering window defined by the following coordinate (0;0;0). When the line is dashed, it means that the coordinate is negative. There is no unit (cm, mm) because it is chosen at the time of printing.
The visualization does not work interactively, so it is necessary to press the "Generate rendering" button to visualize the changes. A small horizontal toolbar allows you to change colors (1), to make the axes appear and disappear (2), to zoom (3), to change the point of view (4) or to take a picture (5).
Finally, this is also the place where you can export your project in STL format by clicking on the "Generate STL" button
This menu is divided into two lines. The first one allows you to change the language (sphere), to download projects or to connect and save your account. The second line allows you to name your project and to navigate in your workspace. Note that the keyboard shortcut CTRL+Z
to go back also works as it is possible to delete a block with the delete key of the keyboard.
On the right hand side, you can choose to display either "blocks" to view your elements in the workspace or "code" to have access to your code. However, this code cannot be modified.
Creating a project
To program a project, three different approaches are possible:
- By combining blocks
- By linear and circular extrusion of 2D shapes
- By importing a file (dxf format for example)
To start a project, go to the BlocksCAD editing page. You can also go to the main page and click on the orange "Create Now" button in the upper right corner.
Combining blocks
This subchapter focuses on the basic functionality of combining blocks. To approach these notions, we will analyze different parts of a touch memory using the following notions
- Moving and rotating objects
- Union and subtraction of objects
- Loop for repeating objects
Examples
A simple flower
The "flower" described below was created to explore basic functionality. It took a few attempts to understand how to use loop variables (tip: check under "variables", then drag them).
- It demonstrates subtractive geometry
- Rotation and translation needed to position objects
- A loop to create a curved object from cubes (using "hull" option) in the loop
- A loop to rotate the same arm six times.
View the
The generated STL seemed to be error free and the printer happily started printing it:
Import a project
Thanks to the Blockscad community, you have access to a gallery from which you can import projects, modify them and print them. This is an interesting solution to learn how to master more complex features.
Examples
As an example, we are going to set up a flower in order to adapt it to our desires. This flower uses the functions described in the previous chapter. Each arm is made of a cube which is moved on the x & y axis allowing to make waves and which is transformed with the check mark "hull" to create a unique arm.
To add a parameter, click on the brown block menu "variable" and insert a "set (...) to" item at the top of the "subtraction" item. Add the variable by clicking on the arrow. Here you can choose the name of your variables. Then, add from the block menu "math" in blue the element allowing you to define your variable. You get variables (brown) defined by absolute numbers (blue)
The flower has 8 elements that can be defined.
- n_petal: number of petals
- bloc_l: width of the blocks forming the petals
- bloc_h: height of the blocks forming the petals
- tube_r: radius of the central tube
- tube_h: height of the central tube
- hole_r: radius of hole (i.e., of the subtracted sphere)
- n_petal_block: number of blocks forming each petal
- deg_petals = 360 / n_petals: number of arms
The last step consists in inserting the variables in the place of each element defined before by an absolute number. You can then parameterize your flower by changing the variables in the brown elements at the top of your code. This way you get different flower models (code available under the images).
The next example shows how to use parameters, i.e. a user can change seven different parameters to create different shapes. See the comments in the exported OpenSCAD code below.
One generated example can seen in the following picture:
Generated OpenSCAD code:
//!OpenSCAD
// Number of petals. A number between 2 and 15 maybe.
n_petals = 8;
// Building block of a petal. Each petal is defined as a string of block with a "hull" around it.
block_width = 10;
// Building block of a petal. Height should be anything that is printable, e.g. between 0.5 and 20.
block_height = 2;
// Radius of the hub. A good value is 10, i.e. a width of 2cm.
hub_radius = 10;
// Radius of the hole. 4-5 mm is about the size of a pen. Must be at least 1.5 smaller than radius.
hole_radius = 5;
// Height of the hub in the middle. Something between 5 and 30 ?
hub_height = 15;
// Petal length in terms of blocks. Try between 2 and 10.
N_petal_blocks = 5;
deg_petals = 360 / n_petals;
difference() {
// Flower without the hole. It has a hub plus petals.
union(){
translate([0, 0, hub_height]){
// Sphere embedded on top of the hub
sphere(r=hub_radius);
}
// The lower part of the hub
cylinder(r1=hub_radius, r2=hub_radius, h=hub_height, center=false);
// Loop to create N petals. Each one is rotated
for (rot = [0 : abs(deg_petals) : 360 - deg_petals]) {
rotate([0, 0, rot]){
// Untick hull for a postmodern experience...
// chain hull
for (pos = [0 : abs(1) : N_petal_blocks - 1]) {
hull() {
// This formula will create a curved line. You can try others....
translate([(pos * (2 * block_width)), ((pos * pos) * 1), 0]){
cube([block_width, block_width, block_height], center=false);
}
// This formula will create a curved line. You can try others....
translate([((pos + 1) * (2 * block_width)), (((pos + 1) * (pos + 1)) * 1), 0]){
cube([block_width, block_width, block_height], center=false);
}
} // end hull (in loop)
} // end loop
}
}
}
// Three objects that will be subtracted to create the hole. One stick plus a ball on top. The cylinder at the bottom will shave off stuff that inhibits 3D printing.
union(){
translate([0, 0, (1 * hub_height)]){
sphere(r=hole_radius);
}
translate([0, 0, (0 - hub_height)]){
cylinder(r1=hole_radius, r2=hole_radius, h=(2 * hub_height), center=false);
}
translate([0, 0, (0 - 3 * hub_height)]){
cylinder(r1=hub_radius, r2=hub_radius, h=(3 * hub_height), center=false);
}
}
}
Registration, export
In order to save your project on the platform, you are required to register. You can also download your project as an XML or STL file and save it directly on your computer. The STL file allows you to print your project directly with a 3D printer.
It is possible to export the project to OpenSCAD and work with the code. This solution is recommended for complex projects because working with the code becomes easier to realize the project in question. However, it is not possible to import an OpenSCAD project.
Alternatives
Links
Tutorials
To go further in programming, tutorials are available.
- YouTube's channel of BlocksCAD
- YouTube's channel of mathcodeprint. This channel offers tutorials for OpenSCAD as well as for BlocksCAD. You can search according to your needs.
- BlockSCAD 3D documentation
Official
- blockscad3d.com/
- Parent FAQs
- Community, featured projects, blog posts, news.
- On Twitter
In french
- BlocksCAD (in French) at http://blockly.technologiescollege.fr/
- BlocksCAD : CAD software to quickly design parts for 3D printing (with quite advanced examples)
- Guides of things Very complete tutorial/transparent by Cyril Vignet.
Others
Bibliography
- Berdik, C. (2017). Kids Code Their Own 3D Creations with New Blocks-Based Design Program. Tech Directions, 76(9), 23.
- Chytas, C., Diethelm, I., & Tsilingiris, A. (2018, April). Learning programming through design: An analysis of parametric design projects in digital fabrication labs and an online makerspace. In Global Engineering Education Conference (EDUCON), 2018 IEEE (pp. 1978-1987). IEEE.
- Chytas, C., Diethelm, I., & Lund, M. Parametric Design and Digital Fabrication in Computer Science Education.
- Romagosa Carrasquer, Bernat. (2016). From the turtle to the beetle. Universitat Oberta de Catalunya http://openaccess.uoc.edu/webapps/o2/handle/10609/52807
- Williams, K. (2015). Girls, Boys, and'Bots: The St. Clare's robotics team [Pipelining: Attractive Programs for Women]. IEEE Women in Engineering Magazine, 9(1), 25-28.