Forums > Jitter

Normal ctlmatrix in NURBS

July 29, 2009 | 1:39 am

So its my first time using NURBS, and I’m a bit confused on how to get a ctlmatrix back to a normal, flat plane (the way it is before you send it a random ctlmatrix). I’m sure the explanation is very simple, and I’ve avoided going to the forum for the answer, but I can’t seem to figure it out. I suspect it involves a [jit.matrix 3 float32 1 1] with some sort of [setcell $1 $1 val ?. ?. ?.] but I can’t seem to figure it out. Can anybody put me in the right direction? Here is what I have so far.

– Pasted Max Patch, click to expand. –

July 29, 2009 | 3:42 am

one way is to send the matrix through jit.expr:
[jit.expr @expr snorm[0] snorm[1] 0.]


July 29, 2009 | 8:00 pm

exactly what I was looking for, thank you so much! i really need to start digging into jit.expr


July 29, 2009 | 8:09 pm

i know that this is known to most, but theres an object that I had not used before that does the same thing [jit.gencoord].

just thought I would post that up here for others searching for answers.


Viewing 4 posts - 1 through 4 (of 4 total)