Page 1 of 1

Grid Transformation mysteries

Posted: November 5th, 2023, 2:39 am
by tomczak
I'm trying to draw a grid on an 8x8 cm @ 300 dpi square (945x945 pixels). The attached image shows a grid that I'm almost happy with, except for two things: I would like to remove edges and also remove the vertical and horizontal middle lines (i.e. leaving only minor divisions).

Checking Omit Edges, does remove edges but also some, minor division lines.

Setting Major Line Width to zero removes the middle major division lines, but also the vertical minor division lines (but not horizontal ones).

Is there a way around it, or maybe I'm not setting it right?

Re: Grid Transformation mysteries

Posted: November 5th, 2023, 3:55 am
by jsachs
It looks like there is a problem with Omit Edges for minor grid lines. I am out of the office until mid-November so it will be a while before I can fix it.

In the meantime you can just crop out the outer grid lines and then add a border to get the original image size back. Not quite the same as Omit Edges but very close.

Re: Grid Transformation mysteries

Posted: November 19th, 2023, 10:28 am
by tomczak
There seems to be something not quite right with the vertical minor lines.

Re: Grid Transformation mysteries

Posted: November 19th, 2023, 11:03 am
by jsachs
It looks like this is happening because you set the major line width to 0 which is not a particularly useful case. For the next release, I made the minimum major and minor line widths 1 instead of 0.

Re: Grid Transformation mysteries

Posted: November 19th, 2023, 11:28 am
by tomczak
The idea was to have two vertical and two horizontal lines passing through the centers of each of the quadrants, without the lines passing through the center of the entire square, hence zero thickness of the major lines. I treated zero thickness as switching off this particular set of major or minor lines, which may be quite useful actually as it should allow for somewhat irregular grids to be created.

I even tried coloring the major lines white, instead of setting their thickness to zero, and it's close to what I want, except the white lines cause gaps in the black minor lines (that can be patched up later, so it mostly works for what I tried to do).

Re: Grid Transformation mysteries

Posted: November 19th, 2023, 11:36 am
by jsachs
To do what you want, try creating just one quadrant and use the Tile transformation to duplicate it horizontally and vertically.

Re: Grid Transformation mysteries

Posted: November 19th, 2023, 11:51 am
by tomczak
That works - thanks!

Re: Grid Transformation mysteries

Posted: November 20th, 2023, 2:07 am
by tomczak
I also discovered two other ways of doing this:

- Use Add Border instead of Tile to replicate the quadrant's 2x2 grid to the entire square,
- Add Borders of 1/4 of the side of the square, Grid at 3x3, Crop the borders.