📘 CodingMarble Learn

3D Modelling: From a Cube to a Printed Object

A 3D model is a shape stored in a computer as points (vertices) joined by edges into flat faces: a mesh. We build models by starting from simple shapes (primitives), moving, rotating and scaling them, and pulling faces out (extrude). Then we add materials and lights and the computer renders a picture. The same model can be sliced into thin layers and built by a 3D printer, or used in games, films, VR and product design.

🎬 Step-by-step story

  1. Every 3D model is made of points. This cube has 8 vertices (red dots), joined by 12 edges into 6 flat faces.
  2. Transform: we move the cube along x, rotate it 45° and scale it 1.3 times. The shape is the same; only its place, turn and size change.
  3. Extrude: pull one face outwards. A new part grows out of the cube. Building from boxes like this is called box modelling.
  4. Render: make it smooth, give it a material and add a light. The computer works out the colours and shadows and draws a picture.
  5. 3D print: software slices the model into thin layers. The printer’s nozzle lays down one layer, then the next on top, from the bottom up.
  6. Your turn: pull the extrude slider, smooth the shape, and change the number of print layers.

Tip: drag the 3D scene to turn it. Use two fingers to zoom.

🤔 Common doubts, cleared

Is a 3D model a picture?

No. It is a set of points, edges and faces stored as numbers. The picture is made later by rendering.

Does rotating change the shape?

No. Move, rotate and scale change position, turn and size, not the shape itself.

What is the difference between extrude and scale?

Extrude adds new faces and vertices; scale only stretches what is already there.

Why does a smooth sphere look round if faces are flat?

It has many small flat faces. The more faces, the rounder it looks.

Why does a printer need so many layers?

Each layer is very thin (about 0.2 mm), so many layers stack up to make the full height.

What is a 3D model?

A 3D model is a description of a shape in three directions: width (x), height (y) and depth (z). The computer stores it as numbers.

A cube has 8 vertices, 12 edges and 6 faces. For any closed simple solid, V − E + F = 2 (Euler’s rule). Check: 8 − 12 + 6 = 2.

Kinds of 3D modelling

Building a model: primitives, transforms and extrude

Most models start from primitives: cube, sphere, cylinder, cone, plane.

Transforms

Box modelling

Start with a box, then:

  1. Extrude a face: pull it out to make a new part (arms, a handle).
  2. Inset/loop cut: add more edges where you need detail.
  3. Subdivide/smooth: split faces into smaller ones so the shape looks rounder.

In CAD, you often draw a 2D sketch with exact sizes and then extrude or revolve it into a solid. Other tools: Boolean (join, subtract or intersect two shapes), fillet (round an edge) and mirror (copy to the other side).

Mock-ups and prototypes

Designers check ideas with quick card or foam mock-ups, then a 3D model, then a printed prototype to test size and fit.

Materials, lights, cameras and rendering

A mesh alone is just grey shape. To make a picture we add:

Rendering is when the computer calculates the colour of every pixel from these. Games render in real time (about 60 pictures a second). Films use slower, more realistic rendering that can take minutes per frame. Models can also be animated or shown in VR and AR.

3D printing (additive manufacturing)

Additive means building by adding material, layer by layer. (Cutting material away, like on a lathe, is subtractive.)

  1. Design the model and export it (often as an STL or 3MF file).
  2. A slicer program cuts it into thin horizontal layers and plans the nozzle path.
  3. The printer builds from the bottom up. In FDM printing, a hot nozzle melts plastic filament (like PLA) and draws each layer.

Layer height is often 0.1–0.3 mm. Thinner layers look smoother but take longer. Number of layers = height ÷ layer height. A 24 mm tall model at 0.2 mm per layer needs 24 ÷ 0.2 = 120 layers.

Overhangs need supports. Infill (for example 20%) fills the inside with a light pattern to save plastic. Uses: prototypes, spare parts, medical models, prosthetic hands, even houses printed in concrete.

Key formulas and definitions

Worked examples

1. A cube has one face extruded. How many vertices, edges and faces now? Check with Euler’s rule.

Extruding one face adds 4 vertices, 8 edges and 4 faces: V = 12, E = 20, F = 10. Check: 12 − 20 + 10 = 2 ✓.

2. A 4 cm tall box is scaled by 1.5. How tall is it now?

Scale multiplies every length: 4 × 1.5 = 6 cm.

3. A model 30 mm tall is printed with 0.2 mm layers. How many layers? If one layer takes 20 s, how long in minutes?

Layers = 30 ÷ 0.2 = 150. Time = 150 × 20 = 3000 s = 50 minutes.

4. You want a mug. Which operations would you use in box modelling?

Start with a cylinder, inset the top face and extrude it downwards to hollow the inside, extrude a small box on the side into a handle, then subdivide/smooth.

Common mistakes

Practice quiz

1. How many vertices does a cube have?
2. Pulling a face out to create a new part is called:
3. The process of calculating the final image is:
4. 3D printing is also called:
5. Which program cuts a model into layers for printing?

Practice: answer these yourself

Type or choose your answer, then press Check. Use a hint if you are stuck; the full solution appears after you answer.

Frequently asked questions

What software is used for 3D modelling?

Many free and paid tools exist: Blender and Tinkercad (free), FreeCAD, Fusion 360, SketchUp and others. The ideas in this lesson work in all of them.

Is 3D modelling hard for beginners?

No. Start with primitives, move/rotate/scale and extrude. Most real objects can be made from boxes and cylinders.

What file type is used for 3D printing?

STL is the most common; 3MF and OBJ are also used. A slicer turns them into printer instructions (G-code).

Where this is taught

Spain1º BachilleratoCAD systems
Spain1º BachilleratoDigital design tools
Ukraine9 класDigital creativity
Ukraine10 класElective: 3D modelling (35 h)
Ukraine11 класElective: 3D modelling (35 h)
FrancePremièreDigital tools and languages
Russia7 класс3D modelling, prototyping, mock-ups
Russia8 класс3D modelling and prototyping
Russia9 класс3D modelling and additive technologies
China高三Sel.11 Product 3D design and manufacture (creation)
China高三Sel.5 3D design and creativity

Learn first

Related lessons

All Computer Science lessons