On 5-4-2013 9:58, Jabiertxo Arraiza Cenoz wrote:
Hi to all. Posted in IRC, no rsolve. New attemt, maybe this is a better plaze for this type of cuestions. Im attemting to fit identical, the position of 2 Geom:Points, one generated by Inkscape::UI::controlPontPosition::allNodes() and a cast to Inkscape::UI::Node->position() and the other with first_segment()->initialPoint(). The values need to be the same but one return 154.13750999999999, 406.75175261718755 and the other 154.13750999999999, 645.61042999999995. Whith other node/segment the values are -74.927954, 664.71799261718752 and -74.927954, 387.64418999999998. The value with initialPont is similar -rouded- than in the SVG. I test to pass to the other desktop->w2d,desktop->d2w, and normaliza(), with no luke. What im doing bad?
You can also try the desktop to document coordinate transforms:
Geom::Affine doc2dt() const; Geom::Affine dt2doc() const; Geom::Point doc2dt(Geom::Point const &p) const; Geom::Point dt2doc(Geom::Point const &p) const;
Cheers, Johan