Re: [Inkscape-devel] Calligraphy Pen
Do you guys want to work on top of the code in dyna-draw-context.cpp that turns the users motions into a bezier path, or do you have plans for a new path-to-bezier algorithm?
As I explained, that tool creates simple closed paths that have no idea of mid-path or widths array. They are just closed paths with black fill, you can only edit their edge nodes. As such, they're hard to edit after they're drawn and therefore almost useless. What I've been proposing is a more usable approach where you have a midline path and an array of widths, and the final closed path gets calculated from them and updated automatically when you edit the midline or widths. The current dyna-draw code may help in developing this algorithm, but by itself it's a dead end IMHO. It's not worth to develop it further in its current state.
One other thing that dyna-draw does is implements some advanced realtime smoothing with "drag", "mass", etc. This applies to the algorithm for transforming your mouse movements into a path (which would become the midline path in the new tool). Some people in our team are already working on making the current freehand tool produce smoother lines, and probably the result of their efforts will be good enough for the new calligraphic tool as well, even without "mass" or "drag" stuff. Maybe, or maybe not.
_________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN Premium http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI...
participants (1)
-
bulia byak