From: Nathan H. <nj...@nj...> - 2011-07-04 13:51:32
|
On Mon, Jul 04, 2011 at 12:23:20PM +0200, Mateusz wrote: > Hello everybody. Hi Mateusz, > My english is horrible i know ;( > Please help me. Tell me if I've understood you correctly. > 1. What I can to do a outline of silmple path and get simplle closed path > http://www.bankfotek.pl/image/850527.jpeg > I need to have control over all aspects of the line. End, Beginning, > thickness. You want to make the outlines of curves that have been drawn with a circular pen. You might like to look at offset-toy for a starting point on how to do this. One thing we don't have a toy for is handling the cusp 'butterflys' correctly. I have some code lurking somewhere, but in the switch to using bzr I never committed it. I can rewrite it if this is important. > 2. How do I calculate the amount or say whether it is part of a joint > two figures. You want to perform a union operation on the resulting paths so that overlapping sections aren't 'dran twice'? Or, perhaps you want to detect that overlap has occurred? > If someone wanted to show you how to write such an example in C + + and > how to compile. > program need not be a GUI. Just the command line. The toys directory has lots of simple programs that show how to implement things. Play with them, and look at the source. We try to make the toys not much more than 200 lines of actual code. To compile, just use the cmake tool like it says in the documentation. njh |