From: Frater <fr...@po...> - 2011-07-04 15:16:15
|
> > > Tell me if I've understood you correctly. > > > ok, many thanks >> >> 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. > > > Yes I draw example "m 383.20331,319.69162 c -9.13671,-65.08967 -80.61009,-125.59713 -143.0029,-121.91195 -14.80466,0 -38.70723,14.55665 -53.5119,14.55665 -21.14148,9.83629 -23.02546,29.10813 -30.93288,52.76786 -27.82934,143.72189 116.50341,245.05707 211.07143,316.60717 6.16166,13.57652 20.68928,12.53864 25.44847,5.643 138.77759,-61.99806 258.96041,-147.03259 216.5559,-285.85854 -3.67085,-15.66112 -51.50034,-57.32597 -68.93786,-52.76786 -85.35308,11.14542 -97.72069,28.57407 -143.95318,85.52033" http://wklej.to/6OoGm/text > 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. > How I can import this line and compiled? I will try small steps to reach the destination. How to load the above line. Then how to find out where are the individual nodes and draw a line perpendicular to one of them. How then compile it. Cmake itself is not enough. If the short term 'offset-toy.cpp' to 'offset-test.cpp' as it compile? gcc offset-test.cpp -I -L ... ? cmake dont' show any comand line. >> >> 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? > > > hm..... both ;) But let's start simple. Is the two closed lines overlap each other or not? Is there any way to find out what is the distance from each other letters? I would write two letters at a distance of 10 pixels apart. The letters "T" and "a". Letter 'a' should fall under the letter 'T'. The kerning for fonts that do not have kerning saved inside. Is it possible? >> >> 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. >> >> >> > > ---------------------------------------------------------------- Najwieksza baza samochodow nowych i uzywanych Sprawdz >> http://linkint.pl/f29e3 |