The most important function of Dust3D is to generate mesh from the source document, which contains the position, radius and connectivity informations of all the nodes.

Normally, the nodes are drawn by user on the canvas. The scripting system, which we introduce in this document, is to provide a way to procedurally generate nodes, and then the mesh can be generated from these nodes.

Using nodes to generate mesh, already speed up the whole modeling progress. Scripting is to help speed up the speed up.

The following is the screenshot of the Script Panel, demonstrating how a tree been procedurally generated, you can find it from the Software Open Example Menu as Procedural Tree example.

Following are all the attributes grouped by element type, which can be used as the second parameter of document.setAttribute and document.attribute.
Both attribute name and value are string format, even for boolean type, for example,

**Uncombined** This component’s generated mesh will merge with previous components’s generated mesh directly, without boolean algorithm. Use this option will cause the final generated mesh not watertight.