Stack

ABSTRACT

The Stack operation arranges meshes in the specified direction to create a stacked formation. The centers are along a line that is parallel to the direction by default, but this can be adjusted to be along some direction. The align direction should be normal to the main direction. There is a hyperplane normal to the direction that separates each adjacent pair of meshes, with some buffer

IMPORTANT ELEMENT

You'll probably use XStack and YStack more, but if you understand the semantics of stack properly, then that should be good enough. Stacks are useful for quickly positioning meshes.

PARAMETERS
mesh_vectorthe vector of mesh-trees to be stacked.
dirA direction vector indicating the stacking direction.
centerSpecifies to align meshes by their centers
align_dirAn optional parameter specifying a custom alignment direction.
RETURN

Stacks the provided meshes in the specified direction, with an optional alignment direection. The return value is the resulting stacked formation of meshes, which itself is a mesh-tree

DECLARATION
func Stack(mesh_vector, dir, [align] {[center] {}, [custom] {align_dir}})