From: mathog <ma...@ca...> - 2012-08-31 19:00:00
|
Is there any documentation for lib2geom? I hunted all over and could only find the source code, but not a scrap of other documentation or a complete example program. The only examples so far are in Inkscape, which isn't so good for the purpose of learning what lib2geom does. (I did find in inkscape examples of how to copy a path with multiple segments, just not how to create one!) So I'm asking here for some help. Hope that is appropriate for this mailing list. I need to do the following using lib2geom (I think) within inkscape. Starting with pathA (a Geom::PathVector passed in from the caller, which in general is drawn both filled and stroked): 1. generate a second PathVector "pathB". In one case this is a rectangle (with corners known), and in the the other it is an elliptical ring (center, inner/outer radii, minor, major unit axis vectors all known). 2. generate a third PathVector "pathC" = INTERSECTION(pathA,pathB). Just like the Intersection option on the Paths menu. 3. delete pathB and pathC. Presumably something like: delete pathB; delete [] pathB; If lib2geom does what I think it does then this should be straightforward and just be a couple of lines of code. For which I have absolutely no idea what the syntax might be. Thank you, David Mathog ma...@ca... Manager, Sequence Analysis Facility, Biology Division, Caltech |