OpenScad Exercises
OpenScad Exercises
OpenScad Exercises
[CONSEJO
pias
Para crear tus pro
s, haz
tarjetas educativa
derecho
clic con el botón
ciona
en una foto y selec
Sustit uir imagen ].
Dog
HELLO WORLD
[Bicicleta]
exercises
2. Draw three different
figures according to
what we have learnt.
3. Draw a triangular
base prism.
4. Draw a pentagonal
base prism.
EXERCISE
6. Draw a cone in an original colour, use
the cheatsheet to find the colour.
Transparency 25%
Modifier characters
● * Disable modifier
● ! Root modifier
● # Debug modifier
● % Background modifier
● // We use them to comment the programming
lines.
EXAMPLE
TRANSFORMATIONS
TRANSLATION (mm)
translate([x,y,z)]
TRANSFORMATIONS
ROTATION (grades)
rotate ([x,y,z])
EXERCISES
7. a) Draw a centered hexagon with
h=5, r=40/2.
PAY ATTENTION:
BE CLEAN, if you start drawing the
head, the first line will be:
// Head
BOOLEAN OPERATIONS
UNION
union () To join two or more pieces but
don’t mixed them.
EXERCISE
12. Do a cylinder with h= 10 mm and r= 8
mm. Do another one with the same
height but r= 7mm to get the piece as
shown in the image.
BOOLEAN OPERATIONS
difference ( )
difference () . It makes the difference
between the first figure and the
second one.
EXERCISE
13. To the example of union, make it a
hole of 8 mm.