Straight Geom::Curve pointAt problem

Hi to all.
I have a linear Geom::Curve for example whith a "d" like: M 0,0 100,0 I pass to this curve the function "pointAt(0.333333)" The previsible result is "33.333"... but this, give me "25.9259". Any body know whats happend?
Thanks very much in advance.

2014-04-26 19:21 GMT+02:00 Jabiertxo Arraiza Cenoz <jabier.arraiza@...2893...>:
Hi to all.
I have a linear Geom::Curve for example whith a "d" like: M 0,0 100,0 I pass to this curve the function "pointAt(0.333333)" The previsible result is "33.333"... but this, give me "25.9259". Any body know whats happend?
There is probably a transformation matrix in effect and the d does not match the coordinates in the path. Try calling initialPoint() and finalPoint() to verify that the curve contains what you expect
Regards, Krzysztof

There is probably a transformation matrix in effect and the d does not match the coordinates in the path. Try calling initialPoint() and finalPoint() to verify that the curve contains what you expect
Regards, Krzysztof
Hi Krzysztof, Finaly i just find the problem: I'm trying to find the time in a Geom::Curve, from a SPCurve. This segment is straight but instead generated by lineto, is, badly, generated by curveto, using the same value for pont cubic[0] and cubic[1], and for the others points, cubic[2] and cubic[3].
Now working well. Thanks for the quick reply.
Regards, Jabiertxo.
participants (2)
-
Jabiertxo Arraiza Cenoz
-
Krzysztof Kosiński