Example 1

-- Getting volume data
volumedata = structure:findvolumedata ("volume data 1");

-- Getting cell
cell = structure:findcell ("diamond");

-- initializing
volumedata:reset ();

-- rastering the part
fragment = volumedata:addmeshtoraster ();

-- create shell (2 grid cells in each direction)
hull = fragment:createhull (3,3,3,3,3,3);

-- assign cell
fragment.cell = cell;

-- final cleanup
volumedata:cleanup ();

-- create simulation
structure.simulateafterexecution = true;

The first script example automatically executes the following working steps in the 3S module.