jit.path & gl.path setscale

Jun 8, 2012 at 4:23pm

jit.path & gl.path setscale

I’m using a jit.path for building and moving a 3d form generated with a jit.gl.path.
My problem is that i can’t use the setscale in the gl.path cause the jit.path is immediately overruling it!
so i thought jit.path is setting the scale of each point… but it actually doesn’t.
I took a look to the matrix that comes out from the jit.path and it’s double of cells! so if i have 30 points i have a matrix of 30×2.
So there is a second row of pixels but it is completely zeroed and it does nothing apparently.
Does somebody knows something about it?
thanks
S

#49740
Jun 8, 2012 at 4:51pm

hello. the second row in the path matrix contain the handle/tangent values for each point in the path.
however, if your @interpmode is still the default value of “linear”, these values will be 0 (linear interpolation does not use tangents).

post a patch showing your problem with the scale values, and i’ll be happy to take a look.

#178662
Jun 8, 2012 at 4:52pm

check out the “Discussion” section of the jit.path reference file, for more information on the matrix output.

#178663

You must be logged in to reply to this topic.