I am assuming that you would like to do this in Python, not C++. There are
some existing Python extensions in this general area. For example there is
an extension that will calculate and display the center of mass. See the
menu item Extensions->Visualize Path->Measure Path, and the file:
share\extensions\measure.py
hth,
Alvin
--
Sent from: http://inkscape.13.x6.nabble.com/Inkscape-Dev-f2781808.html
_______________________________________________
Inkscape-devel mailing list
Inkscape-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/inkscape-devel