Rudimentary clipping, as well as calculating the needed extents to fill the viewport, is now done. Code is at lp:~mw-triad/inkscape/polygonal-grid. (Snapping isn't started yet, but next on the to-do list, as rendering is now at an acceptable point.) Right now my thought is to file a separate request for grid extents, since it makes more sense to have this otherwise done, then tackle general extents in one go.
There are a couple issues for which I don't see obvious solutions; if some knowledgeable person could help out, that would be much appreciated...
- Grid units is initially unset.
- Sometimes a line or part of a line does not render.
Also, the lines are not clipped to the viewport. This doesn't seem to matter from a correctness standpoint; not sure if it is worth changing for performance?
Rudimentary clipping, as well as calculating the needed extents to fill the viewport, is now done. Code is at lp:~mw-triad/inkscape/polygonal-grid. (Snapping isn't started yet, but next on the to-do list, as rendering is now at an acceptable point.) Right now my thought is to file a separate request for grid extents, since it makes more sense to have this otherwise done, then tackle general extents in one go.
There are a couple issues for which I don't see obvious solutions; if some knowledgeable person could help out, that would be much appreciated...
- Grid units is initially unset.
- Sometimes a line or part of a line does not render.
Also, the lines are not clipped to the viewport. This doesn't seem to matter from a correctness standpoint; not sure if it is worth changing for performance?