Deborah R. Fowler
Wrangle Node
Example - User Defined Functions
Posted on July 7 2018
Updated on Sept 25 2020 adding qmultiply
Updated on April 3 2025 adding example file comparing
orient and N/up
Along with many built-in functions, user defined functions can be created in vex. Here is an example using the phyllotactic pattern:
Looking closer at the code, it is similar to the previous phyllotactic pattern example, except now the code is encased in a user-defined function
Going a bit further and adding elements with orientation using the orient attribute
You can also combine quaternions with qmultipy. See below:
A comparison of N/up attributes vs orient (I think orient is easier to use but someone asked so... )
sample hip file
