Jump to content
You must now use your email address to sign in [click for more info] ×

Snapping to many sided polygons


Recommended Posts

By trial and error it seems that polygons with more than 6 vertices don't support snapping.

E.g., if I create a pentagram, I can position circles on each point. If I create a septagon, this no loner works.

I noticed also that snapping doesn't work for other shapes (e.g., star). Intuitively I could imagine from an implementation point of view that some shapes would have too many points and would "pollute" the snap candidates. Is there a way to tune? Also, related, is it possible to position a shape on top of path nodes?

Thanks

Link to comment
Share on other sites

7 hours ago, richburdon said:

E.g., if I create a pentagram, I can position circles on each point. If I create a septagon, this no loner works.

You mean a Heptagon?
You could snap to the top most point and use Power Duplicate ⌘+J to get the circles onto the other points by moving its centre point to the centre of the Polygon.

1737130098_powerrotatepointsonaheptagon.gif.92f2fbf4d836f2dbe4dfaca053796644.gif

7 hours ago, richburdon said:

is it possible to position a shape on top of path nodes?

Are we talking about a linear path, or a curved path or both and which node on the object do you want to position to the path node? you can snap to the path but pinpointing a node, I don't think so yet, you could maybe use guides until this feature is added.

You can snap a node to a guide but you can't snap a guide to a node :S also guide creation can't be done while using the Node Tool O.o

iMac 27" 2019 Somona 14.3.1, iMac 27" Affinity Designer, Photo & Publisher V1 & V2, Adobe, Inkscape, Vectorstyler, Blender, C4D, Sketchup + more... XP-Pen Artist-22E, - iPad Pro 12.9  
B| (Please refrain from licking the screen while using this forum)

Affinity Help - Affinity Desktop Tutorials - Feedback - FAQ - most asked questions

Link to comment
Share on other sites

1 hour ago, firstdefence said:

You could snap to the top most point and use Power Duplicate ⌘+J to get the circles onto the other points by moving its centre point to the centre of the Polygon.

A very precise way of doing this (which also would work if you just want to position one circle on one of the other points of the polygon):

1. Position the circle & its rotation center as in the gif.

3. Duplicate (if you want multiple circles).

3. Instead of dragging the circle's rotation handle on the canvas, in the Transform panel in the R field enter 360/n, where n is the number of sides of the polygon. This will move the circle or the duplicate to the first point counterclockwise from the topmost point.

4. If you want multiple circles, power duplicate as in the gif.

5. If you just want one circle at another point on the polygon, the 360/n expression can be generalized to a*(360/n), where a is the 'point number' counting counterclockwise from the top (with the topmost one being zero).

The important thing here is to make sure the rotation center of the circle has been snapped to the center of the polygon, & that you do not click on one of the 9 anchors in the Transform panel, which would rotate the circle around itself relative to that anchor point.

All 3 1.10.8, & all 3 V2.4.1 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
Affinity Photo 
1.10.8; Affinity Designer 1.108; & all 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Link to comment
Share on other sites

59 minutes ago, R C-R said:

the 360/n expression can be generalized to a*(360/n)

You don’t need the parentheses, of course, since a*360/n gives exactly the same result as (a*360)/n or a*(360/n). ;)

Alfred spacer.png
Affinity Designer/Photo/Publisher 2 for Windows • Windows 10 Home/Pro
Affinity Designer/Photo/Publisher 2 for iPad • iPadOS 17.4.1 (iPad 7th gen)

Link to comment
Share on other sites

Precision Method.
1748867741_PrecisionMethod.gif.e5b1a992f08e5a2c72ed9e2f23f878f9.gif

iMac 27" 2019 Somona 14.3.1, iMac 27" Affinity Designer, Photo & Publisher V1 & V2, Adobe, Inkscape, Vectorstyler, Blender, C4D, Sketchup + more... XP-Pen Artist-22E, - iPad Pro 12.9  
B| (Please refrain from licking the screen while using this forum)

Affinity Help - Affinity Desktop Tutorials - Feedback - FAQ - most asked questions

Link to comment
Share on other sites

9 minutes ago, αℓƒяє∂ said:

You don’t need the parentheses, of course, since a*360/n gives exactly the same result as (a*360)/n or a*(360/n). ;)

True, but it was drummed into my head long ago by a math professor that parenthetical forms are more explicit & thus what he (or more often his T.A.) expected to see when grading our work. Even 50 years later, it is hard to resist that now ingrained habit. B|

All 3 1.10.8, & all 3 V2.4.1 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
Affinity Photo 
1.10.8; Affinity Designer 1.108; & all 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Link to comment
Share on other sites

20 minutes ago, R C-R said:

parenthetical forms are more explicit

That’s true for a+360/n, where you might want to rule out the possibility that you meant (a+360)/n, but where only multiplication and division are involved there is no need to be explicit about anything since there is no need to perform the operations in any particular order.

Alfred spacer.png
Affinity Designer/Photo/Publisher 2 for Windows • Windows 10 Home/Pro
Affinity Designer/Photo/Publisher 2 for iPad • iPadOS 17.4.1 (iPad 7th gen)

Link to comment
Share on other sites

19 minutes ago, αℓƒяє∂ said:

That’s true for a+360/n, where you might want to rule out the possibility that you meant (a+360)/n, but where only multiplication and division are involved there is no need to be explicit about anything since there is no need to perform the operations in any particular order.

Several of us tried to convince the professor that there is no need to be explicit about things like that but that is the notation he wanted us to use so that is what we got into the habit of using. I am still not sure why he was so adamant about that. Maybe it had something to do with preparing us for working with matrix operations that are not necessarily commutative, or maybe he just enjoyed dominating his students. Either way, it is a hard habit for me to break. :(

All 3 1.10.8, & all 3 V2.4.1 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
Affinity Photo 
1.10.8; Affinity Designer 1.108; & all 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Link to comment
Share on other sites

7 hours ago, R C-R said:

I am still not sure why he was so adamant about that.

I remember one of my teachers at secondary (i.e. high) school being adamant about something to do with working out an area where the units were not specified: those who performed the calculation correctly and chose inches or centimetres (thereby getting an answer expressed in terms of in² or cm²) were rewarded with full marks, but those of us who expressed the same numerical answer as “square units” were told that it should have been “squared square units”. However, she refused to explain her reasoning.

Alfred spacer.png
Affinity Designer/Photo/Publisher 2 for Windows • Windows 10 Home/Pro
Affinity Designer/Photo/Publisher 2 for iPad • iPadOS 17.4.1 (iPad 7th gen)

Link to comment
Share on other sites

1 hour ago, R C-R said:

Either way, it is a hard habit for me to break. :(

I know all about that. I keep painting white on the computer screen every time I make a spelling mis take (bugger) >:(

Windows PCs. Photo and Designer, latest non-beta versions.

Link to comment
Share on other sites

9 minutes ago, toltec said:

I know all about that. I keep painting white on the computer screen every time I make a spelling mis take (bugger) >:(

That would explain a lot. xD

All 3 1.10.8, & all 3 V2.4.1 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
Affinity Photo 
1.10.8; Affinity Designer 1.108; & all 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Link to comment
Share on other sites

Everyone -- thanks so much for your generous answers.

(@RCR -- I used perens liberally too! Cheers.)

BTW, what tool are you using to do the animated screen grabs (Mac?)

 

> Are we talking about a linear path, or a curved path or both and which node on the object do you want to position to the path node?
> you can snap to the path but pinpointing a node, I don't think so yet, you could maybe use guides until this feature is added.

@firstdefence  If I use the Pen tool to draw some lines (i.e., a "curve" say, a zig-zag), I want to snap the center of a circle to any of the points. Perhaps I don't know what a "path" is?
 

 

Link to comment
Share on other sites

Hi Rich a Path is what the Pen Tool draws but Affinity call it a Curve, the names are pretty much interchangeable, so if someone talks about a Path they are actually talking about a curve, there is no technical difference, the terms in relation to Affinity are the same. In Illustrator a Pen Tool drew a Path, in Affinity the Pen Tool draws a Curve, I've used Illustrator a lot so I have a habit of calling the line the Pen Tool draws a Path but I mean a Curve.

Confused lol!

The animated screen grabs I use Camtasia(Mac and Windows). There is also Screenflow and iShowU for Mac.

Free screen recorders are: Quicktime Player already built into the Mac OS, Recordit and OBS Studio, OBS is a little quirky but easily learnt. In the New OS X (Mojave) arriving in Autumn/Fall they will make recording the screen even easier.

At the moment you cannot snap to a Node :( But you can pinpoint where a node is as use guides to effectively mark a + and snap to the guides, this takes a bit of guess work but its all we have for the moment, another option is to draw curves on a grid and place nodes at grid interactions and you can then snap to those grid points.

699549875_ScreenShot2018-06-11at07_51_49.thumb.png.f97723073f9cadd3f3dba431a337deed.png

603529115_ScreenShot2018-06-11at07_47_15.png.cb4694fe062645fdb9dd8f0ddf09283a.png

iMac 27" 2019 Somona 14.3.1, iMac 27" Affinity Designer, Photo & Publisher V1 & V2, Adobe, Inkscape, Vectorstyler, Blender, C4D, Sketchup + more... XP-Pen Artist-22E, - iPad Pro 12.9  
B| (Please refrain from licking the screen while using this forum)

Affinity Help - Affinity Desktop Tutorials - Feedback - FAQ - most asked questions

Link to comment
Share on other sites

3 hours ago, firstdefence said:

a Path is what the Pen Tool draws but Affinity call it a Curve, the names are pretty much interchangeable, so if someone talks about a Path they are actually talking about a curve, there is no technical difference, the terms in relation to Affinity are the same. In Illustrator a Pen Tool drew a Path, in Affinity the Pen Tool draws a Curve, I've used Illustrator a lot so I have a habit of calling the line the Pen Tool draws a Path but I mean a Curve.

I’ve never used Illustrator, but in Affinity Designer there’s an important distinction between curves and paths: a curve has a stroke width (which may be zero) but a path doesn’t. An example of this is creating text on a path by typing the text after clicking on a curve with the Artistic Text Tool; when you do this, the curve disappears and only its path remains.

Alfred spacer.png
Affinity Designer/Photo/Publisher 2 for Windows • Windows 10 Home/Pro
Affinity Designer/Photo/Publisher 2 for iPad • iPadOS 17.4.1 (iPad 7th gen)

Link to comment
Share on other sites

6 minutes ago, αℓƒяє∂ said:

I’ve never used Illustrator, but in Affinity Designer there’s an important distinction between curves and paths: a curve has a stroke width (which may be zero) but a path doesn’t. An example of this is creating text on a path by typing the text after clicking on a curve with the Artistic Text Tool; when you do this, the curve disappears and only its path remains.

Ya learn summit everyday  image.png.8fc915436a628f7a2b273d3abbb7bc92.png

iMac 27" 2019 Somona 14.3.1, iMac 27" Affinity Designer, Photo & Publisher V1 & V2, Adobe, Inkscape, Vectorstyler, Blender, C4D, Sketchup + more... XP-Pen Artist-22E, - iPad Pro 12.9  
B| (Please refrain from licking the screen while using this forum)

Affinity Help - Affinity Desktop Tutorials - Feedback - FAQ - most asked questions

Link to comment
Share on other sites

16 hours ago, firstdefence said:

At the moment you cannot snap to a Node :(....

Sure we can :).

We can snap nodes to nodes, to key points on shapes (node-ettes ;), or however they're classified) or even anywhere on a curve.

The only caveat, afaiaa, is that the snapper has to be a curve(s) object with "full-fledged" nodes.... i.e not a shape. The snappee can be either.... And in the case of snapping to an arbitrary point on a shapes boundary, it doesn't even need to be selected.

Centering is also doable with snapping in the special cases of circles/ellipses with equal crosshair ("+") alignment of nodes through the center. Otherwise it's off to the workaround! :)

(I guess I should mention: my post is NOT about how to align an array of circles to the vertices around an object. Solely about node snapping itself.)

sorry 'bout the gif quality. I down sized in the online builder. At the mercy of their resample :$.

 ezgif-2-1420a68ef1.gif.b68f0c6b3ba2f7844b55431d8faee076.gif

Link to comment
Share on other sites

48 minutes ago, JimmyJack said:

The only caveat, afaiaa, is that the snapper has to be a curve(s) object with "full-fledged" nodes....

Also, as your gif shows, for some snapping operations like snapping to the nodes of an open curve, you have to use the Node Tool, select both objects, & all the nodes of the object you are moving. 

All 3 1.10.8, & all 3 V2.4.1 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
Affinity Photo 
1.10.8; Affinity Designer 1.108; & all 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.