RFE: polygonal grid

Bug #1087913 reported by Matthew Woehlke
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
In Progress
Wishlist
Matthew Woehlke

Bug Description

I'm working on a project for which it would be really helpful to have a "polygonal" grid type. That is, basically a triangular section of a rectangular grid equal to 1/N of a circle symmetrical across the axis, repeated in a polar array N times to make a complete grid. Options would be center point, rotation angle, number of segments, distance between concentric polygons, distance increments from center line. (A max extent - for all grid types, actually - would also be really helpful, as I'm working from multiple center points.)

(A polar grid would also be nice!)

Tags: grids

Related branches

nightrow (jb-benoit)
Changed in inkscape:
importance: Undecided → Wishlist
su_v (suv-lp)
tags: added: grids
Revision history for this message
Matthew Woehlke (mw-triad) wrote :

Here's a picture of what I'm looking for (8 sections, equal x/y spacing, and an arbitrary extent limit).

I actually decided to start working on this myself (this is a screen shot of inkscape :-D)... the rendering logic is a bit crude at the moment (not clipped, and see aforementioned 'arbitrary extent') and I haven't even started work on snapping, but as shown, it's at least far enough to get the idea across.

Revision history for this message
Matthew Woehlke (mw-triad) wrote :

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?

Revision history for this message
Matthew Woehlke (mw-triad) wrote :

Okay, I have this in a state where it is working sufficiently for my needs. Patch series (git-am format) attached, or see branch at lp:~mw-triad/inkscape/polygonal-grid.

Besides the previously mentioned minor points, the configure page icon is also missing, but it is not clear to me how to go about adding one?

Revision history for this message
Antonio Ospite (ospite) wrote :

Hi, Matthew did you get to implement the polar grid too?

In the case of a polar grid, options to set the number of sectors and the rings width would be useful too.

Revision history for this message
Matthew Woehlke (mw-triad) wrote :

@Antonio, no, and given that the inkscape devs don't appear to care about contributions, I doubt it's ever going to happen. Anyway my main use case is/was something for which I'm hoping to eventually be able to use a different program altogether.

FWIW, obviously the configuration options for a polar grid would be center, r and θ step sizes, and possibly also something to tweak how θ lines are suppressed near the origin.

Revision history for this message
ScislaC (scislac) wrote :

We actually do care about contributions. I'm sorry to see that we missed this patch from so long ago. We do welcome contributions I'm sorry that you feel otherwise. I did try to apply your patch to my local copy, but as you can imagine with the amount of time that has passed, it has bitrotted. If you would be willing to re-submit it, I'd be willing to test and give it a look over,

Revision history for this message
Antonio Ospite (ospite) wrote :

@mw-triad how about respinning your patch?

jazzynico (jazzynico)
Changed in inkscape:
assignee: nobody → Matthew Woehlke (mw-triad)
status: New → In Progress
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.