4 Oct
2013
4 Oct
'13
12:31 a.m.
2013/10/4 Jabiertxo Arraiza Cenoz <jabier.arraiza@...2893...>:
Hi to all. Im attemping to get a node element from a Pathvector. Anybody know what to do? I find this obsolete function "sp_nodepath_get_node_by_index".
Geom::PathVector stores Geom::Path, which in turn stores curves (segments). There are no node structures.
You can get the position of a node by calling initialPoint() on the curve. There is also code to convert between Geom::PathVector and a node-based representation in ui/tool/path-manipulator.cpp.
I recommend reading the lib2geom documentation, which you can get by checking out lp:lib2geom and running doxygen.