• Models
  • Contests
  • Slicer
  • Login
  • Start Here
    thingiverse-iconprintables-iconcults3d-iconmakerworld-iconmyminifactory-icon

    3D GO

    3D ModelsContestsCollectionsSaved ModelsOn a mobile device?

3D GO

Privacy Policy
OpenSCAD style guide 3D Printer File Image 1
OpenSCAD style guide 3D Printer File Thumbnail 1

OpenSCAD style guide

polymaker avatarpolymaker

December 29, 2011

thingiverse-icon
DescriptionCommentsTags

Description

I timed the release of this guide to coincide with and commemorate the latest release of OpenSCAD[1]! The latest version (2011.12) was released today, so go out and get it now! I've marked this thing as a work in progress because it will need updating, though I won't update this thing, except minor/grammatical changes (any updates should be made in the form of a derivative, so anyone can do it!)

With OpenSCAD projects increasing in complexity every day, I think it's extremely important for those of us who use it to start thinking about a consistent style. The layout of the code is just as important as the technical accuracy and efficiency, because a good layout allows for readable, reusable, and maintainable code.

I would like to propose the following guidelines for style in OpenSCAD code. If you disagree, please speak up or create a derivative. I don't expect this to be the final word on the subject. My goal is to open up a dialog that will hopefully result in more maintainable OpenSCAD code.

License:

Creative Commons - Attribution - Share Alike

Related Models

The $30 3D scanner V7 updates preview image

The $30 3D scanner V7 updates

daveyclk profile image

daveyclk

75,771

Articulated Quetzalcoatl (updated) preview image

Articulated Quetzalcoatl (updated)

Rextruction profile image

Rextruction

1,059

摆摊神器 价格牌  价格标签 快速更换价格牌 preview image

摆摊神器 价格牌 价格标签 快速更换价格牌

DimensGen profile image

DimensGen

3

Modular Mounting System preview image

Modular Mounting System

HeyVye profile image

HeyVye

69,062

Totoro preview image

Totoro

joo profile image

joo

171

RFID Tag Holder for Third-Party Spools preview image

RFID Tag Holder for Third-Party Spools

Valkyrie profile image

Valkyrie

62

Stackable Battery Holders preview image

Stackable Battery Holders

adoniram profile image

adoniram

57,974

OpenSCAD Pirate Ship preview image

OpenSCAD Pirate Ship

MakerBlock profile image

MakerBlock

106