jit.gen geometry using math functions - paulbourke


    Nov 27 2016 | 10:59 pm
    Hi,
    I'm trying to create geometries only using math functions in jit.gen. The patch is an example for two functions i found in paulbourke.net.
    If someone could tell me what i'm doing wrong it would be great. I'm new to jit.gen in particular and need help (and courage :) to advance. I assume i'm using gen wrong and the vectors fold to 0 0 0 vec in trianguloid ..?
    I'll greatly appreciate it if you could suggest other sources like paulbourke.net with cool surface geometry if you know of any.
    Happy patching!

    • Nov 28 2016 | 3:24 pm
      you had a small mistake in your trianguloid, fixed gen code below. i didn't see anything wrong with the other one, maybe he's just clamping the values in his renders (look at the jit.gen clamp object).