NIL operation

Syntax

  • NIL

Description

The NIL operation deletes the current shape from the shape tree. It can be used, for example, to create holes in split operations or to terminate recursive rules.

Related

Examples

Using NIL to create holes

Lot-->
   extrude(10) 
   split(x){ { ~1 : X 
             | ~1 : NIL }* 
           | ~1 : X }
NIL creates holes

Using NIL to stop a recursion

Lot-->
   extrude(10)
   X
   comp(f) { all : Erker }
	
Erker-->
   case(scope.sx > ErkerStop) :
      s('ErkerFact, 'ErkerFact, 0)
      center(xy)
      alignScopeToGeometry(yUp, 0)
      extrude(ErkerDepth)
      X
      comp(f){top : Erker}
   else:
      NIL
NIL stops recursion

In this topic