From: Aaron S. <aa...@ek...> - 2007-02-01 03:23:46
|
mgsloan wrote: > * path2 from svgd - ragel/mgsloan code? (working now?) > > Well, for one thing, it'd be handy if path2 could start new subpaths > within the context of appendNew, so the code doing the building doesn't > have to keep track of an extra var. This also comes up with my > extremely rudimentary inkscape interfacing code. This is one of the reasons I was working on moving path-builder to path2. The other thing I'd like to address in some way is assembling SBasis that differ by a slight rounding error into a continuous path. In gear.cpp I nudge one endpoint just slightly. It may also be possible to nudge both endpoints. Mental is concerned about the numerical issues we will run into here. Another option would be to add tiny line segments. I'm concerned that these tiny segments will come back to haunt us with bug reports when we output svg because it will seem that the nodes double. I suppose that SBasis to bezier conversion could possibly result in unexpected segments anyway. Sometimes path2builder seems completely superfluous. But there are issues and concepts around it that need to be settled and have best practices declared. Aaron Spike |