Skip to content
nichtich edited this page Mar 4, 2012 · 3 revisions

See README.md for an introduction to ImplicitCAD.

ImplicitCad generally supports most of OpenScad language with some extensions. See the OpenSCAD User Manual, in particular the OpenSCAD Language

quick syntax overview

  • statements end with ;
  • blocks of statements are enclosed in { and }. Brackets are typically omitted of the block consists of a single statement.
  • variable values are assigned with name = expression;
  • lists are enclosed in [ and ] with comma , as list element separator
  • there are two types of comments: // and /* ... */
  • most whitespace is ignored

boolean keywords

  • true and false

flow control keywords

  • for ( name = ... ) { ... }, for instance to iterate over a list
  • if ( ... ) { ... } (optionally followed by else { ... }

output methods

  • echo

methods that create basic shapes

  • sphere
  • cube
  • square
  • cylinder
  • circle
  • polygon

methods that manipulate shapes

  • union
  • intersection
  • difference
  • translate
  • rotate
  • scale
  • linear_extrude
  • shell

statements that import other source files

  • use <...>
  • include <...>

modules

  • with model (to be explained)