Jump to content

OpenSCAD User Manual/First Steps/Creating a simple model

From Wikibooks, open books for an open world

For our first model, we create a simple 2×3×4 cuboid.

To get started, launch OpenSCAD. You should have a preview window, toolbar, console and editor windows open. If one is hidden you can turn it on by going to the View menu and unselect the hidden items.

To create our cuboid we use the openSCAD editor window to type a one-line command:

Usage example 1 - simple cuboid:
cube([2,3,4]);
OpenSCAD Simple Cuboid

Compiling and rendering our first model

The cuboid can now be compiled and rendered by pressing F5 or F6 Function key on your keyboard while the OpenSCAD editor has focus. You should now see your object in the preview window as shown above.

green arrow pointing left to previous page
First Steps: Introduction
First Steps green arrow pointing right to next page
First Steps: Positioning an object
Creating a simple model