
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".
Thanks in advance, Jabier.

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.
participants (2)
-
Jabiertxo Arraiza Cenoz
-
Krzysztof Kosiński