inputlabs / prototypes_cad

Other
2 stars 5 forks source link

OpenSCAD (CSG) #24

Open marcos-diaz opened 1 year ago

marcos-diaz commented 1 year ago

Intro

OpenSCAD is an unique CAD application, as its only user interface is a programming language.

It is also unique because instead of parametric modelling (the paradigm used in most other CAD apps) it uses CSG (Constructive Solid Geometry), so the final models are created by combining several of more simple 3D shapes such as cubes, cylinders, etc.

Requirement notes

tomas-pecserke commented 1 year ago

OpenSCAD language is not as much limiting as it's based on functional programing paradigm (as in similar to Haskell) Limiting side-effects is a core principle in this paradigm and makes the user to be much more explicit in his intent

Most of the language features we are used from imperative programming (like reassigning variables) can or inherently do lead to side-effects.

And side-effects are incompatible with non-destructive CSG.