3 Home
nichtich edited this page 2012-03-04 10:52:30 -08:00

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)