[cairo] Path length

Stuart Axon stuaxo2 at yahoo.com
Tue Mar 24 10:09:50 PDT 2015


Is the best way to get the length of a cairo path to call cairo_copy_path_flat and sum the lengths of the LINE_TOs contained inside ?
I've been looking at arc lengths and it seems it can get complex, any chance of cairo providing cairo_path_length in future, or should I be looking at something like 2geom for this sort of thing ?
 S++
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo/attachments/20150324/698f202d/attachment.html>


More information about the cairo mailing list