Deborah R. Fowler

Wrangle Node Example - User Defined Functions

Posted July 7 2018 Updated Sept 25 2020 qmultiply Updated April 3 2025 example file orient/N/up Updated April 20 2026 light/dark
MISSING
        IMAGE

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

MISSING
        IMAGE

Going a bit further and adding elements with orientation using the orient attribute

MISSING
        IMAGE

MISSING
        IMAGEMISSING
        IMAGE
You can also combine quaternions with qmultipy. See below:
MISSING
        IMAGE
A comparison of N/up attributes vs orient (I think orient is easier to use but someone asked so... )
sample hip file