This interface describes the translation scheme/compiler that should be
returned from the factory function passed to vox.compile . Note that
the before
and after
methods are both optional, and will be replaced
with no-ops if omitted.
Call methods with.name()
,.name(arguments)
or just .name arguments
.
strands
)
-> undefined
#Function to execute after the iterator looks at each voxel
vox.dna.Strand[]
If the compiler modifies any strands, it should modify this array.
strands
)
-> undefined
#Function to execute before the iterator looks at each voxel
vox.dna.Strand[]
If the compiler generates any strand(s) before examining the voxels, they should be pushed into/spliced into this array.
a
, b
, c
, strands
)
-> undefined
#Iterator function which is called on each voxel.
Number
Number
Number
vox.dna.Strand[]
If the iterator generates any strand(s) for this voxel, they should be pushed into/spliced into this array.