Normal ctlmatrix in NURBS

Jul 29, 2009 at 1:39am

Normal ctlmatrix in NURBS

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. –
#44934
Jul 29, 2009 at 3:42am

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

#161825
Jul 29, 2009 at 8:00pm

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

#161826
Jul 29, 2009 at 8:09pm

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.

#161827

You must be logged in to reply to this topic.