5 Modules

In this chapter, you’ll learn how to turn complex designs into more manageable components called modules. Modules are separate sections of code that organize a collection of stand-alone statements, and they’re particularly useful for two reasons. If your code is long and complicated, using modules can break your code into smaller subsections, which helps make your code more readable. And if your design has duplicate or similar shapes, you can use a single module to define the shape, reducing the amount of code you need to write to create complex designs.

This chapter also describes how to use variables and parameters to customize ...

Get Programming with OpenSCAD now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.