-
Notifications
You must be signed in to change notification settings - Fork 49
User Interface
When designing, kokopelli displays two panels. The left side shows your current script, and the right panel renders it into a model. When the script changes, the displayed model updates itself.
When you start typing, the system attempts to give you a hint about the function that you're using. This hint appears in the bottom right corner.
If there a bug in your script, it will be identified in several ways:
- The status line in the bottom right will tell you the line number
- The line will be marked by a red arrow
- The output pane (opened with Ctrl+D or 'Show output' in the View menu) will print a traceback
When the script evaluates without an error, the output pane gives statistics on the most recent evaluation.
Models can be rendered in two distinct modes. The '2D', '3D' and 'Both' options in the View switch between these different modes.
In 2D mode, objects are rendered as flat or height-map images. If an object's z bounds are provided, then it is rendered as a height-map; otherwise, it is rendered as a flat image at z=0. You can pan around the render window by left-clicking and dragging, and zoom by scrolling the mouse wheel or trackpad.
In 3D mode, objects are rendered as triangle meshes. For an object to be rendered in this way, it must have valid bounds on all axes. This will occur automatically if a design uses shapes and operators from the standard libraries. Rotating is done by left-clicking and dragging, panning with shift + left-click, and zooming with the scroll wheel.